/* ============================================
   STYLE.CSS — Mobile-First Design System
   Catalogue Boutique v2.0
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Color system */
    --accent: #6366F1;
    --accent-light: #A5B4FC;
    --accent-dark: #4338CA;
    --accent-rgb: 99, 102, 241;
    --accent-glow: rgba(99, 102, 241, 0.25);

    /* Backgrounds */
    --bg: #F8FAFC;
    --bg-alt: #F1F5F9;
    --surface: #FFFFFF;

    /* Buttons */
    --btn-color: #6366F1;
    --btn-text: #FFFFFF;
    --surface-hover: #F8FAFC;
    --surface-glass: rgba(255, 255, 255, 0.72);

    /* Text */
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Borders & Dividers */
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --divider: rgba(15, 23, 42, 0.06);

    /* Semantic colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;

    /* Layout (mobile base) */
    --navbar-height: 56px;
    --bottom-nav-height: 64px;
    --container-max: 1280px;
    --gutter: 16px;

    /* Border radius */
    --radius: 16px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.14);
    --shadow-glow: 0 0 20px rgba(var(--accent-rgb), 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 0.15s;
    --t-normal: 0.25s;
    --t-slow: 0.4s;

    /* Z-index scale */
    --z-base: 1;
    --z-sticky: 100;
    --z-overlay: 500;
    --z-modal: 1000;
    --z-toast: 2000;

    /* Navbar & Footer */
    --navbar-bg: rgba(255, 255, 255, 0.72);
    --navbar-text: #0F172A;
    --navbar-icons: #475569;
    --footer-bg: #0F172A;
    --footer-text: #CBD5E1;

    /* Customizable element colors */
    --stars-color: #F59E0B;

    /* Hero & Promo */
    --hero-start: #6366F1;
    --hero-end: #4338CA;
    --hero-text: #FFFFFF;
    --promo-color: #EF4444;
    --promo-bg: #FEF2F2;
    --promo-text: #FFFFFF;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Card style overrides */
body[data-card-style="sharp"] {
    --radius: 0;
    --radius-lg: 0;
    --radius-md: 0;
    --radius-sm: 2px;
    --radius-xs: 0;
}
body[data-card-style="pill"] {
    --radius: 24px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --radius-xs: 10px;
}
body[data-card-style="pill"] .product-card-body {
    padding: 16px 22px 26px;
}

/* Animation style overrides */
body[data-anim-style="none"] .fade-in,
body[data-anim-style="none"] .slide-up {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--navbar-height) + 16px);
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    padding-bottom: var(--bottom-nav-height);
}

a { color: var(--accent); text-decoration: none; transition: color var(--t-fast) ease; }
a:hover { color: var(--accent-dark); }

img, video { max-width: 100%; height: auto; display: block; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
}

input, select, textarea {
    font-family: inherit;
    font-size: 16px; /* prevents iOS zoom on focus */
}

ul, ol { list-style: none; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Bannière d'annonce ---------- */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: var(--announcement-bg, var(--accent));
    color: var(--announcement-text, #fff);
    z-index: 1001;
    overflow: hidden;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.announcement-track {
    display: inline-flex;
    padding-left: 100%;
    animation: announceScroll 18s linear infinite;
    will-change: transform;
}

.announcement-track:hover {
    animation-play-state: paused;
}

.announcement-text {
    flex-shrink: 0;
}

.announcement-separator {
    flex-shrink: 0;
    opacity: 0.6;
}

.announcement-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: inherit;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.announcement-close:hover {
    background: rgba(255,255,255,0.35);
}

@keyframes announceScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Décaler la navbar et le contenu quand la bannière est présente */
.announcement-bar ~ .navbar {
    top: 36px;
}

.announcement-bar ~ .navbar ~ main,
.announcement-bar ~ main {
    padding-top: calc(var(--navbar-height) + 36px) !important;
}

@media (max-width: 768px) {
    .announcement-bar {
        height: 30px;
        font-size: 12px;
    }
    .announcement-bar ~ .navbar {
        top: 30px;
    }
    .announcement-bar ~ .navbar ~ main,
    .announcement-bar ~ main {
        padding-top: calc(var(--navbar-height) + 30px) !important;
    }
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--navbar-bg);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid var(--divider);
    z-index: var(--z-modal);
    transition: transform var(--t-normal) var(--ease-out), box-shadow var(--t-normal) ease, background 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 0 var(--divider);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 12px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navbar-text);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    flex-shrink: 0;
    z-index: 1000;
}

.navbar-logo {
    height: 38px;
    width: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.12);
    border: 1.5px solid rgba(var(--accent-rgb), 0.10);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
    object-fit: contain;
    background: transparent;
}

