/* ==========================================================================
   ARSAM WHOLESALE LLC — Design System (v2)
   --------------------------------------------------------------------------
   DESIGN READ: trust-first B2B commerce for independent retailers, confident
   industrial-editorial language. Dials: DESIGN_VARIANCE 5 / MOTION_INTENSITY 3
   / VISUAL_DENSITY 4.
   --------------------------------------------------------------------------
   DESIGN LANGUAGE REFERENCES (adapted, never copied):
   1. linear.app/DESIGN.md  — restrained single-accent discipline; hairline
      borders + surface ladder carry hierarchy (no drop shadows); tight
      display tracking (600 weight, negative letter-spacing); 8px radius on
      buttons/inputs, 12px on cards; scarce accent use on brand mark, CTA,
      focus ring only.
   2. stripe/DESIGN.md      — deep navy ink on bright white canvas; tabular
      numerals (`tnum`) wherever money appears; pill badges + tight-radius
      buttons; hairline input borders; commerce-grade contrast discipline.
   --------------------------------------------------------------------------
   FONT CHOICE (documented per anti-slop rules; Inter banned as default):
   - Display/headings: "Sora" (600/700) — confident geometric sans, industrial
     without being tech-startup; negative tracking on headlines.
   - Body/UI/money: "Outfit" (400/500/600) — legible at catalog density,
     tabular figures enabled for all prices. System stack fallback so the
     site works offline of Google Fonts.
   Loaded with font-display:swap (see page <head> link).
   --------------------------------------------------------------------------
   RADIUS SCALE (single documented scale — shape consistency lock):
     xs  4px  — chips, small status badges
     sm  8px  — ALL buttons, ALL inputs, radio-cards
     md 12px  — ALL cards (incl. product cards), toasts, alert banners
   Rule: buttons are never pills, cards are never pill. Badges are pill.
   ========================================================================== */

:root {
  /* Brand — locked */
  --navy: #0b1f3f;
  --navy-deep: #071632;
  --navy-ink: #0b1f3f;
  --amber: #f59e0b;
  --amber-deep: #c97e04;          /* text-safe amber on light surfaces */
  --amber-soft: #fef3e2;          /* amber tint surface */

  /* Surfaces (light theme, locked) */
  --canvas: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef1f5;
  --hairline: #e2e6ed;
  --hairline-strong: #c9d1dd;

  /* Ink */
  --ink: #16233c;                 /* body text — #16233c on white ≈ 13.9:1 */
  --ink-muted: #4c5871;           /* secondary — ≈ 6.4:1 on white */
  --ink-subtle: #68738c;          /* meta/captions — ≈ 4.6:1 on white */

  /* Semantic */
  --success: #157f3d;             /* ≈ 4.9:1 on white */
  --success-bg: #e6f5ec;
  --error: #b42318;               /* ≈ 6.0:1 on white */
  --error-bg: #fdecea;

  /* Type */
  --font-display: "Sora", "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radius (documented scale) */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-pill: 9999px;

  /* Layout */
  --wrap: 1200px;
  --header-h: 68px;

  /* Z-index scale (documented; no arbitrary z-spam) */
  --z-header: 100;
  --z-toast: 200;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy-ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.125rem; }
p { margin-bottom: 0.75em; }
p:last-child { margin-bottom: 0; }

/* Money always sets tabular numerals (Stripe lesson). */
.money, .price, .price-tiers {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- Focus (Linear lesson: scarce amber ring) ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
button:focus-visible, a.btn:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 72px; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink-muted); max-width: 65ch; }
.muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.text-center .section-head { margin-inline: auto; }

/* Kicker = the single allowed eyebrow. Max 1 per 3 sections. */
.kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 12px;
}

/* Page header (interior pages): title + lead, left aligned. */
.page-head { padding-block: 48px 32px; border-bottom: 1px solid var(--hairline); margin-bottom: 40px; }
.page-head h1 { margin-bottom: 10px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.875rem; color: var(--ink-subtle);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--navy); text-decoration: none; }
.breadcrumb li, .breadcrumb span { list-style: none; }
.breadcrumb .sep { color: var(--hairline-strong); }

