/* ==========================================================================
   RESET & SYSTEM CONSTANTS
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-bg-dark: #0a0a0f;
    --color-surface-dark: #12121e;
    --color-surface-light: #19192b;
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-border: rgba(255, 255, 255, 0.08);
    
    --accent-purple: #7c3aed;
    --accent-blue: #06b6d4;
    --accent-pink: #ec4899;
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #ec4899 100%);
    
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --max-site-width: 1440px;
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; }

/* ==========================================================================
   UTILITY & LAYOUT
   ========================================================================== */
.section-container {
    width: 100%;
    max-width: var(--max-site-width);
    margin: 0 auto;
    padding: 0 1.25rem; /* 320px & 375px default */
}

.section-header { margin-bottom: 2.5rem; text-align: center; }

.section-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}

/* Animations */
.hover-lift { transition: var(--transition-smooth); }
.hover-lift:hover { transform: translateY(-5px); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.8s ease-out forwards; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    padding: 1rem 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-site-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.nav-brand {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: #fff;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-link {
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-base);
}
.nav-link:hover { color: var(--accent-blue); }
.cart-link { color: var(--accent-pink); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.75rem; font-family: var(--font-primary); font-weight: 700;
    font-size: 0.95rem; padding: 0.85rem 1.75rem; border-radius: 8px;
    cursor: pointer; transition: var(--transition-smooth);
    border: 2px solid transparent; width: 100%;
}
.btn-primary {
    background: var(--accent-gradient); color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4); }
.btn-secondary {
    background: rgba(255, 255, 255, 0.05); color: #fff;
    border-color: var(--color-border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-text {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--accent-blue); font-weight: 700; font-size: 0.9rem;
    transition: var(--transition-base);
}
.btn-text:hover { color: var(--accent-pink); gap: 0.75rem; }
.btn-icon {
    background: rgba(255,255,255,0.05); border: 1px solid var(--color-border);
    color: #fff; width: 40px; height: 40px; border-radius: 8px;
    cursor: pointer; transition: var(--transition-base);
    display: flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: var(--accent-purple); border-color: var(--accent-purple); transform: scale(1.05); }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative; width: 100%; min-height: 80vh;
    display: flex; align-items: center;
    background-image: url('/static/images/hero/hero-main.jpg');
    background-size: cover; background-position: center;
    padding: 6rem 0 3rem 0; overflow: hidden; margin-top: 60px;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.6) 0%, rgba(10,10,15,0.9) 100%),
                linear-gradient(90deg, rgba(10,10,15,0.9) 0%, rgba(10,10,15,0.3) 100%);
    z-index: 1;
}
.hero-container { position: relative; width: 100%; max-width: var(--max-site-width); margin: 0 auto; padding: 0 1.25rem; z-index: 2; }
.hero-content { max-width: 100%; }
.hero-tagline {
    display: inline-block; font-weight: 800; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--accent-blue); margin-bottom: 1rem;
}
.hero-title { font-size: 2.25rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; color: #fff; }
.hero-description { font-size: 1rem; color: var(--color-text-muted); margin-bottom: 2rem; line-height: 1.6; }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; }

/* ==========================================================================
   TRUST BADGES
   ========================================================================== */
.trust-badges-section {
    background-color: var(--color-surface-dark); padding: 2.5rem 0;
    border-bottom: 1px solid var(--color-border);
}
.badges-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.badge-item { display: flex; align-items: center; gap: 1.25rem; }
.badge-icon-wrapper {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: rgba(124, 58, 237, 0.1);
    border-radius: 10px; color: var(--accent-blue); font-size: 1.25rem;
    flex-shrink: 0; border: 1px solid rgba(6, 182, 212, 0.2);
}
.badge-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.15rem; }
.badge-text { font-size: 0.85rem; color: var(--color-text-muted); }

/* ==========================================================================
   CATEGORIES (IMAGE CARDS)
   ========================================================================== */
.categories-section { padding: 4rem 0; }
.categories-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.category-card {
    position: relative; display: block; border-radius: 12px; overflow: hidden;
    background-color: var(--color-surface-dark); border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}
