/* Eleganza Boutique - Premium Styles */
:root {
    --primary: #8B2252;
    --primary-dark: #6B1A3F;
    --primary-light: #C44D7A;
    --accent: #D4A574;
    --accent-light: #E8C9A0;
    --bg: #FDF8F5;
    --bg-alt: #F5EDE8;
    --surface: #FFFFFF;
    --text: #2D2420;
    --text-muted: #7A6B63;
    --border: #E8DDD6;
    --success: #2E7D4F;
    --warning: #C17817;
    --danger: #C62828;
    --shadow: 0 4px 20px rgba(45, 36, 32, 0.08);
    --shadow-lg: 0 12px 40px rgba(45, 36, 32, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --header-height: 72px;
    --bottom-nav-height: 64px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; text-size-adjust: 100%; }

/* Focus states for keyboard users */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: var(--bottom-nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (min-width: 769px) {
    body { padding-bottom: 0; }
}

.main-content {
    min-height: 50vh;
}

@media (max-width: 767px) {
    body { padding-bottom: 0; }
    .main-content { padding-bottom: var(--bottom-nav-height); }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.main-header {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

@media (max-width: 767px) {
    .header-inner {
        display: grid;
        grid-template-columns: 40px 1fr auto;
        align-items: center;
        gap: 0.35rem;
        height: var(--header-height);
    }
    .mobile-menu-btn { grid-column: 1; justify-self: start; margin-left: -0.35rem; }
    .logo { grid-column: 2; justify-self: center; min-width: 0; }
    .main-nav { display: none !important; }
    .header-actions { grid-column: 3; justify-self: end; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

.logo-icon { color: var(--accent); font-size: 1.2rem; }

.main-nav { display: none; gap: 0.25rem; }
.main-nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--bg-alt); }

.header-actions { display: flex; align-items: center; gap: 0.25rem; }

.header-icon, .search-toggle, .mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text);
    font-size: 1.1rem;
    transition: all var(--transition);
    position: relative;
}
.header-icon:hover, .search-toggle:hover { background: var(--bg-alt); color: var(--primary); }

.cart-badge, .bottom-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
}

.mobile-menu-btn { display: flex; }
@media (min-width: 1024px) {
    .main-nav { display: flex; }
    .mobile-menu-btn { display: none; }
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.search-overlay.active { transform: translateY(0); opacity: 1; visibility: visible; }

.search-form { display: flex; gap: 0.5rem; align-items: center; }
.search-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition);
}
.search-form input:focus { border-color: var(--primary); }
.search-form button {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-size: 1rem;
}
.search-close { background: var(--bg-alt) !important; color: var(--text) !important; }

/* Mobile Nav */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(272px, 78vw);
    max-width: 78vw;
    height: 100%;
    height: 100dvh;
    background: var(--surface);
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform var(--transition);
    overflow-y: auto;
    padding: 0 0 1rem;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}
.mobile-nav.active { transform: translateX(0); }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height);
    padding: 0 0.75rem 0 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 2;
}
.mobile-nav-header .logo-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    padding-left: 0.15rem;
}
.mobile-nav-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    padding-left: 0.15rem;
    min-width: 0;
}
.mobile-nav-header button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text);
    background: var(--bg-alt);
    font-size: 1rem;
    flex-shrink: 0;
}
.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 0.72rem 0.75rem;
    margin: 0 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: none;
    border-radius: var(--radius-sm);
}
.mobile-nav a:hover,
.mobile-nav a:active { background: var(--bg-alt); color: var(--primary); }

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: var(--bottom-nav-height);
    height: auto;
    background: var(--surface);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    box-shadow: 0 -1px 0 var(--border), 0 -4px 16px rgba(0,0,0,0.06);
    z-index: 999;
    padding: 0.12rem 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    font-size: 0.62rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.2rem 0.1rem 0.15rem;
    min-width: 0;
    flex: 1;
    line-height: 1;
}
.bottom-nav a i { font-size: 1.15rem; }
.bottom-nav a.active { color: var(--primary); }
@media (min-width: 769px) { .bottom-nav { display: none; } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-outline-light { background: transparent; color: white; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: white; color: var(--primary); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}
@media (min-width: 769px) { .hero-slider { min-height: 520px; } }

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; position: relative; }