/* ==========================================================================
   SITE CHROME — header
   ========================================================================== */
header.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
  max-width: var(--wrap); margin-inline: auto; padding-inline: 24px;
}
a.brand {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
a.brand:hover { text-decoration: none; }
img.logo { height: 34px; width: auto; }
span.wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em;
  color: var(--navy); line-height: 1.1;
  display: inline-flex; flex-direction: column;
}
span.wordmark small {
  font-family: var(--font-body); font-weight: 600; font-size: 0.625rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-subtle);
}
nav.main-nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
a.nav-link {
  padding: 8px 14px; border-radius: var(--r-sm);
  font-weight: 500; font-size: 0.9375rem; color: var(--ink-muted);
  text-decoration: none; white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
a.nav-link:hover { color: var(--navy); background: var(--surface); text-decoration: none; }
a.nav-link.active { color: var(--navy); background: var(--amber-soft); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
a.cart-link {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  color: var(--navy); border: 1px solid var(--hairline);
  background: var(--canvas); text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
a.cart-link:hover { border-color: var(--navy); background: var(--surface); }
a.cart-link svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: -8px; right: -8px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--amber); color: var(--navy-deep);
  font-size: 0.6875rem; font-weight: 700; line-height: 20px; text-align: center;
  border: 2px solid var(--canvas);
  font-variant-numeric: tabular-nums;
}
button.mobile-menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--hairline); border-radius: var(--r-sm);
  background: var(--canvas); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
button.mobile-menu-btn span {
  display: block; width: 18px; height: 2px; border-radius: 1px;
  background: var(--navy); transition: transform 0.2s ease, opacity 0.2s ease;
}
button.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
button.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
button.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
nav.mobile-nav { display: none; border-top: 1px solid var(--hairline); background: var(--canvas); }
nav.mobile-nav.open { display: block; }
nav.mobile-nav a {
  display: block; padding: 14px 24px;
  border-bottom: 1px solid var(--hairline);
  font-weight: 500; color: var(--ink); text-decoration: none;
}
nav.mobile-nav a:hover { background: var(--surface); }
nav.mobile-nav a:last-child { border-bottom: none; }

/* ==========================================================================
   SITE CHROME — footer
   ========================================================================== */
