/* ═══════════════════════════════════════════════════════════════
   X DARK — Design System v5
   ═══════════════════════════════════════════════════════════════ */

:root {
    --xd-black: #0A0A0A;
    --xd-gold: #C9A227;
    --xd-gold-light: #E8C547;
    --xd-gold-dim: #9A7B1A;
    --xd-red: #E53935;
    --xd-gray: #9E9E9E;
    --xd-green: #4CAF50;

    --bg: #0A0A0A;
    --bg-elevated: #121212;
    --bg-card: #181818;
    --bg-input: #141414;
    --text: #F5F5F5;
    --text-muted: #A0A0A0;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --header-bg: rgba(10, 10, 10, 0.92);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-gold: 0 4px 24px rgba(201, 162, 39, 0.15);

    --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    --sidebar-w: 260px;
    --header-h: 64px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg: #F5F5F3;
    --bg-elevated: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-input: #F0F0EE;
    --text: #141414;
    --text-muted: #666666;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --header-bg: rgba(255, 255, 255, 0.92);
    --xd-black: #F5F5F3;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 4px 20px rgba(154, 123, 26, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    font-size: 15px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.rtl { direction: rtl; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--xd-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--xd-gold-light); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    gap: var(--space-md);
    min-height: var(--header-h);
}

.logo img, .brand-logo { height: 42px; width: auto; max-width: 140px; object-fit: contain; }
[data-theme="dark"] .brand-logo--theme-light { display: none !important; }
[data-theme="light"] .brand-logo--theme-dark { display: none !important; }

/* Pill navigation */
.nav-pill {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    justify-content: center;
    max-width: 680px;
}
.nav-pill-inner {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nav-pill-link {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}
.nav-pill-link:hover,
.nav-pill-link.is-active,
.nav-dropdown.open .nav-dropdown-trigger {
    color: var(--text);
    background: rgba(201, 162, 39, 0.12);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2);
}
.nav-pill-link.is-active { color: var(--xd-gold); }
.nav-pill-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--xd-gold);
    border: 1px solid rgba(201, 162, 39, 0.35);
    background: rgba(201, 162, 39, 0.08);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    white-space: nowrap;
}
.nav-pill-cta:hover {
    background: rgba(201, 162, 39, 0.16);
    border-color: var(--xd-gold);
    transform: translateY(-1px);
}
.nav-pill-cta.is-active {
    background: rgba(201, 162, 39, 0.2);
    border-color: var(--xd-gold);
}
.nav-chevron {
    transition: transform 0.2s ease;
    opacity: 0.7;
}
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown { position: relative; }
.nav-mega-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: min(560px, 92vw);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 120;
}
.nav-dropdown.open .nav-mega-panel,
.nav-dropdown:hover .nav-mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-mega-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.25rem;
}
.nav-mega-feature {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.14), rgba(201, 162, 39, 0.04));
    border: 1px solid rgba(201, 162, 39, 0.2);
}
.nav-mega-badge {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--xd-gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.nav-mega-feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
}
.nav-mega-feature p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.85rem;
}
.nav-mega-links h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--xd-gold);
    margin-bottom: 0.65rem;
    font-family: var(--font-body);
    font-weight: 600;
}
.nav-mega-links a {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.35rem 0;
    transition: color var(--transition), transform var(--transition);
}
.nav-mega-links a:hover {
    color: var(--xd-gold);
    transform: translateX(3px);
}

.site-header.is-scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.site-header.is-scrolled .header-inner {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}
.site-header.is-scrolled .logo img { height: 36px; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.header-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.header-panel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-user-name {
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-nav-user {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: var(--radius-sm);
}
.mobile-nav-user-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.mobile-nav-user-role {
    display: block;
    font-size: 0.8rem;
    color: var(--xd-gold);
}
.mobile-nav-panel { color: var(--xd-gold) !important; font-weight: 600; }
.mobile-nav-logout { color: var(--xd-red) !important; }

.icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color var(--transition), background var(--transition);
}
.icon-btn:hover { border-color: var(--xd-gold); color: var(--xd-gold); }

.lang-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; }

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--xd-gold);
    color: #000;
    font-size: 0.62rem;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 4px;
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* Mobile nav */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 200;
    backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-elevated);
    z-index: 201;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    border-left: 1px solid var(--border);
    overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); }
.mobile-nav-logo { height: 36px; }

.mobile-nav-promo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.1rem;
    margin-bottom: var(--space-md);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.06));
    border: 1px solid rgba(201, 162, 39, 0.25);
    color: var(--text);
}
.mobile-nav-promo-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--xd-gold);
}
.mobile-nav-promo strong { flex: 1; font-size: 0.95rem; }
.mobile-nav-promo-arrow { color: var(--xd-gold); font-size: 1.1rem; }

.mobile-nav-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}
.mobile-quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.4rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    transition: border-color var(--transition), color var(--transition);
}
.mobile-quick-tile:hover {
    border-color: rgba(201, 162, 39, 0.4);
    color: var(--xd-gold);
}
.mobile-quick-tile svg { opacity: 0.85; }

.mobile-nav-sections { flex: 1; }
.mobile-nav-group {
    border-bottom: 1px solid var(--border);
}
.mobile-nav-group summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav-group summary::-webkit-details-marker { display: none; }
.mobile-nav-group summary::after {
    content: '+';
    color: var(--xd-gold);
    font-size: 1.1rem;
    font-weight: 400;
}
.mobile-nav-group[open] summary::after { content: '−'; }
.mobile-nav-group-links {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.75rem;
}
.mobile-nav-group-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 0.45rem 0 0.45rem 0.75rem;
    border-left: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.mobile-nav-group-links a:hover {
    color: var(--xd-gold);
    border-left-color: var(--xd-gold);
}

.mobile-nav-auth {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--space-md);
}
.mobile-nav-auth .btn { flex: 1; }

.mobile-nav-footer { display: flex; flex-direction: column; gap: 0.75rem; margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--border); }
.lang-select-full { width: 100%; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--xd-gold), var(--xd-gold-dim));
    color: #0A0A0A;
    border-color: var(--xd-gold);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--xd-gold-light), var(--xd-gold));
    color: #0A0A0A;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-outline:hover {
    border-color: var(--xd-gold);
    color: var(--xd-gold);
    background: rgba(201, 162, 39, 0.06);
}

.btn-sm { padding: 0.42rem 0.95rem; font-size: 0.8rem; }
.btn-add-cart { min-width: 180px; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: clamp(480px, 75vh, 720px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.45) 60%, rgba(10, 10, 10, 0.7) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 4rem 0; }
.hero-badge {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(201, 162, 39, 0.5);
    color: var(--xd-gold);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    background: rgba(201, 162, 39, 0.08);
}
.hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: var(--space-md);
    max-width: 14ch;
}
.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* ─── Sections ───────────────────────────────────────────── */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-elevated); }
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0.75rem 0 0.5rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; }
.section-title-sm { font-size: 1.5rem; margin-bottom: var(--space-lg); }
.gold-line { width: 48px; height: 3px; background: linear-gradient(90deg, var(--xd-gold-dim), var(--xd-gold-light)); margin: 0 auto; border-radius: 2px; }

.page-hero {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}
.page-hero h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.page-hero p { color: var(--text-muted); margin-top: 0.5rem; }

/* Trust band */
.trust-band {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}
.trust-item span { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.trust-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg); }
.why-item {
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: border-color var(--transition), transform var(--transition);
}
.why-item:hover { border-color: rgba(201, 162, 39, 0.35); transform: translateY(-2px); }
.why-item h3 { font-size: 1.1rem; margin: 0.75rem 0 0.5rem; }
.why-item p { font-size: 0.875rem; color: var(--text-muted); }