.navbar-logo:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.18);
    border-color: rgba(var(--accent-rgb), 0.22);
}

.navbar-brand-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--navbar-text, var(--accent));
    position: relative;
    display: inline-block;
}

.navbar-brand-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 65%,
        transparent 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brandShine 3s ease-in-out infinite;
}

@keyframes brandShine {
    0%, 20% { background-position: -200% center; }
    60%, 100% { background-position: 200% center; }
}

/* Bottom navigation (mobile app style) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--surface-glass);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-top: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: var(--z-modal);
    padding: 4px 0 env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.06);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 500;
    color: var(--navbar-icons, var(--text-muted));
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, transform 0.2s var(--ease-spring);
    min-width: 56px;
    position: relative;
}

.bottom-nav-item svg {
    transition: transform 0.25s var(--ease-spring);
}

.bottom-nav-item.active {
    color: var(--accent);
    font-weight: 700;
}

.bottom-nav-item.active svg {
    transform: scale(1.18);
    filter: drop-shadow(0 2px 4px rgba(var(--accent-rgb), 0.3));
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
}

.bottom-nav-item:active {
    transform: scale(0.88);
}

.bottom-nav-item:hover {
    color: var(--accent);
}

/* Navbar navigation links (desktop only) */
.navbar-nav {
    display: none;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.navbar-nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--navbar-icons, var(--text-secondary));
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--t-fast) ease;
    white-space: nowrap;
}

.navbar-nav-link svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.navbar-nav-link:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.07);
}

.navbar-nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

.navbar-nav-link.active svg {
    opacity: 1;
}

/* Navbar actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1000;
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--navbar-icons, var(--text-secondary));
    transition: all var(--t-fast) ease;
    position: relative;
    text-decoration: none;
}

.nav-icon-btn:hover,
.nav-icon-btn.active {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
}

.nav-icon-label { display: none; }

/* Theme toggle */
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Main content ---------- */
.main-content {
    padding-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
    min-height: calc(100dvh - var(--navbar-height));
}

/* ---------- Sections ---------- */
.section {
    padding: 36px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    padding: 8px 16px;
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
    border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.section-link:hover {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent-dark);
    border-color: rgba(var(--accent-rgb), 0.25);
    transform: translateX(2px);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, var(--hero-start) 0%, var(--hero-end) 100%);
    background: linear-gradient(160deg, var(--hero-start) 0%, var(--hero-end) 60%, color-mix(in srgb, var(--hero-end), #000 20%) 100%);
    padding: 56px 0 64px;
    min-height: 70vw;
    color: var(--hero-text);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        min-height: 340px;
        padding: 64px 0 72px;
    }
}

/* Hero background image — responsive */
.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-bg-img--mobile { display: block; }
.hero-bg-img--desktop { display: none; }

@media (min-width: 768px) {
    .hero-bg-img--mobile { display: none; }
    .hero-bg-img--desktop { display: block; }
}

/* Animated gradient orb */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroOrb1 15s ease-in-out infinite;
}

/* Second gradient orb */
.hero::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroOrb2 12s ease-in-out infinite;
}

@keyframes heroOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    33% { transform: translate(-30px, 20px) scale(1.1); opacity: 1; }
    66% { transform: translate(20px, -15px) scale(0.95); opacity: 0.7; }
}

@keyframes heroOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(25px, -20px) scale(1.15); opacity: 0.9; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 100%);
    background: linear-gradient(160deg, color-mix(in srgb, var(--hero-start), transparent 25%) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* --- Welcome section below hero --- */
.hero-welcome {
    padding-top: 10px;
    padding-bottom: 20px;
}

.hero-welcome-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.hero-welcome-title {
    font-size: clamp(24px, 6vw, 38px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.hero-welcome-text {
    font-size: clamp(14px, 3.5vw, 17px);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-welcome-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-title {
    font-size: clamp(30px, 8vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2), 0 4px 40px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: clamp(14px, 3.5vw, 18px);
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0,0,0,0.1);
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    box-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1) inset;
    backdrop-filter: blur(4px);
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--t-normal) var(--ease-out);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
    min-height: 44px; /* touch target */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn svg { flex-shrink: 0; width: 18px; height: 18px; }

.btn-primary {
    background: var(--btn-color);
    background: linear-gradient(135deg, var(--btn-color), color-mix(in srgb, var(--btn-color), #000 25%));
    color: var(--btn-text);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--btn-color), transparent 65%);
    position: relative;
    overflow: hidden;
}

/* Shine sweep on btn-primary */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-primary:hover {
    background: var(--btn-color);
    background: linear-gradient(135deg, color-mix(in srgb, var(--btn-color), #000 25%), var(--btn-color));
    border-color: transparent;
    color: var(--btn-text);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--btn-color), transparent 55%);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    border-color: var(--btn-color, var(--accent));
    color: var(--btn-color, var(--accent));
}

.btn-outline {
    background: transparent;
    color: var(--btn-color, var(--accent));
    border-color: var(--btn-color, var(--accent));
}
.btn-outline:hover {
    background: rgba(99, 102, 241, 0.08);
    background: color-mix(in srgb, var(--btn-color, var(--accent)), transparent 92%);
}

.btn-hero {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn-hero:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 10px; width: 44px; }

.btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* ---------- Cards (base) ---------- */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t-normal) ease;
}