footer.site-footer {
  background: var(--navy); color: #c7d0e2;
  margin-top: 96px;
}
.footer-grid {
  max-width: var(--wrap); margin-inline: auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
}
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #c7d0e2; font-size: 0.9375rem; text-decoration: none; }
.footer-col a:hover { color: #ffffff; text-decoration: underline; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand span.wordmark { color: #ffffff; }
.footer-brand span.wordmark small { color: #93a0bb; }
.footer-brand p { font-size: 0.9375rem; line-height: 1.65; color: #aab4cc; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-bottom .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-block: 20px; font-size: 0.8125rem; color: #93a0bb;
}

/* ==========================================================================
   BUTTONS — one label per intent; AA contrast audited
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
  line-height: 1.2; letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
              transform 0.08s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  /* Amber bg + navy text: contrast ≈ 7.6:1 — AA pass */
  background: var(--amber); color: var(--navy-deep);
}
.btn-primary:hover { background: #e8930a; color: var(--navy-deep); }
.btn-dark {
  /* Navy bg + white text: contrast ≈ 15.7:1 — AA pass */
  background: var(--navy); color: #ffffff;
}
.btn-dark:hover { background: var(--navy-deep); color: #ffffff; }
.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #ffffff; }
.btn-sm { padding: 9px 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ==========================================================================
   CARDS + product cards
   ========================================================================== */
.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 28px;
}
.product-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.product-media {
  display: block; aspect-ratio: 4 / 3; background: var(--surface);
  border-bottom: 1px solid var(--hairline); overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-media img { transform: scale(1.03); }
.product-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
}
.product-placeholder span {
  font-family: var(--font-display); font-weight: 700; font-size: 3rem;
  color: var(--navy); opacity: 0.22;
}
.product-info { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-info h3 { font-size: 1rem; line-height: 1.35; }
.product-info h3 a { color: var(--navy-ink); text-decoration: none; }
.product-info h3 a:hover { color: var(--amber-deep); }
.product-sku {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-subtle);
}
.moq-note {
  font-size: 0.8125rem; color: var(--ink-muted); margin: 0;
}
.price-tiers {
  display: flex; align-items: baseline; gap: 8px; margin-top: auto;
}
.price, .money { font-weight: 700; color: var(--navy); }
.price-tiers .price { font-size: 1.25rem; }
.price-tiers .per { font-size: 0.8125rem; color: var(--ink-subtle); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.field { margin-bottom: 20px; }
.field label {
  display: block; font-weight: 600; font-size: 0.9375rem; color: var(--navy);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="password"],
.field input[type="search"],
.field select,
.field textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  transition: border-color 0.18s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-subtle); opacity: 1; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: 2px solid var(--amber-deep);
  outline-offset: 1px;
}
.field .err {
  display: none;
  margin-top: 6px; font-size: 0.8125rem; font-weight: 500; color: var(--error);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--error); }
.field.invalid .err { display: block; }

.form-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 36px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

/* Radio cards (checkout payment methods etc.) */
.radio-card {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--hairline-strong); border-radius: var(--r-sm);
  padding: 16px; cursor: pointer; background: var(--canvas);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.radio-card:hover { border-color: var(--navy); }
.radio-card input[type="radio"] { margin-top: 4px; accent-color: var(--navy); }
.radio-card .t { display: block; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.radio-card .d { display: block; font-size: 0.875rem; color: var(--ink-muted); }
.radio-card.selected { border-color: var(--navy); background: var(--amber-soft); }

/* ==========================================================================
   TABLES
   ========================================================================== */
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { padding: 14px 16px; text-align: left; }
.table th {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-subtle);
  border-bottom: 2px solid var(--hairline-strong);
}
.table td { border-bottom: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: none; }
.table tfoot td { font-weight: 700; color: var(--navy); border-top: 2px solid var(--hairline-strong); }

/* ==========================================================================
   ALERTS / BADGES / TOASTS
   ========================================================================== */
.alert {
  border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 20px;
  font-size: 0.9375rem; border: 1px solid var(--hairline);
  background: var(--surface); color: var(--ink);
}
.alert-error { background: var(--error-bg); border-color: var(--error); color: #7a1a12; }
.alert-success { background: var(--success-bg); border-color: var(--success); color: #0e5c2a; }

.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  background: var(--surface-2); color: var(--navy);
  white-space: nowrap;
}
.badge-amber { background: var(--amber-soft); color: var(--navy-deep); border: 1px solid #f3d9a4; }

.toast-wrap {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none; width: min(92vw, 480px);
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: #ffffff;
  border-radius: var(--r-md); padding: 13px 20px;
  font-size: 0.9375rem; font-weight: 500;
  box-shadow: 0 8px 28px rgba(11, 31, 63, 0.28);
  pointer-events: auto;
}
.toast .tk {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); color: var(--navy-deep);
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}

.demo-banner {
  background: var(--amber); color: var(--navy-deep);
  text-align: center; font-size: 0.875rem; font-weight: 600;
  padding: 10px 16px;
}

/* ==========================================================================
   CHECKOUT / ORDER CHROME
   ========================================================================== */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.review-line {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--hairline);
  font-size: 0.9375rem;
}
.review-line:last-child { border-bottom: none; }
.review-line dt { color: var(--ink-muted); }
.review-line dd { font-weight: 600; color: var(--navy); text-align: right; }

.steps-bar {
  display: flex; align-items: center; gap: 0; margin-bottom: 40px;
}
.step {
  flex: 1; display: flex; align-items: center; gap: 12px;
  padding: 14px 4px; border-bottom: 3px solid var(--hairline);
  font-size: 0.875rem; font-weight: 600; color: var(--ink-subtle);
}
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-muted);
  font-size: 0.8125rem; font-weight: 700; flex-shrink: 0;
}
.step.active { border-color: var(--amber); color: var(--navy); }
.step.active .n { background: var(--amber); color: var(--navy-deep); }
.step.done { border-color: var(--navy); color: var(--navy); }
.step.done .n { background: var(--navy); color: #ffffff; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 24px; background: var(--canvas);
}
.stat .v {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  color: var(--navy); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat .l { font-size: 0.875rem; color: var(--ink-muted); margin-top: 4px; }

/* Admin login (operator surface — never linked from storefront chrome) */
.admin-login-card {
  max-width: 420px; margin: 64px auto;
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 40px;
}

.section.tint { background: var(--surface); }
.section.tint + .section.tint { border-top: 1px solid var(--hairline); }

/* ==========================================================================
   CONTENT-PAGE SUPPLEMENT — layout classes used by about/contact/legal pages
   and admin badge color variants. Same tokens, same radius scale.
   ========================================================================== */

/* Visually-hidden but screen-reader accessible */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Two-column editorial split (about page) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { width: 100%; height: auto; border-radius: var(--r-md); display: block; }

/* Dark stats band (about page) */
.stats-band { background: var(--navy); color: #fff; }
.stats-band .section-head h2, .stats-band h2 { color: #fff; }
.stats-band .stat { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.16); }
.stat-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  color: var(--navy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.875rem; color: var(--ink-muted); margin-top: 4px; }
.stats-band .stat-num { color: var(--amber); }
.stats-band .stat-label { color: rgba(255,255,255,0.72); }

/* Numbered value props (about page) */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value {
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 28px; background: var(--canvas);
}
.value-num {
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  color: var(--amber-deep); letter-spacing: 0.12em;
}
.value h3 { margin: 12px 0 8px; }
.value p { color: var(--ink-muted); margin: 0; }

/* CTA band (about page) */
.cta-band { background: var(--navy-deep); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,0.75); margin-inline: auto; }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.addr-block h3 { margin-bottom: 12px; }
.addr-block p { color: var(--ink-muted); margin: 0; }
.addr-block p strong { color: var(--ink); }
.map-frame iframe {
  border: 0; width: 100%; height: 320px; border-radius: var(--r-md);
  display: block; background: var(--surface-2);
}
.req { color: var(--amber-deep); font-weight: 700; }

/* Legal documents (privacy / terms) */
.legal-doc h2 { margin-top: 40px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--ink-muted); }
.legal-doc p strong, .legal-doc li strong { color: var(--ink); }
.legal-doc ul { margin: 12px 0 12px 20px; }
.legal-doc li { margin-bottom: 8px; }

