﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', -apple-system, sans-serif;
}

/* ===== THEME VARIABLES - SOFT GRADIENTS ===== */
:root[data-theme="dark"] {
    --bg: #0F172A;
    --bg-elevated: #111827;
    --bg-card: #111827;
    --bg-hover: #1a2336;
    --bg-subtle: #0b1222;
    --border: #1F2937;
    --border-strong: #1F2937;
    --text: #F9FAFB;
    --text-secondary: #CBD5E1;
    --text-muted: #AEB8C7;
    --accent: #3B82F6;
    --accent-text: #F9FAFB;
    --brand: #3B82F6;
    --secondary: #8B5CF6;
    --success: #10B981;
    --danger: #EF4444;
    --glow: rgba(59,130,246,0.25);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.35);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
    
    /* Gradients */
    --gradient-hero: radial-gradient(ellipse 80% 60% at 70% 20%, 
                     rgba(99, 102, 241, 0.15) 0%, 
                     rgba(168, 85, 247, 0.08) 30%,
                     transparent 70%),
                     radial-gradient(ellipse 60% 50% at 20% 80%,
                     rgba(236, 72, 153, 0.1) 0%,
                     transparent 60%);
    --gradient-card: linear-gradient(135deg, 
                     rgba(255, 255, 255, 0.04) 0%, 
                     rgba(255, 255, 255, 0.01) 100%);
    --gradient-glow: radial-gradient(circle, 
                     rgba(139, 92, 246, 0.2) 0%, 
                     transparent 70%);
    --gradient-banner: linear-gradient(135deg, 
                       rgba(99, 102, 241, 0.12) 0%, 
                       rgba(168, 85, 247, 0.08) 50%,
                       rgba(236, 72, 153, 0.1) 100%);
}

:root[data-theme="light"] {
    --bg: #F5F7FA;
    --bg-elevated: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-hover: #eef2f7;
    --bg-subtle: #f8fafc;
    --border: #E5E7EB;
    --border-strong: #E5E7EB;
    --text: #111827;
    --text-secondary: #556274;
    --text-muted: #6B7280;
    --accent: #2563EB;
    --accent-text: #FFFFFF;
    --brand: #2563EB;
    --secondary: #7C3AED;
    --success: #10B981;
    --danger: #EF4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.08);
    
    /* Soft Pastel Gradients for Light Mode */
    --gradient-hero: radial-gradient(ellipse 80% 60% at 70% 20%, 
                     rgba(199, 210, 254, 0.5) 0%, 
                     rgba(233, 213, 255, 0.3) 30%,
                     transparent 70%),
                     radial-gradient(ellipse 60% 50% at 20% 80%,
                     rgba(252, 231, 243, 0.5) 0%,
                     transparent 60%);
    --gradient-card: linear-gradient(135deg, 
                     rgba(255, 255, 255, 1) 0%, 
                     rgba(250, 250, 249, 1) 100%);
    --gradient-glow: radial-gradient(circle, 
                     rgba(199, 210, 254, 0.6) 0%, 
                     transparent 70%);
    --gradient-banner: linear-gradient(135deg, 
                       rgba(224, 231, 255, 0.6) 0%, 
                       rgba(243, 232, 255, 0.5) 50%,
                       rgba(252, 231, 243, 0.5) 100%);
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    transition: background 0.4s ease, color 0.4s ease;
    padding-top: 64px;
}

.mobile-bottom-nav {
    display: none;
}

@media (min-width: 641px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 16px;
    }
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font-family: inherit; }
img { max-width: 100%; display: block; }
svg, video, canvas, iframe { max-width: 100%; }

main,
section,
header,
footer,
nav,
aside,
article,
form,
.container,
.container > *,
.products-grid,
.cat-grid,
.why-grid,
.footer-top,
.footer-cols,
.section-header {
    min-width: 0;
}

:where(h1, h2, h3, h4, h5, h6, p, a, span, strong, small, button, label) {
    overflow-wrap: anywhere;
}

