/* ═══════════════════════════════════════════════════════════════════════════
   OpticAR — Editorial Light + AR Dark Design System
   "See yourself differently"
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Option A: Light Editorial (default) ─────────────────────────────────── */
:root {
    --color-bg:           #FAFAF8;
    --color-surface:      #FFFFFF;
    --color-text:         #0A0A0A;
    --color-text-muted:   #6B6B6B;
    --color-accent:       #1A1A1A;
    --color-accent-hover: #333333;
    --color-highlight:    #C8A96E;
    --color-border:       #E8E8E4;
    --color-img-bg:       #F0F0EC;

    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    --container-max: 1280px;
    --gutter:        24px;
    --section-pad:   120px;
    --nav-height:    72px;

    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
    --transition:    300ms var(--ease-out);
    --transition-fast: 200ms var(--ease-out);

    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;

    /* Legacy aliases (seller/admin compat) */
    --background:               var(--color-bg);
    --surface:                  var(--color-surface);
    --on-surface:               var(--color-text);
    --on-surface-variant:       var(--color-text-muted);
    --primary:                  var(--color-accent);
    --on-primary:               #FFFFFF;
    --secondary:                var(--color-highlight);
    --outline:                  var(--color-border);
    --outline-variant:          var(--color-border);
    --error:                    #B42318;
    --error-container:          #FEF3F2;
    --on-error-container:       #7A271A;
    --font-display:             'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-body:                'Inter', system-ui, sans-serif;
    --container-max:            1280px;
    --section-gap:              120px;
    --radius:                   2px;
    --radius-lg:                8px;
    --radius-full:              9999px;
    --transition-base:          var(--transition);
    --transition-fast:          200ms var(--ease-out);
}

/* ── Option B: Dark AR theme ─────────────────────────────────────────────── */
.theme-dark,
.ar-page {
    --color-bg:           #0C0C0E;
    --color-surface:      #141416;
    --color-text:         #F5F5F3;
    --color-text-muted:   #888888;
    --color-accent:       #FFFFFF;
    --color-accent-hover: #E0E0DE;
    --color-highlight:    #6C63FF;
    --color-border:       #2A2A2E;
    --color-img-bg:       #1A1A1E;

    --background:         var(--color-bg);
    --surface:            var(--color-surface);
    --on-surface:         var(--color-text);
    --on-surface-variant: var(--color-text-muted);
    --primary:            var(--color-accent);
    --secondary:          var(--color-highlight);
    --outline:            var(--color-border);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ── Scroll reveal — visible by default until JS initializes ─────────────── */
[data-reveal] {
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
html.reveal-init [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(20px);
}
html.reveal-init [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Typography utilities ────────────────────────────────────────────────── */
.section-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.display-headline {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    background: var(--color-accent);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    border: none;
    cursor: pointer;
}
.btn-cta-primary:hover { background: var(--color-accent-hover); }

.btn-cta-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    background: transparent;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
}
.btn-cta-ghost:hover { border-color: var(--color-text); }

.btn-full { width: 100%; }
.btn-lg { height: 52px; }

/* ── Blazor loading & error ────────────────────────────────────────────────── */
#particle-canvas { display: none !important; }

#blazor-error-ui {
    background: #FEF3F2;
    color: #7A271A;
    bottom: 0; left: 0;
    display: none;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
    border-top: 1px solid #FECDCA;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

.loading-progress {
    position: absolute;
    display: block;
    width: 6rem; height: 6rem;
    inset: 30vh 0 auto 0;
    margin: 0 auto;
}
.loading-progress circle {
    fill: none;
    stroke: var(--color-border);
    stroke-width: 0.5rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: var(--color-accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    inset: calc(30vh + 2.75rem) 0 auto 0;
}
.loading-progress-text::after { content: var(--blazor-load-percentage-text, "Loading"); }

/* ═══════════════════════════════════════════════════════════════════════════
   APP SHELL
   ═══════════════════════════════════════════════════════════════════════════ */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.app-main { flex: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 clamp(20px, 4vw, 48px);
    background: transparent;
    transition: background var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}
.top-nav.scrolled,
.top-nav--solid {
    background: var(--color-surface);
    border-bottom-color: var(--color-border);
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-self: start;
}
.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-self: center;
}
.nav-link-item ::deep a {
    position: relative;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 4px 0;
    transition: color var(--transition-fast);
}
.nav-link-item ::deep a:hover { color: var(--color-text); }
.nav-link-item ::deep a.active {
    color: var(--color-text);
}
.nav-link-item ::deep a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 1px;
    background: var(--color-text);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: end;
}

.nav-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    color: var(--color-text);
    transition: opacity var(--transition-fast);
}
.nav-cart-btn:hover { opacity: 0.7; }