/* ─── Product grid & cards ───────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
}
.product-grid-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-md); }

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.45);
    box-shadow: var(--shadow-gold);
}

.product-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-elevated);
    position: relative;
    flex-shrink: 0;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }

.card-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    background: var(--xd-gold);
    color: #000;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 1;
}
.card-badge-out { background: var(--xd-red); color: #fff; top: auto; bottom: 0.65rem; }

.product-card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.35rem;
}
.card-sku { font-size: 0.72rem; color: var(--xd-gold); letter-spacing: 0.06em; font-weight: 600; }
.product-card-body h3 { font-size: 1.15rem; font-family: var(--font-display); font-weight: 600; }
.product-card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex: 1;
    line-height: 1.5;
}
.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--xd-gold);
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Catalog */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}
.catalog-search {
    display: flex;
    gap: 0.65rem;
    flex: 1;
    min-width: 240px;
    max-width: 560px;
}
.catalog-search .form-control { flex: 1; }
.catalog-scan-btn { flex-shrink: 0; }
.catalog-result-count { color: var(--text-muted); margin-bottom: var(--space-lg); font-size: 0.9rem; }

.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}
.empty-state p { color: var(--text-muted); margin-bottom: var(--space-lg); }

/* ─── Product detail ─────────────────────────────────────── */
.product-detail-section { padding-top: var(--space-lg); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--xd-gold); }
.breadcrumb span:last-child { color: var(--text); }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    margin-bottom: var(--space-2xl);
}

.product-gallery {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}
.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--xd-gold);
    color: #000;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.product-stock-badge {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.product-info h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.product-tagline { color: var(--text-muted); font-size: 1.05rem; margin-bottom: var(--space-lg); line-height: 1.6; }
.product-meta-row { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-md); }
.product-sku { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.03em; }

.product-spec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
}
.spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.product-price-lg {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--xd-gold);
    font-family: var(--font-display);
    margin-bottom: var(--space-lg);
}

.product-actions {
    display: flex;
    align-items: flex-end;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}
.qty-wrap { display: flex; flex-direction: column; gap: 0.35rem; }
.qty-wrap label { font-size: 0.82rem; color: var(--text-muted); }
.qty-input { width: 80px !important; text-align: center; }

.stock-out {
    color: var(--xd-red);
    font-weight: 600;
    padding: var(--space-md);
    background: rgba(229, 57, 53, 0.1);
    border: 1px solid rgba(229, 57, 53, 0.3);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.barcode-display {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.barcode-num { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; font-family: monospace; }

/* Product tabs */
.product-tabs {
    margin-bottom: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.product-tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.product-tab-nav::-webkit-scrollbar { display: none; }
.product-tab-btn {
    flex: 1;
    min-width: max-content;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}
.product-tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.product-tab-btn.active {
    color: var(--xd-gold);
    border-bottom-color: var(--xd-gold);
    background: rgba(201, 162, 39, 0.05);
}
.product-tab-panels { padding: var(--space-xl); }
.product-tab-panel { display: none; }
.product-tab-panel.active { display: block; }
.product-prose { color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; }

.related-products { margin-top: var(--space-2xl); padding-top: var(--space-2xl); border-top: 1px solid var(--border); }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-lg); }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.925rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--xd-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}
textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.6; }
select.form-control { cursor: pointer; }

.form-card {
    max-width: 480px;
    margin: var(--space-xl) auto;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.payment-options { display: flex; flex-direction: column; gap: 0.65rem; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.payment-option:hover { border-color: rgba(201, 162, 39, 0.35); }
.payment-option:has(input:checked) {
    border-color: var(--xd-gold);
    background: rgba(201, 162, 39, 0.06);
}
.payment-option input[type="radio"] { accent-color: var(--xd-gold); width: 16px; height: 16px; flex-shrink: 0; }

.checkout-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}
.checkout-form-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

/* ─── Alerts ─────────────────────────────────────────────── */
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    line-height: 1.5;
}
.alert-success { background: rgba(76, 175, 80, 0.12); border: 1px solid rgba(76, 175, 80, 0.35); color: #81C784; }
[data-theme="light"] .alert-success { color: #2E7D32; }
.alert-error { background: rgba(229, 57, 53, 0.12); border: 1px solid rgba(229, 57, 53, 0.35); color: #EF9A9A; }
[data-theme="light"] .alert-error { color: #C62828; }
.flash-banner { margin-top: var(--space-md); }

/* ─── Cart & Checkout ────────────────────────────────────── */
.cart-shipping-hint {
    padding: 0.85rem 1.1rem;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: var(--radius-sm);
    color: var(--xd-gold);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr min(380px, 100%);
    gap: var(--space-xl);
    align-items: start;
}

.cart-summary {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    box-shadow: var(--shadow-sm);
}
.cart-summary .summary-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    font-size: 0.9rem;
    gap: var(--space-md);
}
.cart-summary .summary-row span:first-child { color: var(--text-muted); }
.cart-summary .summary-row.total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--xd-gold);
    border-top: 1px solid var(--border);
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
}
.cart-summary .summary-row.total span:first-child { color: var(--text); }

.cart-item-cell {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 200px;
}
.cart-item-cell img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-item-name {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
}
.cart-item-name:hover { color: var(--xd-gold); }

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cart-qty-form .qty-input { width: 70px !important; }

.cart-remove {
    color: var(--xd-red);
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.85;
}
.cart-remove:hover { opacity: 1; color: var(--xd-red); }

/* ─── Tables ─────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    -webkit-overflow-scrolling: touch;
}

.table-wrap table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table-wrap th,
.table-wrap td,
.data-table th,
.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.table-wrap th,
.data-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-elevated);
    white-space: nowrap;
}

.table-wrap tbody tr:last-child td,
.data-table tbody tr:last-child td { border-bottom: none; }

.table-wrap tbody tr:hover td,
.data-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
[data-theme="light"] .table-wrap tbody tr:hover td,
[data-theme="light"] .data-table tbody tr:hover td { background: rgba(0, 0, 0, 0.02); }

.bulk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.bulk-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.bulk-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.bulk-status-select { min-width: 180px; max-width: 220px; }

.admin-filter-bar .form-control { min-height: 38px; }

.status-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.status-pill.status-shipped,
.status-pill.status-delivered { color: #6ee7a0; border-color: rgba(110, 231, 160, 0.35); }
.status-pill.status-pending { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); }
.status-pill.status-cancelled,
.status-pill.status-refunded { color: var(--xd-red); border-color: rgba(239, 68, 68, 0.35); }

.btn-danger-text { color: var(--xd-red) !important; border-color: rgba(239, 68, 68, 0.45) !important; }
.btn-danger-text:hover { background: rgba(239, 68, 68, 0.08) !important; }

.table-wrap--cards .data-table tbody tr.is-loading { opacity: 0.5; pointer-events: none; }

@media (max-width: 768px) {
    .bulk-toolbar { flex-direction: column; align-items: stretch; }
    .bulk-toolbar-actions { flex-direction: column; align-items: stretch; }
    .bulk-status-select { max-width: none; width: 100%; }

    .table-wrap--cards .data-table thead { display: none; }
    .table-wrap--cards .data-table,
    .table-wrap--cards .data-table tbody,
    .table-wrap--cards .data-table tr,
    .table-wrap--cards .data-table td { display: block; width: 100%; }

    .table-wrap--cards .data-table tr {
        margin-bottom: 0.85rem;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--bg-elevated);
    }

    .table-wrap--cards .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        padding: 0.45rem 0;
        border-bottom: 1px dashed var(--border);
        text-align: right;
    }

    .table-wrap--cards .data-table td:last-child { border-bottom: none; justify-content: flex-end; }

    .table-wrap--cards .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
        text-align: left;
        flex-shrink: 0;
    }

    .table-wrap--cards .data-table td[data-label=""]::before { display: none; }

    .account-order-meta { grid-template-columns: 1fr !important; }
    .panel-header { flex-direction: column; align-items: flex-start !important; gap: 0.5rem; }
}

@media (max-width: 900px) {
    .detail-block form > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ─── Panel layout (admin / dealer / affiliate) ──────────── */
.panel-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.panel-shell {
    display: flex;
    flex: 1;
    min-height: 0;
    position: relative;
}

.panel-sidebar {
    width: var(--sidebar-w);
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    padding: var(--space-lg) 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
}

.panel-sidebar .logo {
    padding: 0 var(--space-lg) var(--space-lg);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-md);
}
.panel-sidebar .logo a { display: inline-block; }
.panel-sidebar .logo img, .panel-sidebar .brand-logo { height: 36px; max-width: 120px; }
.panel-sidebar-badge {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--xd-gold);
}