.container {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

em {
    font-style: normal;
    font-weight: 700;
    color: color-mix(in srgb, var(--accent) 72%, var(--text));
}

/* ===== ANNOUNCEMENT ===== */
.announcement {
    background: var(--accent);
    color: var(--accent-text);
    font-size: 15px;
    padding: 12px 0;
    transition: background 0.4s, color 0.4s;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.dot-indicator {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6;
}

.announcement a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.announcement a:hover { opacity: 0.7; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.header.scrolled {
    border-bottom-color: var(--border);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
}

.logo-mark {
    width: 42px;
    height: 42px;
    color: var(--brand);
}

.logo-mark svg { width: 100%; height: 100%; }

.brand-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.main-nav {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.main-nav a {
    padding: 10px 14px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.main-nav a:hover { color: var(--text); }

.main-nav a.active { color: var(--text); }

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text);
    border-radius: 50%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-action {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text);
    transition: background 0.2s;
    font-size: 18px;
}

.icon-action:hover { background: var(--bg-hover); }

.dot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 7px;
    height: 7px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg);
}

.count-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}

.cart-action { background: var(--bg-hover); }

.signin-btn {
    padding: 12px 24px;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    transition: opacity 0.2s;
    margin-right: 8px;
}

.signin-btn:hover { opacity: 0.85; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.mobile-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: 0.3s;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    max-width: none;
    width: 100%;
    margin: 0 auto;
}

.search-inner i.fa-search { color: var(--text-muted); }

.search-inner input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
}

.search-inner input::placeholder { color: var(--text-muted); }

.search-brand-select {
    min-width: 150px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 9px;
    padding: 8px 10px;
    font-family: inherit;
}

.close-search {
    color: var(--text-muted);
    padding: 6px;
    border-radius: 6px;
    transition: 0.2s;
}

.close-search:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.search-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.search-tags a {
    padding: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: 0.2s;
}

.search-tags a:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-solid {
    background: var(--accent);
    color: var(--accent-text);
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--bg-hover);
}

.btn-ghost i {
    font-size: 18px;
}

/* ===== HERO - WITH SOFT GRADIENT ===== */
.hero {
    position: relative;
    padding: 80px 0 120px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    padding: 6px 14px 6px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    width: fit-content;
}

.eyebrow-line {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.hero-heading {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.italic, em {
    font-style: italic;
    font-weight: 400;
    color: var(--text-secondary);
}

.hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-item strong {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.meta-item span {
    font-size: 12px;
    color: var(--text-muted);
}

.meta-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* Hero Showcase - Real Image Card */
.hero-showcase {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 360px;
}

.showcase-main {
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.showcase-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.showcase-main:hover img {
    transform: scale(1.03);
}

.showcase-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: linear-gradient(180deg, rgba(6, 10, 20, 0.02), rgba(6, 10, 20, 0.68) 58%, rgba(6, 10, 20, 0.92));
}

.showcase-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.showcase-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.showcase-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.showcase-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.showcase-link {
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.showcase-link:hover {
    transform: scale(1.1) translateX(-2px);
}

/* Floating Cards */
.showcase-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    pointer-events: auto;
    z-index: 2;
}

.float-1 {
    top: 12%;
    right: -20px;
    animation: floatY 5s ease-in-out infinite;
}

.float-2 {
    bottom: 25%;
    left: -30px;
    animation: floatY 5s ease-in-out infinite -2.5s;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.float-icon {
    width: 38px;
    height: 38px;
    background: var(--bg-hover);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text);
}

.float-card strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.float-card span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== TRUST BAR ===== */
.trust-bar {
    padding: 50px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-label {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 28px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.brands-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.6;
    transition: 0.3s;
    cursor: pointer;
}

.brand-logo:hover {
    opacity: 1;
    color: var(--text);
}

.brand-logo i { font-size: 24px; }

/* ===== SECTIONS ===== */
.section {
    padding: 72px 0;
    position: relative;
}

.section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 1100px);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        color-mix(in srgb, var(--secondary) 35%, transparent) 20%,
        color-mix(in srgb, var(--accent) 55%, transparent) 50%,
        color-mix(in srgb, var(--secondary) 35%, transparent) 80%,
        transparent 100%
    );
    box-shadow:
        0 0 16px color-mix(in srgb, var(--accent) 35%, transparent),
        0 0 28px color-mix(in srgb, var(--secondary) 22%, transparent);
    pointer-events: none;
    opacity: 0.95;
}

.section-alt {
    background: var(--bg-elevated);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 30px;
    flex-wrap: wrap;
}

.section-header > div:first-child {
    width: 100%;
    text-align: center;
}

.section-header.center {
    justify-content: center;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.4px;
    text-wrap: balance;
    text-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 16%, transparent);
    font-family: 'Vazirmatn', sans-serif;
}

