/* ══════════════════════════════════════════════════════════════════
   ADAM SHOES - Design System
   Light, Modern, Dynamic, Premium Sneaker Store
   ══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
    /* Primary - Deep Charcoal */
    --primary: #1a1a1a;
    --primary-light: #2d2d2d;
    --primary-lighter: #404040;

    /* Accent - Vibrant Orange (CTAs, energy) */
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-light: #fff7ed;
    --accent-dark: #c2410c;

    /* Background */
    --bg: #fafafa;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f5f5f5;
    --bg-hover: #f0f0f0;
    --bg-overlay: rgba(0, 0, 0, 0.5);

    /* Text */
    --text-primary: #1a1a1a;
    --text-secondary: #525252;
    --text-tertiary: #6b7280;  /* darker than #a3a3a3 — 4.5:1 on white (WCAG AA) */
    --text-inverse: #ffffff;
    --text-link: #2563eb;

    /* Borders */
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --border-dark: #d4d4d4;
    --border-focus: #f97316;

    /* Status */
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --info: #2563eb;
    --info-bg: #eff6ff;

    /* Sale / Promo */
    --sale: #ef4444;
    --sale-text: #b91c1c;          /* darker — 5.94:1 on white (WCAG AA) */
    --sale-bg: #fef2f2;
    --new-badge: #15803d;          /* darker green — 5.83:1 white-on-bg */
    --bestseller-badge: #b45309;   /* darker amber — 4.76:1 white-on-bg */

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 10px 20px rgba(0, 0, 0, 0.08);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Typography */
    --font-he: 'Heebo', sans-serif;
    --font-en: 'Inter', 'Heebo', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-index scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* Layout */
    --max-width: 1400px;
    --header-height: 110px;
    --announcement-height: 36px;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-he);
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* direction is inherited from <html dir="..."> — set per-language by
       i18n middleware (he → rtl, en → ltr). Hard-coding it here would
       override the dir attribute and break the bidirectional layout. */
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    font-size: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: var(--text-base);
}

ul, ol {
    list-style: none;
}

/* ── Announcement Bar ──────────────────────────────────────────── */
.announcement-bar {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    text-align: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    height: var(--announcement-height);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--border-light);
}

.announcement-bar p {
    margin: 0;
}

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.header-logo img {
    height: 108px;
    width: auto;
    display: block;
    transition: transform var(--transition-base);
}

.header-logo:hover img {
    transform: scale(1.04);
}

.header-logo {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-sale {
    color: var(--sale-text);
    font-weight: 700;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
    position: relative;
    color: var(--text-primary);
}

.header-icon-btn:hover {
    background: var(--bg-elevated);
}

.header-icon-btn svg {
    width: 22px;
    height: 22px;
}

.badge {
    position: absolute;
    top: 2px;
    inset-inline-end: 2px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* ── Search Overlay ────────────────────────────────────────────── */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    z-index: var(--z-modal);
    display: none;
    flex-direction: column;
    align-items: center;
    padding-top: 120px;
    backdrop-filter: blur(10px);
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.search-input {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--text-lg);
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    border-color: var(--accent);
}

.search-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.search-close:hover {
    background: var(--bg-elevated);
}

.search-results {
    width: 100%;
    max-width: 600px;
    padding: var(--space-6);
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--bg-elevated);
}

/* Specificity-bumped via .search-results ancestor so this rule has
   higher specificity than the earlier .header-logo:hover img — silences
   stylelint no-descending-specificity. Visually identical. */
.search-results .search-result-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-info h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-info span {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ── Mobile Menu ───────────────────────────────────────────────── */
.mobile-menu {
    position: fixed;
    top: 0;
    /* Pin to the START of the inline axis so the menu lives on the
       same side as the hamburger button (right in HE, left in EN).
       Off-screen when closed — slides via inset-inline-start instead
       of transform so the direction is auto-correct per dir. */
    inset-inline-start: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    z-index: var(--z-modal);
    /* Combined: was two separate `transition:` properties — the second
       silently overrode the first. Use a comma-separated list so both
       transitions actually animate. */
    transition: inset-inline-start var(--transition-base),
                transform var(--transition-base);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.mobile-menu.active,
.mobile-menu.open {
    inset-inline-start: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border);
}

.mobile-menu-header h3 {
    font-size: var(--text-lg);
    font-weight: 700;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.mobile-menu-close:hover {
    background: var(--bg-elevated);
}

.mobile-menu-nav {
    padding: var(--space-4) 0;
}

.mobile-menu-nav a {
    display: block;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.mobile-menu-nav a:hover {
    background: var(--bg-elevated);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: calc(var(--z-modal) - 1);
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* ── Main Content ──────────────────────────────────────────────── */
.main-content {
    min-height: calc(100vh - var(--header-height) - var(--announcement-height) - 300px);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-12) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin-top: var(--space-2);
    border-radius: 2px;
}

.section-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-dark);  /* #c2410c — 5.94:1 on white (WCAG AA) */
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.section-link:hover {
    color: #9a3412;
}

/* ── Hero Banner ───────────────────────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    color: var(--text-primary);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* .hero-orb base rules live at line ~1536 (canonical). This early
   duplicate was being silently overridden by the later block; removed
   to satisfy css-lint no-duplicate-selectors and to keep cascade
   behaviour explicit. */

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    inset-inline-start: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    bottom: -50px;
    inset-inline-end: -50px;
    animation-delay: -4s;
}

/* Hide the decorative orbs on phones — their 400px/300px size with
   -100px/-50px negative inset extends past the viewport on iOS Safari
   even with overflow-x:hidden upstream, causing the whole layout to
   shift left and leave a white bar on the right. */
@media (max-width: 768px) {
    .hero-orb-1, .hero-orb-2 { display: none; }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-16) var(--space-6);
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
    color: var(--accent-dark);
}