/* Admin status badge colors */
.badge-blue { background: #e3ecfd; color: #1d3f8f; border: 1px solid #c3d5f7; }
.badge-navy { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.badge-green { background: #e2f5e9; color: #176b3a; border: 1px solid #bfe8cd; }
.badge-red { background: #fde8e8; color: #a12323; border: 1px solid #f6c9c9; }

@media (max-width: 768px) {
  .split, .values-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .map-frame iframe { height: 260px; }
}

/* ==========================================================================
   RESPONSIVE — single-column below 768px (per dial contract)
   ========================================================================== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding-block: 52px; }
  .wrap { padding-inline: 18px; }

  nav.main-nav { display: none; }
  button.mobile-menu-btn { display: inline-flex; }
  header.site-header, .header-inner { height: 60px; }
  img.logo { height: 30px; }

  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 24px; }
  .card { padding: 22px; }

  .step { font-size: 0.75rem; }
  .step .n { width: 24px; height: 24px; font-size: 0.75rem; }
}

/* ==========================================================================
   REDUCED MOTION — MOTION_INTENSITY 3 still honors this, non-negotiable
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   W1b — PAGE-WORKER CLASS COMPLETION (home / shop / product / cart /
   checkout / confirmation). Appended 2026-10-02.
   Every rule below uses the v2 design-system tokens (--navy/--amber/--ink/
   --hairline/--canvas/--surface/--surface-2, radius scale 4/8/12/pill,
   Sora display + Outfit body, tabular numerals for money). No existing
   rule was modified.
   Inventory: 94 classes verified used and styled here. Skipped-as-unused:
   .save-tag (no usage anywhere in the v2 frontend). Already styled in the
   contract, not repeated: .btn-block, .cta-band, .moq-note,
   .radio-card .t, .radio-card .d, .step .n. Special case: "est-total" is
   used as an id (not a class) on product.html, so it is styled via
   #est-total alongside .est-total.
   ========================================================================== */

/* ---------- HERO (index) ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--hairline); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px;
  align-items: center; padding-block: 72px;
}
.hero-copy h1 { margin-bottom: 16px; }
.hero-copy h1 em { font-style: italic; color: var(--amber-deep); }
.sub {
  font-size: 1.125rem; line-height: 1.6; color: var(--ink-muted);
  max-width: 46ch; margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-visual {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-md); border: 1px solid var(--hairline);
}
.hero-note {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 10px 18px; font-size: 0.8125rem; font-weight: 600; color: var(--navy);
}
.dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--success); flex: none;
}

/* ---------- STAT BAND (index) ---------- */
.stat-band { background: var(--navy); }
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-block: 48px;
}
.stat-band .stat { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.16); }
.stat-band .stat-num { color: var(--amber); }
.stat-band .stat-label { color: rgba(255, 255, 255, 0.72); }

/* ---------- PRODUCT GRID (shared) ---------- */
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ---------- CATEGORY BENTO (index) ---------- */
.cat-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-cell {
  position: relative; display: block; min-height: 220px;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--navy-deep); border: 1px solid var(--hairline);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cat-cell:hover { text-decoration: none; border-color: var(--navy); transform: translateY(-2px); }
.cat-cell img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.35s ease;
}
.cat-cell:hover img { transform: scale(1.04); }
.cat-span-2 { grid-column: span 2; }
.cat-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 50, 0) 35%, rgba(7, 22, 50, 0.82) 100%);
}
.cat-body {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  display: flex; flex-direction: column; gap: 2px;
}
.cat-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: -0.01em; color: #ffffff;
}
.cat-count { font-size: 0.8125rem; font-weight: 500; color: rgba(255, 255, 255, 0.78); }