.hero-content { color: white; max-width: 600px; padding: 3rem 0; }
.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; }

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all var(--transition);
}
.hero-dot.active { background: white; width: 28px; border-radius: 5px; }

/* Category Strip */
.category-strip {
    padding: 1.5rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.category-strip-home {
    padding: 1.15rem 0 1.35rem;
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 28px rgba(45, 36, 32, 0.05);
}
.category-strip-home .category-scroll {
    justify-content: flex-start;
}
.category-strip-home .category-chip-icon {
    box-shadow: 0 6px 18px rgba(139, 34, 82, 0.22);
}
.category-strip-home .category-chip span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}
@media (max-width: 767px) {
    .category-strip-home { padding: 0.75rem 0 0.9rem; }
    .category-strip-home .category-scroll { gap: 0.45rem; }
    .category-strip-home .category-chip {
        min-width: 54px;
        padding: 0.35rem 0.25rem;
        gap: 0.3rem;
    }
    .category-strip-home .category-chip-icon {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
        box-shadow: 0 4px 12px rgba(139, 34, 82, 0.18);
    }
    .category-strip-home .category-chip span {
        font-size: 0.68rem;
        font-weight: 600;
        line-height: 1.15;
        text-align: center;
    }
}
.section-home-first { padding-top: 2rem; }
@media (min-width: 1024px) {
    .category-strip-home .category-scroll {
        justify-content: center;
        gap: 1.15rem;
    }
}
@media (max-width: 767px) {
    .category-strip-home { padding: 0.85rem 0 1rem; }
    .section-home-first { padding-top: 1.15rem; }
}
.category-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.25rem 0;
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 90px;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    flex-shrink: 0;
}
.category-chip:hover { background: var(--bg-alt); transform: translateY(-2px); }
.category-chip-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    gap: 1rem;
}
.section-tag {
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text);
}
.view-all {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.view-all:hover { color: var(--primary-dark); }
.text-center { text-align: center; }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* Product Card */
.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 12px rgba(45, 36, 32, 0.06);
    border: 1px solid rgba(232, 221, 214, 0.85);
    content-visibility: auto;
    contain-intrinsic-size: 0 380px;
    contain: layout style paint;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.product-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(145deg, var(--bg-alt) 0%, #ebe3dc 100%);
}
.product-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: var(--bg-alt);
}
.product-card:hover .product-card-image img { transform: scale(1.04); }

.product-badges {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    z-index: 2;
    max-width: calc(100% - 5.5rem);
}
.badge {
    padding: 0.2rem 0.45rem;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.badge-new { background: var(--primary); color: white; }
.badge-sale { background: var(--danger); color: white; }
.badge-low { background: var(--warning); color: white; }
.badge-oos { background: #5a5a5a; color: white; }

.product-card-actions {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
    opacity: 0;
    transform: translateY(6px);
    transition: all var(--transition);
    z-index: 2;
}
.product-card-actions::before {
    content: '';
    position: absolute;
    inset: -0.35rem -0.2rem;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 70%, transparent 100%);
    border-radius: 0 0 10px 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition);
}
.product-card:hover .product-card-actions,
.product-card:focus-within .product-card-actions {
    opacity: 1;
    transform: translateY(0);
}
.product-card:hover .product-card-actions::before,
.product-card:focus-within .product-card-actions::before { opacity: 1; }

@media (max-width: 768px) {
    .product-card-actions {
        opacity: 1;
        transform: none;
        bottom: 0.4rem;
        right: 0.4rem;
        left: auto;
        padding: 0.12rem 0.2rem;
        background: rgba(255, 255, 255, 0.94);
        border-radius: 999px;
        box-shadow: 0 2px 10px rgba(45, 36, 32, 0.1);
    }
    .product-card-actions::before { display: none; }
    .product-card:hover .product-card-image img { transform: none; }
}

.action-btn {
    width: 34px;
    height: 34px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(45, 36, 32, 0.1);
    color: var(--text);
    font-size: 0.8rem;
    transition: all var(--transition);
    flex-shrink: 0;
}
.action-btn:hover { background: var(--primary); color: white; }

.product-card-body {
    padding: 0.65rem 0.7rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}