.hero h1 {
    font-size: var(--text-5xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    max-width: 600px;
    color: var(--text-primary);
}

.hero p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 500px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ── Buttons (Minimalist) ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    min-height: 42px;
    letter-spacing: 0.2px;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-dark);
}

.btn-outline:hover {
    background: var(--bg-elevated);
}

.btn-outline-white {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-dark);
}

.btn-outline-white:hover {
    background: var(--bg-elevated);
}

.btn-accent {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    min-height: 34px;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    min-height: 48px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn:disabled {
    /* 0.55 opacity keeps disabled-button text above WCAG AA 4.5:1
       contrast on white. 0.4 was below threshold. */
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── Product Card ──────────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-6);
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-3);
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badges {
    position: absolute;
    top: var(--space-3);
    inset-inline-start: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.product-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.5;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    border: 1px solid currentColor;
    align-self: flex-start;
}

.badge-sale       { color: #b91c1c; }   /* 5.94:1 on white — AA ✓ */
.badge-new        { color: #15803d; }   /* 5.83:1 on white — AA ✓ */
.badge-bestseller { color: #92400e; }   /* 7.7:1 on white — AAA ✓ */

.badge-out-of-stock {
    background: var(--text-tertiary);
    color: white;
}

.product-card-wishlist {
    position: absolute;
    top: var(--space-3);
    inset-inline-end: var(--space-3);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
    opacity: 0;
}

.product-card:hover .product-card-wishlist {
    opacity: 1;
}

.product-card-wishlist:hover {
    background: var(--sale);
    color: white;
}

.product-card-wishlist.active {
    background: var(--sale);
    color: white;
    opacity: 1;
}

.product-card-wishlist svg {
    width: 18px;
    height: 18px;
}

.product-card-info {
    padding: var(--space-4);
}

.product-card-brand {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-1);
}

.product-card-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card-name a:hover {
    color: var(--accent);
}

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.price-current {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-en);
}

.price-original {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-decoration: line-through;
    font-family: var(--font-en);
}

.price-discount {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--sale-text);
}

/* ── Category Cards ────────────────────────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 220px));
    gap: var(--space-4);
    justify-content: center;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    text-align: center;
    padding: var(--space-8) var(--space-4);
    border: 1px solid var(--border-light);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.category-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: var(--accent-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.category-card-icon svg {
    width: 28px;
    height: 28px;
}

.category-card h3 {
    font-size: var(--text-base);
    font-weight: 700;
}

/* ── Brands Strip ──────────────────────────────────────────────── */
.brands-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-10);
    flex-wrap: wrap;
    padding: var(--space-8) 0;
}

.brand-logo {
    opacity: 0.4;
    transition: opacity var(--transition-fast);
    filter: grayscale(100%);
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.brand-logo img {
    height: 40px;
    width: auto;
}

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-label .required {
    color: var(--danger);
    margin-right: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-input.error,
.form-select.error {
    border-color: var(--danger);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--danger);
    margin-top: var(--space-1);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* ── Toast Notifications ───────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + var(--announcement-height) + var(--space-4));
    inset-inline-end: var(--space-4);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
}

.toast {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 300px;
    max-width: 450px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    border-inline-start: 4px solid var(--info);
}

.toast.toast-success { border-inline-start-color: var(--success); }
.toast.toast-error { border-inline-start-color: var(--danger); }
.toast.toast-warning { border-inline-start-color: var(--warning); }

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast-message {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 500;
}

.toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0.5;
}

.toast-close:hover {
    opacity: 1;
    background: var(--bg-elevated);
}

@keyframes toastSlideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

/* ── Confirm Dialog ────────────────────────────────────────────── */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.confirm-overlay.active {
    display: flex;
}

.confirm-dialog {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: confirmFadeIn 0.2s ease-out;
}

@keyframes confirmFadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.confirm-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    background: var(--warning-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warning);
}

.confirm-icon svg {
    width: 28px;
    height: 28px;
}

.confirm-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.confirm-message {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-white);
    color: var(--text-primary);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: var(--space-16);
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

.footer-col img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.footer-col h3 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.footer-col p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-col a {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding: var(--space-1) 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.footer-social a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.footer-bottom a {
    color: var(--accent);
}

/* ── Newsletter ────────────────────────────────────────────────── */
.newsletter-section {
    background: var(--bg-elevated);
    padding: var(--space-12) 0;
    text-align: center;
}

.newsletter-section h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.newsletter-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form .form-input {
    flex: 1;
}

/* ── Empty State ───────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-6);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.empty-state-icon svg {
    width: 36px;
    height: 36px;
}

.empty-state h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

/* ── Loading ───────────────────────────────────────────────────── */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    padding: var(--space-4) 0;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--text-tertiary);
}