/* ---------- TIER EXPLAINER (index) ---------- */
.tier-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tier-steps { list-style: none; padding: 0; display: grid; gap: 16px; }
.tier-step {
  display: flex; gap: 20px; align-items: flex-start;
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 24px; background: var(--canvas);
}
.tier-step h3 { margin-bottom: 6px; }
.tier-step p { color: var(--ink-muted); margin: 0; font-size: 0.9375rem; }
.tier-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--amber-deep); letter-spacing: -0.02em; line-height: 1; flex: none;
}
.tier-sample h3 { margin-bottom: 4px; }

/* ---------- VALUE SPLIT (index) ---------- */
.value-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.value-media img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-md); border: 1px solid var(--hairline);
}
.value-copy h2 { margin-bottom: 8px; }
.value-list { display: grid; gap: 24px; margin: 28px 0 32px; }
.value-item h3 { margin-bottom: 6px; }
.value-item p { color: var(--ink-muted); margin: 0; font-size: 0.9375rem; }

/* ---------- CTA INNER (index; .cta-band is in the contract) ---------- */
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding-block: 60px;
}
.cta-inner h2 { margin-bottom: 8px; }
.cta-inner p { color: rgba(255, 255, 255, 0.75); margin: 0; max-width: 52ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex: none; }