.section-title em {
    display: inline-block;
    margin: 0 .15em;
    padding: 0 .12em;
    color: color-mix(in srgb, var(--secondary) 68%, var(--text));
    text-shadow:
      0 0 10px color-mix(in srgb, var(--secondary) 28%, transparent),
      0 0 22px color-mix(in srgb, var(--accent) 16%, transparent);
}

/* Home-only simpler section headings (Digikala-like compact style) */
.home-page .section-header {
    margin-bottom: 22px;
}

.home-page .cat-strip-section .section-header,
.home-page .showcase-box .section-header {
    margin-bottom: 22px;
}

.home-page .section-header.has-action {
    align-items: center;
}

.home-page .section-header.has-action > div:first-child {
    width: auto;
    text-align: right;
}

.home-page .section-header.has-action .section-action {
    margin-right: auto;
}

.home-page .section-header.right-title > div:first-child {
    width: auto;
    text-align: right;
}

.home-page .section-header.centered-title {
    position: relative;
    justify-content: center;
    text-align: center;
    margin-bottom: 26px;
}

.home-page .section-header.centered-title > div:first-child {
    width: 100%;
    text-align: center;
}

.home-page .section-header.centered-title .section-action {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
}

.home-page .cat-strip-section .section-header.center > div:first-child {
    width: auto;
    margin-inline: auto;
    text-align: center;
}

.nav-group {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.nav-group-trigger {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
}

.nav-group-trigger:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.nav-group.active > .nav-group-trigger {
    color: var(--text);
}

.nav-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-elevated) 96%, transparent);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
}

.nav-submenu::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 0;
    left: 0;
    height: 10px;
}

.nav-group:hover .nav-submenu,
.nav-group.open .nav-submenu {
    display: grid;
    gap: 4px;
}

.nav-submenu a {
    display: block;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--text-secondary);
}

.nav-submenu a:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.home-page .section-title {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    letter-spacing: -0.2px;
    text-shadow: none;
    line-height: 1.35;
}

.home-page .section-title em {
    color: var(--text);
    text-shadow: none;
    font-weight: 700;
}

.home-page .section-eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: .8px;
}

.compact-home .section {
    padding: 30px 0;
}

.compact-home .section + .section {
    padding-top: 20px;
}

.compact-home .products-row-scroll {
    padding-top: 2px;
    padding-bottom: 6px;
}

:root[data-theme="light"] em {
    color: color-mix(in srgb, var(--accent) 58%, #1f2937);
}

:root[data-theme="light"] .section-title {
    color: #1f2937;
    text-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

:root[data-theme="light"] .section-title em {
    color: color-mix(in srgb, var(--secondary) 52%, #1f2937);
    text-shadow:
      0 0 6px rgba(124, 58, 237, 0.14),
      0 0 12px rgba(37, 99, 235, 0.08);
}

:root[data-theme="light"] .section-eyebrow {
    color: #64748b;
}

.section-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: 0.25s;
}

.section-action:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.filter-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 4px;
    border-radius: 100px;
}

.tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 100px;
    transition: 0.25s;
}

.tab.active {
    background: var(--accent);
    color: var(--accent-text);
}

/* ===== COLLECTIONS (NEW) ===== */
.collections {
    padding: 80px 0;
}

.collections-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    height: 480px;
}

.collection-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: white;
    transition: 0.4s;
}

.collection-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.collection-card:hover img {
    transform: scale(1.08);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
                transparent 30%, 
                rgba(0, 0, 0, 0.4) 60%,
                rgba(0, 0, 0, 0.85) 100%);
}

.collection-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    z-index: 2;
}

.collection-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 11px;
    margin-bottom: 14px;
}

.collection-content h3 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.collection-card.large .collection-content h3 {
    font-size: 36px;
}

.collection-content p {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 18px;
}