.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-height: 1.1rem;
}
.product-category {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-name {
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}
.product-name a {
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-name a:hover { color: var(--primary); }
.product-fabric {
    font-size: 0.65rem;
    color: var(--primary);
    background: rgba(139, 34, 82, 0.08);
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}
.product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem 0.45rem;
    margin-top: auto;
    padding-top: 0.35rem;
}
.price-current, .price-sale { font-size: 1rem; font-weight: 700; color: var(--primary); line-height: 1; }
.price-original { font-size: 0.78rem; color: var(--text-muted); text-decoration: line-through; line-height: 1; }

/* Promo Banner */
.promo-banner { padding: 2rem 0; }
.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }

.promo-card {
    padding: 2rem;
    border-radius: var(--radius);
    color: white;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.promo-card-1 { background: linear-gradient(135deg, #8B2252, #C44D7A); }
.promo-card-2 { background: linear-gradient(135deg, #5D4037, #8D6E63); }
.promo-card-3 { background: linear-gradient(135deg, #4A148C, #7B1FA2); }
.promo-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; margin-bottom: 0.5rem; }
.promo-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.25rem; }
.promo-card p { opacity: 0.85; margin-bottom: 1rem; font-size: 0.9rem; }

/* Features */
.features-section { padding: 3rem 0; background: var(--surface); border-top: 1px solid var(--border); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-item { text-align: center; }
.feature-item i { font-size: 2rem; color: var(--primary); margin-bottom: 0.75rem; }
.feature-item h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.8rem; color: var(--text-muted); }

/* Newsletter */
.newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-align: center;
}
.newsletter-inner h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.5rem; }
.newsletter-inner p { opacity: 0.85; margin-bottom: 1.5rem; }
.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0.5rem;
}
.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    outline: none;
}
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* Footer */
.main-footer {
    background: linear-gradient(168deg, #1a1218 0%, #261820 28%, #3a1a2e 58%, #1e1a18 100%);
    color: rgba(255, 255, 255, 0.82);
    padding: 3.25rem 0 1.5rem;
    margin-bottom: 0;
    border-top: 1px solid rgba(212, 165, 116, 0.12);
}

.main-footer .container {
    max-width: 1200px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
    text-align: left;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 0.85rem;
    font-size: 1.45rem;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.55;
    max-width: 28rem;
}

.social-links { display: flex; gap: 0.65rem; flex-wrap: wrap; }

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--accent-light);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    font-family: var(--font-display);
    letter-spacing: 0.03em;
    font-weight: 600;
}

.footer-links a {
    display: block;
    padding: 0.32rem 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-contact p {
    font-size: 0.88rem;
    margin-bottom: 0.55rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 0.15rem;
    width: 16px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .footer-links-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
        padding: 0;
        margin: 0;
        background: none;
        border: none;
        border-radius: 0;
    }

    .footer-links-row .footer-links {
        padding: 0;
        margin: 0;
        background: none;
        border: none;
    }

    .footer-panel .footer-contact {
        padding: 0;
        margin: 0;
        background: none;
        border: none;
        border-top: none;
    }

    .footer-panel .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        margin-top: 0.5rem;
        padding-top: 1.25rem;
    }

    .footer-panel .footer-contact .payment-icons {
        display: none;
    }

    .footer-panel .footer-bottom .payment-icons-desktop {
        display: flex;
    }
}