.panel-nav { display: flex; flex-direction: column; gap: 0; padding: 0 0.65rem; flex: 1; min-height: 0; }
.panel-nav-group { margin-bottom: var(--space-md); }
.panel-nav-label {
    display: block;
    padding: 0.35rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    opacity: 0.75;
}
.panel-nav a {
    padding: 0.55rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: all var(--transition);
    display: block;
}
.panel-nav a:hover {
    color: var(--xd-gold);
    background: rgba(201, 162, 39, 0.08);
    border-left-color: rgba(201, 162, 39, 0.4);
}
.panel-nav a.active {
    color: var(--xd-gold);
    background: rgba(201, 162, 39, 0.12);
    border-left-color: var(--xd-gold);
    font-weight: 600;
}
.panel-nav-footer {
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}
.panel-nav-store { font-size: 0.82rem !important; color: var(--text-muted) !important; }
.panel-nav .nav-logout { color: var(--xd-red) !important; }
.panel-nav .nav-logout:hover {
    background: rgba(229, 57, 53, 0.08) !important;
    border-left-color: var(--xd-red) !important;
}

.panel-main > .alert.flash-banner { margin-bottom: var(--space-lg); }

/* Account customer panel */
.account-hero p { color: var(--text-muted); margin-top: 0.5rem; }
.account-section { padding-top: var(--space-xl); }
.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-xl);
    align-items: start;
}
.account-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.account-sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.account-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--xd-gold), var(--xd-gold-dim));
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.account-sidebar-user strong { display: block; font-size: 0.95rem; }
.account-sidebar-user span { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; word-break: break-all; }
.account-nav { display: flex; flex-direction: column; padding: 0.5rem; }
.account-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.account-nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.account-nav-link.active { color: var(--xd-gold); background: rgba(201, 162, 39, 0.1); font-weight: 600; }
.account-nav-logout { color: var(--xd-red) !important; margin-top: 0.5rem; border-top: 1px solid var(--border); border-radius: 0; padding-top: 1rem; }
.account-nav-logout:hover { background: rgba(229, 57, 53, 0.08) !important; }
.account-nav-icon { width: 1.25rem; text-align: center; opacity: 0.85; }
.account-main { min-width: 0; }
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}
.account-card h3, .account-card h4 { font-family: var(--font-display); margin-bottom: 0.25rem; }
.account-card-muted { background: var(--bg-elevated); }
.account-subtitle { margin: 1.25rem 0 0.75rem; font-size: 0.95rem; }
.account-actions-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.account-back-link { color: var(--xd-gold); font-weight: 500; font-size: 0.9rem; display: inline-block; margin-top: 0.5rem; }
.btn-danger-text { color: var(--xd-red) !important; border-color: rgba(229, 57, 53, 0.35) !important; }

.panel-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 150;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: 56px;
}
.panel-topbar-logo img { height: 32px; }
.panel-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
}
.panel-topbar-link {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}
.panel-topbar-link:hover { color: var(--xd-gold); }
.panel-topbar-user {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.panel-logout-btn { padding: 0.35rem 0.75rem; font-size: 0.75rem; }

.panel-main {
    flex: 1;
    padding: clamp(1.25rem, 3vw, 2rem);
    min-width: 0;
    overflow-x: hidden;
}

.panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 180;
    backdrop-filter: blur(2px);
}
.panel-overlay.open { display: block; }

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}
.panel-header h1 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }

.detail-block {
    padding: var(--space-md) 0;
}
.detail-block h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--xd-gold);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

/* Legal pages */
.legal-document {
    max-width: 800px;
}
.legal-section {
    margin-bottom: 2rem;
}
.legal-section h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}
.legal-section p,
.legal-intro {
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.legal-list {
    margin: 0.5rem 0 1rem 1.25rem;
    line-height: 1.8;
    color: var(--text-muted);
}
.legal-list li { margin-bottom: 0.35rem; }
.legal-company-block {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    color: var(--xd-gold);
    font-size: 1.25rem;
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
    padding: 0 1.25rem 1rem;
    border-top: 1px solid var(--border);
}
.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 0.75rem;
}

/* Checkout legal acceptance */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--xd-gold);
}
.checkbox-label a { color: var(--xd-gold); text-decoration: underline; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.stat-card:hover { border-color: rgba(201, 162, 39, 0.3); box-shadow: var(--shadow-sm); }

.stat-card .label,
.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.stat-card .value,
.stat-card .stat-value {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--xd-gold);
    font-family: var(--font-display);
    line-height: 1.1;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Contact layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}
.contact-layout form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}
.footer-brand img { height: 40px; margin-bottom: var(--space-md); }
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }
.footer-col h4 { color: var(--xd-gold); margin-bottom: var(--space-md); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-body); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: var(--text-muted); font-size: 0.875rem; }
.footer-col a:hover { color: var(--xd-gold); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.payment-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}
.payment-logo-band {
    display: block;
    width: auto;
    max-width: 100%;
    height: 28px;
    object-fit: contain;
}
.payment-logo-band-white { display: none; }
[data-theme="light"] .payment-logo-band-colored { display: none; }
[data-theme="light"] .payment-logo-band-white { display: block; }
.payment-logos--checkout .payment-logo-band {
    height: 26px;
}
.checkout-payment-block .payment-logos,
.checkout-summary-v2 .payment-logos {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}
.legal-payment-logos {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.legal-payment-logos .payment-logo-band {
    height: 32px;
}
.footer-bottom .payment-logos {
    flex: 1 1 280px;
    justify-content: center;
}
@media (max-width: 640px) {
    .footer-bottom .payment-logos {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
    .payment-logo-band {
        height: 24px;
    }
}

/* ─── Modals & overlays ──────────────────────────────────── */
.age-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}
.age-modal.hidden { display: none; }
.age-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow);
}
.age-actions { display: flex; gap: var(--space-md); justify-content: center; margin-top: var(--space-lg); flex-wrap: wrap; }

.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}
.cookie-bar.hidden { display: none; }
.cookie-bar p { font-size: 0.875rem; color: var(--text-muted); flex: 1; min-width: 200px; }

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background: var(--xd-gold);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 100;
    box-shadow: var(--shadow-gold);
    transition: transform var(--transition), opacity var(--transition);
}
.scroll-top:hover { transform: translateY(-2px); }
.scroll-top.hidden { display: none; }

/* Barcode scanner */
.barcode-scanner-wrap { max-width: 600px; margin: var(--space-xl) auto; }
.barcode-manual-row { display: flex; gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap; }
.barcode-manual-row .form-control { flex: 1; min-width: 160px; }
.barcode-result {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.barcode-result.hidden { display: none; }

.panel-main > .alert.flash-banner { margin-bottom: var(--space-lg); }

/* Login page */
.login-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
}
.login-card {
    width: min(420px, 100%);
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.login-card h1 { text-align: center; margin-bottom: 0.5rem; }
.login-card .subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-xl); }

/* Track page */
.track-search-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}
.form-footer {
    margin-top: var(--space-md);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* About page */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}
.about-stat {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.about-stat strong,
.about-stat .num { font-size: 2rem; font-weight: 700; color: var(--xd-gold); font-family: var(--font-display); display: block; }
.about-stat span,
.about-stat .lbl { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }
.about-lead { font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); margin-bottom: var(--space-xl); }