.nav-cart-badge {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    background: var(--color-accent);
    color: #FFF;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-sign-in-btn {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 8px 0;
    border-bottom: 1px solid var(--color-text);
    transition: opacity var(--transition-fast);
}
.nav-sign-in-btn:hover { opacity: 0.6; }

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 0;
}
.nav-user-avatar,
.nav-user-initial {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.nav-user-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-img-bg);
    font-size: 13px;
    font-weight: 500;
}
.nav-user-name {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text);
}
.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 8px 0;
    z-index: 100;
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--color-text);
    transition: background var(--transition-fast);
    text-align: left;
}
.nav-dropdown-item:hover { background: var(--color-img-bg); }
.nav-dropdown-item.danger { color: var(--error); }
.nav-dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 4px 0;
}

.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    color: var(--color-text);
}

.nav-mobile-drawer {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--nav-height);
    position: relative;
}

.hero-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: var(--gutter);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    align-items: center;
    width: 100%;
}

.hero-content {
    padding: 80px 0;
    text-align: left;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 0.95;
    margin-bottom: 24px;
}
.hero-headline em {
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--color-text-muted);
    max-width: 380px;
    margin-bottom: 40px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}
.hero-visual-img {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.08));
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: var(--gutter);
    display: flex;
    align-items: center;
    gap: 12px;
}
.scroll-indicator-line {
    width: 1px;
    height: 48px;
    background: var(--color-border);
    position: relative;
    overflow: hidden;
}
.scroll-indicator-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 24px;
    background: var(--color-text);
    animation: scrollPulse 2s var(--ease-out) infinite;
}
.scroll-indicator-text {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    writing-mode: vertical-rl;
}
@keyframes scrollPulse {
    0%, 100% { transform: translateY(-100%); opacity: 0; }
    50% { transform: translateY(100%); opacity: 1; }
}

.auth-hero-strip {
    padding: calc(var(--nav-height) + 48px) var(--gutter) 48px;
    border-bottom: 1px solid var(--color-border);
}
.auth-hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}
.auth-hero-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.auth-hero-name {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 300;
    letter-spacing: -0.02em;
}
.auth-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════════════
   CATALOG & PRODUCT GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.catalog-section {
    padding: var(--section-pad) var(--gutter);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.catalog-header { margin-bottom: 48px; }
.catalog-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
}
.catalog-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.catalog-subtitle {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-muted);
}

.catalog-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.catalog-filters::-webkit-scrollbar { display: none; }

.filter-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    flex-shrink: 0;
    margin-right: 8px;
}

.filter-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.filter-chip:hover { border-color: var(--color-text); color: var(--color-text); }
.filter-chip.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gutter);
}

.product-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.product-card-link { display: block; color: inherit; }

.product-img-wrap {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--color-img-bg);
    overflow: hidden;
    margin-bottom: 16px;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 400ms var(--ease-out);
}
.product-card:hover .product-img { transform: scale(0.93); }