/* ── Tags / Status Badges ──────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.status-badge.success { background: var(--success-bg); color: var(--success); }
.status-badge.danger { background: var(--danger-bg); color: var(--danger); }
.status-badge.warning { background: var(--warning-bg); color: var(--warning); }
.status-badge.info { background: var(--info-bg); color: var(--info); }
.status-badge.primary { background: var(--accent-light); color: var(--accent); }
.status-badge.secondary { background: var(--bg-elevated); color: var(--text-secondary); }

/* ── Utilities ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.font-en { font-family: var(--font-en); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Page title */
.page-header {
    padding: var(--space-8) 0 var(--space-4);
}

.page-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary);
}

.page-subtitle {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-top: var(--space-2);
}

/* ── Product Card Link ────────────────────────────────────────── */
.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* ── Hero Banner (Homepage) ───────────────────────────────────── */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #fafafa 0%, #f0f4f8 50%, #e8f0fe 100%);
    color: var(--text-primary);
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -100px;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    bottom: -80px;
    left: -80px;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: #8b5cf6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
    opacity: 0.06;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 740px;
    text-align: center;
}

.hero-logo {
    width: 100%;
    max-width: 660px;
    height: auto;
    margin: 0 auto var(--space-6);
    display: block;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.12));
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.hero-cta {
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-10);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
    transition: all 0.25s ease !important;
}
.hero-cta:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.45) !important;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        padding: var(--space-8) var(--space-4);
        gap: var(--space-6);
    }
    .hero-image {
        max-width: 260px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-logo {
        max-width: 360px;
    }
}

/* ── Home Sections ────────────────────────────────────────────── */
.home-section {
    padding: var(--space-12) 0;
}

.section-alt {
    background: var(--bg-elevated);
}

.section-header-center {
    justify-content: center;
    text-align: center;
}

.section-header-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* ── Trust Badges ─────────────────────────────────────────────── */
.trust-badges {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-6) 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    justify-content: center;
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.trust-text strong {
    display: block;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
}

.trust-text span {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

/* ── Category Cards (Homepage) ────────────────────────────────── */
.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--bg-elevated);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
}

.category-name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Brands Section (Homepage) ────────────────────────────────── */
.brands-section {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-white);
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    min-width: 140px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.brand-item img {
    height: 50px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.brand-name {
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
}

.brand-text {
    font-family: var(--font-en);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* ── Policy Hero (shared for terms/privacy/shipping/returns) ─── */
.policy-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}
.policy-hero-text { flex: 1; text-align: start; }
.policy-hero-icon { flex: 0 0 120px; display: flex; justify-content: center; }
.policy-hero-icon svg {
    width: 110px;
    height: 110px;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.08));
}
@media (max-width: 768px) {
    .policy-hero .container { flex-direction: column-reverse; text-align: center; }
    .policy-hero-text { text-align: center; }
    .policy-hero-icon { flex: 0 0 auto; }
    .policy-hero-icon svg { width: 80px; height: 80px; }
}

/* ── Newsletter (Homepage) ────────────────────────────────────── */
.newsletter-box {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-8);
    text-align: center;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-text h3 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
    color: var(--primary);
}

.newsletter-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    font-size: var(--text-base);
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
}

.newsletter-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    min-height: 44px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
    border-color: var(--accent);
}

.newsletter-btn {
    white-space: nowrap;
}

/* ── Empty State (Homepage) ───────────────────────────────────── */
.empty-state svg {
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

/* ── Static Content Pages ─────────────────────────────────────── */
.static-content {
    max-width: 800px;
    padding-bottom: var(--space-12);
    line-height: 1.8;
    color: var(--text-secondary);
}

.static-content h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
    margin: var(--space-8) 0 var(--space-3);
}

.static-content h2:first-of-type {
    margin-top: var(--space-6);
}

.static-content p {
    margin-bottom: var(--space-4);
}

.static-content ul, .static-content ol {
    padding-inline-start: var(--space-6);
    margin-bottom: var(--space-4);
}

.static-content ul { list-style: disc; }
.static-content ol { list-style: decimal; }

.static-content li {
    padding: var(--space-1) 0;
}

.static-content a {
    color: var(--accent);
    font-weight: 500;
}

.static-content a:hover {
    color: var(--accent-hover);
}

/* ════════════════════════════════════════════════════════════════
   PAYMENT METHODS (checkout)
   ════════════════════════════════════════════════════════════════ */