.track-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}
.order-timeline { list-style: none; max-width: 100%; margin: 0; }
.order-timeline li {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0.25rem 1rem;
    padding: var(--space-md) 0 var(--space-md) var(--space-lg);
    border-left: 2px solid var(--border);
    margin-left: 0.35rem;
    position: relative;
}
.order-timeline li::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 1.25rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--xd-gold);
}
.order-timeline li:first-child::before { box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25); }
.timeline-date { font-size: 0.82rem; color: var(--text-muted); }
.timeline-status { font-weight: 600; }
.timeline-note { grid-column: 2; font-size: 0.85rem; color: var(--text-muted); }

.text-center { text-align: center; }

/* ─── Animations ─────────────────────────────────────────── */
.fade-up {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .js-animate .fade-up {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.55s ease, transform 0.55s ease;
    }
    .js-animate .fade-up.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cart-layout,
    .checkout-layout,
    .contact-layout,
    .product-detail,
    .account-layout { grid-template-columns: 1fr; }

    .account-sidebar { position: static; }
    .account-order-meta { grid-template-columns: 1fr !important; }

    .cart-summary {
        position: static;
        order: -1;
    }

    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-pill, .hide-mobile { display: none; }
    .menu-toggle { display: flex; }

    .panel-topbar { display: flex; }

    .panel-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        z-index: 190;
        height: 100vh;
        height: 100dvh;
        transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow);
    }
    .panel-sidebar.open { left: 0; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 1.85rem; }
    .hero-actions .btn { width: 100%; }
    .panel-main { padding: var(--space-md); }
    .footer-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .catalog-toolbar { flex-direction: column; align-items: stretch; }
    .catalog-search { max-width: none; }
    .product-actions { flex-direction: column; align-items: stretch; }
    .btn-add-cart { width: 100%; }
    .cart-item-cell { flex-direction: column; align-items: flex-start; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .order-timeline li { grid-template-columns: 1fr; padding-left: var(--space-md); }
}

@media (max-width: 400px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* Katalog filtre & arama önerisi */
.catalog-layout { display: block; }

/* ─── Catalog v2 ─────────────────────────────────────────── */
.catalog-hero { padding-bottom: 0.5rem; }
.catalog-hero p { color: var(--text-muted); margin-top: 0.75rem; }
.catalog-section { padding-top: var(--space-lg); }

.campaign-strip {
    margin-bottom: var(--space-xl);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.campaign-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.25rem 0.5rem 0.75rem;
    scrollbar-width: thin;
}
.campaign-card {
    flex: 0 0 min(320px, 85vw);
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.campaign-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
}
.campaign-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.campaign-gold { background: linear-gradient(135deg, rgba(201,162,39,0.15), var(--bg-card)); }
.campaign-gold::before { background: radial-gradient(circle at top right, var(--xd-gold), transparent 60%); }
.campaign-emerald { background: linear-gradient(135deg, rgba(46,125,90,0.15), var(--bg-card)); }
.campaign-emerald::before { background: radial-gradient(circle at top right, #2e7d5a, transparent 60%); }
.campaign-dark { background: linear-gradient(135deg, rgba(255,255,255,0.04), var(--bg-card)); }
.campaign-gradient { background: linear-gradient(135deg, rgba(201,162,39,0.12), rgba(120,80,200,0.12), var(--bg-card)); }
.campaign-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--xd-gold);
    background: rgba(201,162,39,0.15);
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
}
.campaign-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,162,39,0.15);
    color: var(--xd-gold);
    flex-shrink: 0;
}
.campaign-body h3 { font-size: 0.95rem; margin-bottom: 0.2rem; font-family: var(--font-display); }
.campaign-body p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.45; }
.campaign-meta { display: block; font-size: 0.72rem; color: var(--xd-gold); margin-top: 0.25rem; font-weight: 600; }
.campaign-cta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--xd-gold);
    white-space: nowrap;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(201,162,39,0.35);
    border-radius: 999px;
    transition: background var(--transition);
}
.campaign-cta:hover { background: rgba(201,162,39,0.12); }

.catalog-toolbar-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: var(--space-md);
    padding: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.catalog-search-v2 {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: min(100%, 280px);
}
.catalog-search-wrap { position: relative; flex: 1; }
.catalog-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.catalog-search-wrap .form-control {
    padding-left: 2.5rem;
    min-height: 42px;
}
.catalog-search-btn { flex-shrink: 0; }
.catalog-toolbar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.catalog-sort-select {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-family: inherit;
    min-height: 42px;
}
.catalog-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    position: relative;
}
.filter-count-badge {
    background: var(--xd-gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.catalog-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: var(--space-md);
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(201,162,39,0.1);
    border: 1px solid rgba(201,162,39,0.25);
    color: var(--text-muted);
}
.filter-pill.is-static { pointer-events: none; }
.filter-pill-clear { color: var(--xd-gold); cursor: pointer; }
.filter-pill-clear:hover { background: rgba(201,162,39,0.18); }

.catalog-filter-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}
.catalog-filter-panel.is-open {
    max-height: 900px;
    opacity: 1;
    margin-bottom: var(--space-lg);
}
.catalog-filter-panel .catalog-filter-form {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}
.filter-section h5 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--xd-gold);
    margin-bottom: 0.6rem;
    font-family: var(--font-body);
}
.filter-price-inputs { display: flex; align-items: center; gap: 0.4rem; }
.filter-price-sep { color: var(--text-muted); font-size: 0.8rem; }
.filter-price-range { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.5rem; }
.filter-range { width: 100%; accent-color: var(--xd-gold); }
.filter-rating-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-chip {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.filter-chip.is-active,
.filter-chip:hover {
    border-color: var(--xd-gold);
    background: rgba(201,162,39,0.12);
    color: var(--xd-gold);
}
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.88rem;
}
.filter-toggle input { display: none; }
.filter-toggle-track {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: var(--border);
    position: relative;
    transition: background var(--transition);
}
.filter-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform var(--transition);
}
.filter-toggle input:checked + .filter-toggle-track {
    background: var(--xd-gold);
}
.filter-toggle input:checked + .filter-toggle-track::after {
    transform: translateX(18px);
}
.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 210;
    backdrop-filter: blur(2px);
}
.filter-drawer-overlay.is-open { display: block; }
.filter-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(380px, 92vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-elevated);
    z-index: 211;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-drawer.is-open { right: 0; }
.filter-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.filter-drawer-header h3 { font-size: 1.1rem; font-family: var(--font-display); }
.filter-drawer-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}
.filter-drawer-body .catalog-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
body.filter-drawer-open { overflow: hidden; }

.catalog-product-grid .product-card {
    animation: catalogCardIn 0.5s ease backwards;
    animation-delay: var(--card-delay, 0s);
}
@keyframes catalogCardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.catalog-product-card .product-card-image { overflow: hidden; }
.catalog-product-card .product-card-image img {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.catalog-product-card:hover .product-card-image img { transform: scale(1.06); }
.card-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.55rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #000;
    background: var(--xd-gold);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.catalog-product-card:hover .card-quick-add { transform: translateY(0); }
.price-was {
    text-decoration: line-through;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 0.35rem;
    font-weight: 400;
}
.catalog-pagination {
    margin-top: 2rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .filter-drawer, .filter-drawer-overlay { display: none !important; }
}
@media (max-width: 1023px) {
    .catalog-filter-panel { display: none; }
}

@media (max-width: 768px) {
    .catalog-toolbar-v2 { flex-direction: column; }
    .catalog-toolbar-actions { width: 100%; }
    .catalog-sort-form { flex: 1; }
    .catalog-sort-select { width: 100%; }
    .catalog-filter-btn { flex: 1; justify-content: center; }
}
.search-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 4px; max-height: 320px; overflow-y: auto; }
.search-suggest.hidden { display: none; }
.search-suggest .suggest-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); }
.search-suggest .suggest-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.search-suggest .suggest-item span { flex: 1; font-size: 0.9rem; }
.search-suggest .suggest-item strong { color: var(--xd-gold); font-size: 0.85rem; }