.product-hover-pill {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    padding: 8px 16px;
    background: var(--color-accent);
    color: #FFF;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
    pointer-events: none;
}
.product-card:hover .product-hover-pill {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ar-badge-pill {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 10px;
    background: var(--color-highlight);
    color: #0A0A0A;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-info { text-align: left; }
.product-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}
.product-brand {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.product-style {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.product-name {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.product-price {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
    margin-top: 8px;
}

.product-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.product-action-btn {
    flex: 1;
    height: 40px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    transition: all var(--transition-fast);
}
.product-action-btn:hover { border-color: var(--color-text); }
.product-action-btn--primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFF;
}
.product-action-btn--primary:hover { background: var(--color-accent-hover); }

.fav-btn {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}
.fav-btn.fav-active { color: var(--color-highlight); }

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 64px;
}

/* ── Skeleton loading ──────────────────────────────────────────────────────── */
.loading-shimmer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gutter);
}
.shimmer-card {
    aspect-ratio: 4/5;
    background: linear-gradient(90deg, var(--color-img-bg) 25%, #E8E8E4 50%, var(--color-img-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.catalog-error,
.empty-state {
    text-align: left;
    padding: 64px 0;
}
.empty-state-title {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 8px;
}
.empty-state-text { color: var(--color-text-muted); font-weight: 300; }
.btn-retry {
    margin-top: 16px;
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT DETAIL
   ═══════════════════════════════════════════════════════════════════════════ */
.pdp-section {
    padding: calc(var(--nav-height) + 48px) var(--gutter) var(--section-pad);
    max-width: var(--container-max);
    margin: 0 auto;
}
.pdp-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 64px;
    align-items: start;
}
.pdp-gallery-main {
    aspect-ratio: 1;
    background: var(--color-img-bg);
    overflow: hidden;
    margin-bottom: 16px;
}
.pdp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pdp-try-on-btn { margin-bottom: 16px; }
.pdp-thumbnails {
    display: flex;
    gap: 8px;
}
.pdp-thumb {
    width: 72px; height: 72px;
    background: var(--color-img-bg);
    border: 1px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}
.pdp-thumb.active,
.pdp-thumb:hover { border-color: var(--color-text); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp-details { padding-top: 8px; }
.pdp-collection {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.pdp-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.pdp-price {
    font-family: var(--font-mono);
    font-size: 22px;
    margin-bottom: 32px;
}
.pdp-divider {
    height: 1px;
    background: var(--color-border);
    margin: 24px 0;
}
.pdp-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.pdp-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.pdp-swatch {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: box-shadow var(--transition-fast);
}
.pdp-swatch.selected {
    box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-text);
}
.pdp-description {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 24px var(--gutter);
    background: var(--color-surface);
}
.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.footer-links {
    display: flex;
    gap: 32px;
}
.footer-links a {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-text); }
.footer-copy {
    font-size: 12px;
    color: var(--color-text-muted);
    width: 100%;
    margin-top: 24px;
    text-align: left;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CART DRAWER
   ═══════════════════════════════════════════════════════════════════════════ */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.4);
    z-index: 2000;
    animation: fadeIn 200ms var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(420px, 100vw);
    height: 100vh;
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 400ms var(--ease-out);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
}
.cart-drawer-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    flex: 1;
}
.cart-item-count {
    font-size: 12px;
    color: var(--color-text-muted);
}
.cart-close-btn {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}
.cart-close-btn:hover { color: var(--color-text); }

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 24px;
    text-align: left;
}
.cart-empty-title {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
}
.cart-empty-sub {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.cart-item-img {
    width: 80px; height: 80px;
    object-fit: cover;
    background: var(--color-img-bg);
}
.cart-item-img-placeholder {
    width: 80px; height: 80px;
    background: var(--color-img-bg);
}
.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}
.cart-item-price {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.cart-qty-row { display: flex; align-items: center; gap: 8px; }
.cart-qty-btn {
    width: 28px; height: 28px;
    border: 1px solid var(--color-border);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-qty-val {
    font-family: var(--font-mono);
    font-size: 13px;
    min-width: 24px;
    text-align: center;
}
.cart-remove-btn {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-left: 8px;
}
.cart-item-subtotal {
    font-family: var(--font-mono);
    font-size: 14px;
    align-self: start;
}

.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--color-border);
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.cart-total-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cart-total-amount {
    font-family: var(--font-mono);
    font-size: 20px;
}
.cart-tax-note {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

/* Cart fly animation */
@keyframes cartFly {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.2) translate(var(--fly-x, 200px), var(--fly-y, -400px)); opacity: 0; }
}
.cart-fly-clone {
    position: fixed;
    z-index: 3000;
    pointer-events: none;
    animation: cartFly 600ms var(--ease-out) forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AR TRY-ON (Dark theme)
   ═══════════════════════════════════════════════════════════════════════════ */
.ar-page {
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
}

.ar-top-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}
.ar-exit-btn {
    justify-self: start;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
}
.ar-exit-btn:hover { color: var(--color-text); }
.ar-product-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
}
.ar-top-actions {
    justify-self: end;
    display: flex;
    gap: 12px;
    align-items: center;
}
.ar-add-cart-btn {
    height: 40px;
    padding: 0 20px;
    background: var(--color-accent);
    color: #0C0C0E;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}
.ar-add-cart-btn:hover { background: var(--color-accent-hover); }

.ar-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 65fr 35fr;
    min-height: 0;
}

.ar-viewport-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.ar-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.ar-video,
.ar-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ar-canvas { pointer-events: none; z-index: 2; }

.ar-crosshair {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 600ms var(--ease-out);
}
.ar-crosshair.hidden { opacity: 0; }
.ar-crosshair-h,
.ar-crosshair-v {
    position: absolute;
    background: rgba(255,255,255,0.4);
}
.ar-crosshair-h { width: 40px; height: 1px; }
.ar-crosshair-v { width: 1px; height: 40px; }

