/*
 * BeAuthentic design system — v2 "retail" direction.
 * Clean white retail look: one geometric sans (Figtree) for everything, bold
 * uppercase headings, small black rectangular buttons, grey product wells,
 * full-bleed colour blocks. Hair colours still drive the accent (--acc*).
 * Component classes live in the `components` layer so Tailwind utilities can override them.
 */

@property --acc     { syntax: '<color>'; inherits: true; initial-value: #FF3D8B; }
@property --acc-ink { syntax: '<color>'; inherits: true; initial-value: #C0185E; }
@property --acc-soft{ syntax: '<color>'; inherits: true; initial-value: #FFE3EE; }
@property --on-acc  { syntax: '<color>'; inherits: true; initial-value: #111111; }

:root {
  /* Neutral foundation */
  --ink: #2D2929;       /* body text */
  --black: #000000;     /* buttons, announcement bar */
  --ink-2: #2B2B2B;
  --paper: #FFFFFF;     /* page background */
  --white: #FFFFFF;
  --stone: #F1F0EF;     /* product image wells */
  --line: #E4E2E2;
  --mute: #6B6565;      /* secondary text — 5.6:1 on white */
  --faint: #9A9494;
  --sale: #C8102E;      /* sale price */

  /* Status (reserved — never used as a hair colour) */
  --ok: #157A43;   --ok-soft: #E2F2E8;
  --warn: #A15C00; --warn-soft: #FBEEDA;
  --bad: #B3261E;  --bad-soft: #F9E1DF;
  --info: #1F4FD1; --info-soft: #E3EAFC;

  /* Hair colours — default accent = pink */
  --pink: #FF3D8B;  --blue: #2B59FF; --purple: #7C4DFF; --red: #E5262E; --green: #1DB954;

  /* Type */
  --f-display: var(--bf-body, 'Figtree'), 'Helvetica Neue', Arial, sans-serif;
  --f-body: var(--bf-body, 'Figtree'), 'Helvetica Neue', Arial, sans-serif;
  --f-mono: var(--bf-mono, 'JetBrains Mono'), ui-monospace, monospace;

  /* Spacing (4pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Radius — sharp by default. Pills only for swatches, chips, badges. */
  --r0: 0; --r-btn: 2px; --r1: 4px; --r2: 8px; --r-card: 12px; --r-pill: 999px;

  /* Elevation — used only on overlays */
  --sh-1: 0 1px 0 rgba(17,17,17,.06);
  --sh-2: 0 8px 24px -12px rgba(17,17,17,.25);
  --sh-pop: 0 32px 80px -24px rgba(17,17,17,.45);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.1,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --t-fast: 160ms; --t-med: 320ms; --t-slow: 640ms;
}

/* Accent themes — one class swaps the whole page */
.acc-pink   { --acc: #FF3D8B; --acc-ink: #C0185E; --acc-soft: #FFE3EE; --on-acc: #111111; }
.acc-blue   { --acc: #2B59FF; --acc-ink: #2048D9; --acc-soft: #E2E8FF; --on-acc: #FFFFFF; }
.acc-purple { --acc: #7C4DFF; --acc-ink: #6234E6; --acc-soft: #ECE4FF; --on-acc: #FFFFFF; }
.acc-red    { --acc: #E5262E; --acc-ink: #C1161E; --acc-soft: #FDE2E2; --on-acc: #FFFFFF; }
.acc-green  { --acc: #1DB954; --acc-ink: #0D7A39; --acc-soft: #DDF5E6; --on-acc: #111111; }
.acc-ink    { --acc: #111111; --acc-ink: #111111; --acc-soft: #E9E7E2; --on-acc: #FFFFFF; }

.ba {
  font-family: var(--f-body); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  transition: --acc var(--t-slow) var(--ease), --acc-ink var(--t-slow) var(--ease), --acc-soft var(--t-slow) var(--ease), --on-acc var(--t-slow) var(--ease);
}
:where(.ba) *, :where(.ba) *::before, :where(.ba) *::after { box-sizing: border-box; }
:where(.ba) :where(img, svg) { display: block; }
:where(.ba) :where(a) { color: inherit; text-decoration: none; }
:where(.ba) :where(h1, h2, h3, h4, p) { margin: 0; }
:where(.ba) :where(button) { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
.d   { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
.d1  { font-size: clamp(38px, 5.6vw, 80px); }
.d2  { font-size: clamp(28px, 3vw, 42px); line-height: 1.08; }
.d3  { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.12; }
.d4  { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.2; }
.d5  { font-size: 15px; line-height: 1.25; }
.h   { font-family: var(--f-display); font-weight: 700; letter-spacing: 0; line-height: 1.25; }
.eyebrow { font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wordmark { font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: .42em; margin-right: -.42em; line-height: 1; white-space: nowrap; }
.mono { font-family: var(--f-mono); }
.lede { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; max-width: 46ch; }
.sm  { font-size: 14px; } .xs { font-size: 12px; }
.muted { color: var(--mute); }
.acc-text { color: var(--acc-ink); }
.price { font-family: var(--f-body); font-weight: 400; font-size: 14px; }
.strike { text-decoration: line-through; color: var(--sale); }
.u-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.u-link:hover { text-decoration-thickness: 2px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding-inline: clamp(16px, 2.8vw, 40px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-ink { height: 2px; background: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-btn);
  font-family: var(--f-body); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; background: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible, .chip:focus-visible, .sw:focus-visible, .tab:focus-visible, .ibtn:focus-visible, .input:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
.btn-ink  { background: var(--black); color: #fff; border-color: var(--black); }
.btn-ink:hover { background: var(--ink-2); }
.btn-acc  { background: var(--acc); color: var(--on-acc); }
.btn-acc:hover { box-shadow: inset 0 0 0 999px rgba(0,0,0,.08); }
.btn-line { border-color: var(--black); color: var(--black); background: #fff; }
.btn-line:hover { background: var(--black); color: #fff; }
.btn-paper { background: #fff; color: var(--black); border-color: #fff; }
.btn-paper:hover { background: #F4F4F4; }
.btn-line-paper { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-line-paper:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-ghost { color: var(--ink); padding: 0 8px; height: 40px; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 12px; }
.btn-xs { height: 32px; padding: 0 12px; font-size: 11px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { background: var(--stone); color: var(--faint); border-color: transparent; cursor: not-allowed; }
.btn-danger { background: var(--bad); color: #fff; }

.ibtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; border-radius: var(--r-pill); position: relative; color: inherit; }
.ibtn:hover { background: rgba(17,17,17,.06); }
.ibtn .dot { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--acc); color: var(--on-acc); font: 600 10px/18px var(--f-mono); text-align: center; }

/* ---------- Form controls ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .lbl { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.input, .select, .textarea {
  height: 48px; width: 100%; padding: 0 16px; background: var(--white); border: 1px solid #BDB8B8; border-radius: var(--r-btn);
  font: 400 16px var(--f-body); color: var(--ink); transition: border-color var(--t-fast) var(--ease);
}
.textarea { height: auto; min-height: 104px; padding: 14px 16px; resize: vertical; }
.input:hover, .select:hover { border-color: #BDB8AE; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--acc-soft); }
.input.is-error { border-color: var(--bad); }
.hint { font-size: 13px; color: var(--mute); }
.err { font-size: 13px; color: var(--bad); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23111' stroke-width='1.6' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.check { width: 20px; height: 20px; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.check.on { background: var(--ink); color: var(--paper); }
.radio { width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.radio.on::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.toggle { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex: none; border: 0; cursor: pointer; transition: background var(--t-fast); }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform var(--t-med) var(--ease); }
.toggle.on { background: var(--ink); } .toggle.on::after { transform: translateX(18px); }

.qty { display: inline-flex; align-items: center; border: 1px solid #BDB8B8; border-radius: var(--r-btn); height: 44px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 32px; text-align: center; font-family: var(--f-mono); }
.qty.sm { height: 36px; } .qty.sm button { width: 32px; }

/* ---------- Chips, swatches, badges, tabs ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid #CFCACA; border-radius: var(--r-pill); background: #fff; font: 500 13px var(--f-body); cursor: pointer; white-space: nowrap; transition: all var(--t-fast) var(--ease); color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .pip { width: 10px; height: 10px; border-radius: 50%; }

.sw { width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; position: relative; flex: none; transition: transform var(--t-fast) var(--ease); }
.sw::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; transition: border-color var(--t-fast); }
.sw:hover { transform: scale(1.06); }
.sw.on::after { border-color: var(--ink); }
.sw-sm { width: 24px; height: 24px; } .sw-sm::after { inset: -4px; }
.sw-lg { width: 56px; height: 56px; }
.bg-pink { background: var(--pink); } .bg-blue { background: var(--blue); } .bg-purple { background: var(--purple); } .bg-red { background: var(--red); } .bg-green { background: var(--green); }
.bg-acc { background: var(--acc); color: var(--on-acc); } .bg-acc-soft { background: var(--acc-soft); }
.bg-ink { background: var(--ink); color: var(--paper); } .bg-paper { background: var(--paper); } .bg-white { background: var(--white); } .bg-stone { background: var(--stone); }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; font: 700 10px var(--f-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: var(--stone); color: var(--ink); border-radius: var(--r-btn); }
.badge-ink { background: var(--ink); color: var(--paper); }
.badge-acc { background: var(--acc); color: var(--on-acc); }
.badge-line { background: transparent; border: 1px solid currentColor; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge::before { content: none; }
.badge.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; padding: 14px 0; border: 0; background: none; cursor: pointer; font: 500 15px var(--f-body); color: var(--mute); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); }
.tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.seg { display: inline-flex; padding: 3px; background: var(--stone); gap: 2px; }
.seg button { height: 34px; padding: 0 14px; border: 0; background: none; font: 500 13px var(--f-body); cursor: pointer; color: var(--mute); }
.seg button.on { background: var(--white); color: var(--ink); box-shadow: var(--sh-1); }

/* ---------- Surfaces ---------- */
.card { background: var(--white); border: 1px solid var(--line); }
.panel { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.ph { position: relative; overflow: hidden; background: var(--stone); }
.ph-cap { position: absolute; left: 12px; bottom: 12px; font: 500 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(248,245,239,.92); color: var(--ink); padding: 5px 8px; }
.ph-label { position: absolute; top: 12px; left: 12px; }

/* Portrait illustration placeholders (swap for real photography) */
.hair { fill: var(--acc); transition: fill var(--t-slow) var(--ease); }
.hair.nat { fill: #1C1511; }
.lid { fill: var(--acc); transition: fill var(--t-slow) var(--ease); }

/* ---------- Product card ---------- */
.pcard { display: flex; flex-direction: column; gap: 14px; }
.pcard .ph { aspect-ratio: 4 / 5; }
.pcard .ph > .zoom { position: absolute; inset: 0; transition: transform var(--t-slow) var(--ease); }
.pcard:hover .ph > .zoom { transform: scale(1.035); }
.pcard .actions { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; opacity: 0; transform: translateY(8px); transition: all var(--t-med) var(--ease); }
.pcard:hover .actions, .pcard:focus-within .actions { opacity: 1; transform: none; }
@media (hover: none) { .pcard .actions { opacity: 1; transform: none; } }

/* ---------- Progress / points ---------- */
.prog { height: 8px; background: var(--stone); position: relative; overflow: hidden; border-radius: var(--r-pill); }
.prog > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--acc); border-radius: var(--r-pill); transition: width var(--t-slow) var(--ease); }
.prog.ink > i { background: var(--ink); }
.prog.thin { height: 4px; }
.pts { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--f-mono); }
.pts::before { content: ''; width: 10px; height: 10px; background: var(--acc); transform: rotate(45deg); }
.pop-pts { animation: popPts 900ms var(--ease) both; }

/* ---------- Tables ---------- */
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 700 11px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--white); }
.tbl td { padding: 14px 16px; border-bottom: 1px solid #EEEBE5; white-space: nowrap; vertical-align: middle; }
.tbl tr:hover td { background: #FBFAF7; }
.tbl .num { text-align: right; font-family: var(--f-mono); }

/* ---------- Navigation ---------- */
.nav-link { font: 400 14px var(--f-body); padding: 8px 0; position: relative; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1.5px; background: currentColor; transition: right var(--t-med) var(--ease); }
.nav-link:hover::after, .nav-link.on::after { right: 0; }
.only-desk { }
.only-mob { display: none !important; }
@media (max-width: 900px) {
  .only-desk { display: none !important; }
  .only-mob { display: inline-flex !important; }
}

/* ---------- Overlays ---------- */
.scrim { position: absolute; inset: 0; background: rgba(17,17,17,.45); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--paper); box-shadow: var(--sh-pop); display: flex; flex-direction: column; animation: slideIn var(--t-med) var(--ease) both; }
.modal { background: var(--paper); box-shadow: var(--sh-pop); animation: rise var(--t-med) var(--ease) both; }
.toast { display: inline-flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; background: var(--black); color: #fff; box-shadow: var(--sh-2); font-size: 14px; animation: rise var(--t-med) var(--ease) both; }
.toast .sw-sm { width: 14px; height: 14px; }

/* ---------- Loading ---------- */
.skel { background: linear-gradient(90deg, var(--stone) 0%, #F2F0EB 50%, var(--stone) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.spin { width: 20px; height: 20px; border: 2px solid rgba(17,17,17,.15); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
.scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, var(--acc) 92%, transparent); opacity: .35; mix-blend-mode: multiply; animation: scan 1.8s var(--ease-in-out) infinite alternate; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee > div { display: inline-flex; gap: 48px; padding-right: 48px; animation: marquee 32s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marquee > div, .skel, .scan { animation: none; } .ba { transition: none; } }

/* ---------- Admin ---------- */
.adm { font-family: var(--f-body); background: #F4F2EE; color: var(--ink); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
:where(.adm) *, :where(.adm) *::before, :where(.adm) *::after { box-sizing: border-box; }
:where(.adm) :where(h1, h2, h3, p) { margin: 0; }
:where(.adm) :where(a) { color: inherit; text-decoration: none; }
:where(.adm) :where(svg) { display: block; }
.side-link { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; color: rgba(248,245,239,.66); font-size: 14px; border-radius: var(--r1); }
.side-link:hover { color: var(--paper); background: rgba(248,245,239,.06); }
.side-link.on { color: var(--paper); background: rgba(248,245,239,.1); }
.side-link.on::before { content: ''; width: 3px; height: 16px; background: var(--acc); margin-left: -12px; margin-right: 6px; }
.kpi { background: var(--white); border: 1px solid var(--line); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kpi .v { font: 700 28px/1 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; }
.delta-up { color: var(--ok); font: 500 12px var(--f-mono); }
.delta-down { color: var(--bad); font: 500 12px var(--f-mono); }
.bar { fill: var(--ink); }
.gridline { stroke: #ECE9E3; stroke-width: 1; }
.axis { font: 400 11px var(--f-mono); fill: var(--mute); }

/* ---------- Keyframes ---------- */
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes scan { from { top: -30%; } to { top: 100%; } }
@keyframes popPts { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 40% { opacity: 1; transform: translateY(-4px) scale(1.06); } 100% { transform: none; } }
@keyframes reveal { from { clip-path: circle(0% at 50% 60%); } to { clip-path: circle(150% at 50% 60%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { animation: reveal 1100ms var(--ease-in-out) both; }
.fade-up { animation: fadeUp 700ms var(--ease) both; }

/* ---------- Admin responsive ---------- */
.adm-shell { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 100vh; }
.adm-shell > .adm-sidecol { flex: 1 1 232px; max-width: 100%; }
.adm-shell > .adm-main { flex: 999 1 640px; min-width: 0; padding: 24px clamp(16px, 2.4vw, 32px) 48px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) {
  .adm-nav { flex-direction: row !important; overflow-x: auto; gap: 0 !important; }
  .adm-nav > div { flex-direction: row !important; }
  .adm-nav .grp-label { display: none; }
  .adm-side { min-height: 0 !important; }
}
.adm-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.adm-title { font: 700 26px/1.1 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; }
.adm-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.adm .panel { padding: 20px; }
.adm .panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.adm .panel-t { font: 600 15px var(--f-body); }
.adm .btn { height: 38px; padding: 0 14px; font-size: 11px; }
.adm .input, .adm .select { height: 40px; font-size: 14px; }
.adm .tbl td { padding: 12px 16px; }
.thumb { width: 40px; height: 40px; position: relative; overflow: hidden; flex: none; background: var(--stone); }
.quiz-a:hover { border-color: var(--ink) !important; transform: translateY(-4px); }
.quiz-a:active { background: var(--ink) !important; color: var(--paper); }
.cbar { transition: opacity var(--t-fast); cursor: default; }
.cbar:hover { opacity: .7; }

[x-cloak] { display: none !important; }
.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; }

/* Long-form copy (pages, product sections). */
.prose-ba { font-size: 17px; line-height: 1.6; }
.prose-ba > * + * { margin-top: 1em; }
.prose-ba h2 { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 22px; margin-top: 1.6em; }
.prose-ba h3 { font-weight: 600; font-size: 18px; margin-top: 1.4em; }
.prose-ba ul, .prose-ba ol { padding-left: 1.2em; }
.prose-ba li + li { margin-top: .35em; }
.prose-ba a { text-decoration: underline; text-underline-offset: 3px; }
.prose-ba strong { font-weight: 600; color: var(--ink); }


/* =========================================================
   v2 retail components
   ========================================================= */

/* Announcement bar + two-row header */
.promo-bar { background: var(--black); color: #fff; font-size: 12px; font-weight: 600; text-align: center; padding: 8px 16px; }
.promo-bar a { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.site-nav a { font-size: 14px; font-weight: 400; padding: 12px 0; position: relative; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform var(--t-fast) var(--ease); }
.site-nav a:hover::after, .site-nav a.on::after { transform: scaleX(1); }

/* Section header: bold uppercase title + one-line subtitle, arrows on the right */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sec-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.1; letter-spacing: .01em; }
.sec-sub { font-size: 14px; margin-top: 6px; }
.arrows { display: flex; gap: 4px; }
.arrows button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; }
.arrows button:disabled { opacity: .3; cursor: default; }

/* Horizontal product rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 4.6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .rail { grid-auto-columns: calc((100% - 2 * 12px) / 2.5); gap: 12px; } }
@media (max-width: 640px) { .rail { grid-auto-columns: 62%; } }

/* Retail product card */
.pcard { gap: 10px; }
.pcard .ph { aspect-ratio: 1 / 1.08; background: var(--stone); }
.pcard .name { font-size: 14px; font-weight: 400; line-height: 1.35; }
.pcard .meta { font-size: 13px; color: var(--mute); }
.pcard .add { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: #fff; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.pcard .add:hover { transform: scale(1.08); }
.sale-price { color: var(--sale); }

/* Full-bleed colour-block hero */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 720px); }
.hero-split .copy { background: var(--acc); color: var(--on-acc); display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(32px, 4vw, 64px); transition: background var(--t-slow) var(--ease); }
.hero-split .media { position: relative; overflow: hidden; background: var(--acc-soft); min-height: 420px; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } .hero-split .media { order: -1; min-height: 0; aspect-ratio: 4 / 4.2; } .hero-split.copy-first .media { order: 1; aspect-ratio: 16 / 10; } }

/* Edge-to-edge panels with vertical titles */
.panels { display: flex; height: clamp(420px, 46vw, 640px); }
.panels > a { position: relative; flex: 1; overflow: hidden; transition: flex var(--t-slow) var(--ease); background: var(--acc-soft); }
.panels > a:hover, .panels > a.open { flex: 2.4; }
.panels .v-title { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font: 700 clamp(28px, 3vw, 44px)/1 var(--f-display); text-transform: uppercase; color: #fff; white-space: nowrap; transition: opacity var(--t-med); }
.panels .label { position: absolute; left: 24px; bottom: 24px; right: 24px; max-width: 360px; background: var(--black); color: #fff; padding: 20px 22px; opacity: 0; transform: translateY(8px); transition: all var(--t-med) var(--ease); }
.panels > a:hover .label, .panels > a.open .label { opacity: 1; transform: none; }
.panels > a:hover .v-title, .panels > a.open .v-title { opacity: 0; }
/* Phones use the carousel in home.blade.php; the panels are hidden below md. */

/* Rounded social/UGC cards (the one place we round) */
.ugc-card { border-radius: var(--r-card); overflow: hidden; }

/* Light retail footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); color: var(--ink); }
.site-footer h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.site-footer p, .site-footer li { font-size: 13px; font-weight: 300; line-height: 1.6; }