.collection-arrow {
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    color: var(--text);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.collection-card:hover .collection-arrow {
    transform: translateX(-6px);
}

/* ===== CATEGORIES ===== */
.cat-strip-section {
    padding-top: 8px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cat-row-scroll {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.cat-row-scroll .cat-item {
    flex: 0 0 224px;
    width: 224px;
    min-width: 224px;
    scroll-snap-align: start;
    border-radius: 18px;
    padding: 18px 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
    text-align: center;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 92%, transparent), var(--bg-card)),
      radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%);
    box-shadow:
      0 10px 22px color-mix(in srgb, var(--bg-subtle) 55%, transparent),
      0 2px 10px color-mix(in srgb, var(--accent) 12%, transparent);
    animation: catFadeIn .5s ease both;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--gradient-card);
    border: 0;
    border-radius: 16px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text);
}

.cat-item:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}


.cat-icon img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 6px;
}

.cat-cover {
    width: 120px !important;
    height: 120px !important;
    border-radius: 18px !important;
    border: 0;
    background: var(--bg-elevated);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--bg-subtle) 45%, transparent);
}

.cat-row-scroll .cat-icon {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-row-scroll .cat-info {
    width: 100%;
}

.cat-row-scroll .cat-info h4 {
    font-size: 17px;
    margin-bottom: 0;
    line-height: 1.5;
}

.cat-row-scroll .cat-info span {
    font-size: 10px;
}

.cat-row-scroll .cat-arrow {
    display: none;
}

.cat-row-scroll .cat-item:nth-child(1) { animation-delay: .03s; }
.cat-row-scroll .cat-item:nth-child(2) { animation-delay: .08s; }
.cat-row-scroll .cat-item:nth-child(3) { animation-delay: .13s; }
.cat-row-scroll .cat-item:nth-child(4) { animation-delay: .18s; }
.cat-row-scroll .cat-item:nth-child(5) { animation-delay: .23s; }
.cat-row-scroll .cat-item:nth-child(6) { animation-delay: .28s; }
.cat-row-scroll .cat-item:nth-child(7) { animation-delay: .33s; }
.cat-row-scroll .cat-item:nth-child(8) { animation-delay: .38s; }

@keyframes catFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.cat-item:hover 
.cat-icon img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 6px;
}
.cat-info { flex: 1; }

.cat-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cat-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.cat-arrow {
    color: var(--text-muted);
    font-size: 12px;
    transition: 0.3s;
}

.cat-item:hover .cat-arrow {
    color: var(--text);
    transform: translateX(-4px);
}

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-media {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-hover), var(--bg-subtle));
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.product:hover .product-media img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    z-index: 2;
}

.product-badge.badge-sale {
    background: var(--danger);
    color: var(--accent-text);
}

.product-fav {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: 0.25s;
    z-index: 2;
}

.product-fav:hover {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

.quick-add {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 2;
}

.product:hover .quick-add {
    opacity: 1;
    transform: translateY(0);
}

.product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    min-height: 18px;
}

.product-cat {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-rate {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.product-rate i {
    color: var(--secondary);
    font-size: 11px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.4;
    min-height: 4.2em;
}

.product-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.product-price {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    text-align: center;
}

.product-price .price,
.product-price .curr {
    white-space: nowrap;
}

.product-price.has-old-price {
    display: grid;
    justify-items: center;
    gap: 2px 0;
}

.product-price.has-old-price .price,
.product-price.has-old-price .curr {
    display: inline;
}

.price-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    width: 100%;
    order: 3;
    grid-column: 1 / -1;
}

.price {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.4px;
    order: 1;
}

.curr {
    font-size: 13px;
    color: var(--text-muted);
    order: 2;
}

.product-colors {
    display: flex;
    gap: 4px;
}

.product-colors span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 0 1px var(--border-strong);
}

/* ===== FEATURE BANNER ===== */
.feature-banner {
    padding: 60px 0;
}

.banner-box {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-banner);
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 16px 0 20px;
}

.banner-content > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

.banner-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.banner-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.banner-feature i {
    color: var(--success);
    font-size: 16px;
}

.banner-visual {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-lg);
}

.banner-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.banner-visual:hover img {
    transform: scale(1.05);
}