.payment-methods-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3); margin-top: var(--space-2);
}
.payment-option { cursor: pointer; display: block; }
.payment-option input { display: none; }
.payment-option-card {
    border: 2px solid var(--border-light); border-radius: 14px;
    padding: var(--space-5) var(--space-4);
    text-align: center;
    transition: all 0.2s; background: var(--bg-white);
    height: 100%; min-height: 180px;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.payment-logo {
    height: 56px; width: 100%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-3);
}
.payment-logo img {
    max-height: 48px; max-width: 100px; object-fit: contain;
}
.payment-option-card strong {
    display: block; margin-bottom: 4px;
    font-size: var(--text-base); color: var(--text-primary);
}
.payment-option-card span {
    font-size: var(--text-xs); color: var(--text-secondary);
    display: block; line-height: 1.5;
}
.payment-option:hover .payment-option-card { border-color: var(--border-dark); }
.payment-option input:checked + .payment-option-card {
    border-color: var(--accent); background: var(--accent-light);
    box-shadow: 0 0 0 4px rgba(249,115,22,0.08);
}

/* Mobile + tablet (≤1280px): compact iOS-Wallet / Stripe-checkout
   style. Each option is a slim row (~52px) with logo on the
   inline-start, label centered, and a clear circular indicator on
   the inline-end so the user immediately knows what's selected.
   ~6×54px + gaps ≈ 340px total — half the previous scroll.
   IMPORTANT: this block MUST come AFTER the general .payment-option-
   card rules above. CSS source order is the tiebreaker for same-
   specificity rules; if this @media block came earlier, the later
   general `.payment-option-card span { display: block }` would beat
   our `display: none` even when the @media matched. */
@media (max-width: 1280px) {
    .payment-methods-grid { grid-template-columns: 1fr; gap: 8px; }
    .payment-option-card {
        min-height: 0;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        padding: 10px 14px;
        text-align: start;
        border-width: 1.5px;
        border-radius: 12px;
        position: relative;
    }
    .payment-logo {
        width: 48px; height: 32px;
        margin-bottom: 0;
        flex-shrink: 0;
        justify-content: flex-start;
    }
    .payment-logo img,
    .payment-logo svg { max-height: 26px; max-width: 48px; }
    .payment-option-card strong {
        margin-bottom: 0;
        font-size: var(--text-base);
        font-weight: 600;
        flex: 1;
        min-width: 0;
    }
    .payment-option-card span { display: none; }
    /* Circular radio indicator on the inline-end — fills with brand
       orange + checkmark when selected. */
    .payment-option-card::after {
        content: "";
        flex-shrink: 0;
        width: 20px; height: 20px;
        border: 2px solid #cbd5e1;
        border-radius: 50%;
        transition: all 0.15s ease;
    }
    .payment-option input:checked + .payment-option-card::after {
        background: var(--accent);
        border-color: var(--accent);
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
        background-size: 12px 12px;
        background-position: center;
        background-repeat: no-repeat;
    }
    .payment-option input:checked + .payment-option-card {
        box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
    }
    /* Hide the wide credit-card SVG mock — too wide for the slim row. */
    .payment-option-card .payment-logo svg[width="46"] { display: none; }
    .payment-option:first-child .payment-logo::before {
        content: "";
        width: 32px; height: 20px;
        background: linear-gradient(135deg, #1e293b, #475569);
        border-radius: 4px;
        box-shadow: inset 0 -6px 0 rgba(255,255,255,0.1);
    }
}

/* ════════════════════════════════════════════════════════════════
   SALE BANNER (under hero on homepage)
   ════════════════════════════════════════════════════════════════ */
.sale-banner-wrap {
    padding: var(--space-6) var(--space-6) 0;
    max-width: var(--max-width);
    margin: 0 auto;
}
.sale-banner {
    position: relative;
    overflow: hidden;
    color: white;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.sale-banner-red    { background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%); }
.sale-banner-orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%); }
.sale-banner-purple { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%); }
.sale-banner-blue   { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%); }
.sale-banner-green  { background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%); }
.sale-banner-bg-effects {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.sale-spark {
    position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.4;
    animation: sparkFloat 6s ease-in-out infinite;
}
.sale-spark-1 { width: 240px; height: 240px; background: rgba(255,255,255,0.5); top: -120px; right: 10%; }
.sale-spark-2 { width: 180px; height: 180px; background: rgba(255,255,255,0.3); bottom: -90px; left: 15%; animation-delay: -2s; }
.sale-spark-3 { width: 120px; height: 120px; background: rgba(255,255,255,0.4); top: 30%; left: 50%; animation-delay: -4s; }
@keyframes sparkFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}
.sale-banner-inner {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
    padding: var(--space-8) var(--space-6); position: relative; z-index: 1; flex-wrap: wrap;
}
.sale-banner-content { flex: 1; min-width: 280px; }
.sale-badge {
    display: inline-block; background: white; color: #1a1a1a; padding: 4px 14px;
    border-radius: 999px; font-weight: 900; font-size: var(--text-xs); letter-spacing: 2px;
    margin-bottom: var(--space-3);
}
.sale-banner-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900;
    line-height: 1.1; margin-bottom: var(--space-2); letter-spacing: -0.5px;
}
.sale-banner-subtitle {
    font-size: var(--text-base); opacity: 0.95; line-height: 1.5; max-width: 600px;
}
.sale-banner-cta {
    display: inline-flex; align-items: center; gap: var(--space-2);
    background: white; color: #1a1a1a; padding: var(--space-4) var(--space-8);
    border-radius: 999px; font-weight: 700; font-size: var(--text-base);
    text-decoration: none; transition: all var(--transition-base);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); white-space: nowrap;
}
.sale-banner-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.25); }