/* ─── Admin Dashboard ─────────────────────────────────────── */
.dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}
.dash-greeting {
    font-size: 0.85rem;
    color: var(--xd-gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}
.dash-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.dash-sub { color: var(--text-muted); margin-top: 0.35rem; font-size: 0.9rem; }
.dash-header-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.dash-kpi {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), transform var(--transition);
}
.dash-kpi:hover { border-color: rgba(201, 162, 98, 0.35); transform: translateY(-2px); }
.dash-kpi-gold { background: linear-gradient(135deg, rgba(201, 162, 98, 0.12), transparent); }
.dash-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(201, 162, 98, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.dash-kpi-label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.dash-kpi-value { display: block; font-size: clamp(1.25rem, 2vw, 1.65rem); font-family: var(--font-display); color: var(--xd-gold); margin: 0.2rem 0; }
.dash-kpi-trend, .dash-kpi-meta { font-size: 0.78rem; color: var(--text-muted); }
.dash-kpi-trend.trend-up { color: #47B881; }
.dash-kpi-trend.trend-down { color: var(--xd-red); }

.dash-stats-secondary { margin-bottom: var(--space-xl); }

.dash-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}
.dash-quick-actions { margin-bottom: var(--space-xl); }
.dash-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}
.dash-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    min-height: 88px;
    transition: border-color var(--transition), background var(--transition);
}
.dash-action-card:hover {
    border-color: var(--xd-gold);
    background: rgba(201, 162, 98, 0.06);
}
.dash-action-icon { font-size: 1.35rem; line-height: 1; }
.dash-action-label { font-size: 0.8rem; text-align: center; font-weight: 600; }

.dash-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-lg);
    align-items: start;
}
.dash-main, .dash-sidebar { display: flex; flex-direction: column; gap: var(--space-lg); }
.dash-charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
}
.dash-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}
.dash-widget-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}
.dash-widget-head h3 { font-size: 1rem; margin: 0; }
.dash-widget-meta, .dash-widget-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.dash-link { color: var(--xd-gold); font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.dash-link:hover { text-decoration: underline; }
.dash-empty { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.dash-map {
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    z-index: 1;
}
.dash-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-md);
}
.dash-map-tag {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(201, 162, 98, 0.12);
    border: 1px solid rgba(201, 162, 98, 0.25);
}
.dash-map-tag strong { color: var(--xd-gold); margin-left: 0.25rem; }

.status-badge.badge-warning { background: rgba(232, 168, 56, 0.2); color: #E8A838; }
.status-badge.badge-info { background: rgba(91, 141, 239, 0.2); color: #5B8DEF; }
.status-badge.badge-primary { background: rgba(201, 162, 98, 0.2); color: var(--xd-gold); }
.status-badge.badge-success { background: rgba(71, 184, 129, 0.2); color: #47B881; }
.status-badge.badge-danger { background: rgba(224, 82, 82, 0.2); color: var(--xd-red); }
.status-badge.badge-muted { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

.channel-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.channel-b2c { background: rgba(91, 141, 239, 0.15); color: #5B8DEF; }
.channel-dealer { background: rgba(201, 162, 98, 0.15); color: var(--xd-gold); }
.channel-marketplace { background: rgba(155, 89, 182, 0.15); color: #9B59B6; }

.dash-table { font-size: 0.88rem; }
.dash-table td, .dash-table th { padding: 0.65rem 0.5rem; }

.dash-alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.dash-alert a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    transition: background var(--transition);
}
.dash-alert a:hover { background: rgba(255, 255, 255, 0.03); }
.dash-alert-count {
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.dash-alert-warning .dash-alert-count { background: rgba(232, 168, 56, 0.2); color: #E8A838; }
.dash-alert-danger .dash-alert-count { background: rgba(224, 82, 82, 0.2); color: var(--xd-red); }
.dash-alert-info .dash-alert-count { background: rgba(91, 141, 239, 0.2); color: #5B8DEF; }

.dash-shipment-list, .dash-activity-list, .dash-top-list { list-style: none; margin: 0; padding: 0; }
.dash-shipment-item, .dash-activity-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}
.dash-shipment-item:last-child, .dash-activity-item:last-child { border-bottom: none; padding-bottom: 0; }
.dash-shipment-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.dash-shipment-meta, .dash-activity-meta { font-size: 0.82rem; color: var(--text-muted); margin: 0.25rem 0; }
.dash-shipment-track code { font-size: 0.78rem; color: var(--xd-gold); }

.dash-top-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}
.dash-top-list li:last-child { border-bottom: none; }
.dash-top-rank {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(201, 162, 98, 0.15);
    color: var(--xd-gold);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-top-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.dash-top-info strong { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-top-info span { font-size: 0.78rem; color: var(--text-muted); }

.dash-activity-time { font-size: 0.72rem; color: var(--text-muted); }
.dash-activity-item p { margin: 0.15rem 0; font-size: 0.88rem; }

.aff-copy-row { display: flex; gap: 0.5rem; align-items: stretch; }
.aff-copy-row .form-control { flex: 1; font-size: 0.85rem; }
.aff-copy-row-table { max-width: 320px; }
.aff-link-code { display: inline-block; margin-top: 0.35rem; font-size: 0.72rem; color: var(--xd-gold); background: rgba(201,162,98,0.1); padding: 0.15rem 0.45rem; border-radius: 4px; }
.aff-link-example { display: block; margin-top: 0.75rem; padding: 0.65rem; background: var(--bg-elevated); border-radius: var(--radius); font-size: 0.78rem; word-break: break-all; }
.aff-link-form .form-group { margin-bottom: 0.85rem; }
.aff-link-actions { white-space: nowrap; }
.dash-empty-cell { text-align: center; color: var(--text-muted); padding: 1.5rem !important; }

@media (max-width: 1100px) {
    .dash-layout { grid-template-columns: 1fr; }
    .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-charts-row { grid-template-columns: 1fr; }
    .dash-action-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .dash-kpi-grid { grid-template-columns: 1fr; }
    .dash-action-grid { grid-template-columns: 1fr 1fr; }
}

/* Clean pricing */
.cart-summary-clean .summary-row { font-size: 0.95rem; }
.cart-summary-clean .summary-row.total {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
    margin-top: 0.5rem;
}
.cart-summary-clean .summary-row.total span:last-child { color: var(--text); font-family: var(--font-body); }
.summary-vat-note { font-size: 0.78rem; color: var(--text-muted); margin: 0.35rem 0 0; line-height: 1.4; }
.summary-label { font-size: 0.82rem; color: var(--text-muted); display: block; margin-bottom: 0.35rem; }
.summary-discount span:last-child { color: var(--xd-gold); }
.price-cell { font-weight: 600; color: var(--text); white-space: nowrap; }
.coupon-row { display: flex; gap: 0.5rem; }

/* Product detail modern */
.product-detail-modern { gap: 2.5rem; }
.product-gallery-frame {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}
.product-gallery-frame img { max-height: 420px; width: auto; object-fit: contain; }
.product-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
.product-spec-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.25rem; }
.product-spec-item {
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
}
.product-price-block { margin-bottom: 1.25rem; }
.product-price-main {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}
.product-price-old {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}
.product-buy-row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.product-content-modern {
    margin-top: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.product-content-nav { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; }
.product-policy-box {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.product-policy-box ul { margin: 0.75rem 0 0 1.1rem; color: var(--text-muted); line-height: 1.6; }

/* Checkout success */
.checkout-success-wrap { max-width: 640px; margin: 0 auto; }
.checkout-success-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
}
.checkout-success-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(76,175,80,0.15); color: #4caf50;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1rem;
}
.checkout-success-total { font-size: 1.75rem; font-weight: 700; margin: 0.5rem 0; }
.checkout-success-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.checkout-bank-info { text-align: left; margin-top: 1.25rem; }

/* Admin integrations */
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.address-option {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    cursor: pointer;
}
.address-book-grid { display: grid; gap: 1rem; }
.address-card-default { border-color: var(--xd-gold); }

/* ─── Hero slider & delivery strip ───────────────────────── */
.hero--slider { min-height: clamp(520px, 82vh, 780px); }
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.hero-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}
.hero-dot.is-active {
    background: var(--xd-gold);
    transform: scale(1.25);
}
.delivery-strip {
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.04));
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.delivery-strip--compact { border-top: 1px solid var(--border); }
.delivery-strip-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.delivery-strip-icon { font-size: 1.35rem; line-height: 1; }
.delivery-strip-text { flex: 1; min-width: 200px; }
.delivery-strip-text strong { display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.delivery-strip-text span { font-size: 0.85rem; color: var(--text-muted); }
.delivery-strip-cta { margin-left: auto; }
.section-cta { text-align: center; margin-top: 3rem; }
.home-quality-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: left;
}
.home-quality-eyebrow {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--xd-gold);
    margin-bottom: 0.5rem;
}
.home-quality-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}
.home-quality-copy p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0;
    line-height: 1.7;
}
.page-hero-lead { color: var(--text-muted); margin-top: 1rem; max-width: 640px; }
.contact-info-card,
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.contact-form-card { padding: 1.5rem; }

/* Shipping promise (product page) */
.shipping-promise {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    margin: 1rem 0 1.25rem;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(201, 162, 39, 0.03));
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: var(--radius);
}
.shipping-promise-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.15);
    color: var(--xd-gold);
}
.shipping-promise-copy strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.shipping-promise-copy span {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.shipping-promise-date { text-align: right; }
.shipping-promise-date-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.shipping-promise-date-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--xd-gold);
}
.shipping-promise--pulse {
    animation: shippingGlow 2.8s ease-in-out infinite;
}
@keyframes shippingGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
    50% { box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12); }
}
.product-spec-item--gold {
    border-color: rgba(201, 162, 39, 0.45);
    color: var(--xd-gold);
    background: rgba(201, 162, 39, 0.08);
}