/* ===== WHY US ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.why-card {
    padding: 36px 28px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-hover);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--text);
    margin: 0 auto 20px;
    transition: 0.3s;
}

.why-card:hover .why-icon {
    background: var(--accent);
    color: var(--accent-text);
}

.why-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    transition: 0.3s;
}

.testimonial:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.quote-rate {
    display: flex;
    gap: 3px;
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 13px;
}

.quote-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.quote-author strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.quote-author span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 60px 0 100px;
}

.cta-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: var(--gradient-glow);
    pointer-events: none;
}

.cta-content {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 16px 0 16px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-form {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 16px;
}

.cta-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 18px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
}

.cta-form input::placeholder { color: var(--text-muted); }

.cta-form button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.cta-form button:hover { opacity: 0.85; }

.cta-note {
    font-size: 12px;
    color: var(--text-muted);
}

.cta-note a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
}

.footer-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.footer-highlight {
    padding: 18px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 76%, transparent);
    border: 1px solid var(--border);
}

.footer-highlight i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    margin-bottom: 14px;
}

.footer-highlight h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.footer-highlight p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 3fr;
    gap: 80px;
    padding-bottom: 60px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 24px 0;
    line-height: 1.7;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-trust {
    margin-top: 24px;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-trust a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.footer-trust a:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.footer-trust-image {
    display: block;
    width: 86px;
    height: auto;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: 0.25s;
}

.footer-social a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: 0.2s;
}

.footer-col ul a:hover { color: var(--text); }

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

.contact-list i {
    width: 16px;
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a { transition: 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .hero .container { grid-template-columns: 1fr; gap: 60px; }
    .hero-showcase { height: 500px; max-width: 500px; margin: 0 auto; width: 100%; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .collections-grid { grid-template-columns: 1fr 1fr; height: auto; }
    .collection-card.large { grid-column: span 2; height: 360px; }
    .collection-card { height: 320px; }
    .banner-box { grid-template-columns: 1fr; padding: 50px; gap: 40px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-highlights { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-trust { justify-self: start; }
}

.footer-dnamad {
    min-width: 112px;
    min-height: 112px;
    flex-direction: column;
    gap: 4px;
    color: var(--text);
    text-align: center;
}

.footer-dnamad i {
    color: var(--accent);
    font-size: 30px;
}

.footer-dnamad strong {
    font-size: 15px;
}

.footer-dnamad small {
    color: var(--text-secondary);
    font-size: 10px;
}

@media (max-width: 900px) {
    .main-nav, .signin-btn { display: none; }
    .mobile-toggle { display: flex; }
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bg);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        z-index: 140;
    }
    .main-nav.active .nav-group {
        width: 100%;
    }
    .main-nav.active .nav-group-trigger {
        width: 100%;
        justify-content: space-between;
        background: var(--bg-hover);
    }
    .main-nav.active .nav-submenu {
        position: static;
        display: none;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
        border-radius: 12px;
        background: var(--bg-card);
    }
    .main-nav.active .nav-group.open .nav-submenu {
        display: grid;
    }
    .main-nav.active .nav-submenu a {
        padding: 10px 12px;
    }
    .testimonials { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-box { padding: 50px 30px; }
    .section { padding: 56px 0; }
    .hero { padding: 40px 0 70px; }
    .meta-divider { display: none; }
    .hero-meta { flex-wrap: wrap; gap: 20px; }
    .float-1 { right: -10px; }
    .float-2 { left: -10px; }
    .home-page .section-header.centered-title {
        justify-content: space-between;
        text-align: right;
    }
    .home-page .section-header.centered-title .section-action {
        position: static;
        transform: none;
    }
}

@media (max-width: 640px) {
    .container { padding: 0 12px; }
    html { font-size: 16px; }
    body { padding-bottom: 84px; padding-top: 60px; }
    main,
    section,
    .container,
    .products-grid,
    .cat-grid,
    .why-grid,
    .footer-cols,
    .footer-top {
        width: 100%;
        max-width: 100%;
    }
    .announcement {
        font-size: 13px;
        padding: 10px 0;
    }
    .announcement a { display: none; }
    .header-inner { padding: 14px 0; }
    .logo-text {
        font-size: 20px;
        letter-spacing: -0.5px;
        white-space: nowrap;
    }
    .icon-action {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .hero-showcase { height: 420px; }
    .collections-grid { grid-template-columns: 1fr; }
    .collection-card.large { grid-column: span 1; height: 280px; }
    .collection-card { height: 240px; }
    .filter-tabs { width: 100%; overflow-x: auto; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
    .cta-form { flex-direction: column; padding: 12px; }
    .cta-form button { justify-content: center; }
    .icon-action:not(.cart-action):not(#themeToggle):not(#searchToggle) { display: none; }
    .banner-box { padding: 32px 24px; }
    .float-card { padding: 10px 14px; }
    .float-card span { display: none; }

    .slider-wrap {
        width: 100%;
        border-radius: 16px;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        z-index: 120;
        display: flex;
        align-items: stretch;
        justify-content: stretch;
        gap: 6px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        border-radius: 0;
        border-top: 1px solid var(--border-strong);
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: var(--shadow-lg);
        overflow: hidden;
    }

    .mb-item {
        flex: 1 1 0;
        min-width: 0;
        position: relative;
        min-height: 56px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--text-secondary);
        font-size: 11px;
        font-weight: 600;
        transition: 0.2s;
    }

    .mb-item i { font-size: 15px; }

    .mb-item.active {
        color: var(--text);
        background: var(--bg-hover);
    }

    .mb-badge {
        position: absolute;
        top: 5px;
        left: 16px;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        padding: 0 5px;
        background: var(--accent);
        color: var(--accent-text);
        font-style: normal;
        font-size: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .footer {
        padding: 52px 0 18px;
    }

    .footer-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 22px;
    }

    .footer-highlight {
        padding: 16px;
        border-radius: 18px;
    }

    .footer-top {
        gap: 26px;
        padding-bottom: 26px;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-desc {
        max-width: 100%;
        text-align: center;
        margin: 14px 0 16px;
        font-size: 13px;
        line-height: 1.8;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .footer-col {
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 12px;
        background: color-mix(in srgb, var(--bg-card) 90%, transparent);
    }

    .footer-col h4 {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .footer-col ul li {
        margin-bottom: 8px;
    }

    .footer-col ul a,
    .contact-list li {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .cat-grid, .products-grid, .why-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .section { padding: 46px 0; }
    .section + .section::before { width: 88%; }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection { background: var(--accent); color: var(--accent-text); }

/* ===== HOME NEW TOP BANNERS ===== */
.home-top-strip {
    background: linear-gradient(90deg, #2f8ff0, #45a3ff);
    color: #fff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 140;
}

.home-top-strip .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
}