/* Confetti */
.confetti-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti {
    position: absolute; top: -16px; width: 8px; height: 14px; opacity: 0.85;
    animation: confettiFall linear infinite;
    transform-origin: center;
}
.confetti.c1 { background: #fbbf24; }
.confetti.c2 { background: #f472b6; }
.confetti.c3 { background: #60a5fa; }
.confetti.c4 { background: #34d399; }
.confetti.c5 { background: #ffffff; }
.confetti:nth-child(odd) { width: 10px; height: 10px; border-radius: 50%; }
.confetti:nth-child(3n) { width: 6px; height: 18px; }
@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.95; }
    100% { transform: translateY(800%) rotate(720deg); opacity: 0; }
}
/* No prefers-reduced-motion override needed here anymore — a11y.css
   stopped honouring the OS-level preference (see comment there). The
   per-site a11y toggle (html.a11y-reduce-motion *) will still stop
   confetti when a user explicitly clicks "stop animations". */

/* ── Contact section on homepage ─────────────────────── */
.contact-home-section { background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%); }
.contact-home-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10);
    background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: 24px; padding: var(--space-10); box-shadow: var(--shadow-md);
    max-width: 1100px; margin: 0 auto;
}
.contact-home-info h2 { letter-spacing: -0.5px; }
.contact-home-details { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }
.contact-home-detail {
    display: flex; align-items: center; gap: var(--space-3);
    color: var(--text-primary); text-decoration: none;
    font-size: var(--text-sm);
}
.contact-home-detail svg { color: var(--accent); flex-shrink: 0; }
a.contact-home-detail:hover { color: var(--accent); }
.contact-home-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.contact-home-form .form-group { margin-bottom: var(--space-4); }
@media (max-width: 800px) {
    .contact-home-card { grid-template-columns: 1fr; padding: var(--space-6); }
    .contact-home-form .form-row { grid-template-columns: 1fr; }
}

/* ── Minimalist Hot Sales button — outline style, no gradient ── */
.hot-sales-cta {
    background: transparent !important;
    border: 1.5px solid #1a1a1a !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
    padding: 14px 36px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.2px;
    border-radius: 999px !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hot-sales-cta:hover {
    background: #1a1a1a !important;
    color: #ffffff !important;
    transform: none !important;
}

/* Make .btn-primary on product page warmer (not pure black) */
.product-actions .btn-primary,
.btn-add-to-cart {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border: none !important;
    color: white !important;
    transition: all 0.2s ease !important;
}
.product-actions .btn-primary:hover,
.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════════
   HOT SALES section
   ════════════════════════════════════════════════════════════════ */
.hot-sales-section {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.hot-fire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-inline-end: 4px;
    animation: fireFlicker 1.6s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(249, 115, 22, 0.35));
}
.hot-fire svg { display: block; }
@keyframes fireFlicker {
    0%, 100% { transform: scale(1) rotate(-1.5deg); }
    50% { transform: scale(1.08) rotate(1.5deg); }
}
.section-link-hot { color: var(--accent) !important; font-weight: 700 !important; }
/* .hot-sales-cta — see minimalist outline rule above (~line 2085).
   Old gradient/glow version removed 2026-06-14 per Noy. */

/* ════════════════════════════════════════════════════════════════
   TESTIMONIALS section
   ════════════════════════════════════════════════════════════════ */
.testimonials-section {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}
.testimonials-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4);
    max-width: 1100px; margin: 0 auto;
}
.testimonial-card {
    border-radius: 16px; overflow: hidden; cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all var(--transition-base);
    aspect-ratio: 3/4; background: #f3f4f6;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.15); }
.testimonial-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (max-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } .testimonial-card:nth-child(4), .testimonial-card:nth-child(5) { display: none; } }
/* On mobile we switch to a swipeable horizontal carousel instead of hiding cards. */

.testimonial-lightbox {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92);
    z-index: 9999; align-items: center; justify-content: center; padding: var(--space-6);
    cursor: zoom-out;
}
.testimonial-lightbox.open { display: flex; }
.testimonial-lightbox-img {
    max-width: 90vw; max-height: 90vh; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.testimonial-close {
    position: absolute; top: 24px; inset-inline-end: 24px;
    background: rgba(255,255,255,0.1); border: none; color: white;
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px); transition: background 0.2s;
}
.testimonial-close:hover { background: rgba(255,255,255,0.25); }

/* ════════════════════════════════════════════════════════════════
   FOLLOW US section
   ════════════════════════════════════════════════════════════════ */