.card-header {
    padding: 18px 20px 0;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.card-body {
    padding: 14px 20px 22px;
}

body[data-card-style="pill"] .card-header {
    padding: 20px 28px 0;
}

body[data-card-style="pill"] .card-body {
    padding: 14px 28px 30px;
}

/* ---------- Categories grid ---------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-tile {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.category-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
    filter: brightness(0.95) saturate(1.1);
}

.category-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 35%, transparent 65%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    transition: background 0.4s ease;
}

.category-tile-overlay h3 {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    letter-spacing: -0.01em;
}

.category-tile-name {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.category-tile-count {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

/* ---------- Products grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* ---------- Product card ---------- */
.product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid var(--divider);
}

.product-card-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--bg-alt);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Gradient overlay on images for depth */
.product-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.06), transparent);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
}

.product-card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play icon overlay on video */
.product-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.product-card-play svg {
    width: 36px;
    height: 36px;
    color: #FFFFFF;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Badges */
.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    max-width: calc(100% - 16px);
}

.badge-new,
.badge-promo,
.badge-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    width: fit-content;
}

.badge-new {
    background: var(--badge-new-color, linear-gradient(135deg, var(--accent), var(--accent-dark)));
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--badge-new-color, var(--accent)), transparent 65%);
}

.badge-promo {
    background: var(--promo-color);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.badge-unavailable {
    background: rgba(15, 23, 42, 0.7);
    color: #FFFFFF;
    backdrop-filter: blur(8px);
}

/* Favorite button */
.btn-favorite {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-muted);
    z-index: 2;
    transition: all 0.2s var(--ease-spring);
    border: none;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-favorite svg { width: 16px; height: 16px; }

.btn-favorite.active {
    color: var(--danger);
    background: rgba(255, 255, 255, 0.95);
}

.btn-favorite:active {
    transform: scale(0.85);
}

/* Card body */
.product-card-body {
    padding: 14px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.product-card-name,
.product-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.product-card-category {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

/* Card footer: price + rating grouped at bottom */
.product-card-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--divider);
}

/* Card rating */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.product-card-rating .stars {
    color: var(--stars-color, var(--warning));
    display: flex;
    gap: 1px;
    filter: drop-shadow(0 1px 2px rgba(245,158,11,0.3));
}

.product-card-rating .stars svg { width: 12px; height: 12px; }

/* Prices */
.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price {
    font-size: 17px;
    font-weight: 800;
    color: var(--price-color, var(--accent));
    letter-spacing: -0.02em;
}

.price-lg {
    font-size: 24px;
    font-weight: 800;
    color: var(--price-color, var(--accent));
}

.price-promo {
    font-size: 17px;
    font-weight: 800;
    color: var(--danger);
}

.price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.price-savings {
    font-size: 10px;
    font-weight: 700;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.price-unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.price-from {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- Product variants ---------- */
.product-variants {
    margin-top: 16px;
}

.variants-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.variant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: border-color var(--t-fast) ease;
}

.variant-item:active {
    border-color: var(--accent);
}

.variant-label {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.variant-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--price-color, var(--accent));
}

.variant-price-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.variant-price-promo {
    font-size: 15px;
    font-weight: 700;
    color: var(--promo, #e53935);
}

.variant-price-original {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ---------- Catalog categories grid ---------- */
.catalog-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.catalog-category-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.catalog-category-card:hover,
.catalog-category-card:active {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.25);
}

.catalog-category-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.15);
}

.catalog-category-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.catalog-category-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    color: var(--text-muted);
}

.catalog-category-info {
    padding: 12px 14px;
}

.catalog-category-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.catalog-category-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Catalog search bar */
.search-bar-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.search-input-wrap svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-bar-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    outline: none;
}