.ar-confidence-dots {
    position: absolute;
    bottom: 16px; left: 16px;
    display: flex;
    gap: 6px;
    z-index: 4;
}
.ar-conf-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #888;
    transition: background var(--transition-fast);
}
.ar-conf-dot.active-red    { background: #E05252; }
.ar-conf-dot.active-yellow { background: #D4A017; }
.ar-conf-dot.active-green  { background: #4ADE80; }

.ar-frame-pill {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    padding: 10px 20px;
    background: rgba(12, 12, 14, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.ar-frame-pill-name {
    font-size: 13px;
    font-weight: 400;
}
.ar-frame-pill-price {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text-muted);
}

.ar-no-face {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(12, 12, 14, 0.6);
    text-align: center;
    padding: 24px;
}
.ar-no-face p {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-top: 12px;
}

.ar-model-loading {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(12, 12, 14, 0.8);
    gap: 16px;
}
.ar-skeleton-bar {
    width: 120px; height: 4px;
    background: var(--color-border);
    overflow: hidden;
    position: relative;
}
.ar-skeleton-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-highlight);
    animation: shimmer 1.2s infinite;
}

.ar-sidebar {
    border-left: 1px solid var(--color-border);
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ar-panel-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.ar-frame-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ar-frame-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 150ms var(--ease-out);
    opacity: 1;
}
.ar-frame-item:hover { border-color: var(--color-border); }
.ar-frame-item.selected { border-color: var(--color-text-muted); }
.ar-frame-item.loading { opacity: 0.5; }
.ar-frame-thumb {
    width: 48px; height: 48px;
    object-fit: cover;
    background: var(--color-img-bg);
    flex-shrink: 0;
}
.ar-frame-thumb-placeholder {
    width: 48px; height: 48px;
    background: var(--color-img-bg);
    flex-shrink: 0;
}
.ar-frame-item-info { flex: 1; min-width: 0; }
.ar-frame-item-name {
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ar-frame-item-price {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
}

.ar-variant-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ar-variant-chip {
    padding: 8px 14px;
    font-size: 12px;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}
.ar-variant-chip:hover,
.ar-variant-chip.selected {
    border-color: var(--color-text);
    color: var(--color-text);
}

.style-ai-panel {
    padding: 20px;
    border: 1px solid var(--color-border);
    position: relative;
}
.style-ai-panel.thinking {
    border-color: transparent;
    background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
                linear-gradient(135deg, var(--color-highlight), transparent, var(--color-highlight)) border-box;
    border: 1px solid transparent;
    animation: aiPulse 2s ease-in-out infinite;
}
@keyframes aiPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}
.style-ai-title {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.style-ai-text {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: 16px;
}
.style-ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.style-ai-chip {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.style-ai-chip:hover {
    border-color: var(--color-highlight);
    color: var(--color-text);
}

.ar-snapshot-btn {
    width: 100%;
    height: 44px;
    border: 1px solid var(--color-border);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}
.ar-snapshot-btn:hover { border-color: var(--color-text); }
.ar-snapshot-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ar-loading-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 48px;
}
.ar-loading-screen p {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-muted);
}

.ar-error {
    padding: 16px 24px;
    margin: 16px 24px;
    border: 1px solid #E05252;
    color: #E05252;
    font-size: 14px;
}

.ai-recommend-list { display: flex; flex-direction: column; gap: 16px; }
.ai-recommend-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--color-border);
    transition: border-color var(--transition-fast);
}
.ai-recommend-card:hover { border-color: var(--color-text-muted); }
.rec-img {
    width: 64px; height: 64px;
    object-fit: cover;
    background: var(--color-img-bg);
    flex-shrink: 0;
}
.rec-info h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}
.rec-reason {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}
.rec-actions { display: flex; gap: 8px; }
.rec-action-btn {
    padding: 4px 10px;
    font-size: 11px;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}
.rec-action-btn:hover { border-color: var(--color-text); color: var(--color-text); }

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════════════════ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px var(--gutter);
    background: var(--color-bg);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 48px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}