.home-top-strip strong {
    background: #fff;
    color: #2563eb;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 13px;
}

body.home-has-top-strip {
    padding-top: 106px;
}

body.home-has-top-strip #header {
    top: 42px;
}

@media (max-width: 900px) {
    .home-top-strip { top: 0; }
    body.home-has-top-strip {
        padding-top: 100px;
    }
    body.home-has-top-strip #header {
        top: 38px;
    }
}

.home-slider {
    padding: 0;
}

.home-slider--mobile {
    display: none;
}

.slider-wrap {
    position: relative;
    width: calc(100% - 48px);
    max-width: none;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .45s ease;
}

.slide.is-active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-caption {
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;
    transform: none;
    background: color-mix(in srgb, #000 45%, transparent);
    color: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    max-width: min(88%, 420px);
    text-align: right;
}

.slide-caption h2 {
    font-size: clamp(18px, 3vw, 30px);
    margin-bottom: 4px;
}

.slide-caption p {
    font-size: 13px;
    opacity: .9;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--bg-card) 82%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    color: var(--text);
    box-shadow: 0 10px 24px color-mix(in srgb, #000 18%, transparent);
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: color-mix(in srgb, var(--accent) 22%, var(--bg-card));
    color: var(--accent-text);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.slider-arrow-next {
    right: 14px;
}

.slider-arrow-prev {
    left: 14px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.slider-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.45);
}

.slider-dots button.active {
    background: #fff;
}

.home-mini-banners {
    padding: 10px 0 20px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mini-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 160px;
}

.mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-card span {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.festival-bar {
    padding: 8px 0 22px;
}

.festival-inner {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, color-mix(in srgb, var(--secondary) 20%, var(--bg-card)), color-mix(in srgb, var(--accent) 20%, var(--bg-card)));
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.festival-inner strong {
    display: block;
    font-size: 19px;
    margin-bottom: 4px;
}

.festival-inner p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Text on product covers should be top corner */
.collection-content {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: right;
    padding-top: 16px;
}

.collection-card .collection-tag,
.collection-card h3,
.collection-card p {
    margin-right: 8px;
}

@media (max-width: 900px) {
    .mini-grid {
        grid-template-columns: 1fr 1fr;
    }

    .slider-wrap {
        aspect-ratio: 16 / 9;
        min-height: 220px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
    }

    .slider-arrow-next {
        right: 10px;
    }

    .slider-arrow-prev {
        left: 10px;
    }

    .mini-card {
        min-height: 180px;
    }

    .festival-inner {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Horizontal products row on home */
.products-row-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
}

.products-row-scroll.is-dragging {
    cursor: grabbing;
}

.products-row-scroll.is-dragging a,
.products-row-scroll.is-dragging img {
    pointer-events: none;
}

.products-row-scroll::-webkit-scrollbar {
    height: 8px;
}

.products-row-scroll::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent) 45%, var(--border));
    border-radius: 999px;
}