.search-bar-input::placeholder {
    color: var(--text-muted);
}

@media (min-width: 600px) {
    .catalog-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .catalog-category-img,
    .catalog-category-placeholder {
        height: 140px;
    }
}

@media (min-width: 900px) {
    .catalog-categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .catalog-category-img,
    .catalog-category-placeholder {
        height: 160px;
    }
    .catalog-category-info h3 {
        font-size: 15px;
    }
}

/* ---------- Catalog layout ---------- */
.catalog-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 32px;
}

.catalog-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.catalog-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.catalog-sort {
    margin-left: auto;
}

.catalog-sort select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-height: 40px;
}

/* Filter toggle button (mobile) */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    min-height: 40px;
}

.filter-toggle svg { width: 16px; height: 16px; }

.filter-active-count {
    background: var(--accent);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Filters — mobile bottom sheet */
.catalog-filters {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.15);
    z-index: var(--z-modal);
    max-height: 80vh;
    max-height: 80dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform var(--t-slow) var(--ease-out);
    padding: 0 var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom));
}

.catalog-filters.open {
    transform: translateY(0);
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 2;
}

.filters-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.filters-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 20px;
    transition: background var(--t-fast) ease;
}

.filters-close:hover {
    background: var(--bg-alt);
}

/* Drag handle indicator */
.filters-handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
}

.filters-handle::before {
    content: '';
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group input[type="search"],
.filter-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    min-height: 44px;
    transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
    appearance: none;
}

.filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.price-range-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
}

.filter-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    border-radius: 4px;
}

.filters-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 0;
    position: sticky;
    bottom: 0;
    background: var(--surface);
}

/* Filters backdrop */
.filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-normal) ease;
}

.filters-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--t-fast) ease;
}

.pagination-link:hover {
    border-color: var(--btn-color, var(--accent));
    color: var(--btn-color, var(--accent));
}

.pagination-link.active {
    background: var(--btn-color, var(--accent));
    color: #FFFFFF;
    border-color: var(--btn-color, var(--accent));
}

.pagination-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination-dots {
    color: var(--text-muted);
    padding: 0 4px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-muted);
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.breadcrumb::-webkit-scrollbar { display: none; }

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent); }

.breadcrumb-sep {
    color: var(--border);
    font-size: 10px;
    flex-shrink: 0;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
}

/* ---------- Product detail ---------- */
.product-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px 0 40px;
}

/* Gallery */
.product-gallery {
    width: 100%;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}

.product-main-image img,
.product-main-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: var(--radius-xs);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color var(--t-fast) ease;
    opacity: 0.6;
}

.gallery-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-info-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-title {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.product-meta .separator { color: var(--border); }

/* Price block */
.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

/* Availability */
.product-availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.availability-in-stock,
.product-availability.available {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
}

.availability-out-of-stock,
.product-availability.unavailable {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

/* Description */
.product-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.product-description p { margin-bottom: 12px; }
.product-description p:last-child { margin-bottom: 0; }

/* Tags */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    transition: all var(--t-fast) ease;
    text-decoration: none;
}

.tag-link:hover {
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
}

/* ---------- Reviews ---------- */
.reviews-section {
    padding: 24px 0;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviews-title {
    font-size: 18px;
    font-weight: 700;
}

/* Review form */
.review-form {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.review-form h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.star-rating-input {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.star-rating-input label {
    cursor: pointer;
    color: var(--border);
    transition: color var(--t-fast) ease;
}

.star-rating-input label svg {
    width: 32px;
    height: 32px;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: var(--warning);
}

.star-rating-input input { display: none; }

.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    min-height: 80px;
    resize: vertical;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--t-fast) ease;
}

.review-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.review-form input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    min-height: 44px;
    margin-bottom: 10px;
    transition: border-color var(--t-fast) ease;
}

.review-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

/* Review items */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.review-item:last-child { border-bottom: none; }

.review-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.review-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
}

.review-stars {
    display: flex;
    gap: 2px;
    color: var(--warning);
}

.review-stars svg { width: 14px; height: 14px; }

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.no-reviews {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- Category page ---------- */
.category-header {
    position: relative;
    padding: 32px 0;
    margin-bottom: 24px;
}

.category-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--hero-start) 0%, var(--hero-end) 100%);
    z-index: -1;
}

.category-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.category-title {
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 700;
    color: #FFFFFF;
}

.category-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 8px;
    max-width: 600px;
}

.subcategories-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    margin: 16px 0;
}

.subcategories-list::-webkit-scrollbar { display: none; }

.subcategory-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    text-decoration: none;
    transition: all var(--t-fast) ease;
    min-height: 38px;
}