.auth-logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.auth-subtitle {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}
.auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}
.auth-tab {
    flex: 1;
    padding: 12px;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-fast);
}
.auth-tab.active {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
}
.form-input:focus {
    outline: none;
    border-color: var(--color-text);
}
.auth-logo { margin-bottom: 8px; }
.auth-logo-text span { font-style: italic; }
.error-banner {
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid #FECDCA;
    background: #FEF3F2;
    color: #7A271A;
    font-size: 14px;
}
.signing-in-msg {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
    padding: 24px 0;
}
.spinner {
    width: 16px; height: 16px;
    border: 1px solid var(--color-border);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tab-hint {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}
.email-form label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.email-form input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 16px;
}
.email-form input:focus {
    outline: none;
    border-color: var(--color-text);
}
.btn-submit {
    width: 100%;
    height: 48px;
    background: var(--color-accent);
    color: #FFF;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 8px;
    transition: background var(--transition-fast);
}
.btn-submit:hover { background: var(--color-accent-hover); }
.form-footer {
    margin-top: 20px;
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: left;
}
.form-footer a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* AI Stylist page */
.stylist-section {
    padding: calc(var(--nav-height) + 48px) var(--gutter) var(--section-pad);
    max-width: var(--container-max);
    margin: 0 auto;
}
.stylist-header { margin-bottom: 48px; max-width: 560px; }
.stylist-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.stylist-subtitle {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--color-text-muted);
}
.stylist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.stylist-viewport {
    aspect-ratio: 3/4;
    width: 100%;
}
.camera-placeholder {
    aspect-ratio: 3/4;
    background: var(--color-img-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    text-align: left;
    border: 1px solid var(--color-border);
}
.camera-placeholder p {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-top: 16px;
}
.scan-result-card {
    padding: 24px;
    border: 1px solid var(--color-border);
    margin-top: 16px;
}
.scan-result-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 16px;
}
.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}
.result-item .label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.result-item .value {
    font-family: var(--font-mono);
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.checkout-page {
    padding: calc(var(--nav-height) + 48px) var(--gutter) var(--section-pad);
    max-width: 720px;
    margin: 0 auto;
}
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
}
.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.checkout-step.active { color: var(--color-text); }
.checkout-step.done { color: var(--color-text-muted); }
.step-circle {
    width: 32px; height: 32px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
}
.checkout-step.active .step-circle {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFF;
}
.checkout-step.done .step-circle {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #FFF;
}
.checkout-step-line {
    width: 48px;
    height: 1px;
    background: var(--color-border);
    margin: 0 8px;
    margin-bottom: 20px;
}
.checkout-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 32px;
}
.checkout-card-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.checkout-item-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.checkout-item-img {
    width: 80px; height: 80px;
    object-fit: cover;
    background: var(--color-img-bg);
}
.checkout-item-img-ph {
    width: 80px; height: 80px;
    background: var(--color-img-bg);
}
.checkout-item-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}
.checkout-item-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 300;
}
.checkout-item-total {
    font-family: var(--font-mono);
    font-size: 14px;
}
.checkout-totals { margin-top: 24px; }
.checkout-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-text-muted);
}
.checkout-total-row.grand {
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
    padding-top: 16px;
    color: var(--color-text);
    font-size: 16px;
}
.checkout-total-row.grand span:last-child {
    font-family: var(--font-mono);
    font-size: 20px;
}
.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.checkout-form-grid .form-group label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.checkout-form-grid input,
.checkout-form-grid select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text);
}
.checkout-form-grid input:focus,
.checkout-form-grid select:focus {
    outline: none;
    border-color: var(--color-text);
}
.checkout-summary-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--color-img-bg);
    margin-bottom: 24px;
    font-size: 14px;
}
.checkout-grand-total {
    font-family: var(--font-mono);
    font-weight: 500;
}
.pay-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}
.pay-tab {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-fast);
}
.pay-tab.active {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}
.cod-info {
    padding: 24px 0;
    text-align: left;
}
.cod-info h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 8px;
}
.cod-info p {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}
.cod-points {
    list-style: none;
    padding: 0;
}
.cod-points li {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-muted);
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}
.cod-points li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 4px; height: 4px;
    background: var(--color-highlight);
    border-radius: 50%;
    transform: translateY(-50%);
}
.card-form .form-group label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.card-form input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 15px;
    margin-bottom: 16px;
}
.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.card-secure-note {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 8px;
}
.order-success { text-align: left; }
.success-title {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 8px;
}
.success-order-number {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}
.success-message {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}
.success-details {
    border: 1px solid var(--color-border);
    padding: 16px;
}
.success-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
}
.success-detail-row:last-child { border-bottom: none; }
.success-detail-row span:first-child { color: var(--color-text-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   PURCHASES & HISTORY
   ═══════════════════════════════════════════════════════════════════════════ */
.page-section {
    padding: calc(var(--nav-height) + 48px) var(--gutter) var(--section-pad);
    max-width: var(--container-max);
    margin: 0 auto;
}
.page-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.page-subtitle {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 48px;
}
.info-banner {
    padding: 16px 20px;
    border: 1px solid var(--color-border);
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}
.info-banner a {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--color-text);
}
.info-banner.warning {
    border-color: #FECDCA;
    background: #FFFBFA;
    color: #7A271A;
}
.order-list { display: flex; flex-direction: column; gap: 16px; }
.order-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--color-border);
    align-items: start;
}
.order-card-img {
    width: 80px; height: 80px;
    object-fit: cover;
    background: var(--color-img-bg);
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
.order-card-number {
    font-size: 14px;
    font-weight: 500;
}
.order-card-date {
    font-size: 12px;
    color: var(--color-text-muted);
}
.order-card-name {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 4px;
}
.order-card-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 300;
}
.status-pill {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    margin-top: 8px;
}
.history-page {
    padding: calc(var(--nav-height) + 48px) var(--gutter) var(--section-pad);
    max-width: var(--container-max);
    margin: 0 auto;
}
.catalog-empty {
    padding: 64px 0;
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-muted);
    text-align: left;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL & TOAST
   ═══════════════════════════════════════════════════════════════════════════ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.4);
    z-index: 2500;
}
.modal-card {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 48px));
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 40px;
    z-index: 2501;
}
.modal-close-btn {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}
.modal-icon {
    margin-bottom: 20px;
    color: var(--color-text);
}
.modal-title {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 8px;
}
.modal-subtitle {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.review-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.4);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
}
.review-modal {
    width: min(480px, 100%);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 32px;
}
.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.review-modal-title {
    font-family: var(--font-display);
    font-size: 24px;
}
.review-stars {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}
.review-star {
    font-size: 28px;
    color: var(--color-border);
    cursor: pointer;
    transition: color var(--transition-fast);
    background: none;
    border: none;
    padding: 0;
}
.review-star.active { color: var(--color-highlight); }
.review-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    resize: vertical;
    margin-bottom: 16px;
}
.review-textarea:focus { outline: none; border-color: var(--color-text); }
.review-modal-footer {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-accent);
    color: #FFF;
    border: 1px solid var(--color-accent);
    min-width: 280px;
    animation: slideUp 300ms var(--ease-out);
}
.toast-success { background: var(--color-accent); }
.toast-error { background: #7A271A; border-color: #7A271A; }
.toast-info { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
.toast-message { flex: 1; font-size: 13px; }
.toast-close-btn {
    color: inherit;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}
.toast-close-btn:hover { opacity: 1; }

.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 24px;
    padding: 12px 20px;
    background: var(--color-accent);
    color: #FFF;
    font-size: 13px;
    z-index: 3000;
    animation: slideUp 300ms var(--ease-out);
}
@keyframes slideUp {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AI STYLIST (extended)
   ═══════════════════════════════════════════════════════════════════════════ */
.stylist-container { /* alias */ }
.stylist-content { /* used in grid */ }
.camera-section { display: flex; flex-direction: column; gap: 16px; }
.stylist-viewport {
    position: relative;
    aspect-ratio: 4/3;
    max-height: 340px;
    background: #000;
    border: 1px solid var(--color-border);
    overflow: hidden;
}
.stylist-viewport video,
.stylist-viewport canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stylist-viewport .ar-crosshair { z-index: 2; }
.recommendations-section { padding-top: 8px; }
.recommendations-section h2 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 24px;
}
.recommendations-empty {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-muted);
}
.scan-btn-wrap { margin-top: 8px; }