/* Rich product description */
.product-desc-rich { padding: 0.25rem 0; }
.product-desc-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin: 0 0 1rem;
}
.product-desc-para { font-size: 0.95rem; color: var(--text-muted); }
.product-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.product-highlight-card {
    padding: 1rem 1.1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.product-highlight-card:hover {
    border-color: rgba(201, 162, 39, 0.35);
    transform: translateY(-2px);
}
.product-highlight-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--xd-gold);
    margin-bottom: 0.5rem;
}
.product-highlight-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.product-prose--elegant {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-muted);
    max-width: 68ch;
}

@media (max-width: 1024px) {
    .hero--slider { min-height: clamp(560px, 88vh, 860px); }
    .product-gallery-frame {
        min-height: clamp(340px, 52vw, 520px);
        padding: 1.25rem;
    }
    .product-gallery-frame img {
        max-height: min(560px, 72vw);
        width: 100%;
    }
    .shipping-promise {
        grid-template-columns: auto 1fr;
    }
    .shipping-promise-date {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .hero--slider { min-height: clamp(600px, 94vh, 900px); }
    .hero-content { padding: 3rem 0 2.5rem; }
    .hero-slide img { opacity: 0.38; }
    .delivery-strip-inner { flex-direction: column; align-items: flex-start; }
    .delivery-strip-cta { margin-left: 0; width: 100%; }
    .home-quality-card { flex-direction: column; align-items: flex-start; }
    .product-gallery-frame { min-height: clamp(300px, 68vw, 440px); }
    .shipping-promise { grid-template-columns: 1fr; }
    .shipping-promise-icon { display: none; }
    .shipping-promise-date { grid-column: 1; }
}

/* ═══ HOME — Rich landing ═══════════════════════════════════ */
.show-mobile-only { display: none; }
.btn-glow {
    box-shadow: 0 0 24px rgba(201, 162, 39, 0.35);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.btn-glow:hover {
    box-shadow: 0 0 36px rgba(201, 162, 39, 0.55);
    transform: translateY(-2px);
}
.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; }
.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--xd-gold);
    margin-bottom: 0.65rem;
    font-weight: 600;
}
.section-header--left { text-align: left; }
.section-header--left .gold-line { margin: 0.75rem 0; }
.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.section-header-row h2 { margin: 0 0 0.5rem; }

/* Hero rich */
.hero--rich { position: relative; }
.hero-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb--1 { width: 280px; height: 280px; background: rgba(201, 162, 39, 0.25); top: 10%; left: -5%; }
.hero-orb--2 { width: 200px; height: 200px; background: rgba(232, 197, 71, 0.18); bottom: 20%; right: 10%; animation-delay: -4s; }
.hero-orb--3 { width: 160px; height: 160px; background: rgba(201, 162, 39, 0.15); top: 40%; right: 30%; animation-delay: -8s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.08); }
}
.hero-overlay--rich {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(10, 10, 10, 0.82) 100%);
}
.hero-content--rich { z-index: 2; }
.hero-badge--glow {
    animation: badgePulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 12px rgba(201, 162, 39, 0.15); }
    50% { box-shadow: 0 0 28px rgba(201, 162, 39, 0.35); }
}
.hero-title-rich {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: var(--space-md);
    max-width: 16ch;
}
.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, var(--xd-gold-light), var(--xd-gold), var(--xd-gold-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}
.hero-subtitle-rich {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: var(--space-xl);
    line-height: 1.75;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    max-width: 560px;
}
.hero-stat {
    padding: 0.85rem 0.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}
.hero-stat strong {
    display: block;
    font-size: 1.35rem;
    font-family: var(--font-display);
    color: var(--xd-gold);
    line-height: 1.2;
}
.hero-stat strong span { font-size: 0.75rem; margin-left: 2px; }
.hero-stat > span:last-child {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hero-scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll-hint span {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid rgba(201, 162, 39, 0.5);
    border-radius: 12px;
    position: relative;
}
.hero-scroll-hint span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--xd-gold);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}
.hero-slide.is-active img { animation: kenBurns 8s ease-out forwards; }
@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* Marquee */
.home-marquee {
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: 0.85rem 0;
}
.home-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}
.home-marquee-group {
    display: flex;
    gap: 2.5rem;
    padding-right: 2.5rem;
}
.home-marquee-item {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.delivery-strip--animated {
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.14), rgba(201, 162, 39, 0.05), rgba(201, 162, 39, 0.14));
    background-size: 200% 100%;
    animation: shimmerStrip 6s ease-in-out infinite;
}
@keyframes shimmerStrip {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.pulse-icon { animation: iconPulse 2s ease-in-out infinite; }
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* Stats band */
.home-stats-band {
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-bottom: 1px solid var(--border);
}
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.home-stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.home-stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: var(--shadow-gold);
}
.home-stat-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.home-stat-card strong {
    font-size: 2rem;
    font-family: var(--font-display);
    color: var(--xd-gold);
    display: inline;
}
.home-stat-card strong span { font-size: 1rem; }
.home-stat-plus { font-size: 1.5rem !important; margin-left: 2px; }
.home-stat-card > span:last-child {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Product cards home */
.product-grid--home { gap: 1.5rem; }
.product-card--home {
    position: relative;
    border-radius: var(--radius-lg);
    transition-delay: var(--card-delay, 0s);
}
.product-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 2;
}
.product-card--home:hover .product-card-shine { transform: translateX(100%); }
.product-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    padding: 0.3rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(201, 162, 39, 0.9);
    color: #0a0a0a;
    border-radius: 999px;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.product-card-link {
    font-size: 0.8rem;
    color: var(--xd-gold);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.product-card--home:hover .product-card-link {
    opacity: 1;
    transform: translateX(0);
}

/* Experience */
.home-experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.home-experience-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.25);
    box-shadow: var(--shadow-gold);
}
.home-experience-frame img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.home-experience-frame:hover img { transform: scale(1.04); }
.home-experience-float {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.85rem 1.1rem;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    text-align: center;
    animation: floatBadge 4s ease-in-out infinite;
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.home-experience-float span { color: var(--xd-gold); font-size: 0.9rem; }
.home-experience-float strong { display: block; font-size: 0.85rem; }
.home-experience-float small { color: var(--text-muted); font-size: 0.75rem; }
.home-experience-copy h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}
.home-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.home-step {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.home-step:hover {
    border-color: rgba(201, 162, 39, 0.35);
    transform: translateX(6px);
}
.home-step-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--xd-gold);
    opacity: 0.6;
    line-height: 1;
}
.home-step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.home-step p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* Mosaic gallery */
.home-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 0.85rem;
}
.home-mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.home-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.home-mosaic-item:hover img { transform: scale(1.1); }
.home-mosaic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.home-mosaic-item:hover .home-mosaic-overlay { opacity: 1; }
.home-mosaic-overlay span { font-size: 0.9rem; font-weight: 600; }
.home-mosaic-overlay strong { color: var(--xd-gold); font-size: 0.95rem; }
.mosaic-1 { grid-row: span 2; }
.mosaic-4 { grid-row: span 2; }
.mosaic-5 { grid-column: span 2; }