.subcategory-chip:hover,
.subcategory-chip.active {
    background: var(--btn-color, var(--accent));
    color: #FFFFFF;
    border-color: var(--btn-color, var(--accent));
}

/* ---------- Promotions ---------- */
.promo-banner {
    background: var(--promo-color);
    background: linear-gradient(135deg, var(--promo-color), color-mix(in srgb, var(--promo-color), #000 30%));
    border-radius: var(--radius);
    padding: 24px;
    color: var(--promo-text, #FFFFFF);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.promo-banner:active {
    transform: scale(0.97);
}

/* Decorative circle */
.promo-banner::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroOrb1 10s ease-in-out infinite;
}

.promo-banner-title {
    font-size: 20px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.promo-banner-desc {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.promo-banner-discount {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    align-self: flex-start;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.15);
}

.promo-banner-dates {
    font-size: 12px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* ---------- Login page ---------- */
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0F172A 0%, #1E293B 50%, var(--accent-dark) 100%);
    padding: 16px;
}

.login-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 28px 24px 16px;
}

.login-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.login-body {
    padding: 0 24px 28px;
}

.login-body .form-group {
    margin-bottom: 14px;
}

.login-body .form-group label {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.login-body .input-wrapper {
    position: relative;
}

.login-body .input-wrapper svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.login-body .input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--surface);
    color: var(--text);
    min-height: 48px;
    transition: border-color var(--t-fast) ease;
}

.login-body .input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.login-error {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 13px;
    text-align: center;
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    opacity: 0.25;
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 14px;
    max-width: 300px;
    margin: 0 auto;
}

/* ---------- Flash messages ---------- */
.flash-messages {
    position: fixed;
    top: calc(var(--navbar-height) + 12px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flash-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    animation: slideIn 0.3s var(--ease-out);
    border-left: 4px solid var(--text-muted);
}

.flash-toast.success { border-left-color: var(--success); }
.flash-toast.error { border-left-color: var(--danger); }
.flash-toast.warning { border-left-color: var(--warning); }
.flash-toast.info { border-left-color: var(--info); }

.flash-toast svg { flex-shrink: 0; width: 20px; height: 20px; }

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 48px 0 calc(24px + var(--bottom-nav-height));
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Animated gradient top bar */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--promo-color), var(--warning), var(--accent));
    background-size: 300% 100%;
    animation: gradientSlide 6s ease infinite;
}

@keyframes gradientSlide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-tagline {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.5;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    color: #94A3B8;
    font-size: 14px;
    text-decoration: none;
    transition: color var(--t-fast) ease, transform var(--t-fast) ease;
    padding: 4px 0;
    display: inline-block;
}
.footer-links a:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.5;
}
.footer-contact li svg { flex-shrink: 0; margin-top: 2px; opacity: 0.7; }
.footer-contact a {
    color: #94A3B8;
    transition: color var(--t-fast) ease;
    text-decoration: none;
}
.footer-contact a:hover { color: #FFFFFF; }

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: #CBD5E1;
    transition: all 0.3s var(--ease-out);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link:hover {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.4);
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 32px;
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---------- Selection ---------- */
::selection {
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--text);
}

/* ---------- Focus visible ---------- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- Utility classes ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* ============================================
   RESPONSIVE — Tablet (min-width: 600px)
   ============================================ */