/* ---------- SHOP ---------- */
.shop-wrap { padding-bottom: 88px; }
.shop-filterbar {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  align-items: center; justify-content: space-between;
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--hairline-strong);
  border-radius: var(--r-pill); background: var(--canvas);
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  color: var(--ink-muted); cursor: pointer; white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill.active { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.pill.active .cnt { background: rgba(255, 255, 255, 0.22); color: #ffffff; }
.cnt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; padding: 1px 8px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--navy);
  font-size: 0.75rem; font-weight: 700;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.filter-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search-box { position: relative; flex: 1 1 240px; max-width: 320px; }
.search-box svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-subtle); pointer-events: none;
}
.search-box input {
  width: 100%; padding: 12px 14px 12px 42px;
  font-family: var(--font-body); font-size: 0.9375rem; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm); transition: border-color 0.18s ease;
}
.sort-wrap select {
  padding: 12px 14px; font-family: var(--font-body); font-size: 0.9375rem;
  font-weight: 500; color: var(--ink); background: var(--canvas);
  border: 1px solid var(--hairline-strong); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color 0.18s ease;
}
.search-box input:focus, .sort-wrap select:focus {
  border-color: var(--navy);
  outline: 2px solid var(--amber-deep); outline-offset: 1px;
}
.shop-meta { font-size: 0.875rem; margin-bottom: 20px; }

/* ---------- EMPTY STATE (shared) ---------- */
.empty-state {
  text-align: center; border: 1px dashed var(--hairline-strong);
  border-radius: var(--r-md); padding: 56px 32px; background: var(--canvas);
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-muted); margin-bottom: 20px; }
.empty-state .btn { margin-top: 4px; }

/* Visually-hidden alias of .sr-only (contract) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- PRODUCT DETAIL ---------- */
.pd-wrap { padding-block: 48px 88px; }
.pd-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  margin-top: 32px; align-items: start;
}
.pd-media {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: grid; gap: 14px; align-content: start;
}
.pd-main {
  aspect-ratio: 1; border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden; display: flex;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-thumbs button {
  width: 72px; height: 72px; padding: 0; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer; flex: none;
  transition: border-color 0.18s ease;
}
.pd-thumbs button:hover { border-color: var(--navy); }
.pd-thumbs button.active { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pd-placeholder {
  aspect-ratio: 1; border-radius: var(--r-md); border: 1px solid var(--hairline);
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  display: flex; align-items: center; justify-content: center;
}
.pd-placeholder span {
  font-family: var(--font-display); font-weight: 700; font-size: 4rem;
  color: var(--navy); opacity: 0.22;
}
.pd-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pd-info h1 { margin-bottom: 0; }
.pd-sku-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sku {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-subtle);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.stock-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; font-weight: 600;
}
.stock-in { color: var(--success); }
.stock-in .dot { background: var(--success); }
.stock-low { color: var(--amber-deep); }
.stock-low .dot { background: var(--amber); }
.stock-out { color: var(--error); }
.stock-out .dot { background: var(--error); }
.pd-pricebox { display: flex; flex-direction: column; gap: 6px; }
.big-price {
  font-family: var(--font-display); font-weight: 700; font-size: 2.25rem;
  color: var(--navy); letter-spacing: -0.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.big-price small { font-size: 0.95rem; font-weight: 600; color: var(--ink-subtle); letter-spacing: 0; }
#est-total, .est-total {
  font-size: 0.9375rem; color: var(--ink-muted);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.as-low-as {
  align-self: flex-start; margin-top: 4px;
  background: var(--amber-soft); border: 1px solid #f3d9a4;
  color: var(--navy-deep); font-size: 0.8125rem; font-weight: 600;
  border-radius: var(--r-pill); padding: 4px 12px;
}
.qty-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--hairline-strong); border-radius: var(--r-pill);
  overflow: hidden; background: var(--canvas);
}
.stepper button {
  width: 44px; height: 48px; border: 0; background: transparent;
  font-family: var(--font-body); font-size: 20px; font-weight: 700;
  color: var(--navy); cursor: pointer; flex: none;
  transition: background 0.18s ease;
}
.stepper button:hover { background: var(--surface); }
.stepper input {
  width: 76px; border: 0; background: transparent; text-align: center;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  color: var(--ink); padding: 0;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input:focus { outline: none; }
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.small button { width: 34px; height: 36px; font-size: 16px; }
.stepper.small input { width: 58px; font-size: 14px; }
.divider { border: 0; border-top: 1px solid var(--hairline); margin: 6px 0; }
.tier-h { font-size: 1.125rem; margin-bottom: 14px; }
.tier-table tr.active td { background: var(--amber-soft); }
.tier-table tr.active td:first-child { font-weight: 700; color: var(--navy); }
.pd-desc { margin-top: 10px; }
.pd-desc p { color: var(--ink-muted); max-width: 62ch; }
.pd-related { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--hairline); }