.payment-icons-desktop {
    display: none;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-panel { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
        gap: 2.5rem 2rem;
    }
    .footer-brand { padding-right: 1rem; }
    .footer-panel {
        display: contents;
    }
    .footer-links-row {
        display: contents;
    }
    .footer-bottom { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .main-footer {
        padding: 1.65rem 0 0;
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 0.5rem);
    }

    .main-footer .container {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .footer-grid {
        gap: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .footer-brand,
    .footer-panel {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        padding: 0.85rem 0.75rem;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 0;
        border-bottom: none;
    }

    .footer-brand .logo {
        justify-content: center;
        font-size: 1.28rem;
        margin-bottom: 0.35rem;
    }

    .footer-brand p {
        font-size: 0.82rem;
        margin: 0 auto 0.85rem;
        text-align: center;
    }

    .footer-brand .social-links { justify-content: center; }

    .footer-panel {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-bottom: 1rem;
    }

    .footer-links-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 0.75rem;
        padding: 0;
        margin: 0 0 0.85rem;
        background: none;
        border: none;
        border-radius: 0;
    }

    .footer-links-row .footer-links {
        padding: 0;
        margin-bottom: 0;
        background: none;
        border: none;
        border-radius: 0;
    }

    .footer-panel .footer-contact {
        padding: 0.85rem 0 0;
        margin: 0;
        background: none;
        border: none;
        border-radius: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-panel .footer-bottom {
        padding: 0;
        margin: 0.85rem 0 0;
        background: none;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0;
        align-items: stretch;
        width: 100%;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 0.92rem;
        margin-bottom: 0.65rem;
        padding-bottom: 0.45rem;
        border-bottom: 1px solid rgba(212, 165, 116, 0.22);
    }

    .footer-links a { font-size: 0.84rem; color: rgba(255, 255, 255, 0.78); }
    .footer-contact p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.72); }

    .footer-contact .payment-icons {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0.55rem;
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.9);
        margin-top: 0.75rem;
        margin-bottom: 0;
    }

    .footer-contact .payment-icons span {
        font-size: 0.78rem;
        font-weight: 500;
        letter-spacing: 0.02em;
    }

    .footer-panel .footer-copyright {
        font-size: 0.72rem;
        line-height: 1.45;
        color: rgba(255, 255, 255, 0.55);
        margin: 0;
        padding: 0.85rem 0 0.25rem;
        text-align: center;
        width: 100%;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: center;
    font-size: 0.82rem;
}
.footer-copyright {
    margin: 0;
    text-align: center;
    color: rgba(255,255,255,0.65);
}
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 1.25rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .footer-copyright { order: 2; text-align: right; }
    .payment-icons { order: 1; }
}
.payment-icons { display: flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; }
.payment-icons span { font-size: 0.8rem; color: rgba(255,255,255,0.85); }

/* Page Layout */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}
.page-header h1 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 0.5rem; }
.breadcrumb { font-size: 0.85rem; opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

.page-content { padding: 2rem 0 3rem; }

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .shop-layout { grid-template-columns: 260px 1fr; }
}

.shop-sidebar {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
}
@media (max-width: 1023px) {
    .shop-sidebar { display: none; }
    .shop-sidebar.mobile-open {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        z-index: 1200;
        overflow-y: auto;
        border-radius: 0;
    }
}

.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 { font-size: 0.9rem; margin-bottom: 0.75rem; color: var(--text); }
.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    cursor: pointer;
}
.filter-group input[type="checkbox"] { accent-color: var(--primary); }

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.shop-toolbar select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    outline: none;
}
.filter-toggle-btn { display: flex; }
@media (min-width: 1024px) { .filter-toggle-btn { display: none; } }

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .product-detail { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.product-gallery { position: relative; }
.product-main-image {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
    margin-bottom: 1rem;
}
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; }
.product-thumbs img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all var(--transition);
}
.product-thumbs img.active, .product-thumbs img:hover { border-color: var(--primary); opacity: 1; }

.product-info h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.product-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.product-detail-price { margin: 1.5rem 0; }
.product-detail-price .price-sale { font-size: 2rem; }
.product-detail-price .price-original { font-size: 1.25rem; }
.discount-tag {
    display: inline-block;
    background: #FFEBEE;
    color: var(--danger);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.option-group { margin-bottom: 1.25rem; }
.option-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.option-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option-pill {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
    min-width: 44px;
    text-align: center;
}
.option-pill:hover { border-color: var(--primary-light); }
.option-pill.active { border-color: var(--primary); background: var(--primary); color: white; }
.option-pill.color-pill { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; padding: 0; }

.qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    width: fit-content;
}
.qty-selector button {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    color: var(--text);
}
.qty-selector input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    outline: none;
    font-weight: 600;
}

.product-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 140px; }

.product-description { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.product-description h3 { font-family: var(--font-display); margin-bottom: 1rem; }
.detail-table { width: 100%; margin-top: 1rem; }
.detail-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.detail-table td:first-child { color: var(--text-muted); width: 120px; }

/* Cart */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .cart-layout { grid-template-columns: 1fr 380px; }
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    align-items: center;
}
.cart-item-image {
    width: 100px;
    height: 130px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-alt);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-details h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.cart-item-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.cart-item-price { font-weight: 700; color: var(--primary); }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.remove-item { color: var(--danger); font-size: 0.8rem; }