@media (min-width: 600px) {
    :root {
        --gutter: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .product-card-body {
        padding: 14px 18px 22px;
    }

    .product-card-name,
    .product-card-title {
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price { font-size: 17px; }
}

/* ============================================
   RESPONSIVE — Desktop (min-width: 900px)
   ============================================ */
@media (min-width: 900px) {
    :root {
        --navbar-height: 64px;
        --gutter: 24px;
        --bottom-nav-height: 0px;
    }

    body {
        padding-bottom: 0;
    }

    /* Bottom nav hidden on desktop */
    .bottom-nav { display: none; }

    /* Navbar nav links visible on desktop */
    .navbar-nav {
        display: flex;
    }

    /* Category grid */
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-tile-name { font-size: 16px; }

    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* Product card hover effects */
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .product-card:hover .product-card-image img {
        transform: scale(1.05);
    }

    .category-tile:hover .category-tile-img {
        transform: scale(1.08);
    }

    /* Catalog layout — sidebar filters on desktop */
    .catalog-layout {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 24px;
        align-items: start;
    }

    .filter-toggle,
    .filters-toggle { display: none; }
    .filters-overlay { display: none; }

    .catalog-filters {
        position: sticky;
        top: calc(var(--navbar-height) + 16px);
        bottom: auto;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        max-height: calc(100vh - var(--navbar-height) - 32px);
        transform: none;
        padding: 16px;
        z-index: var(--z-base);
    }

    .filters-header { display: none; }
    .filters-handle { display: none; }
    .filters-actions { display: none; }

    .catalog-topbar { order: -1; }

    /* Product detail */
    .product-detail {
        flex-direction: row;
        gap: 32px;
        padding: 24px 0 48px;
    }

    .product-gallery {
        flex: 0 0 50%;
        max-width: 50%;
        position: sticky;
        top: calc(var(--navbar-height) + 24px);
    }

    .gallery-thumb {
        width: 64px;
        height: 64px;
    }

    /* Hero */
    .hero {
        padding: 56px 0 64px;
    }

    .hero::before {
        width: 500px;
        height: 500px;
    }

    .hero::after {
        width: 350px;
        height: 350px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }

    .site-footer {
        padding-bottom: 24px;
    }

    /* Section */
    .section {
        padding: 48px 0;
    }

    /* Promo banner row */
    .promo-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 24px 28px;
    }

    /* Login */
    .login-card {
        max-width: 420px;
    }

    .login-header { padding: 32px 32px 20px; }
    .login-body { padding: 0 32px 32px; }
}

/* ============================================
   RESPONSIVE — Large Desktop (min-width: 1200px)
   ============================================ */
@media (min-width: 1200px) {
    :root {
        --gutter: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .catalog-layout {
        grid-template-columns: 280px 1fr;
    }
}

/* ============================================
   ADDITIONAL MISSING CLASSES
   ============================================ */

/* --- Hero wave divider --- */
.hero-wave {
    position: relative;
    margin-top: -4px;
    z-index: 2;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 48px;
}

/* --- Footer wave divider --- */
.footer-wave {
    position: relative;
    margin-bottom: -2px;
    z-index: 1;
    line-height: 0;
    margin-top: 48px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* --- Section divider gradient line --- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0;
    border: none;
}

/* --- CTA Section --- */
.cta-section {
    padding-bottom: 48px;
}

.cta-card {
    background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.cta-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.cta-shape--1 {
    width: 200px;
    height: 200px;
    top: -30%;
    right: -10%;
    animation: heroOrb1 12s ease-in-out infinite;
}

.cta-shape--2 {
    width: 120px;
    height: 120px;
    bottom: -20%;
    left: -5%;
    animation: heroOrb2 10s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(22px, 6vw, 32px);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.cta-text {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-card .btn {
    background: #FFFFFF;
    color: var(--hero-end);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-weight: 700;
}

.cta-card .btn:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* --- Hero section --- */
.hero-text {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    max-width: 480px;
    white-space: pre-line;
    margin: 0 auto 24px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.1);
}

/* --- Section alt --- */
.section-alt {
    background: var(--bg-alt);
    position: relative;
}

/* Subtle top border on alt sections */
.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--divider), transparent);
}

/* --- Category tile placeholder --- */
.category-tile-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    color: var(--text-muted);
}

/* --- Promo banners (home) --- */
.promo-banners {
    display: grid;
    gap: 16px;
}

.promo-banner-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--promo-text, #FFFFFF);
}

.promo-badge-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: clamp(14px, 4vw, 20px);
    font-weight: 800;
    color: #FFFFFF;
    width: fit-content;
    white-space: nowrap;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* --- Catalog toolbar/main --- */
.catalog-main {
    flex: 1;
    min-width: 0;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Page title block --- */
.page-title-block {
    margin-bottom: 24px;
}

.page-title-block h1 {
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.page-title-block .text-muted {
    font-size: 14px;
}

/* --- Category page --- */
.category-page-header {
    margin-bottom: 24px;
}

.category-page-header h1 {
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 700;
    color: var(--text);
}

.category-banner {
    width: 100%;
    min-height: 180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.category-banner-overlay {
    width: 100%;
    padding: 24px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: #FFFFFF;
}

.category-banner-overlay h1 {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 700;
    margin-bottom: 6px;
}

.category-banner-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

.subcategories-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    margin-bottom: 20px;
}

.subcategories-bar::-webkit-scrollbar { display: none; }

/* --- Product detail page --- */
.product-page { padding-top: 0; }

.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}

.gallery-main img,
.gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    background: var(--bg-alt);
}

.video-embed {
    width: 100%;
    height: 100%;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
    font-size: 14px;
    pointer-events: none;
}

.thumb-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product info details */
.product-info-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.product-info-title {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 4px;
}