/* Why rich */
.why-grid--rich { gap: 1.25rem; }
.why-card {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--xd-gold-dim), var(--xd-gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.why-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 162, 39, 0.35);
    box-shadow: var(--shadow-gold);
}
.why-card:hover::before { transform: scaleX(1); }
.why-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(201, 162, 39, 0.15);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.why-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* Quality split */
.home-quality-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}
.home-quality-visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.home-quality-visual img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(201, 162, 39, 0.2);
}
.home-quality-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 70%);
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}
.home-quality-badge-float {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.85rem;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--xd-gold);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--xd-gold);
}
.home-quality-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
}
.home-quality-copy p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
.home-quality-list {
    list-style: none;
    margin: 0 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}
.home-quality-list li {
    font-size: 0.88rem;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-muted);
}
.home-quality-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--xd-gold);
    font-weight: 700;
}

/* FAQ */
.home-faq-list { max-width: 760px; margin: 0 auto; }
.home-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.65rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.home-faq-item[open] { border-color: rgba(201, 162, 39, 0.35); }
.home-faq-item summary {
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after {
    content: '+';
    color: var(--xd-gold);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}
.home-faq-item[open] summary::after { transform: rotate(45deg); }
.home-faq-item p {
    padding: 0 1.25rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Final CTA */
.home-final-cta {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 0;
    overflow: hidden;
    text-align: center;
}
.home-final-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201, 162, 39, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.home-final-cta-inner { position: relative; z-index: 1; }
.home-final-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}
.home-final-cta p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
    font-size: 1rem;
}
.home-final-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .home-experience-grid,
    .home-quality-split { grid-template-columns: 1fr; }
    .home-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .mosaic-5 { grid-column: span 1; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .show-mobile-only { display: block; }
    .hero-stats { max-width: none; }
    .home-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
    .mosaic-1, .mosaic-4 { grid-row: span 1; }
    .home-quality-list { grid-template-columns: 1fr; }
    .home-final-cta-actions .btn { width: 100%; }
    .hero-scroll-hint { display: none; }
}

/* ═══ ADMIN PANEL — Enhanced UI ═══════════════════════════ */
.admin-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.admin-page-head h1 {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    margin: 0 0 0.35rem;
}
.admin-page-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
    max-width: 56ch;
    line-height: 1.55;
}
.admin-info-banner {
    padding: 1rem 1.15rem;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}
.admin-info-banner strong { display: block; margin-bottom: 0.35rem; color: var(--xd-gold); }
.admin-info-banner p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }
.admin-info-banner--compact { margin-top: 0; }