/* ---------- CART ---------- */
.cart-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start;
}
.cart-line {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--hairline); align-items: center;
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb {
  width: 84px; height: 84px; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline); flex: none;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { min-width: 0; }
.nm { font-weight: 700; color: var(--navy-ink); margin-bottom: 4px; font-size: 1rem; }
.nm a { color: inherit; text-decoration: none; }
.nm a:hover { color: var(--amber-deep); text-decoration: underline; }
.meta { font-size: 0.8125rem; color: var(--ink-subtle); margin-bottom: 10px; }
.controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.link-danger {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  color: var(--error); text-decoration: underline;
}
.link-danger:hover { color: #7a1a12; }
.line-right {
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-end; text-align: right;
}
.line-unit {
  font-size: 0.8125rem; color: var(--ink-subtle);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.line-total {
  font-size: 1.125rem; font-weight: 700; color: var(--navy);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.summary-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 28px;
  position: sticky; top: calc(var(--header-h) + 24px);
}
.summary-card h3 { margin-bottom: 14px; }
.sum-row {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 0.9375rem; padding: 8px 0; color: var(--ink-muted);
}
.sum-row .money { color: var(--ink); font-weight: 600; }
.sum-row.total {
  border-top: 2px solid var(--hairline-strong); margin-top: 12px; padding-top: 16px;
  font-size: 1.125rem; font-weight: 800; color: var(--navy);
}
.sum-row.total .money { color: var(--navy); font-weight: 800; }
.sum-note { font-size: 0.8125rem; color: var(--ink-subtle); margin: 16px 0 20px; }

/* ---------- CHECKOUT ---------- */
.co-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.co-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.radio-cards { display: grid; gap: 12px; }
.terms-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--navy); flex: none;
}
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.total-row td {
  font-weight: 800; color: var(--navy);
  border-top: 2px solid var(--hairline-strong);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}

/* ---------- CONFIRMATION ---------- */
.confirm-hero { text-align: center; padding: 72px 24px 84px; }
.confirm-hero h1 { margin-bottom: 12px; }
.check-ring {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--success-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.check-ring svg { width: 40px; height: 40px; color: var(--success); }
.order-num {
  display: inline-block; margin-top: 14px; padding: 14px 28px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--navy);
  background: var(--surface); border: 1px dashed var(--hairline-strong);
  border-radius: var(--r-md);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.next-steps { max-width: 640px; margin: 44px auto 0; text-align: left; }
.ns { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--hairline); }
.ns:last-child { border-bottom: 1px solid var(--hairline); }
.k {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--amber-soft); color: var(--navy-deep);
  font-size: 0.9375rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.b { font-size: 0.9375rem; color: var(--ink-muted); }
.b strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 2px; }

/* ---------- RESPONSIVE: single column below 768px ---------- */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 52px; }
  .stat-row { grid-template-columns: 1fr; gap: 16px; padding-block: 36px; }
  .prod-grid { grid-template-columns: 1fr; }
  .cat-bento { grid-template-columns: 1fr; }
  .cat-span-2 { grid-column: span 1; }
  .cat-cell { min-height: 180px; }
  .tier-explainer { grid-template-columns: 1fr; gap: 32px; }
  .value-split { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding-block: 48px; }
  .shop-filterbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .pd-grid { grid-template-columns: 1fr; gap: 32px; }
  .pd-media { position: static; }
  .cart-layout { grid-template-columns: 1fr; gap: 32px; }
  .summary-card { position: static; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-thumb { width: 64px; height: 64px; }
  .line-right {
    grid-column: 1 / -1; flex-direction: row; justify-content: space-between;
    align-items: center; text-align: left; width: 100%;
  }
  .co-layout { grid-template-columns: 1fr; gap: 32px; }
  .form-row-3 { grid-template-columns: 1fr; }
  .co-nav .btn { flex: 1; }
}