.product-info-ref {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-info-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.product-info-rating svg { color: #F59E0B; }
.product-info-rating span { font-size: 13px; color: var(--text-muted); }

.product-info-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.price-promo-lg {
    font-size: clamp(24px, 5vw, 30px);
    font-weight: 800;
    color: var(--price-color, var(--accent));
}

.price-original-lg {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-favorite-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.product-short-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.product-short-desc p {
    margin-bottom: 8px;
}

/* Prose content */
.prose {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.prose p { margin-bottom: 12px; }
.prose p:last-child { margin-bottom: 0; }

/* Reviews */
.product-reviews {
    margin-top: 32px;
}

.review-form-card {
    margin-top: 20px;
}

.review-item-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.review-item-rating svg { color: #F59E0B; }

.review-item-comment {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 8px;
}

.star-btn {
    cursor: pointer;
    font-size: 24px;
    color: #D1D5DB;
    transition: color var(--t-fast) ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    padding: 2px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.star-btn.active,
.star-btn:hover {
    color: #F59E0B;
}

/* --- Product card additional classes --- */
.product-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.product-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    background: var(--bg-alt);
}

.product-card-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.product-card-play-icon svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.rating-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- Stars (rating helper) --- */
.star {
    color: #D1D5DB;
    font-size: 14px;
}

.star.filled {
    color: #F59E0B;
}

/* --- Flash toast sub-elements --- */
.toast-icon {
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

/* --- Promotions page --- */
.promos-list {
    display: grid;
    gap: 24px;
}

.promo-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.promo-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.promo-card-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 68px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: var(--promo-color);
    color: #FFFFFF;
    font-weight: 800;
    font-size: clamp(12px, 3.5vw, 18px);
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.promo-card-info {
    flex: 1;
}

.promo-card-info h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.promo-card-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.promo-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    margin-top: 6px;
}

.promo-card-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 20px 20px;
}

/* --- Login page (standalone) --- */
.login-page-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    font-family: var(--font-family, 'Inter', -apple-system, system-ui, sans-serif);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
}

.login-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.login-box-header {
    text-align: center;
    padding: 32px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo-bubble {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 0 0 4px rgba(var(--accent-rgb, 0,0,0), 0.1);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-elevated, #fff);
}

.login-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.login-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.login-form {
    padding: 0 24px 24px;
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.input-icon {
    position: relative;
}

.input-icon svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-icon input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 16px;
    color: var(--text);
    min-height: 44px;
    transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.input-icon input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

/* Eye toggle for password fields */
.login-pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: color 0.2s;
}

.login-pwd-toggle:hover {
    color: var(--text);
}

.login-pwd-toggle .icon-eye-off {
    display: none;
}

.login-pwd-toggle.active .icon-eye {
    display: none;
}

.login-pwd-toggle.active .icon-eye-off {
    display: block;
}

.login-footer {
    padding: 16px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.login-error {
    margin: 0 24px 16px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger, #EF4444);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

.login-flash {
    margin: 0 24px 16px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.login-flash-success {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
}

.login-flash-error {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger, #EF4444);
}

.login-flash-info {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.theme-toggle-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: transform var(--t-fast) ease;
}

.theme-toggle-float:active {
    transform: scale(0.9);
}

/* ============================================
   TOUCH & HOVER-LESS DEVICES
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .product-card:hover .product-card-image img {
        transform: none;
    }

    .category-tile:hover .category-tile-img {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.96);
        transition-duration: 0.15s;
    }

    .btn:hover {
        transform: none;
    }

    .btn-favorite {
        opacity: 1;
    }

    .social-link:hover {
        transform: none;
    }

    .promo-banner:hover {
        transform: none;
    }

    .usp-item:hover {
        transform: none;
    }
}

/* ============================================
   HOMEPAGE ENHANCEMENTS — Carousel, Effects
   ============================================ */

/* --- Categories carousel --- */
.categories-carousel {
    position: relative;
    overflow: hidden;
}

.categories-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 16px;
}

.categories-carousel-track::-webkit-scrollbar { display: none; }

.categories-carousel-track .category-tile {
    flex: 0 0 44%;
    scroll-snap-align: start;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    min-width: 150px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

@media (min-width: 600px) {
    .categories-carousel-track .category-tile { flex: 0 0 30%; }
}
@media (min-width: 900px) {
    .categories-carousel-track .category-tile { flex: 0 0 22%; }
}
@media (min-width: 1200px) {
    .categories-carousel-track .category-tile { flex: 0 0 18%; }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
}

.carousel-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
}

/* Carousel nav arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: var(--text);
    transition: all 0.25s var(--ease-out);
}

.carousel-nav:hover {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
    transform: translateY(-50%) scale(1.08);
}

.carousel-nav-prev { left: -8px; }
.carousel-nav-next { right: -8px; }

@media (min-width: 900px) {
    .carousel-nav { display: flex; }
}

/* --- Hero enhancements --- */
@keyframes heroFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, -35px) rotate(-3deg); }
    75% { transform: translate(20px, -15px) rotate(4deg); }
}

@keyframes heroFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, 15px) scale(1.1); }
    66% { transform: translate(15px, -10px) scale(0.95); }
}

