
        :root {
            --primary: #6c5ce7;
            --primary-dark: #5649c0;
            --secondary: #00cec9;
            --dark: #2d3436;
            --light: #f5f6fa;
            --accent: #fd79a8;
            --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
        }
        
        body {
            background-color: var(--light);
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            color: var(--dark);
            overflow-x: hidden;
        }
        
        /* Modern navbar with glass morphism */
        .navbar {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .navbar-brand {
            font-weight: 800;
            font-size: 1.8rem;
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
        }
        
        .nav-link {
            font-weight: 600;
            color: var(--dark) !important;
            position: relative;
            margin: 0 0.5rem;
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient);
            transition: width 0.3s ease;
        }
        
        .nav-link:hover::after {
            width: 100%;
        }
        
        /* Hero section */
        .hero {
            background: var(--gradient);
            color: white;
            border-radius: 0 0 30px 30px;
            overflow: hidden;
            position: relative;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1555529669-e69e7aa0ba9a?q=80&w=2560') center/cover;
            opacity: 0.15;
        }
        
        /* Modern card design */
        .product-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            border: none;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
            position: relative;
        }
        
        .product-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        }
        
        .product-card .badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--accent);
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 20px;
        }
        
       .product-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Maintain aspect ratio on small devices */
@media (max-width: 768px) {
    .product-img-container {
        height: auto;
        padding-top: 75%; /* 4:3 aspect ratio (adjust as needed) */
    }
    
    .product-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain; /* Change from 'cover' to 'contain' to prevent cropping */
    }
    
    /* Optional: Adjust card layout on mobile */
    .product-card {
        margin-bottom: 1.5rem;
    }
}

/* For very small devices */
@media (max-width: 576px) {
    .product-img-container {
        padding-top: 100%; /* 1:1 aspect ratio */
    }
}
        .product-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .product-card:hover .product-img {
            transform: scale(1.05);
        }
        
        .product-card-body {
            padding: 20px;
        }
        
        .product-title {
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }
        
        .product-description {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .product-price {
            font-weight: 800;
            font-size: 1.3rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }
        
        /* Modern button styles */
        .btn-affiliate {
            background: var(--gradient);
            color: white;
            border: none;
            font-weight: 600;
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .btn-affiliate:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
            color: white;
        }
        
        .btn-affiliate-outline {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
            font-weight: 600;
        }
        
        .btn-affiliate-outline:hover {
            background: var(--primary);
            color: white;
        }
        
        .btn-details {
            background: #f1f1f1;
            color: var(--dark);
            border: none;
            font-weight: 600;
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            transition: all 0.3s ease;
        }
        
        .btn-details:hover {
            background: #e0e0e0;
            color: var(--dark);
        }
        
        /* Modern sidebar */
        .sidebar {
            background: white;
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
            height: 100%;
        }
        
        .sidebar-title {
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            color: var(--dark);
            position: relative;
            padding-bottom: 10px;
        }
        
        .sidebar-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--gradient);
            border-radius: 3px;
        }
        
        .category-list {
            list-style: none;
            padding: 0;
        }
        
        .category-item {
            margin-bottom: 0.8rem;
        }
        
        .category-link {
            display: flex;
            align-items: center;
            color: #666;
            text-decoration: none;
            transition: all 0.2s ease;
            font-weight: 500;
            padding: 0.5rem 0;
        }
        
        .category-link:hover {
            color: var(--primary);
            transform: translateX(5px);
        }
        
        .category-link i {
            margin-right: 10px;
            font-size: 0.9rem;
        }
        
        /* Price filter */
        .price-filter .form-range {
            height: 8px;
            border-radius: 10px;
        }
        
        .price-filter .form-range::-webkit-slider-thumb {
            width: 20px;
            height: 20px;
            background: var(--primary);
        }
        
        .price-value {
            font-weight: 700;
            color: var(--primary);
        }
        
        /* Modern footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 4rem 0 0;
            margin-top: 4rem;
        }
        
        .footer-logo {
            font-weight: 800;
            font-size: 1.8rem;
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 1.5rem;
            display: inline-block;
        }
        
        .footer-description {
            color: #b2b2b2;
            margin-bottom: 2rem;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
        }
        
        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            transition: all 0.3s ease;
        }
        
        .social-link:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }
        
        .footer-heading {
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-heading::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--gradient);
            border-radius: 3px;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
        }
        
        .footer-link-item {
            margin-bottom: 0.8rem;
        }
        
        .footer-link {
            color: #b2b2b2;
            text-decoration: none;
            transition: all 0.2s ease;
            font-weight: 500;
        }
        
        .footer-link:hover {
            color: white;
            padding-left: 5px;
        }
        
        .footer-bottom {
            background: rgba(0, 0, 0, 0.2);
            padding: 1.5rem 0;
            margin-top: 3rem;
        }
        
        /* Floating cart button */
        .floating-cart {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: var(--gradient);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
            z-index: 1000;
            transition: all 0.3s ease;
        }
        
        .floating-cart:hover {
            transform: scale(1.1) translateY(-5px);
        }
        
        .cart-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--accent);
            color: white;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 700;
        }
        
        /* Modern section headers */
        .section-header {
            margin-bottom: 2.5rem;
            text-align: center;
        }
        
        .section-title {
            font-weight: 800;
            font-size: 2.2rem;
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--gradient);
            border-radius: 4px;
        }
        
        .section-subtitle {
            color: #666;
            max-width: 600px;
            margin: 0 auto;
        }
        
        /* Modern input styles */
        .form-control {
            border-radius: 50px;
            padding: 0.8rem 1.5rem;
            border: 1px solid #e0e0e0;
        }
        
        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 0.25rem rgba(108, 92, 231, 0.25);
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .hero {
                border-radius: 0 0 20px 20px;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .product-img-container {
                height: 180px;
            }
        }