.category-card:hover { border-color: var(--accent-purple); box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: translateY(-4px); }
.category-image-wrapper { position: relative; width: 100%; height: 220px; overflow: hidden; }
.category-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.category-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(360deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.1) 60%, transparent 100%);
}
.category-card:hover .category-img { transform: scale(1.08); }
.category-card-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 1.5rem; z-index: 2; }
.category-card-title { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 0.25rem; }
.category-card-link { font-size: 0.85rem; font-weight: 700; color: var(--accent-pink); transition: var(--transition-base); }
.category-card:hover .category-card-link { color: var(--accent-blue); }

/* ==========================================================================
   FEATURED COLLECTIONS
   ========================================================================== */
.featured-section { padding: 4rem 0; background-color: rgba(18, 18, 30, 0.4); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.featured-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.featured-box {
    position: relative; border-radius: 12px; overflow: hidden;
    background-color: var(--color-surface-dark); border: 1px solid var(--color-border);
    padding: 2rem 1.5rem; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end;
}
.featured-box-bg {
    position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
    transition: var(--transition-smooth);
}
.featured-box:hover { border-color: rgba(6, 182, 212, 0.3); }
.featured-box:hover .featured-box-bg { opacity: 0.8; transform: scale(1.05); }
.featured-box-content { position: relative; z-index: 2; }
.featured-box-content h3 { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.featured-box-content p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1.25rem; }

/* ==========================================================================
   INVENTORY GRID (JINJA PRODUCTS)
   ========================================================================== */
.inventory-section { padding: 4rem 0; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.product-item {
    background: var(--color-surface-dark); border-radius: 12px;
    border: 1px solid var(--color-border); overflow: hidden;
    display: flex; flex-direction: column;
}
.product-img-link { display: block; position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #1a1a24; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-item:hover .product-img { transform: scale(1.05); }
.product-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--color-text-muted); }
.stock-badge {
    position: absolute; top: 0.75rem; left: 0.75rem;
    padding: 0.25rem 0.6rem; border-radius: 4px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
}
.low-stock { background: rgba(234, 179, 8, 0.9); color: #000; }
.out-of-stock { background: rgba(239, 68, 68, 0.9); color: #fff; }
.product-details { padding: 1rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-category { font-size: 0.75rem; color: var(--accent-blue); text-transform: uppercase; font-weight: 700; margin-bottom: 0.25rem; }
.product-name {
    font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 1rem;
    line-height: 1.3; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--color-border); padding-top: 0.75rem; }
.product-price { font-weight: 800; font-size: 1.1rem; color: #fff; }
.add-to-cart-form { margin: 0; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; background: var(--color-surface-dark); border-radius: 12px; border: 1px dashed var(--color-border); }
.empty-state i { font-size: 3rem; color: var(--color-text-muted); margin-bottom: 1rem; }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter-section { padding: 4rem 0 6rem 0; }
.newsletter-card {
    background-color: var(--color-surface-light);
    border: 1px solid var(--color-border);
    border-radius: 16px; padding: 2.5rem 1.25rem; text-align: center;
}
.newsletter-badge {
    display: inline-block; padding: 0.35rem 1rem; background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3); color: #a78bfa;
    border-radius: 100px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem;
}
.newsletter-title { font-size: 1.75rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.newsletter-subtitle { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 2rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.input-group { position: relative; width: 100%; }
.input-icon { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); }
.input-group input {
    width: 100%; padding: 1rem 1.25rem 1rem 3.2rem; background: rgba(0,0,0,0.2);
    border: 2px solid var(--color-border); border-radius: 8px;
    color: #fff; font-family: var(--font-primary); font-size: 1rem; transition: var(--transition-base);
}
.input-group input:focus { outline: none; border-color: var(--accent-purple); }
.newsletter-btn { width: 100%; }
.newsletter-privacy { margin-top: 1.25rem; font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* 768px (Tablets) */
@media screen and (min-width: 768px) {
    .section-title { font-size: 2.25rem; }
    .hero-section { min-height: 70vh; }
    .hero-title { font-size: 3rem; }
    .hero-actions { flex-direction: row; }
    .btn { width: auto; }
    
    .badges-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    
    .newsletter-card { padding: 4rem 3rem; }
    .newsletter-form {
        flex-direction: row; gap: 0; background: rgba(0,0,0,0.2);
        border: 1px solid var(--color-border); border-radius: 8px; padding: 0.35rem;
    }
    .newsletter-form:focus-within { border-color: var(--accent-purple); }
    .input-group input { border: none; background: transparent; }
    .input-group input:focus { border: none; }
    .newsletter-btn { width: auto; white-space: nowrap; }
}

/* 1024px (Desktops) */
@media screen and (min-width: 1024px) {
    .section-container { padding: 0 2rem; }
    
    .hero-section { min-height: 85vh; }
    .hero-content { max-width: 55%; /* Keeps right side open for the image text overlay requirements */ }
    .hero-title { font-size: 3.5rem; }
    
    .badges-grid { grid-template-columns: repeat(4, 1fr); }
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .category-image-wrapper { height: 280px; }
    .featured-grid { grid-template-columns: repeat(4, 1fr); }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    
    .newsletter-inner { max-width: 600px; margin: 0 auto; }
}

/* 1440px (Ultra-wide) */
@media screen and (min-width: 1440px) {
    .section-container { padding: 0; }
    .hero-title { font-size: 4rem; }
    .hero-content { max-width: 50%; }
    .product-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--color-surface-dark);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-made-in {
    margin-top: 0.75rem !important;
    font-weight: 600;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.footer-bottom p:first-child {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   MOBILE STYLES - Phones under 480px (iPhone 13 Mini: 375px)
   ========================================================================== */

@media screen and (max-width: 480px) {
    html { font-size: 14px; }
    .section-container, .container { padding: 0 0.75rem; }
    
    /* NAV */
    .site-nav { height: 52px; padding: 0.5rem 0; }
    .nav-brand { font-size: 1rem; }
    .nav-links { gap: 0.6rem; }
    .nav-link { font-size: 0.75rem; }
    .nav-link span { display: none; }
    .nav-link i { font-size: 1rem; }
    
    /* HERO */
    .hero-section { min-height: 45vh; padding: 4rem 0 2rem 0; margin-top: -1rem; }
    .hero-title { font-size: 1.4rem; }
    .hero-description { font-size: 0.8rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    
    /* TRUST BADGES */
    .badges-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .badge-item { gap: 0.5rem; }
    .badge-icon-wrapper { width: 32px; height: 32px; font-size: 0.9rem; }
    .badge-title { font-size: 0.8rem; }
    .badge-text { font-size: 0.7rem; }
    
    /* CATEGORIES */
    .categories-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .category-image-wrapper { height: 120px; }
    .category-card-title { font-size: 0.9rem; }
    .category-card-link { font-size: 0.7rem; }
    .category-card-content { padding: 1rem; }
    
    /* FEATURED */
    .featured-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .featured-box { min-height: 130px; padding: 1rem; }
    .featured-box-content h3 { font-size: 1rem; }
    .featured-box-content p { font-size: 0.8rem; }
    
    /* PRODUCT GRID */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .product-item { border-radius: 8px; }
    .product-details { padding: 0.5rem; }
    .product-name { font-size: 0.7rem; -webkit-line-clamp: 2; }
    .product-price { font-size: 0.85rem; }
    .product-category { font-size: 0.6rem; }
    .product-price-row { padding-top: 0.4rem; }
    .btn-icon { width: 30px; height: 30px; font-size: 0.8rem; }
    
    /* PRODUCT DETAIL */
    .product-detail { 
        grid-template-columns: 1fr; 
        gap: 1rem; 
        padding: 0.75rem;
        border-radius: 12px;
    }
    .product-info-detail h1 { font-size: 1.15rem; }
    .product-detail-price { font-size: 1.2rem; }
    .product-description { font-size: 0.85rem; }
    .quantity-selector { flex-wrap: wrap; gap: 0.5rem; }
    .quantity-selector label { font-size: 0.8rem; }
    .add-to-cart-btn { padding: 0.55rem 1rem; font-size: 0.8rem; }
    
    /* CART */
    .cart-grid { grid-template-columns: 1fr; }
    .cart-item-card { 
        grid-template-columns: 55px 1fr; 
        gap: 0.5rem; 
        padding: 0.6rem;
    }
    .cart-item-image { width: 55px; height: 55px; }
    .cart-item-info h3 { font-size: 0.8rem; }
    .cart-item-price { font-size: 0.75rem; }
    .cart-item-actions { 
        grid-column: 1 / -1; 
        flex-direction: row; 
        justify-content: space-between;
        margin-top: 0.5rem;
        gap: 0.5rem;
    }
    .cart-item-actions .quantity-input { width: 45px; padding: 0.25rem; }
    .cart-summary-card { position: static; }
    .checkout-btn { font-size: 0.9rem; padding: 0.75rem; }
    
    /* CHECKOUT */
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-card { padding: 1rem; }
    .btn-pay { font-size: 0.95rem; padding: 0.75rem; }
    
    /* FOOTER */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .footer-col h4 { font-size: 0.85rem; }
    .footer-col a, .footer-col p { font-size: 0.7rem; }
    .footer-bottom p { font-size: 0.7rem; }
    
    /* SHARE BUTTONS */
    .share-buttons { gap: 0.3rem; }
    .share-btn { padding: 0.3rem 0.5rem; font-size: 0.65rem; border-radius: 6px; }
    
    /* ADMIN */
    .admin-container { padding: 0.75rem; }
    .admin-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .admin-header h1 { font-size: 1.15rem; }
    .admin-form { padding: 0.75rem; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-table { font-size: 0.65rem; }
    .admin-table th, .admin-table td { padding: 0.3rem 0.4rem; }
    .action-btns { flex-direction: column; gap: 0.25rem; }
    .btn-edit, .btn-delete { padding: 0.2rem 0.4rem; font-size: 0.65rem; }
    
    /* PROFILE */
    .profile-card { padding: 1rem; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-avatar, .profile-avatar-placeholder { width: 60px; height: 60px; }
    .profile-info h1 { font-size: 1.15rem; }
    .profile-actions { flex-direction: column; }
    .profile-actions .btn { width: 100%; }
    
    /* LOGIN */
    .login-card, .admin-login-card { padding: 1.25rem; }
    
    /* NEWSLETTER */
    .newsletter-card { padding: 1.5rem 0.75rem; }
    .newsletter-title { font-size: 1.15rem; }
    .newsletter-subtitle { font-size: 0.8rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-btn { width: 100%; }
    
    /* SECTION HEADERS */
    .section-title { font-size: 1.25rem; }
    .section-subtitle { font-size: 0.65rem; }
    .section-header { margin-bottom: 1.5rem; }
    
    /* SECTIONS */
    .inventory-section, .categories-section, .featured-section { padding: 2rem 0; }
    
    /* MAIN CONTENT */
    .main-content { padding-top: calc(52px + 0.5rem); }
    
    /* EMPTY STATE */
    .empty-state { padding: 2rem 1rem; }
    .empty-state i { font-size: 2rem; }
    .empty-state h2 { font-size: 1.1rem; }
    .empty-state p { font-size: 0.8rem; }
    
    /* CART PAGE */
    .cart-page-container h1 { font-size: 1.25rem; }
}

/* Very small phones (320px like iPhone SE 1st gen) */
@media screen and (max-width: 360px) {
    .product-grid { gap: 0.3rem; }
    .product-name { font-size: 0.65rem; }
    .product-price { font-size: 0.75rem; }
    .nav-links { gap: 0.4rem; }
    .nav-link { font-size: 0.7rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .badges-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
}

/* Touch-friendly buttons for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    .btn, .btn-icon, .add-to-cart-btn, .login-btn, .btn-pay, 
    .btn-edit, .btn-delete, .checkout-btn {
        min-height: 44px;
        cursor: pointer;
    }
    .nav-link { padding: 0.4rem 0; }
    .quantity-input { min-height: 36px; }
    input, select, textarea { font-size: 16px !important; } /* Prevent iOS zoom */
}

/* Tablet: 481px to 768px */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .cart-grid { grid-template-columns: 1fr; }
}