@keyframes heroFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-25px, -20px) rotate(180deg); }
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: #FFFFFF;
}

.hero-shape--1 {
    width: 140px;
    height: 140px;
    top: 8%;
    right: 3%;
    animation: heroFloat1 8s ease-in-out infinite;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
    opacity: 0.15;
}

.hero-shape--2 {
    width: 90px;
    height: 90px;
    bottom: 12%;
    left: 6%;
    animation: heroFloat2 10s ease-in-out infinite;
    opacity: 0.1;
}

.hero-shape--3 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 30%;
    border-radius: 16px;
    animation: heroFloat3 12s ease-in-out infinite;
    opacity: 0.06;
}

.hero-shape--4 {
    width: 40px;
    height: 40px;
    top: 20%;
    left: 60%;
    border-radius: 8px;
    animation: heroFloat2 7s ease-in-out infinite reverse;
}

.hero-shape--5 {
    width: 24px;
    height: 24px;
    top: 70%;
    right: 20%;
    border-radius: 4px;
    opacity: 0.06;
    animation: heroFloat3 9s ease-in-out infinite;
}

.hero-shape--6 {
    width: 100px;
    height: 100px;
    bottom: 5%;
    right: 30%;
    border-radius: 50%;
    opacity: 0.04;
    animation: heroFloat1 14s ease-in-out infinite reverse;
}

/* Hero dot pattern */
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle, #FFFFFF 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    animation: heroTextReveal 0.6s var(--ease-out) both;
    letter-spacing: 0.02em;
}

@keyframes heroTextReveal {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content .hero-title {
    animation: heroTextReveal 0.8s var(--ease-out) both;
}

.hero-content .hero-text {
    animation: heroTextReveal 0.8s var(--ease-out) 0.15s both;
}

.hero-content .hero-actions {
    animation: heroTextReveal 0.8s var(--ease-out) 0.3s both;
}

/* --- Products horizontal scroll mobile --- */
.products-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 12px;
}

.products-scroll::-webkit-scrollbar { display: none; }

.products-scroll .product-card {
    flex: 0 0 56%;
    max-width: 200px;
}

@media (min-width: 600px) {
    .products-scroll .product-card { flex: 0 0 40%; max-width: 240px; }
}

@media (min-width: 900px) {
    .products-scroll .product-card { flex: 0 0 22%; max-width: 260px; }
}

@media (min-width: 1200px) {
    .products-scroll .product-card { flex: 0 0 18%; max-width: 280px; }
}

/* --- USP (Unique Selling Points) bar --- */
.usp-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
    border: 1px solid var(--divider);
    position: relative;
    overflow: hidden;
}

/* Decorative accent line on USP items */
.usp-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
    border-radius: 0 2px 2px 0;
}

.usp-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.usp-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.25);
}

.usp-text h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.usp-text p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

@media (min-width: 600px) {
    .usp-bar { grid-template-columns: repeat(4, 1fr); }
}

/* --- Promo banner animated shimmer --- */
@keyframes promoShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: promoShimmer 4s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* Promo banners stagger */
.promo-banners.stagger-in .promo-banner { margin-bottom: 0; }

/* --- Section title decoration --- */
.section-title-decorated {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title-decorated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 2px;
    transition: width 0.5s var(--ease-out);
}

.visible .section-title-decorated::after,
.section-title-decorated:hover::after {
    width: 64px;
}

/* ============================================
   LANDSCAPE (phone)
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    :root {
        --navbar-height: 48px;
        --bottom-nav-height: 0px;
    }

    .hero { padding: 24px 0 32px; }

    .section {
        padding: 20px 0;
    }

    body { padding-bottom: 0; }
}

/* ============================================
   iOS safe area
   ============================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    }

    .site-footer {
        padding-bottom: calc(24px + var(--bottom-nav-height) + env(safe-area-inset-bottom));
    }
}

/* --- Catalog AJAX loading --- */
.catalog-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.catalog-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: catalogSpin 0.7s linear infinite;
}

@keyframes catalogSpin {
    to { transform: rotate(360deg); }
}