/* Categories Responsive - Perfect Horizontal Wrapping at All Sizes */
@media (min-width: 991px) {
    /* Desktop - Vertical Layout (original) */
    .category-list {
        /* Maintains original vertical list */
        display: block;
    }
    .category-item {
        margin-bottom: 0.8rem;
    }
    .category-link {
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
    }
}

@media (max-width: 990px) {
    /* All Mobile/Tablet Devices - Horizontal Wrapped */
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .category-item {
        margin-bottom: 0;
        flex-shrink: 0; /* Prevents shrinking */
    }
    .category-link {
        background: rgba(108, 92, 231, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 50px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
    }
    .category-link:hover {
        background: rgba(108, 92, 231, 0.2);
    }
}

@media (max-width: 480px) {
    /* Extra Small Devices - More Compact */
    .category-list {
        gap: 8px;
    }
    .category-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}
    
    .footer-content {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .footer-col {
        flex: 1 1 45%; /* Two columns on small devices */
        min-width: 200px;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-heading {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: flex-start;
    }


/* For very small devices (below 576px) */
@media (max-width: 575.98px) {
    .footer-col {
        flex: 1 1 100%; /* Full width on extra small devices */
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .footer-link-item {
        margin-bottom: 0;
    }
    
    .footer-link {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.4rem 0.8rem;
        border-radius: 50px;
        white-space: nowrap;
    }
    
    .footer-link:hover {
        padding-left: 0.8rem;
        background: rgba(255, 255, 255, 0.2);
    }
}
/* Footer Responsive Adjustments */
@media (max-width: 990px) {
    /* Medium devices (770px-990px) */
    .footer-content {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .footer-col {
        flex: 1 1 45%; /* Two columns */
        min-width: 200px;
    }
}

@media (max-width: 748px) {
    /* Small devices (below 748px) */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-col {
        flex: 1 1 100%; /* Full width */
    }
    
    /* Optional: Adjust footer links to horizontal layout */
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .footer-link-item {
        margin-bottom: 0;
    }
    
    .footer-link {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.4rem 0.8rem;
        border-radius: 50px;
        white-space: nowrap;
    }
    
    .footer-link:hover {
        padding-left: 0.8rem;
        background: rgba(255, 255, 255, 0.2);
    }
}