.follow-us-section {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}
.social-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4); max-width: 1100px; margin: 0 auto;
}
.social-card {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-4) var(--space-4);
    border-radius: 16px;
    background: var(--bg-white); border: 1px solid var(--border-light);
    text-decoration: none; transition: all var(--transition-base);
    color: var(--text-primary); position: relative; overflow: hidden;
    min-width: 0;
}
.social-card::before {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s;
    background: linear-gradient(180deg, rgba(249,115,22,0.04), rgba(249,115,22,0.08));
}
.social-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); border-color: var(--accent); }
.social-card:hover::before { opacity: 1; }
.social-card > * { position: relative; z-index: 1; }
.social-icon {
    width: 48px; height: 48px; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
    transition: transform 0.25s;
}
.social-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.social-card:hover .social-icon { transform: scale(1.08); }
.social-text { min-width: 0; flex: 1 1 0; overflow: hidden; }
.social-text strong {
    display: block; font-size: var(--text-sm); font-weight: 700; margin-bottom: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.social-text span {
    display: block;
    font-size: var(--text-xs); color: var(--text-secondary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    direction: ltr; text-align: start;
}
.social-card:hover .social-text span { color: var(--text-secondary); }
.social-card:hover .social-text strong { color: var(--text-primary); }

.social-instagram { --social-gradient: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.social-tiktok    { --social-gradient: linear-gradient(135deg, #000, #25f4ee 50%, #fe2c55); }
.social-whatsapp  { --social-gradient: linear-gradient(135deg, #25d366, #128c7e); }
.social-facebook  { --social-gradient: linear-gradient(135deg, #1877f2, #0d5dbf); }
.social-email     { --social-gradient: linear-gradient(135deg, #f97316, #ea580c); }

/* ════════════════════════════════════════════════════════════════
   PRODUCT REVIEWS (on product page)
   ════════════════════════════════════════════════════════════════ */
.reviews-block { padding: var(--space-10) 0; border-top: 1px solid var(--border-light); }
.reviews-summary {
    display: flex; align-items: center; gap: var(--space-6); margin-bottom: var(--space-6); flex-wrap: wrap;
}
.reviews-rating-big { font-size: 3rem; font-weight: 900; line-height: 1; color: var(--accent); }
.reviews-stars { color: #f59e0b; font-size: 1.4rem; letter-spacing: 2px; }
.reviews-count { color: var(--text-secondary); font-size: var(--text-sm); }
.review-list-public { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); }
.review-item-public {
    padding: var(--space-5); background: var(--bg-elevated);
    border-radius: 12px; border: 1px solid var(--border-light);
}
.review-item-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-2); flex-wrap: wrap; gap: var(--space-2); }
.review-author { font-weight: 700; }
.review-verified { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); color: #047857; background: #ecfdf5; padding: 2px 8px; border-radius: 4px; margin-inline-start: 8px; }
.review-date { font-size: var(--text-xs); color: var(--text-tertiary); }
.review-stars-small { color: #f59e0b; font-size: 0.95rem; letter-spacing: 1px; margin-bottom: var(--space-2); }
.review-title-public { font-weight: 700; margin-bottom: var(--space-2); }
.review-body-public { color: var(--text-primary); line-height: 1.7; }

.review-form-card {
    padding: var(--space-6); background: var(--bg-white);
    border: 2px solid var(--border-light); border-radius: 16px;
}
.review-form-card h3 { margin-bottom: var(--space-4); }
.star-rating-input { display: flex; flex-direction: row-reverse; gap: 6px; justify-content: flex-end; margin-bottom: var(--space-4); }
.star-rating-input input { display: none; }
.star-rating-input label {
    font-size: 2rem; cursor: pointer; color: #d1d5db;
    transition: color 0.15s; line-height: 1;
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label { color: #f59e0b; }
.review-success {
    background: #d1fae5; color: #065f46; padding: var(--space-4);
    border-radius: 8px; margin-bottom: var(--space-4); font-weight: 500;
}

@media (max-width: 768px) {
    .sale-banner-inner { flex-direction: column; align-items: flex-start; text-align: start; padding: var(--space-6) var(--space-4); }
    .sale-banner-cta { align-self: stretch; justify-content: center; }
    .social-grid { grid-template-columns: 1fr; }
}

/* ── Hero Slider (homepage carousel) ────────────────────────────
   Editorial / minimal style chosen via UI/UX Pro Max:
   "Hero-Centric Design" pattern — full-bleed visual with overlaid
   minimal text + dominant CTA. Auto-rotating, swipe-friendly,
   honors prefers-reduced-motion (no auto-advance).
*/
.hero-slider {
    position: relative;
    width: 100%;
    height: clamp(440px, 70vh, 720px);
    overflow: hidden;
    background: #0f172a;
    isolation: isolate;
}
.hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}
.hero-slide[data-active="1"] {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #0f172a;  /* fallback if blurred-fill img fails to load */
}
/* Hero foreground image fills the slider area. The per-slide focal
   point (set in admin) drives object-position so the crop preserves
   whatever content matters — face, product, logo — instead of always
   defaulting to dead center. CSS custom props --focal-d / --focal-m
   are injected on each .hero-slide element. */
.hero-slide-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slide-bg img.hero-slide-fg,
.hero-slide-bg picture img {
    object-position: var(--focal-d, 50% 50%);
}
@media (max-width: 768px) {
    .hero-slide-bg img.hero-slide-fg,
    .hero-slide-bg picture img {
        object-position: var(--focal-m, 50% 50%);
    }
}
.hero-slide-bg img[data-hero-bg-fill] {
    object-fit: cover;
    object-position: center;
    filter: blur(28px) saturate(1.05) brightness(.85);
    transform: scale(1.1);  /* hide blur edge artefacts */
    z-index: -1;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%);
    z-index: -1;
    pointer-events: none;
}
.hero-slide-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-6) var(--space-12);
    color: white;
    text-align: start;
    z-index: 1;
}
.hero-slide-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-3);
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-slide-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 400;
    line-height: 1.55;
    margin: 0 0 var(--space-6);
    max-width: 36em;
    opacity: 0.92;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: #0f172a;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.hero-slide-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.3); }
.hero-slide-cta svg { transition: transform .2s; }
.hero-slide-cta:hover svg { transform: translateX(-3px); }

/* prev / next nav arrows */
/* Hero nav buttons — clean, professional design inspired by Nike /
   Apple's product carousels. Larger touch target, subtle frost-glass
   background, refined chevron icon with the right weight. */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    opacity: 0;
    visibility: hidden;
}
/* Show on hero hover for desktop, always visible on mobile (touch). */
.hero-slider:hover .hero-nav,
.hero-nav:focus-visible {
    opacity: 1;
    visibility: visible;
}
@media (hover: none) {
    .hero-nav { opacity: 1; visibility: visible; }
}
.hero-nav:hover {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}
.hero-nav:active {
    transform: translateY(-50%) scale(0.94);
}
.hero-nav svg {
    width: 22px; height: 22px;
    stroke-width: 2.2;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

/* Position + arrow direction.

   The user requested the arrows be flipped from how they originally
   rendered. New convention:
   - Right-side button: chevron points LEFT (←) — "click to bring the
     left slide here" / "go forward in RTL reading"
   - Left-side button: chevron points RIGHT (→) — "click to bring the
     right slide here" / "go back in RTL reading"

   In LTR (EN/RU): "back" is right-side, "forward" is left-side, which
   matches typical desktop image-viewer keyboard convention where
   pressing ← goes to the previous image.

   Implementation: no flip needed. The SVG paths in the HTML stay as
   prev=< / next=>, and they sit at start/end positions that auto-flip
   with dir. So in HE/RTL the visual ends up: right-side=<, left-side=>
   (chevrons point INWARD toward the slide content the click reveals).
*/
.hero-nav-prev { inset-inline-start: 16px; }
.hero-nav-next { inset-inline-end: 16px; }

/* dots */
.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-dot {
    /* The "dot" is actually a small pill that becomes a progress
       track when active — width grows on activation and an inner
       <span> fills left→right (RTL: right→left) over the autoplay
       interval, mirroring the END Clothing pattern. */
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: width .25s, background .2s;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.hero-dot:hover { background: rgba(255,255,255,0.55); }
.hero-dot.active {
    background: rgba(255,255,255,0.35);
    width: 64px;
}
.hero-dot-fill {
    /* The bar grows 0%→100% via a CSS keyframe animation that hero-
       slider.js applies inline. We use animation (not transition)
       because transitions need a paint of the "before" state to
       trigger reliably, and on first page-load the browser may batch
       the 0%→100% change into one frame and skip the animation — that
       broke the first slide's progress bar. Animation is declarative
       and doesn't have that gotcha. */
    position: absolute;
    inset: 0;
    width: 0%;
    background: white;
    border-radius: inherit;
    pointer-events: none;
}
@keyframes hero-dot-progress {
    from { width: 0%; }
    to   { width: 100%; }
}

@media (max-width: 768px) {
    .hero-slider { height: clamp(360px, 58vh, 520px); }
    .hero-slide-content { padding: var(--space-6) var(--space-4) var(--space-8); }
    .hero-slide-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
    .hero-slide-subtitle { font-size: 0.95rem; margin-bottom: var(--space-4); }
    .hero-slide-cta { padding: 11px 22px; font-size: 14px; }
    /* Mobile arrows — slightly smaller, always visible (touch devices
       don't have hover). Hugged to the edges so they don't overlap
       the slide text. */
    .hero-nav {
        display: flex;
        width: 44px;
        height: 44px;
        background: rgba(15, 23, 42, 0.55);
        opacity: 1;
        visibility: visible;
    }
    .hero-nav-prev { inset-inline-start: 10px; }
    .hero-nav-next { inset-inline-end: 10px; }
    .hero-nav svg { width: 18px; height: 18px; stroke-width: 2.4; }
    .hero-dots { bottom: 14px; gap: 6px; }
    .hero-dot { width: 22px; height: 3px; }
    .hero-dot.active { width: 48px; }
}

/* a11y — disable autoplay for users who prefer reduced motion. The JS
   reads `data-autoplay` and the matchMedia query below to skip the
   timer; this CSS is the visual fallback. */
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
}

/* ── Horizontal-scroll product row (mobile) ──────────────────
   .products-grid.scroll-row stays a CSS grid on desktop but
   converts to a snap-to-start horizontal scroller on mobile.
   Used by the prominent "החדשים באתר" section under the hero.
*/
@media (max-width: 768px) {
    .products-grid.scroll-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-3);
        padding-bottom: var(--space-3);
        margin: 0 calc(-1 * var(--space-4));
        padding-inline: var(--space-4);
        scrollbar-width: none;
    }
    .products-grid.scroll-row::-webkit-scrollbar { display: none; }
    .products-grid.scroll-row > * {
        flex: 0 0 78%;
        max-width: 320px;
        scroll-snap-align: start;
    }
}

/* Optional desktop tweak — when scroll-row mode is set, keep grid
   but slightly larger cards to feel like a featured row. */
@media (min-width: 769px) {
    .new-arrivals-feature .products-grid.scroll-row {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* ── Catalog sidebar quick-filter accents (NEW / SALE) ───────
   These are .filter-option links inside the catalog sidebar — they
   reuse the standard filter-option style and add small visual
   accents (a pulsing green dot for NEW, an amber warm tint for SALE)
   so the special filters are visually distinct from regular
   categories.
*/
.qf-link.qf-new .qf-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.18);
    margin-inline-end: 6px;
    animation: qf-pulse 1.6s ease-in-out infinite;
    vertical-align: middle;
}
.qf-link.qf-new.active .qf-dot {
    background: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,.3);
}
.qf-link.qf-sale {
    color: #92400e;
}
.qf-link.qf-sale.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border-color: #ea580c;
}
@keyframes qf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ── Mobile: lock viewport horizontally ───────────────────────
   Various sections (carousels, brands strip, banners with wide
   gradients) can sometimes overflow the viewport edge on narrow
   screens and let the page slide left-right when the user swipes
   vertically. Hard-clip at the html/body level on small screens.
*/
@media (max-width: 768px) {
    /* overflow:clip (vs hidden) prevents iOS Safari from creating an
       implicit horizontal scroll context when a child overflows. With
       hidden, iOS still allows the page to "slide" left a few pixels;
       clip is a harder boundary that won't let the layout drift. */
    html, body { overflow-x: clip; max-width: 100%; }
    /* The horizontal-scroll product row is allowed to scroll INSIDE
       its own container — the rule above clips the page chrome,
       not the legitimate inner scroller. */
    .products-grid.scroll-row { overflow-x: auto; }
}


/* ── Language switcher ──────────────────────────────────────
   Header dropdown that posts to /set-language. Closed by default;
   opens on click via a CSS class toggle (no JS dependency beyond
   the click handler in base.html).
*/
.lang-switcher { position: relative; display: inline-flex; }
.lang-switcher-toggle { background: transparent; border: none; padding: 8px; cursor: pointer; color: inherit; }
.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    background: white;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.12);
    min-width: 160px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s, visibility .15s, transform .15s;
    z-index: 100;
}
.lang-switcher.open .lang-switcher-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.lang-switcher-form { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.lang-switcher-option {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    background: transparent; border: none;
    font: inherit; font-size: 14px; font-weight: 500;
    color: var(--text-primary, #0f172a);
    text-align: start;
    border-radius: 7px;
    cursor: pointer;
    transition: background .12s;
}
.lang-switcher-option:hover { background: var(--bg-secondary, #f8fafc); }
.lang-switcher-option.is-active {
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text-primary, #0f172a);
    font-weight: 700;
}
.lang-flag { font-size: 18px; line-height: 1; }

/* Real SVG flag images — used in language switcher (desktop + mobile),
   the header toggle button, and the profile preferences card. Using
   images instead of regional-indicator emoji because Windows/older
   browsers render those emojis as plain "IL"/"US" letters. */
.lang-flag-img {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.active-lang-flag {
    width: 26px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    object-fit: cover;
    display: block;
}
.lang-flag-btn { padding: 6px !important; }

/* Mobile menu lang switcher — inline, no dropdown */
.mobile-lang-switcher { display: flex; gap: 6px; margin: 8px 24px; padding: 0; }
.mobile-lang-switcher button {
    flex: 1;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border, #e5e7eb);
    padding: 10px 12px;
    border-radius: 8px;
    font: inherit; font-size: 14px; font-weight: 500;
    cursor: pointer;
    color: var(--text-primary, #0f172a);
}
.mobile-lang-switcher button.is-active {
    background: var(--text-primary, #0f172a);
    color: white;
    border-color: var(--text-primary, #0f172a);
    font-weight: 700;
}


/* ── Bidirectional support (HE RTL + EN LTR) ────────────────
   The whole stylesheet now uses CSS logical properties so the browser
   auto-flips layout based on <html dir>. No physical-side selectors
   needed — `text-align: start` resolves to right in RTL and left in
   LTR; same for `margin-inline-start/end`, `padding-inline-*`,
   `inset-inline-*`, `border-inline-*`. This is how Nike, Adidas, END,
   etc. do bidirectional support — one CSS, two directions, automatic.

   Only English-specific font swap stays here: Heebo is HE-tuned, so
   English gets Inter as primary.
*/
body.lang-en { font-family: 'Inter', 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body.lang-en .price,
body.lang-en .catalog-count { font-feature-settings: "tnum"; }



/* Currency switcher reuses .lang-switcher styles. The toggle button
   shows the active symbol (₪/$/€) as text in monospace-ish weight. */
.currency-switcher .currency-symbol-btn {
    font-size: 18px; font-weight: 700;
    font-family: var(--font-en, system-ui);
    line-height: 1;
}