/* AR Adjustment Sliders */
.ar-adjust-panel {
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
}
.ar-slider-group {
    margin-bottom: 14px;
}
.ar-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}
.ar-slider-value {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text);
}
.ar-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.ar-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-text);
    cursor: pointer;
    border: 2px solid var(--color-surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.ar-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-text);
    cursor: pointer;
    border: 2px solid var(--color-surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.ar-reset-btn {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.ar-reset-btn:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN PORTAL
   ═══════════════════════════════════════════════════════════════════════════ */
.admin-section {
    padding: calc(var(--nav-height) + 48px) var(--gutter) var(--section-pad);
    max-width: var(--container-max);
    margin: 0 auto;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-img-bg);
    font-weight: 500;
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table-img {
    width: 48px; height: 48px;
    object-fit: cover;
    background: var(--color-img-bg);
}
.admin-form {
    max-width: 640px;
}
.admin-form .form-group { margin-bottom: 20px; }
.admin-form label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 15px;
    font-weight: 300;
    font-family: var(--font-body);
}
.admin-form textarea { min-height: 100px; resize: vertical; }
.admin-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}
.admin-divider {
    height: 1px;
    background: var(--color-border);
    margin: 40px 0;
}
.admin-section-title {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 16px;
}
.admin-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-image-card {
    width: 120px;
    border: 1px solid var(--color-border);
}
.admin-image-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.admin-image-card-body {
    padding: 8px;
    text-align: center;
}
.admin-badge {
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-highlight);
}
.admin-pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}
.admin-pagination span {
    font-size: 13px;
    color: var(--color-text-muted);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    background: transparent;
    transition: border-color var(--transition-fast);
}
.btn-secondary:hover { border-color: var(--color-text); }
.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 11px;
}
.btn-danger {
    border-color: #FECDCA;
    color: #7A271A;
}
.btn-danger:hover { border-color: #7A271A; }

/* ═══════════════════════════════════════════════════════════════════════════
   SELLER PORTAL
   ═══════════════════════════════════════════════════════════════════════════ */
.seller-shell {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
}
.seller-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
}
.seller-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 16px;
}
.seller-logo-mark {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}
.seller-logo-brand {
    font-family: var(--font-display);
    font-size: 1.125rem;
    display: block;
    letter-spacing: -0.02em;
}
.seller-portal-badge {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.seller-nav {
    flex: 1;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.seller-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
}
.seller-nav-link:hover { color: var(--color-text); background: var(--color-img-bg); }
.seller-nav-link.active {
    color: var(--color-text);
    border-left-color: var(--color-text);
    background: var(--color-img-bg);
}
.seller-nav-icon { display: flex; align-items: center; opacity: 0.7; }
.seller-sidebar-footer {
    padding: 16px 24px 0;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}
.seller-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.seller-user-initial {
    width: 36px; height: 36px;
    background: var(--color-img-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}
.seller-user-business {
    display: block;
    font-size: 13px;
    font-weight: 500;
}
.seller-user-email {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
}
.seller-signout-btn {
    width: 100%;
    height: 36px;
    border: 1px solid var(--color-border);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    transition: border-color var(--transition-fast);
}
.seller-signout-btn:hover { border-color: var(--color-text); }
.seller-buyer-link {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    padding: 4px 0;
}
.seller-buyer-link:hover { color: var(--color-text); }
.seller-main-wrap { flex: 1; min-width: 0; }
.seller-main { padding: 40px 48px; }
.seller-page { max-width: 1100px; }
.seller-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.seller-page-eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.seller-page-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 400;
    letter-spacing: -0.02em;
}
.seller-btn-primary,
.seller-btn-primary.btn-cta-primary {
    height: 44px;
    padding: 0 20px;
    background: var(--color-accent);
    color: #FFF;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    transition: background var(--transition-fast);
}
.seller-btn-primary:hover { background: var(--color-accent-hover); }
.seller-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.seller-stat-card {
    padding: 20px;
    border: 1px solid var(--color-border);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.seller-stat-card.highlight {
    border-color: var(--color-text);
}
.seller-stat-icon {
    color: var(--color-text-muted);
    flex-shrink: 0;
}
.seller-stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 20px;
    margin-bottom: 4px;
}
.seller-stat-label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.seller-section { margin-bottom: 40px; }
.seller-section-title {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 20px;
}
.seller-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.seller-action-card {
    padding: 24px;
    border: 1px solid var(--color-border);
    text-align: left;
    transition: border-color var(--transition-fast);
}
.seller-action-card:hover { border-color: var(--color-text); }
.seller-action-icon { display: block; margin-bottom: 12px; color: var(--color-text); }
.seller-action-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}
.seller-action-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text-muted);
}
.seller-activity-list { display: flex; flex-direction: column; gap: 0; }
.seller-activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.activity-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.activity-dot.green { background: #4ADE80; }
.activity-dot.yellow { background: var(--color-highlight); }
.activity-text { flex: 1; }
.activity-primary { display: block; font-size: 14px; margin-bottom: 2px; }
.activity-meta { font-size: 12px; color: var(--color-text-muted); }
.activity-amount {
    font-family: var(--font-mono);
    font-size: 14px;
}
.seller-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
    font-size: 14px;
    color: var(--color-text-muted);
}
.seller-spinner {
    width: 16px; height: 16px;
    border: 1px solid var(--color-border);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.seller-empty-state {
    padding: 64px 24px;
    text-align: left;
    border: 1px solid var(--color-border);
}
.seller-empty-icon {
    margin-bottom: 16px;
    color: var(--color-text-muted);
}
.seller-empty-title {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
}
.seller-empty-text {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-muted);
    max-width: 480px;
    margin-bottom: 24px;
    line-height: 1.65;
}
.seller-frames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.seller-frame-card {
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}
.seller-frame-img-wrap {
    aspect-ratio: 4/3;
    background: var(--color-img-bg);
    overflow: hidden;
    position: relative;
}
.seller-frame-img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.seller-frame-no-img {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
}
.seller-frame-body { padding: 16px; flex: 1; }
.seller-frame-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: var(--font-body);
}
.seller-frame-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.seller-frame-brand,
.seller-frame-color-pill,
.seller-frame-style-pill {
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 2px 8px;
    border: 1px solid var(--color-border);
}
.seller-frame-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.seller-frame-footer {
    padding: 16px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.seller-frame-price {
    font-family: var(--font-mono);
    font-size: 16px;
}
.seller-frame-stock {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-left: auto;
}
.seller-frame-stock.low { color: #B45309; }
.seller-frame-stock.out { color: #7A271A; }
.seller-frame-actions { display: flex; gap: 4px; width: 100%; margin-top: 8px; }
.seller-btn-icon {
    width: 36px; height: 36px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}
.seller-btn-icon:hover { border-color: var(--color-text); color: var(--color-text); }
.seller-btn-icon.danger:hover { border-color: #7A271A; color: #7A271A; }
.seller-frames-list { display: flex; flex-direction: column; gap: 16px; }
.seller-frame-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--color-border);
    align-items: flex-start;
    flex-wrap: wrap;
}
.seller-frame-info { flex: 1; min-width: 200px; }
.seller-frame-stats { display: flex; gap: 24px; }
.stat-col { display: flex; flex-direction: column; gap: 4px; }
.stat-label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.stat-value {
    font-family: var(--font-mono);
    font-size: 16px;
}
.seller-date-range { display: flex; gap: 8px; }
.seller-input,
.seller-input.form-select,
.form-select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text);
    border-radius: var(--radius-sm);
}
.seller-alert-error {
    padding: 12px 16px;
    border: 1px solid #FECDCA;
    background: #FFFBFA;
    color: #7A271A;
    font-size: 14px;
    margin-bottom: 16px;
}
.seller-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.4);
    z-index: 2000;
}
.seller-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 48px));
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 32px;
    z-index: 2001;
}
.seller-modal-title {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 24px;
}
.seller-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.seller-form-grid .form-group { margin-bottom: 0; }
.seller-form-grid label,
.seller-modal label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.seller-modal input,
.seller-modal textarea,
.seller-modal select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 16px;
}
.seller-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-row .form-group { margin-bottom: 16px; }
.hint { font-weight: 300; text-transform: none; letter-spacing: 0; }
.seller-auth-bg { background: var(--color-bg); }
.not-found-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-height) + 48px) var(--gutter) var(--section-pad);
    max-width: var(--container-max);
    margin: 0 auto;
}
.not-found-code {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}
.not-found-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.not-found-text {
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 400px;
}