.cart-summary {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}
.cart-summary h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1rem; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.summary-row.total { font-size: 1.1rem; font-weight: 700; border-top: 2px solid var(--border); margin-top: 0.5rem; padding-top: 1rem; color: var(--primary); }
.coupon-form { display: flex; gap: 0.5rem; margin: 1rem 0; }
.coupon-form input { flex: 1; padding: 0.6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; }

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state i { font-size: 4rem; color: var(--border); margin-bottom: 1rem; }
.empty-state h2 { font-family: var(--font-display); margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Forms */
.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 480px;
    margin: 0 auto;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition);
    background: var(--surface);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-footer { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.form-footer a { color: var(--primary); font-weight: 600; }
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-success { background: #E8F5E9; color: var(--success); }
.alert-error { background: #FFEBEE; color: var(--danger); }
.alert-info { background: #E3F2FD; color: #1565C0; }

/* Account */
.account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .account-layout { grid-template-columns: 240px 1fr; }
}
.account-nav {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    height: fit-content;
}
.account-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition);
}
.account-nav a:hover, .account-nav a.active { background: var(--bg-alt); color: var(--primary); }
.account-content {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Orders Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.data-table th { font-weight: 600; background: var(--bg-alt); }
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.status-pending { background: #FFF3E0; color: var(--warning); }
.status-confirmed, .status-processing { background: #E3F2FD; color: #1565C0; }
.status-shipped { background: #F3E5F5; color: #7B1FA2; }
.status-delivered { background: #E8F5E9; color: var(--success); }
.status-cancelled { background: #FFEBEE; color: var(--danger); }

/* Toast */
.toast {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
@media (min-width: 769px) { .toast { bottom: 2rem; } }

/* PWA Install */
.pwa-install {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 0.5rem);
    left: 1rem;
    right: 1rem;
    z-index: 998;
}
@media (min-width: 769px) { .pwa-install { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 380px; } }

.pwa-install-inner {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid var(--primary-light);
}
.pwa-install-inner > i { font-size: 1.5rem; color: var(--primary); }
.pwa-install-inner div { flex: 1; }
.pwa-install-inner strong { display: block; font-size: 0.9rem; }
.pwa-install-inner span { font-size: 0.8rem; color: var(--text-muted); }
.pwa-dismiss { color: var(--text-muted); font-size: 0.9rem; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination a, .pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }

/* Quick View Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition);
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border-radius: 50%;
    z-index: 2;
    font-size: 1rem;
}

/* Checkout */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.checkout-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.checkout-step.active { color: var(--primary); font-weight: 600; }
.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.checkout-step.active .step-num { background: var(--primary); color: white; border-color: var(--primary); }

.payment-options { display: flex; flex-direction: column; gap: 0.75rem; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}
.payment-option:has(input:checked) { border-color: var(--primary); background: #FDF2F6; }
.payment-option input { accent-color: var(--primary); }

/* Responsive table */
.table-responsive { overflow-x: auto; }

/* Loading */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Placeholder image styling */
.product-card-image img[src*="placeholder"],
.product-main-image img[src*="placeholder"] {
    object-fit: contain;
    padding: 2rem;
    opacity: 0.5;
}

/* Modern responsive refinements */
@media (max-width: 380px) {
    .hero-content h1 { font-size: 2rem; }
    .section { padding: 2rem 0; }
}

@media (min-width: 1400px) {
    .container { max-width: 1360px; }
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
    .bottom-nav { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* Touch-friendly tap targets */
@media (pointer: coarse) and (min-width: 768px) {
    .header-icon, .search-toggle, .mobile-menu-btn { min-width: 48px; min-height: 48px; }
    .btn { min-height: 44px; }
    .option-pill { min-height: 44px; padding: 0.6rem 1.1rem; }
}

/* Utility */
.hide-mobile { display: flex; }
.hide-desktop { display: none !important; }

/* Shop filter drawer */
.shop-sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.shop-sidebar-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.filter-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1150;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.filter-sidebar-overlay.active { opacity: 1; visibility: visible; }

/* ===== Tablet (768px – 1023px) ===== */
@media (max-width: 1023px) {
    .container { padding: 0 1rem; }
    .hero-slider { min-height: 380px; }
    .hero-content { padding: 2rem 0; }
    .product-grid { gap: 1rem; }
    .promo-card { min-height: 180px; padding: 1.5rem; }
    .account-layout { gap: 1.25rem; }
    .cart-summary { position: static; }
    .shop-toolbar select { max-width: 55vw; }
}

/* ===== Mobile (max 767px) ===== */
@media (max-width: 767px) {
    :root {
        --header-height: 50px;
        --bottom-nav-height: 48px;
        --mobile-gutter: 0.3rem;
    }

    .hide-mobile { display: none !important; }

    .container { padding: 0 var(--mobile-gutter); }

    .main-footer .container {
        padding-left: var(--mobile-gutter);
        padding-right: var(--mobile-gutter);
    }

    .mobile-nav-header {
        min-height: 48px;
        padding: 0 var(--mobile-gutter);
    }
    .mobile-nav a {
        padding: 0.65rem var(--mobile-gutter);
        margin: 0 var(--mobile-gutter);
        font-size: 0.88rem;
    }
    .mobile-nav a:first-of-type { margin-top: 0.35rem; }

    .main-header .header-inner.container {
        padding-left: 0.15rem;
        padding-right: var(--mobile-gutter);
    }

    body.nav-open .main-header { box-shadow: none; }

    .header-inner { gap: 0.15rem; }

    .logo { font-size: 1rem; }
    .logo-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: min(48vw, 170px);
    }
    .header-actions { gap: 0; }
    .header-icon, .search-toggle, .mobile-menu-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
    }
    .mobile-menu-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        margin-left: -0.4rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.3rem;
    }
    .product-card {
        border-radius: 8px;
        box-shadow: 0 1px 6px rgba(45, 36, 32, 0.05);
    }
    .product-card-body { padding: 0.42rem 0.38rem 0.48rem; gap: 0.15rem; }
    .product-badges {
        top: 0.32rem;
        left: 0.32rem;
        gap: 0.18rem;
        max-width: calc(100% - 4.5rem);
    }
    .badge { font-size: 0.56rem; padding: 0.15rem 0.35rem; }
    .product-card-actions {
        bottom: 0.32rem;
        right: 0.32rem;
        gap: 0.2rem;
        padding: 0.1rem 0.15rem;
    }
    .action-btn { width: 28px; height: 28px; font-size: 0.7rem; }
    .product-name { font-size: 0.8rem; line-height: 1.28; }
    .product-category { font-size: 0.62rem; }
    .product-fabric { font-size: 0.58rem; padding: 0.1rem 0.32rem; }
    .product-price { padding-top: 0.28rem; gap: 0.25rem 0.35rem; }
    .price-current, .price-sale { font-size: 0.88rem; }
    .price-original { font-size: 0.7rem; }

    .section { padding: 1.15rem 0; }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.85rem;
    }
    .category-strip { padding: 0.75rem 0; }
    .category-scroll { gap: 0.5rem; }
    .category-chip { min-width: 54px; padding: 0.35rem 0.25rem; }
    .category-chip-icon { width: 42px; height: 42px; font-size: 0.95rem; }

    .hero-slider { min-height: 260px; }
    .hero-content { padding: 1.25rem 0 2.5rem; }
    .hero-content p { font-size: 0.9rem; margin-bottom: 1rem; }
    .hero-dots { bottom: 0.75rem; }

    .promo-banner { padding: 1rem 0; }
    .promo-card { padding: 1.15rem; min-height: 150px; }
    .promo-card h3 { font-size: 1.1rem; }

    .features-grid { gap: 1rem; }
    .feature-item i { font-size: 1.45rem; }

    .newsletter-section { padding: 2rem 0; }
    .newsletter-inner h2 { font-size: 1.35rem; }

    .page-header { padding: 1rem 0; }
    .page-header h1 { font-size: 1.4rem; line-height: 1.2; }
    .page-content { padding: 0.65rem 0 0.85rem; }

    .shop-layout { gap: 0.55rem; }

    .product-detail { gap: 1rem; }
    .product-detail-page .container { padding-left: var(--mobile-gutter); padding-right: var(--mobile-gutter); }

    .cart-layout { gap: 0.55rem; }
    .cart-item {
        flex-wrap: wrap;
        padding: 0.65rem;
        gap: 0.5rem;
        margin-bottom: 0.55rem;
    }
    .cart-item-image { width: 72px; height: 92px; border-radius: 6px; overflow: hidden; }
    .cart-item-details { flex: 1 1 calc(100% - 86px); min-width: 0; }
    .cart-item-details h3 { font-size: 0.92rem; }
    .cart-item-meta { font-size: 0.74rem; margin-bottom: 0.35rem; }
    .cart-item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .cart-summary { padding: 0.75rem; }
    .coupon-form { flex-direction: column; }
    .coupon-form .btn { width: 100%; }

    .form-card { padding: 0.75rem; margin: 0; max-width: none; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    input, select, textarea { font-size: 16px; }
    .account-content { padding: 0.75rem; }
    .account-nav {
        display: flex;
        overflow-x: auto;
        gap: 0.3rem;
        padding: 0.5rem;
        scrollbar-width: none;
    }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav a {
        white-space: nowrap;
        padding: 0.5rem 0.65rem;
        font-size: 0.82rem;
    }

    .checkout-steps {
        gap: 0.4rem 0.75rem;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }
    .checkout-step { font-size: 0.75rem; }
    .step-num { width: 26px; height: 26px; font-size: 0.72rem; }

    .product-info h1 { font-size: 1.35rem; }
    .product-detail-price .price-sale { font-size: 1.4rem; }
    .product-actions { flex-direction: column; }
    .product-actions .btn { width: 100%; min-width: 0; }

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-bottom: 0.65rem;
    }
    .shop-toolbar select { max-width: none; width: 100%; }
    .filter-toggle-btn { width: 100%; justify-content: center; }

    .shop-sidebar-header { display: flex; }
    .shop-sidebar.mobile-open {
        width: min(300px, 86vw);
        padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
    }

    .table-responsive {
        margin: 0;
        padding: 0;
        -webkit-overflow-scrolling: touch;
    }
    .data-table { min-width: 520px; font-size: 0.82rem; }
    .data-table th, .data-table td { padding: 0.55rem 0.65rem; }

    .modal-content { max-height: 85vh; border-radius: var(--radius-sm); }
    .modal-overlay { padding: 0.5rem; align-items: flex-end; }
    .modal-overlay.active .modal-content { transform: scale(1); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

    .pagination { flex-wrap: wrap; gap: 0.35rem; }
    .pagination a, .pagination span { width: 34px; height: 34px; font-size: 0.82rem; }

    .pwa-install-inner { flex-wrap: wrap; }
    .empty-state { padding: 1.5rem var(--mobile-gutter); }
    .empty-state i { font-size: 2.75rem; }

    .footer-grid { gap: 0; }

    .toast { bottom: calc(var(--bottom-nav-height) + 0.5rem + env(safe-area-inset-bottom, 0px)); }
    .pwa-install { bottom: calc(var(--bottom-nav-height) + 0.35rem + env(safe-area-inset-bottom, 0px)); }
}

/* ===== Small phones (max 380px) ===== */
@media (max-width: 380px) {
    :root { --mobile-gutter: 0.25rem; }
    .product-grid { gap: 0.25rem; }
    .product-card-body { padding: 0.4rem 0.3rem 0.45rem; }
    .badge { font-size: 0.58rem; padding: 0.15rem 0.4rem; }
    .action-btn { width: 30px; height: 30px; }
    .btn { padding: 0.6rem 0.85rem; font-size: 0.82rem; white-space: normal; text-align: center; }
    .bottom-nav a { font-size: 0.58rem; }
    .bottom-nav a i { font-size: 1.05rem; }
    .logo-text { max-width: 42vw; }
    .cart-item { padding: 0.55rem; }
    .cart-summary { padding: 0.65rem; }
}

/* ===== Tablet landscape / small desktop ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .cart-layout { grid-template-columns: 1fr 320px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid .promo-card:last-child { grid-column: span 2; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}
