/* style.css - Complete Responsive Figma-Inspired Design */

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #f97316;
    --secondary-light: #fb923c;
    --secondary-dark: #ea580c;
    
    /* Neutral Colors */
    --dark: #0f172a;
    --dark-80: #1e293b;
    --dark-60: #334155;
    --dark-40: #64748b;
    --light: #f8fafc;
    --light-80: #f1f5f9;
    --light-60: #e2e8f0;
    --light-40: #cbd5e1;
    
    /* Semantic Colors */
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    
    /* Border Radius */
    --radius-xs: 0.375rem;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Container Width */
    --container-max: 1280px;
    --container-padding: 1rem;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--dark);
    background-color: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }
h5 { font-size: clamp(1rem, 2vw, 1.1rem); }
h6 { font-size: clamp(0.875rem, 1.5vw, 1rem); }

p {
    color: var(--dark-60);
    line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: var(--light-80);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--light-60);
}

/* ===== Navbar - Desktop First Approach ===== */
.navbar {
    background: white;
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.navbar-brand {
    flex-shrink: 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    display: block;
}

/* Desktop Navigation */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-xs) 0;
    transition: var(--transition-base);
    position: relative;
    white-space: nowrap;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition-base);
    border-radius: var(--radius-full);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

/* Navbar Right Section */
.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    background: var(--light-80);
    border-radius: var(--radius-full);
    padding: 0.25rem;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.search-form:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-form input {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 200px;
    transition: var(--transition-base);
}

.search-form input:focus {
    outline: none;
}

.search-form button {
    background: var(--primary);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-form button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Nav Icons */
.nav-icon {
    position: relative;
    color: var(--dark);
    font-size: 1.25rem;
    padding: var(--space-xs);
    transition: var(--transition-base);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-icon:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: var(--space-xs);
}

.auth-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
    list-style: none;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--light-80);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--light-60);
    margin: var(--space-xs) 0;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 992px) {
    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .navbar-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: var(--space-md) 0;
        border-top: 1px solid var(--light-60);
        margin-top: var(--space-md);
    }
    
    .navbar-menu.show {
        display: flex;
    }
    
    .navbar-menu li {
        width: 100%;
    }
    
    .navbar-menu a {
        display: block;
        padding: var(--space-md);
        width: 100%;
    }
    
    .navbar-menu a::after {
        display: none;
    }
    
    .navbar-menu a:hover,
    .navbar-menu a.active {
        background: var(--light-80);
        color: var(--primary);
        border-radius: var(--radius-sm);
    }
    
    .search-form {
        flex: 1;
        max-width: 300px;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .auth-buttons {
        display: none;
    }
    
    /* Show auth buttons in mobile menu */
    .navbar-menu.show .auth-buttons {
        display: flex;
        padding: var(--space-md);
        width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 32px;
    }
    
    .search-form {
        display: none;
    }
    
    .navbar-right {
        gap: var(--space-xs);
    }
}

/* ===== Hero Carousel ===== */
.hero-carousel {
    position: relative;
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 500px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: var(--space-xl);
    animation: fadeInUp 0.8s ease;
}

.hero-content h1 {
    color: white;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
}

.carousel-indicators {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-xs);
    z-index: 3;
}

.carousel-indicators button {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    padding: 0;
}

.carousel-indicators button.active {
    background: white;
    width: 60px;
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
    
    .hero-content {
        padding: var(--space-lg);
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .carousel-indicators button {
        width: 30px;
    }
    
    .carousel-indicators button.active {
        width: 45px;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-header h2 {
    margin: 0;
}

.nav-arrows {
    display: flex;
    gap: var(--space-xs);
}

.nav-arrow {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: white;
    border: 1px solid var(--light-60);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1.25rem;
    color: var(--dark);
}

.nav-arrow:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Sliders ===== */
.product-slider,
.category-slider {
    position: relative;
    margin-bottom: var(--space-2xl);
    overflow: hidden;
}

.product-slider-container,
.category-slider-container {
    display: flex;
    gap: var(--space-lg);
    transition: transform 0.3s ease;
    will-change: transform;
}

/* ===== Product Cards ===== */
.product-card {
    flex: 0 0 calc(25% - 18px); /* 4 items per row with gap */
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--light-60);
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(135deg, var(--light-80), var(--light-60));
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-md);
    transition: var(--transition-base);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.product-badge.hot {
    background: var(--warning);
}

.product-info {
    padding: var(--space-md);
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.old-price {
    font-size: 0.85rem;
    color: var(--dark-40);
    text-decoration: line-through;
}

/* ===== Category Cards ===== */
.category-card {
    flex: 0 0 calc(20% - 16px); /* 5 items per row with gap */
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--light-60);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-info {
    padding: var(--space-md);
    text-align: center;
}

.category-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.category-count {
    font-size: 0.8rem;
    color: var(--dark-40);
}

/* ===== Product Gallery ===== */
.product-gallery {
    position: relative;
    margin-bottom: var(--space-lg);
}

.main-image {
    position: relative;
    padding-top: 100%;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--light-60);
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-lg);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-base);
    color: var(--dark);
}

.gallery-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev {
    left: var(--space-md);
}

.gallery-nav.next {
    right: var(--space-md);
}

.thumbnail-list {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    overflow-x: auto;
    padding: var(--space-xs) 0;
}

.thumbnail-item {
    flex: 0 0 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.thumbnail-item.active {
    border-color: var(--primary);
}

.thumbnail-item:hover {
    transform: scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-60);
}

.filter-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 1px solid var(--light-60);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.results-count small {
    color: var(--dark-40);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin: var(--space-2xl) 0;
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-xs);
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--light-60);
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition-base);
    font-weight: 500;
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Compact Footer ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer-about {
    max-width: 350px;
}

.footer-about img {
    height: 35px;
    width: auto;
    margin-bottom: var(--space-md);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--space-xs);
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 1rem;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-column h5 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: var(--space-xs);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive Footer ===== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-about {
        max-width: 100%;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 576px) {
    .footer {
        padding: var(--space-xl) 0 var(--space-md);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .footer-column a:hover {
        transform: none;
    }
}

/* ===== Responsive Grid ===== */
@media (max-width: 1200px) {
    .product-card {
        flex: 0 0 calc(33.333% - 16px);
    }
    
    .category-card {
        flex: 0 0 calc(25% - 15px);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc(50% - 12px);
    }
    
    .category-card {
        flex: 0 0 calc(33.333% - 13.33px);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-card {
        flex: 0 0 calc(50% - 12px);
    }
    
    .category-card {
        flex: 0 0 calc(50% - 12px);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-arrows {
        align-self: flex-end;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .product-card {
        flex: 0 0 calc(50% - 8px);
    }
    
    .category-card {
        flex: 0 0 calc(50% - 8px);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .product-info {
        padding: var(--space-sm);
    }
    
    .product-title {
        font-size: 0.85rem;
    }
    
    .current-price {
        font-size: 1rem;
    }
    
    .gallery-nav {
        width: 36px;
        height: 36px;
    }
    
    .thumbnail-item {
        flex: 0 0 60px;
        height: 60px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== Utility Classes ===== */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.bg-light { background: var(--light-80); }
.bg-white { background: white; }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-80);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}