.products-row-scroll .product {
    flex: 0 0 280px;
    min-width: 280px;
    scroll-snap-align: start;
}

@media (max-width: 640px) {
    .home-slider--desktop {
        display: none;
    }

    .home-slider--mobile {
        display: block;
    }

    .slider-wrap {
        width: 100%;
        max-width: 100%;
        background: var(--bg-card);
    }

    .slide img {
        object-fit: cover;
        object-position: center;
    }

    .mini-card {
        background: var(--bg-card);
    }

    .mini-card img {
        object-fit: contain;
        object-position: center;
    }

    .products-row-scroll .product {
        flex: 0 0 46vw;
        min-width: 46vw;
    }
    .products-row-scroll {
        gap: 10px;
    }
}

.brand-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 10px;
}

.brand-pill {
    flex: 0 0 186px;
    height: 148px;
    border: 0;
    border-radius: 14px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px 10px;
    transition: .2s;
    animation: brandFloat 3.6s ease-in-out infinite;
    will-change: transform;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--bg-subtle) 55%, transparent);
}

.brand-pill:hover {
    transform: translateY(-3px) scale(1.02);
    animation-play-state: paused;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 20%, transparent);
}

.brand-pill img,
.brand-logo-img {
    width: 120px;
    height: 78px;
    object-fit: contain;
    filter: saturate(1.02) contrast(1.03);
}

.brand-logo-fallback {
    width: 120px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 0;
    background: var(--bg-elevated);
    font-weight: 700;
    color: var(--text-secondary);
}

.brand-name {
    display: block;
    max-width: 100%;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-rail .brand-pill:nth-child(2n) { animation-delay: .35s; }
.brand-rail .brand-pill:nth-child(3n) { animation-delay: .7s; }
.brand-rail .brand-pill:nth-child(4n) { animation-delay: 1.05s; }

@keyframes brandFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (max-width: 900px) {
    .products-row-scroll .product {
        flex: 0 0 62vw;
        min-width: 62vw;
    }

    .search-brand-select {
        min-width: 110px;
        font-size: 13px;
    }

    .brand-pill {
        flex-basis: 150px;
        height: 126px;
    }

    .cat-row-scroll .cat-item {
        flex-basis: 56vw;
        width: 56vw;
        min-width: 56vw;
    }
}

@media (max-width: 560px) {
    .products-row-scroll .product {
        flex: 0 0 54vw;
        min-width: 54vw;
    }

    .cat-row-scroll .cat-item {
        flex-basis: 58vw;
        width: 58vw;
        min-width: 58vw;
    }
}


/* Improve readability for lifestyle collection text */
.collections .collection-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.45) 48%, rgba(0,0,0,.78) 100%);
}

.collections .collection-content {
    padding: 18px;
}

.collections .collection-content h3,
.collections .collection-content p,
.collections .collection-tag {
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.collections .collection-content p {
    background: rgba(0,0,0,.24);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    padding: 6px 8px;
    display: inline-block;
    max-width: 95%;
}
