
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature-item span:last-child {
    font-weight: 600;
    font-size: 1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Categories Overview */
.categories-overview {
    margin-bottom: 4rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-card-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.category-card-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.category-card-header a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.category-card-header a:hover {
    color: #ee4d2d;
}

.product-count {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem 2rem;
}

.preview-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.preview-item:hover {
    transform: scale(1.05);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-footer {
    padding: 1rem 2rem 2rem;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ee4d2d;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.view-all-link:hover {
    gap: 0.8rem;
    color: #d73211;
}

/* Featured Sections */
.featured-section {
    margin-bottom: 4rem;
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.featured-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    text-align: left;
}

.featured-section .section-header h2 {
    margin: 0;
    font-size: 2rem;
}

.see-more-link {
    color: #ee4d2d;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.see-more-link:hover {
    gap: 0.8rem;
    color: #d73211;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Enhanced Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-card a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8rem;
    color: #333;
}

.product-price {
    color: #ee4d2d;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.product-original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 1rem;
    margin-left: 0.5rem;
    font-weight: normal;
}

.product-discount {
    background: linear-gradient(45deg, #ee4d2d, #ff6b47);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    position: absolute;
    top: 1rem;
    right: 1rem;
    box-shadow: 0 2px 8px rgba(238, 77, 45, 0.4);
    z-index: 2;
}

.product-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars .star {
    font-size: 0.9rem;
    margin-right: 1px;
}

.rating-stars .star.filled {
    color: #ffa500;
}

.rating-number {
    font-weight: 600;
    color: #333;
    margin-left: 0.3rem;
}

.sold-count {
    font-size: 0.85rem;
    color: #666;
}

/* Product Actions */
.product-actions {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.wishlist-btn-small {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wishlist-btn-small:hover {
    background: white;
    transform: scale(1.1);
}

.wishlist-btn-small.active {
    background: #ee4d2d;
    color: white;
}

.wishlist-btn-small .wishlist-icon {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.wishlist-btn-small:hover .wishlist-icon {
    transform: scale(1.1);
}

/* Statistics Section */
.stats-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ee4d2d;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

/* Wishlist Modal */
.wishlist-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
}

.wishlist-modal .modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.wishlist-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.wishlist-modal .modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.wishlist-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wishlist-modal .modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.wishlist-modal .modal-body {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.wishlist-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.wishlist-item-info {
    flex: 1;
}

.wishlist-item-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.wishlist-item-info .price {
    color: #ee4d2d;
    font-weight: 600;
    font-size: 1.1rem;
}

.wishlist-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-view, .btn-remove {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-view {
    background: #ee4d2d;
    color: white;
}

.btn-view:hover {
    background: #d73211;
}

.btn-remove {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.btn-remove:hover {
    background: #e9ecef;
    color: #333;
}

.wishlist-modal .modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    border-top: 1px solid #f0f0f0;
}

.btn-clear, .btn-close {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-clear {
    background: #dc3545;
    color: white;
}

.btn-clear:hover {
    background: #c82333;
}

.btn-close {
    background: #6c757d;
    color: white;
}

.btn-close:hover {
    background: #5a6268;
}

/* Notification */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left: 4px solid #ee4d2d;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-warning {
    border-left-color: #ffc107;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f0f0f0;
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #ee4d2d;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 77, 45, 0.3);
}

.scroll-to-top:hover {
    background: #d73211;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }

    .featured-section {
        padding: 2rem 1.5rem;
    }

    .featured-section .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 1rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-features {
        margin-top: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-image {
        height: 250px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .wishlist-modal .modal-content {
        width: 95%;
    }

    .wishlist-modal .modal-header,
    .wishlist-modal .modal-body,
    .wishlist-modal .modal-footer {
        padding: 1.5rem;
    }

    .wishlist-item {
        flex-direction: column;
        text-align: center;
    }

    .wishlist-item-image {
        width: 100px;
        height: 100px;
    }
}