.admin-settings-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.25rem;
    align-items: start;
}
.admin-settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: sticky;
    top: 1rem;
}
.admin-settings-tab {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.9rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.admin-settings-tab:hover {
    color: var(--text);
    background: rgba(201, 162, 39, 0.06);
    border-color: var(--border);
}
.admin-settings-tab.is-active {
    color: var(--xd-gold);
    background: rgba(201, 162, 39, 0.1);
    border-color: rgba(201, 162, 39, 0.3);
}
.admin-settings-tab-icon { font-size: 1.1rem; line-height: 1; }
.admin-settings-panel { display: none; }
.admin-settings-panel.is-active { display: block; animation: adminFadeIn 0.35s ease; }
@keyframes adminFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.admin-settings-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.admin-card--panel { padding: 1.35rem 1.5rem; }
.admin-card-head { margin-bottom: 1.25rem; }
.admin-card-head h2, .admin-card-head h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.admin-card-head p { margin: 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
.admin-card-head--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.admin-card--wide { grid-column: 1 / -1; }
.admin-form-grid--single { grid-template-columns: 1fr !important; max-width: 520px; }
.admin-form-grid--nested { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.admin-form-actions { grid-column: 1 / -1; }
.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.admin-code {
    font-size: 0.8rem;
    padding: 0.2rem 0.45rem;
    background: var(--bg-elevated);
    border-radius: 4px;
    color: var(--xd-gold);
}
.admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}
.admin-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.admin-toggle-track {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    position: relative;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.admin-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: transform 0.25s ease, background 0.25s ease;
}
.admin-toggle input:checked + .admin-toggle-track {
    background: rgba(201, 162, 39, 0.25);
    border-color: var(--xd-gold);
}
.admin-toggle input:checked + .admin-toggle-track::after {
    transform: translateX(20px);
    background: var(--xd-gold);
}
.admin-toggle-label { font-size: 0.85rem; color: var(--text-muted); }
.admin-status-badge {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.admin-status-badge--ok {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}
.admin-status-badge--warn {
    background: rgba(255, 152, 0, 0.12);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.28);
}
.admin-section { margin-top: 2rem; }
.admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.admin-section-title { font-size: 1.15rem; margin-bottom: 1rem; }
.admin-sync-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.admin-sync-btn { font-size: 0.82rem; }
.status-pill {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.panel-main { padding: clamp(1rem, 2.5vw, 1.75rem); }
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.panel-header h1 { font-size: 1.5rem; margin: 0; }
.panel-nav a.active {
    color: var(--xd-gold);
    background: rgba(201, 162, 39, 0.1);
    border-left-color: var(--xd-gold);
    font-weight: 600;
}

@media (max-width: 900px) {
    .admin-settings-layout { grid-template-columns: 1fr; }
    .admin-settings-nav {
        flex-direction: row;
        overflow-x: auto;
        position: static;
        padding-bottom: 0.25rem;
    }
    .admin-settings-tab { white-space: nowrap; flex-shrink: 0; }
    .admin-settings-footer { flex-direction: column; align-items: stretch; }
}

/* ─── Checkout v2 ───────────────────────────────────────── */
.checkout-hero p { color: var(--text-muted); margin-top: 0.5rem; }
.checkout-layout-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(400px, 100%);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}
.checkout-form-v2 { padding: clamp(1.25rem, 3vw, 2rem); }
.checkout-steps {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.checkout-step {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.checkout-step.is-active {
    color: var(--xd-gold);
    border-color: rgba(201, 162, 39, 0.45);
    background: rgba(201, 162, 39, 0.08);
}
.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.checkout-form-grid .checkout-full,
.checkout-address-grid .checkout-full { grid-column: 1 / -1; }
.checkout-address-block,
.checkout-payment-block {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.checkout-address-block h4,
.checkout-payment-block h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--xd-gold);
}
.checkout-address-book { margin-bottom: 1.5rem; }
.checkout-address-book h4 { font-size: 0.95rem; margin-bottom: 0.75rem; }
.address-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.address-card-select { cursor: pointer; }
.address-card-select input { position: absolute; opacity: 0; pointer-events: none; }
.address-card-inner {
    display: block;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 100%;
}
.address-card-select:has(input:checked) .address-card-inner,
.address-card-select:hover .address-card-inner {
    border-color: rgba(201, 162, 39, 0.5);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.15);
}
.address-card-inner strong { display: block; margin-bottom: 0.25rem; }
.address-card-inner small { color: var(--text-muted); font-size: 0.8rem; }
.address-card-inner p { margin: 0.5rem 0 0.25rem; font-size: 0.85rem; line-height: 1.45; }
.address-card-inner em { font-style: normal; font-size: 0.78rem; color: var(--xd-gold); }
.payment-options-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}
.payment-card-option { cursor: pointer; }
.payment-card-option input { position: absolute; opacity: 0; }
.payment-card-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    font-weight: 500;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    min-height: 100%;
}
.payment-card-option:has(input:checked) .payment-card-inner {
    border-color: var(--xd-gold);
    background: rgba(201, 162, 39, 0.06);
}
.payment-card-icon { font-size: 1.25rem; }
.checkout-hint {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.checkout-submit-btn {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
}
.checkout-summary-v2 .checkout-summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    max-height: 280px;
    overflow-y: auto;
}
.checkout-summary-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 0.65rem;
    align-items: center;
    font-size: 0.85rem;
}
.checkout-summary-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.checkout-summary-item strong { display: block; font-size: 0.82rem; }
.checkout-summary-item small { color: var(--text-muted); }
.checkout-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─── Accounting v2 ─────────────────────────────────────── */
.accounting-header { align-items: flex-start; }
.accounting-date-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.accounting-date-filter .form-control { width: auto; min-width: 140px; }
.accounting-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding: 0.35rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.accounting-tab {
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.accounting-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.accounting-tab.is-active {
    color: var(--xd-gold);
    background: rgba(201, 162, 39, 0.12);
}
.accounting-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.accounting-kpi .label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.accounting-kpi .value { font-size: 1.5rem; font-weight: 700; margin: 0.35rem 0; }
.accounting-kpi small { color: var(--text-muted); font-size: 0.75rem; }
.accounting-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.accounting-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.accounting-panel h3 { font-size: 1rem; margin-bottom: 1rem; }
.accounting-trend-list { display: flex; flex-direction: column; gap: 0.5rem; }
.accounting-trend-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.accounting-trend-row:last-child { border-bottom: none; }
.accounting-quick-entry {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.accounting-quick-entry .form-control { flex: 1; min-width: 120px; }

@media (max-width: 900px) {
    .checkout-layout-v2 { grid-template-columns: 1fr; }
    .checkout-form-grid,
    .checkout-address-grid { grid-template-columns: 1fr; }
    .checkout-summary-v2 { position: static; }
    .accounting-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .accounting-kpi-grid { grid-template-columns: 1fr; }
    .payment-options-v2 { grid-template-columns: 1fr; }
}

/* ═══ DEALER & AFFILIATE PANELS ═════════════════════════════ */
.panel-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.panel-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
    opacity: 0.85;
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.panel-nav-link:hover .panel-nav-icon,
.panel-nav-link.active .panel-nav-icon {
    color: var(--xd-gold);
    opacity: 1;
    transform: scale(1.08);
}
.panel-nav-link--accent {
    border: 1px solid rgba(201, 162, 39, 0.25);
    background: rgba(201, 162, 39, 0.06);
}
.panel-nav-link--accent:hover,
.panel-nav-link--accent.active {
    background: rgba(201, 162, 39, 0.12);
    border-color: rgba(201, 162, 39, 0.45);
}
.panel-sidebar-badge--dealer { color: #7eb8e8; }
.panel-sidebar-badge--affiliate { color: var(--xd-gold-light); }

.panel-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}
.panel-topbar-portal {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--xd-gold);
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.08);
}
.panel-topbar-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
}
.panel-topbar-page {
    font-size: 0.88rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.panel-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--border);
}
.panel-page-head h1 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin: 0 0 0.3rem; }
.panel-page-subtitle { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.panel-page-head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.panel-filter-bar {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    align-items: center;
}
.panel-filter-bar .form-control { max-width: 280px; }

.panel-info-card h3 { margin: 0 0 1rem; font-size: 1.05rem; }
.panel-info-list { list-style: none; margin: 0; padding: 0; }
.panel-info-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.panel-info-list li span { color: var(--text-muted); }
.panel-info-list li strong { color: var(--xd-gold); }
.panel-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.panel-form-section { font-size: 1rem; margin-bottom: 1rem; }
.panel-kpi-svg { display: flex; align-items: center; justify-content: center; }

.dealer-order-layout .dash-sidebar { position: sticky; top: 1rem; }
.dealer-order-summary h3 { margin: 0 0 1rem; font-size: 1rem; }
.dealer-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.dealer-summary-total {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1rem;
    color: var(--text);
}
.dealer-summary-total strong { color: var(--xd-gold); font-size: 1.15rem; }

.row-warning { background: rgba(255, 152, 0, 0.06); }
.row-warning:hover td { background: rgba(255, 152, 0, 0.1) !important; }
.text-warning { color: #ffb74d; font-weight: 600; }
.status-pill--warn {
    margin-left: 0.35rem;
    font-size: 0.65rem;
    background: rgba(255, 152, 0, 0.15);
    color: #ffb74d;
    border-color: rgba(255, 152, 0, 0.3);
}

.aff-copy-btn.is-copied {
    border-color: rgba(76, 175, 80, 0.5);
    color: #81c784;
    animation: copyPulse 0.4s ease;
}
@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.panel-stagger > * { animation: panelFadeUp 0.5s ease both; }
.panel-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.panel-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.panel-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.panel-stagger > *:nth-child(4) { animation-delay: 0.2s; }
@keyframes panelFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .panel-layout .fade-up {
        opacity: 0;
        transform: translateY(14px);
        animation: panelFadeUp 0.55s ease forwards;
    }
    .panel-layout .dash-widget,
    .panel-layout .dash-kpi {
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .panel-layout .dash-widget:hover,
    .panel-layout .dash-kpi:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-gold);
    }
}

@media (max-width: 900px) {
    .dealer-order-layout { grid-template-columns: 1fr !important; }
    .dealer-order-layout .dash-sidebar { position: static; }
    .panel-topbar-page { display: none; }
}

/* ===== BLOG ===== */
.blog-hero { padding: 3rem 0 2rem; }
.blog-hero--article { padding-bottom: 1.5rem; }
.blog-hero-lead { max-width: 640px; color: var(--text-muted); margin-top: 0.75rem; }
.blog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding-bottom: 4rem; }
.blog-sidebar { position: sticky; top: 6rem; align-self: start; }
.blog-search { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.blog-categories h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.75rem; }
.blog-categories a { display: block; padding: 0.45rem 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.blog-categories a.is-active { color: var(--xd-gold); font-weight: 600; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.blog-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.blog-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.blog-card-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-elevated); }
.blog-card-image--placeholder { background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card)); min-height: 160px; }
.blog-card-body { padding: 1.25rem; }
.blog-card-category { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--xd-gold); margin-bottom: 0.5rem; }
.blog-card-body h2, .blog-card-body h3 { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.35; margin: 0 0 0.5rem; }
.blog-card-meta { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem; }
.blog-pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.blog-page-link { padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--text); }
.blog-page-link.is-active { background: var(--xd-gold); color: #111; border-color: var(--xd-gold); }
.blog-breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.blog-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.blog-article-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; }
.blog-article-wrap { max-width: 820px; margin: 0 auto 4rem; }
.blog-article-cover img { width: 100%; border-radius: 12px; margin-bottom: 2rem; }
.blog-article-content h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 2rem 0 1rem; }
.blog-article-content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; }
.blog-article-content p { line-height: 1.8; margin-bottom: 1rem; color: var(--text); }
.blog-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.blog-tag { padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--bg-elevated); font-size: 0.8rem; border: 1px solid var(--border); }
.blog-cta-box { padding: 2rem; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); text-align: center; margin: 3rem 0; }
.blog-related h2 { font-family: var(--font-display); margin-bottom: 1rem; }
.blog-back-link { color: var(--xd-gold); text-decoration: none; display: inline-block; margin-top: 0.75rem; }
.blog-inline-image { margin: 1.5rem 0; }
.blog-inline-image img { width: 100%; border-radius: 12px; height: auto; }
.blog-inline-image figcaption { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }
@media (max-width: 900px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
}
