/* ============================================
   RESPONSIVE DESIGN
   Tablet, Mobile, Small Screens
   ============================================ */

/* ============================================
   TABLET & SMALL DESKTOP (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .products-carousel .product-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

/* ============================================
   TABLET (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Header */
    .header-left {
        gap: var(--space-md);
    }
    
    .header-content {
        gap: var(--space-sm);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navigation {
        display: none;
    }
    
    .search-input {
        width: 200px;
    }
    
    .logo h1 {
        font-size: var(--font-size-base);
    }
    
    /* Sections */
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .mobile-navigation {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(320px, 85%);
        background: var(--bg-primary);
        box-shadow: -12px 0 32px rgba(0, 0, 0, 0.4);
        padding: var(--space-lg) var(--space-md);
        gap: var(--space-lg);
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 200;
    }
    
    body.mobile-nav-open .mobile-navigation {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .mobile-nav-backdrop {
        display: block;
    }
    
    body.mobile-nav-open .mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-md);
    }
    
    .mobile-nav-title {
        font-size: var(--font-size-base);
        font-weight: 500;
        color: var(--text-primary);
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }
    
    .mobile-search .search-container {
        width: 100%;
    }
    
    .mobile-search .search-input {
        width: 100%;
    }
    
    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .mobile-nav-list .nav-link {
        font-size: var(--font-size-base);
        text-transform: none;
        letter-spacing: 0;
    }
    
    .mobile-nav-list .nav-link::after {
        content: none;
    }
    
    .mobile-nav-list .nav-link.active {
        color: var(--accent);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--space-sm);
    }
    
    .products-carousel .product-card {
        flex: 0 0 240px;
        min-width: 240px;
    }
    
    /* Cart */
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
}

/* ============================================
   MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Header */
    .header-right {
        gap: var(--space-xs);
    }
    
    .header-right .search-container {
        display: none;
    }
    
    .logo h1 {
        font-size: var(--font-size-sm);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-carousel .product-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    /* Modal */
    .modal {
        max-width: 100%;
        border-radius: 0;
    }
}