/* ── Seller modals & forms (restored for SellerFrames) ───────────────────── */
.seller-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 200ms var(--ease-out);
}
.seller-modal-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    width: min(560px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 300ms var(--ease-out);
}
.seller-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}
.seller-modal-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    margin: 0;
}
.seller-modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.seller-modal-close:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}
.seller-modal-body { padding: 24px 28px; }
.seller-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 28px 24px;
    border-top: 1px solid var(--color-border);
}
.seller-form-group { margin-bottom: 18px; }
.seller-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}
.seller-form-group input,
.seller-form-group select,
.seller-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    box-sizing: border-box;
}
.seller-form-group input:focus,
.seller-form-group select:focus,
.seller-form-group textarea:focus {
    outline: none;
    border-color: var(--color-text);
}
.seller-form-group textarea { resize: vertical; min-height: 70px; }
.seller-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seller-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.seller-form-divider { border: none; border-top: 1px solid var(--color-border); margin: 20px 0; }
.seller-dropzone {
    border: 1px dashed var(--color-border);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--color-img-bg);
    position: relative;
    transition: border-color var(--transition-fast);
}
.seller-dropzone:hover { border-color: var(--color-text-muted); }
.seller-dropzone.has-file { border-color: var(--color-highlight); }
.seller-dropzone-icon { font-size: 1.5rem; margin-bottom: 8px; opacity: 0.5; }
.seller-dropzone-text { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }
.seller-dropzone-hint { font-size: 11px; color: var(--color-text-muted); margin-top: 6px; }
.seller-img-preview {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    position: relative;
    display: inline-block;
}
.seller-img-preview img { display: block; max-width: 100%; max-height: 160px; object-fit: cover; }
.seller-img-preview-remove {
    position: absolute; top: 6px; right: 6px;
    width: 24px; height: 24px;
    background: rgba(10,10,10,0.7);
    border: none; color: #fff;
    cursor: pointer;
}
.seller-btn-secondary {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    border: 1px solid var(--color-border);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}
.seller-btn-secondary:hover { border-color: var(--color-text); }
.seller-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}
.seller-image-thumb {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid var(--color-border);
    overflow: hidden;
}
.seller-image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.seller-image-thumb .primary-badge {
    position: absolute;
    bottom: 4px; left: 4px;
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--color-accent);
    color: #FFF;
    padding: 2px 6px;
}
.seller-image-thumb .delete-img-btn {
    position: absolute;
    top: 4px; right: 4px;
    width: 22px; height: 22px;
    background: rgba(10,10,10,0.7);
    color: #FFF;
    border: none;
    font-size: 12px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.seller-image-thumb:hover .delete-img-btn { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; padding: 24px 0 0; }
    .hero-content { padding: 48px 0 24px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .loading-shimmer-grid { grid-template-columns: repeat(2, 1fr); }
    .pdp-grid { grid-template-columns: 1fr; gap: 40px; }
    .ar-layout { grid-template-columns: 1fr; }
    .ar-sidebar { border-left: none; border-top: 1px solid var(--color-border); }
    .stylist-grid { grid-template-columns: 1fr; }
    .seller-shell { flex-direction: column; }
    .seller-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 16px 0;
    }
    .seller-main { padding: 24px var(--gutter); }
    .checkout-form-grid { grid-template-columns: 1fr; }
    .order-card { grid-template-columns: 1fr; }
    .seller-form-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .seller-form-row { grid-template-columns: 1fr; }
    .seller-form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --section-pad: 64px; }

    .nav-links,
    .nav-right .nav-user-name { display: none; }
    .nav-hamburger { display: flex; }
    .top-nav { grid-template-columns: 1fr auto; }

    .nav-mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: var(--color-bg);
        padding: calc(var(--nav-height) + 48px) var(--gutter) 48px;
        transform: translateX(100%);
        transition: transform 400ms var(--ease-out);
    }
    .nav-mobile-drawer.open { transform: translateX(0); }
    .nav-mobile-link {
        font-family: var(--font-display);
        font-size: clamp(32px, 8vw, 48px);
        font-weight: 300;
        letter-spacing: -0.02em;
        padding: 16px 0;
        border-bottom: 1px solid var(--color-border);
        color: var(--color-text);
    }

    .product-grid { grid-template-columns: 1fr; }
    .loading-shimmer-grid { grid-template-columns: 1fr; }
    .catalog-header-top { flex-direction: column; align-items: flex-start; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .scroll-indicator { display: none; }
}
