/* ==========================================================================
   Advanced Aminos — brand design system
   Luminous white ground, saturated colour washes, four neon accents in even
   rotation. Deep black is kept as a deliberate anchor: the logo stages, the
   footer and the hero panel, so the brand mark always reads.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Brand palette — the neons. Use as FILLS on light, never as small text. */
  --black:  #050505;
  --white:  #F7F9FC;
  --yellow: #FFD400;
  --orange: #FF6A00;
  --blue:   #008CFF;
  --pink:   #FF2F92;

  /* Text-safe accents. Every accent used as type on a light surface uses
     these; the raw neons above fail contrast at body sizes. */
  --yellow-ink: #8A6A00;
  --orange-ink: #C24E00;
  --blue-ink:   #0068C0;
  --pink-ink:   #C4166B;

  /* Soft colour washes for section backgrounds and tinted cards */
  --wash-yellow: #FFF8DE;
  --wash-orange: #FFF1E6;
  --wash-blue:   #E8F4FF;
  --wash-pink:   #FFEAF3;
  --wash-neutral:#F4F6FA;

  /* Ground + elevation */
  --bg:        #FFFFFF;
  --bg-raised: #F7F9FC;
  --bg-sunken: #F1F4F9;
  --surface:        #FFFFFF;
  --surface-strong: #F7F9FC;
  --hairline:       #DEE4EE;
  --hairline-soft:  #E9EDF4;

  /* Panels — a distinct card surface on a tinted page */
  --panel:      #FFFFFF;
  --panel-tint: #F4F6FA;
  --panel-line: #E4E9F2;

  /* Ink */
  --ink:        #14161A;
  --ink-muted:  #59616F;
  --ink-faint:  #7A8494;
  --ink-dark:       #14161A;
  --ink-dark-muted: #59616F;
  /* Ink for use ON the black stages */
  --ink-invert:       #F7F9FC;
  --ink-invert-muted: #A7B0BE;

  /* Status */
  --ok:    #0A8F53;
  --warn:  #C24E00;
  --danger:#C62025;
  --gray:  #6B7484;

  /* Shape — bubbly, generous radii to echo the logo's inflated forms */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Glass */
  --glass:        rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .80);
  --glass-edge:   rgba(255, 255, 255, .90);
  --glass-blur:   blur(18px) saturate(180%);

  /* Shadow — soft, colour-tintable */
  --shadow-sm: 0 2px 8px rgba(20, 22, 26, .06);
  --shadow-md: 0 6px 20px rgba(20, 22, 26, .08);
  --shadow-lg: 0 18px 44px rgba(20, 22, 26, .12);

  /* Motion — a touch of overshoot so things feel springy, not stiff */
  --ease: cubic-bezier(.22, .68, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --fast: .16s;
  --mid:  .28s;

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 68px;

  --accent: var(--blue);
  --accent-ink: var(--blue-ink);
  --accent-wash: var(--wash-blue);
  /* Legible foreground for text sitting ON the accent fill. Yellow needs dark
     ink; the other three take white. */
  --on-accent: #fff;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
img, picture, svg, video { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

body {
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* A soft four-colour ground. It keeps the page colourful end to end and,
     crucially, gives the frosted surfaces something to refract — glass over
     flat white is invisible. */
  background:
    radial-gradient(1100px 760px at 6% 0%,    rgba(255, 212, 0, .20),  transparent 58%),
    radial-gradient(1000px 780px at 97% 8%,   rgba(255, 47, 146, .17), transparent 58%),
    radial-gradient(1000px 800px at 50% 46%,  rgba(0, 140, 255, .14),  transparent 60%),
    radial-gradient(1000px 760px at 4% 78%,   rgba(255, 106, 0, .15),  transparent 58%),
    radial-gradient(900px 700px at 96% 96%,   rgba(0, 140, 255, .13),  transparent 58%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Accessibility ──────────────────────────────────────────────────────── */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :where(a, button):focus-visible { outline-color: var(--yellow); }

.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;
}
.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 200;
  background: var(--black); color: #fff; font-weight: 700;
  padding: 12px 20px; border-radius: var(--r-pill);
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; letter-spacing: -.022em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.08rem; letter-spacing: -.01em; }
p  { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.eyebrow {
  font-size: .74rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-ink);
}
.lede { font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: var(--ink-muted); line-height: 1.65; }
.muted { color: var(--ink-muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* Back link with a drawn chevron rather than an arrow character. */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 500; color: var(--ink-muted); text-decoration: none;
}
.back-link::before {
  content: ''; width: 8px; height: 8px; flex: none;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.back-link:hover { color: var(--ink); }

.wordmark {
  font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  font-size: .9rem; white-space: nowrap;
}

/* ── Dark stages ────────────────────────────────────────────────────────────
   The logo is a frosted white mark built for black. Anywhere it appears on a
   light page it sits on one of these, which also gives the palette its
   deliberate black negative space. */
.on-dark {
  background: var(--black);
  color: var(--ink-invert);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--ink-invert); }
.on-dark .muted, .on-dark .lede { color: var(--ink-invert-muted); }
.on-dark .eyebrow { color: var(--ink-invert-muted); }

.logo-chip {
  display: grid;
  place-items: center;
  flex: none;
}
.logo-chip picture, .logo-chip img { display: block; }
.logo-chip img, .hero-art img {
  filter: drop-shadow(0 0 3px rgba(10, 12, 20, .78))
          drop-shadow(0 4px 14px rgba(10, 12, 20, .28));
}
/* Shadow blur has to scale with the mark: 3px around a 360px lockup is a hint,
   but around a 32px nav mark it is a smudge. */
.nav .logo-chip img {
  filter: drop-shadow(0 0 1.2px rgba(10, 12, 20, .95))
          drop-shadow(0 1px 3px rgba(10, 12, 20, .35));
}
/* On the black footer the mark needs no help — and a shadow would muddy it. */
.footer img { filter: none; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 108px); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin-top: 14px; }
.stack   { display: grid; gap: 16px; }
.stack-lg{ display: grid; gap: 28px; }
.row     { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-end { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.spread  { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid    { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid-3  { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2  { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.center  { text-align: center; }
.center .section-head { margin-inline: auto; }

/* Tinted section backgrounds keep the page colourful without shouting */
.wash-yellow { background: rgba(255, 212, 0, .10); }
.wash-orange { background: rgba(255, 106, 0, .09); }
.wash-blue   { background: rgba(0, 140, 255, .09); }
.wash-pink   { background: rgba(255, 47, 146, .09); }
.wash-neutral{ background: rgba(244, 246, 250, .70); }

/* ── Amino-chain motif ──────────────────────────────────────────────────── */
.chain { display: inline-flex; align-items: center; gap: 0; }
.chain .node {
  width: var(--node, 12px); height: var(--node, 12px); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffffcc 0 12%, var(--c) 46%, color-mix(in srgb, var(--c) 62%, #000) 100%);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--c) 55%, transparent);
  flex: none;
}
.chain .bond {
  height: 3px; width: var(--bond, 26px); border-radius: 3px;
  background: linear-gradient(90deg, var(--from), var(--to));
  flex: none;
}
.chain .node:nth-child(1) { --c: var(--yellow); }
.chain .node:nth-child(3) { --c: var(--orange); }
.chain .node:nth-child(5) { --c: var(--blue); }
.chain .node:nth-child(7) { --c: var(--pink); }
.chain .bond:nth-child(2) { --from: var(--yellow); --to: var(--orange); }
.chain .bond:nth-child(4) { --from: var(--orange); --to: var(--blue); }
.chain .bond:nth-child(6) { --from: var(--blue); --to: var(--pink); }

.divider { display: flex; align-items: center; gap: 18px; padding-block: 8px; }
.divider::before, .divider::after {
  content: ''; flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}

.chain-loader { --node: 10px; --bond: 18px; }
.chain-loader .node { animation: nodePulse 1.15s var(--ease) infinite; }
.chain-loader .node:nth-child(3) { animation-delay: .12s; }
.chain-loader .node:nth-child(5) { animation-delay: .24s; }
.chain-loader .node:nth-child(7) { animation-delay: .36s; }
@keyframes nodePulse {
  0%, 100% { transform: scale(.72); opacity: .45; }
  45%      { transform: scale(1.12); opacity: 1; }
}

/* Ambient colour blobs. Decorative only, never behind body text. */
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
  background: radial-gradient(circle at 35% 30%, var(--c), transparent 68%);
}
.section > .wrap, .section > .orbs + .wrap { position: relative; z-index: 1; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--wash-neutral);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 26px;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .97rem; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--fast) var(--ease), box-shadow var(--mid) var(--ease),
              background-color var(--fast) var(--ease), filter var(--fast) var(--ease);
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
  --btn-bg: var(--yellow); --btn-fg: #241B00;
  box-shadow: 0 6px 18px rgba(255, 212, 0, .45);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 26px rgba(255, 212, 0, .6); filter: brightness(1.04); }

.btn-blue  { --btn-bg: var(--blue);   --btn-fg: #fff; box-shadow: 0 6px 18px rgba(0,140,255,.36); }
.btn-pink  { --btn-bg: var(--pink);   --btn-fg: #fff; box-shadow: 0 6px 18px rgba(255,47,146,.36); }
.btn-orange{ --btn-bg: var(--orange); --btn-fg: #fff; box-shadow: 0 6px 18px rgba(255,106,0,.36); }
.btn-dark  { --btn-bg: var(--black);  --btn-fg: #fff; box-shadow: 0 6px 18px rgba(5,5,5,.28); }
.btn-blue:hover:not(:disabled)   { box-shadow: 0 10px 26px rgba(0,140,255,.5); }
.btn-pink:hover:not(:disabled)   { box-shadow: 0 10px 26px rgba(255,47,146,.5); }
.btn-orange:hover:not(:disabled) { box-shadow: 0 10px 26px rgba(255,106,0,.5); }

.btn-ghost {
  --btn-bg: #fff; --btn-fg: var(--ink);
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover:not(:disabled) { --btn-bg: var(--wash-neutral); border-color: #C9D2E0; }

.btn-danger { --btn-bg: #FDECEC; --btn-fg: #9E1418; border-color: #F5BFC1; }
.btn-danger:hover:not(:disabled) { --btn-bg: var(--danger); --btn-fg: #fff; border-color: transparent; }

.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .87rem; }
.btn-lg { min-height: 56px; padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Buttons sitting on a black stage */
.on-dark .btn-ghost {
  --btn-bg: rgba(247,249,252,.08); --btn-fg: var(--ink-invert);
  border-color: rgba(247,249,252,.22); box-shadow: none;
}
.on-dark .btn-ghost:hover:not(:disabled) { --btn-bg: rgba(247,249,252,.16); }

/* ── Surfaces ───────────────────────────────────────────────────────────── */
/* Frosted, inflated glass — the logo's material translated to a surface.
   The inset top highlight is what reads as "inflated" rather than flat. */
.card {
  position: relative;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow:
    0 10px 30px -10px rgba(20, 22, 26, .16),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -20px 34px -26px rgba(20, 22, 26, .14);
  transition: transform var(--mid) var(--spring), border-color var(--mid) var(--ease),
              box-shadow var(--mid) var(--ease), background-color var(--mid) var(--ease);
}
/* Where glass is unsupported, fall back to a solid surface — never a
   washed-out card with unreadable text. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: rgba(255, 255, 255, .93); }
}
.card-glow:hover {
  transform: translateY(-6px) scale(1.012);
  background: var(--glass-strong);
  border-color: color-mix(in srgb, var(--accent) 50%, #fff);
  box-shadow:
    0 22px 46px -14px color-mix(in srgb, var(--accent) 42%, transparent),
    0 10px 30px -10px rgba(20, 22, 26, .14),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}
/* A card that leads with its colour */
.card-tinted { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

/* Panels are deliberately NOT glass: they hold forms, tables and order data
   where crispness matters more than effect. */
.panel {
  background: var(--panel);
  color: var(--ink);
  border-radius: var(--r-lg);
  border: 1px solid var(--panel-line);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-sm);
}

/* Frosted nav */
.glass {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid var(--hairline-soft);
}
@supports not (backdrop-filter: blur(1px)) { .glass { background: rgba(255,255,255,.97); } }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 60; }
.nav-inner { display: flex; align-items: center; gap: 18px; min-height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 9px 15px; border-radius: var(--r-pill); text-decoration: none;
  font-weight: 600; font-size: .94rem; color: var(--ink-muted);
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--wash-neutral); }
.nav-link[aria-current="page"] { color: var(--blue-ink); background: var(--wash-blue); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px;
  display: grid; place-items: center; padding: 0 5px;
  background: var(--pink); color: #fff; font-size: .7rem; font-weight: 800;
  border-radius: var(--r-pill); border: 2px solid #fff;
}
.cart-count[hidden] { display: none; }

.nav-toggle { display: none; }

@media (max-width: 560px) {
  .nav .nav-inner { gap: 10px; }
  .nav .nav-logo .wordmark { display: none; }
  .nav-actions { gap: 6px; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; backdrop-filter: blur(20px);
    padding: 14px var(--gutter) 24px;
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 13px 15px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(52px, 9vw, 104px) clamp(48px, 7vw, 84px);
  background:
    radial-gradient(1000px 520px at 12% -10%, var(--wash-yellow), transparent 60%),
    radial-gradient(900px 520px at 92% 8%,   var(--wash-pink),   transparent 62%),
    radial-gradient(900px 620px at 60% 108%, var(--wash-blue),   transparent 60%),
    #fff;
}
.hero-grid { display: grid; gap: clamp(32px, 5vw, 60px); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.06fr .94fr; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl {
  background: linear-gradient(96deg, var(--orange-ink), var(--pink-ink) 48%, var(--blue-ink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cta { margin-top: 32px; }
.hero-micro { margin-top: 20px; font-size: .88rem; color: var(--ink-faint); }

/* The logo's stage — black panel with a soft neon bloom */
.hero-art {
  display: grid; place-items: center;
  position: relative;
  padding: clamp(8px, 2vw, 20px);
}
.hero-art picture, .hero-art img { position: relative; z-index: 1; }

/* ── Trust strip ────────────────────────────────────────────────────────── */
.trust-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(160deg,
      color-mix(in srgb, var(--accent) 16%, rgba(255,255,255,.72)),
      rgba(255,255,255,.62));
  border-color: color-mix(in srgb, var(--accent) 34%, #fff);
}
.trust-icon {
  flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 1.15rem;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent);
}
.trust-item h3 { font-size: 1.05rem; margin-bottom: 5px; }

/* ── Product cards ──────────────────────────────────────────────────────────
   Restrained and product-first: a neutral tile so the vial reads as the hero,
   quiet typography, and colour reserved for the single call to action. */
.product-card {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden; text-decoration: none; color: inherit;
  background: #fff;
  border: 1px solid var(--hairline-soft);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(20, 22, 26, .05);
  backdrop-filter: none;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #D6DCE6;
  box-shadow: 0 14px 34px -12px rgba(20, 22, 26, .20);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: #F5F5F7;
  padding: 22px;
  overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: none; border-radius: 0; box-shadow: none;
  transition: transform var(--mid) var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.04); }

.product-placeholder { display: grid; place-items: center; gap: 10px; padding: 20px; }
.product-placeholder .mono {
  font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600; letter-spacing: -.01em;
  color: #86868B;
}

.product-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
  background: #fff;
}
.product-name {
  font-size: 1.18rem; font-weight: 600; letter-spacing: -.018em; color: var(--ink);
}
.product-desc {
  color: #6E6E73; font-size: .92rem; line-height: 1.5; flex: 1; margin-top: 2px;
}
.product-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-top: 14px;
}
.product-card .price {
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.product-card .price small {
  font-size: .78rem; font-weight: 400; color: #86868B;
  display: block; letter-spacing: 0; text-transform: none;
}
/* The one piece of colour on the card. Scoped to the link area: the buttons in
   .product-actions are real buttons and keep their normal styling. */
.product-card .product-link .btn-ghost {
  background: none; border: 0; box-shadow: none; padding: 0; min-height: 0;
  color: var(--blue-ink); font-weight: 500; font-size: .95rem;
}
.product-card:hover .product-link .btn-ghost { background: none; color: var(--blue-ink); text-decoration: underline; }

/* Availability: plain text, no dot, no shouting. */
.product-card .stock { font-size: .84rem; font-weight: 400; color: #6E6E73; gap: 0; }
.product-card .stock::before { display: none; }
.product-card .stock-low_stock    { color: var(--orange-ink); }
.product-card .stock-out_of_stock { color: var(--danger); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
}
.badge-featured { background: rgba(20,22,26,.82); color: #fff; backdrop-filter: blur(6px); }
.badge-accent   { background: var(--accent-wash); color: var(--accent-ink);
                  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.product-media .badge { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* Stock indicator elsewhere on the site keeps its dot. */
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 700; }
.stock::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.stock-in_stock     { color: var(--ok); }
.stock-low_stock    { color: var(--orange-ink); }
.stock-out_of_stock { color: var(--danger); }
.stock-unavailable, .stock-inactive { color: var(--gray); }

/* ── Status pills ───────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill-pink   { background: var(--wash-pink);   color: var(--pink-ink); }
.pill-orange { background: var(--wash-orange); color: var(--orange-ink); }
.pill-blue   { background: var(--wash-blue);   color: var(--blue-ink); }
.pill-green  { background: #DFF6EA;            color: #076B3D; }
.pill-red    { background: #FDECEC;            color: #9E1418; }
.pill-gray   { background: #EDF0F5;            color: #4B5563; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 7px; }
.field > label, .label { font-size: .86rem; font-weight: 700; color: var(--ink-muted); }

.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #98A2B0; }
.input:hover, .select:hover, .textarea:hover { border-color: #C3CCDB; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,140,255,.18);
}
.select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2359616F' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 17px center;
}
.select option { background: #fff; color: var(--ink); }

.field-error { color: #9E1418; font-size: .84rem; font-weight: 600; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger); box-shadow: 0 0 0 4px rgba(198,32,37,.14);
}
.hint { font-size: .82rem; color: var(--ink-faint); }

.checkbox { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.checkbox input { width: 21px; height: 21px; margin-top: 2px; accent-color: var(--blue); flex: none; cursor: pointer; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--hairline); border-radius: var(--r-pill); overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.15rem; font-weight: 700; color: var(--ink-muted); }
.qty button:hover:not(:disabled) { background: var(--wash-neutral); color: var(--ink); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty input { width: 52px; height: 44px; text-align: center; border: 0; background: none; font-weight: 700;
             font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Forms on a black stage */
.on-dark .field > label, .on-dark .label { color: var(--ink-invert-muted); }
.on-dark .input, .on-dark .select, .on-dark .textarea {
  background: rgba(247,249,252,.06); color: var(--ink-invert); border-color: rgba(247,249,252,.2);
}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.step { position: relative; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 800; margin-bottom: 18px;
  background: radial-gradient(circle at 34% 28%, #ffffff88 0 14%, var(--accent) 48%, color-mix(in srgb, var(--accent) 62%, #000) 100%);
  color: var(--on-accent); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 42%, transparent);
}

/* ── Accordion ──────────────────────────────────────────────────────────── */
.acc {
  border: 1px solid var(--glass-edge); border-radius: var(--r-md); overflow: hidden;
  background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 6px 20px -10px rgba(20,22,26,.14), inset 0 1px 0 rgba(255,255,255,.9);
}
.acc + .acc { margin-top: 10px; }
.acc summary {
  padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background-color var(--fast) var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--wash-neutral); }
.acc summary::after {
  content: ''; width: 11px; height: 11px; flex: none;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--fast) var(--ease);
}
.acc[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.acc .acc-body { padding: 0 22px 20px; color: var(--ink-muted); line-height: 1.7; }

/* ── Tables → cards on mobile ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th, table.data td { padding: 13px 14px; text-align: left; }
table.data th {
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); border-bottom: 2px solid var(--panel-line); white-space: nowrap;
}
table.data td { border-bottom: 1px solid var(--panel-line); vertical-align: middle; }
table.data tbody tr:hover { background: var(--panel-tint); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data thead { display: none; }
  table.data tr {
    border: 1px solid var(--panel-line); border-radius: var(--r-md);
    padding: 14px 16px; margin-bottom: 12px; background: #fff;
  }
  table.data td { border: 0; padding: 7px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  table.data td::before {
    content: attr(data-label); font-weight: 800; font-size: .74rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-muted); text-align: left; flex: none;
  }
  table.data td:has(> .row-actions) { justify-content: flex-end; }
}

/* ── States ─────────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: clamp(36px, 7vw, 72px) 20px; }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--ink-muted); max-width: 46ch; margin: 0 auto 22px; }

.skeleton {
  background: linear-gradient(100deg, var(--wash-neutral) 30%, #fff 50%, var(--wash-neutral) 70%);
  background-size: 220% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r-md);
}
@keyframes shimmer { to { background-position: -220% 0; } }

.alert { border-radius: var(--r-md); padding: 15px 18px; font-size: .92rem; line-height: 1.6; border: 1px solid; }
.alert-error { background: #FDECEC; border-color: #F5BFC1; color: #8E1216; }
.alert-ok    { background: #DFF6EA; border-color: #A9E3C6; color: #076B3D; }
.alert-warn  { background: var(--wash-orange); border-color: #FFC79A; color: #8A3800; }
.alert-info  { background: var(--wash-blue); border-color: #A8D4FF; color: #00518F; }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 10px;
          max-width: min(380px, calc(100vw - 32px)); }
.toast {
  background: #fff; border: 1px solid var(--hairline); border-left: 5px solid var(--accent);
  border-radius: var(--r-md); padding: 14px 18px; font-size: .92rem; font-weight: 600;
  box-shadow: var(--shadow-lg); animation: toastIn .26s var(--ease);
}
.toast-ok    { --accent: var(--ok); }
.toast-error { --accent: var(--danger); }
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } }

/* ── Floating contact ───────────────────────────────────────────────────── */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 55;
  display: none; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: var(--r-pill);
  background: var(--pink); color: #fff; font-weight: 800; font-size: .92rem;
  text-decoration: none; box-shadow: 0 10px 28px rgba(255,47,146,.45);
}
@media (max-width: 900px) {
  .fab { display: inline-flex; }
  body:has(.fab) { padding-bottom: 84px; }
}

.sticky-bar {
  position: sticky; bottom: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
  border-top: 1px solid var(--hairline); padding: 13px var(--gutter);
  padding-bottom: max(13px, env(safe-area-inset-bottom));
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  padding-block: clamp(44px, 6vw, 68px) 32px;
  background: var(--black);
  color: var(--ink-invert);
}
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer h4 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #8B94A4; margin-bottom: 14px; }
.footer a { color: var(--ink-invert-muted); text-decoration: none; font-size: .93rem; display: block; padding: 5px 0; }
.footer a:hover { color: var(--ink-invert); }
.footer .wordmark { color: var(--ink-invert); }
.footer .logo-chip { box-shadow: none; background: transparent; padding: 0; }
.footer-legal { margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(247,249,252,.14); }
.footer-legal p { font-size: .8rem; color: #8B94A4; line-height: 1.7; max-width: 78ch; }
.footer :focus-visible { outline-color: var(--yellow); }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.hidden, [hidden] { display: none !important; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex-1 { flex: 1; }
.nowrap { white-space: nowrap; }
.accent-yellow { --accent: var(--yellow); --accent-ink: var(--yellow-ink); --accent-wash: var(--wash-yellow); --on-accent: #241B00; }
.accent-orange { --accent: var(--orange); --accent-ink: var(--orange-ink); --accent-wash: var(--wash-orange); --on-accent: #fff; }
.accent-blue   { --accent: var(--blue);   --accent-ink: var(--blue-ink);   --accent-wash: var(--wash-blue);   --on-accent: #fff; }
.accent-pink   { --accent: var(--pink);   --accent-ink: var(--pink-ink);   --accent-wash: var(--wash-pink);   --on-accent: #fff; }

/* ── Legal policy pages ─────────────────────────────────────────────────────
   Policies are stored as plain text and structured at render time by
   AA.policyHtml(). These are the only styles that markup needs. */
.policy-h {
  font-size: 1.02rem; font-weight: 800; letter-spacing: .01em;
  margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--hairline-soft);
}
.policy-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.policy-p { margin: 0 0 14px; }
.policy-list { margin: 0 0 14px; padding-left: 22px; }
.policy-list li { margin-bottom: 7px; }

/* ── Payment method choice (checkout) ───────────────────────────────────── */
.pay-choose { border: 0; padding: 0; margin: 0; }
.pay-choose legend {
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; padding: 0;
}
.pay-opt {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 14px 16px; margin-bottom: 9px;
  border: 1.5px solid var(--hairline); border-radius: var(--r-md); background: var(--surface);
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.pay-opt:hover { border-color: var(--blue); }
.pay-opt input { margin-top: 3px; flex: none; accent-color: var(--blue); width: 18px; height: 18px; }
.pay-opt:has(input:checked) { border-color: var(--blue); background: var(--wash-blue); }
.pay-opt-body { display: flex; flex-direction: column; gap: 2px; }
.pay-opt-label { font-weight: 700; font-size: .97rem; }
.pay-opt-blurb { font-size: .84rem; color: var(--ink-muted); }

/* ── Payment instructions (order confirmation) ──────────────────────────── */
.pay-facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pay-fact {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--bg-sunken); border: 1px solid var(--hairline-soft);
}
.pay-fact-k {
  flex-basis: 100%; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-muted);
}
.pay-fact-v { font-size: 1.35rem; font-weight: 800; letter-spacing: .01em; }
.pay-steps { margin: 0; padding-left: 22px; line-height: 1.75; }
.pay-steps li { margin-bottom: 8px; }
.pay-go { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pay-qr { margin: 0; text-align: center; }
.pay-qr img {
  display: block; width: 160px; height: 160px; border-radius: var(--r-sm);
  border: 1px solid var(--hairline-soft); background: #fff; padding: 6px;
}
.pay-qr figcaption { margin-top: 5px; }

/* ── Inline field feedback (checkout) ───────────────────────────────────── */
.field-note { margin: 6px 0 0; font-size: .82rem; line-height: 1.5; }
.field-note-ok    { color: var(--ok); }
.field-note-warn  { color: var(--warn); }
.field-note-error { color: var(--danger); }
.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--blue-ink); text-decoration: underline;
}
.link-btn:hover { color: var(--blue); }
.ship-eta { color: var(--ink-muted); font-size: .86rem; }

/* ── Cart drawer ────────────────────────────────────────────────────────────
   Slides in from the right, never full-width on desktop. Transitions are
   short and use transform/opacity only, so opening stays on the compositor. */
.cart-scrim {
  position: fixed; inset: 0; z-index: 190; background: rgba(20, 22, 26, .38);
  opacity: 0; transition: opacity .22s var(--ease); backdrop-filter: blur(2px);
}
.cart-drawer-root.is-open .cart-scrim { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 200;
  width: min(420px, 100vw); height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--hairline-soft);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .26s var(--ease);
  will-change: transform;
}
.cart-drawer-root.is-open .cart-drawer { transform: translateX(0); }
@media (max-width: 560px) { .cart-drawer { width: min(92vw, 420px); } }
@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-scrim { transition: none; }
}
body.cart-drawer-lock { overflow: hidden; }

.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--hairline-soft); flex: none;
}
.cart-drawer-head h2 { font-size: 1.15rem; margin: 0; }
.cart-drawer-count { color: var(--ink-muted); font-weight: 600; font-size: .95rem; }
.cart-drawer-x {
  border: 0; background: none; cursor: pointer; line-height: 1;
  font-size: 1.7rem; color: var(--ink-muted); padding: 0 4px; border-radius: var(--r-sm);
}
.cart-drawer-x:hover { color: var(--ink); }
.cart-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 20px; }
.cart-drawer-foot {
  flex: none; padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline-soft); background: var(--bg-raised);
}

.cart-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--hairline-soft); align-items: start;
}
.cart-row:last-child { border-bottom: 0; }
.cart-row-media img, .cart-row-ph {
  display: block; width: 64px; height: 64px; object-fit: contain;
  background: #fff; border: 1px solid var(--hairline-soft); border-radius: var(--r-sm);
}
.cart-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-row-name { font-weight: 700; font-size: .94rem; color: var(--ink); text-decoration: none; }
.cart-row-name:hover { color: var(--blue-ink); }
.cart-row-variant { font-size: .82rem; color: var(--ink-muted); }
.cart-row-controls { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.cart-row-remove {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: .8rem; color: var(--ink-faint); text-decoration: underline;
}
.cart-row-remove:hover { color: var(--danger); }
.cart-row-price { font-weight: 700; font-size: .94rem; white-space: nowrap; }
.qty-sm { display: inline-flex; align-items: center; gap: 2px; }
.qty-sm button {
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer; line-height: 1;
  border: 1px solid var(--hairline); background: var(--surface); font-size: .95rem; font-weight: 700;
}
.qty-sm button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-ink); }
.qty-sm button:disabled { opacity: .4; cursor: not-allowed; }
.qty-sm .qty-n { min-width: 26px; text-align: center; font-weight: 700; font-size: .9rem; }
.cart-empty { text-align: center; padding: 40px 10px; color: var(--ink-muted); }
.cart-empty .btn { margin-top: 12px; }

/* Free-shipping progress */
.ship-progress { margin-bottom: 12px; }
.ship-progress p { margin: 7px 0 0; font-size: .84rem; color: var(--ink-muted); }
.ship-progress.is-unlocked p { color: var(--ok); }
.ship-bar { height: 6px; border-radius: 999px; background: var(--hairline-soft); overflow: hidden; }
.ship-bar span {
  display: block; height: 100%; border-radius: 999px; background: var(--blue);
  transition: width .3s var(--ease);
}
.ship-progress.is-unlocked .ship-bar span { background: var(--ok); }
.cart-drawer-totals { margin-bottom: 12px; }
.cart-drawer-totals div { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }

/* Skeleton rows while the server prices the cart */
.cart-row.is-loading .cart-row-media { width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--bg-sunken); }
.sk { display: block; height: 11px; border-radius: 6px; background: var(--bg-sunken); margin-bottom: 7px; }
.sk-line { width: 70%; } .sk-short { width: 40%; }

/* ── Shipping choices at checkout ──────────────────────────────────────── */
.ship-opt {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 13px 15px; margin-bottom: 8px;
  border: 1.5px solid var(--hairline); border-radius: var(--r-md); background: var(--surface);
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.ship-opt:hover { border-color: var(--blue); }
.ship-opt:has(input:checked) { border-color: var(--blue); background: var(--wash-blue); }
.ship-opt input { margin-top: 3px; flex: none; accent-color: var(--blue); width: 18px; height: 18px; }
.ship-opt-body { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.ship-opt-label { font-weight: 700; font-size: .95rem; }
.ship-opt-eta { font-size: .82rem; color: var(--ink-muted); }
.ship-opt-price { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.ship-opt-price .was { font-weight: 500; color: var(--ink-faint); text-decoration: line-through; margin-right: 6px; font-size: .85rem; }
.ship-opt-free { color: var(--ok); }
.ship-choose { border: 0; padding: 0; margin: 0; }
.ship-choose legend {
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; padding: 0;
}
.kv { display: grid; gap: 7px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: .9rem; }
.kv > div > span { color: var(--ink-muted); }

/* <picture> is an inline wrapper by default, so an <img> sized at 100% inside
   it resolves against a shrink-to-fit box instead of the media frame. Make the
   wrapper transparent to layout wherever we use one. */
.product-media picture,
.pdp-media picture,
.cart-row-media picture { display: block; width: 100%; height: 100%; }

/* ── Discount code (checkout) ───────────────────────────────────────────── */
.promo > label {
  display: block; font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px;
}
.promo-row { display: flex; gap: 8px; }
.promo-row .input { flex: 1; min-width: 0; }
.promo-row .btn { flex: none; }

/* ── Save Tracking result (admin) ───────────────────────────────────────── */
.track-result { font-size: .86rem; line-height: 1.6; padding: 11px 14px; border-radius: var(--r-sm); }
.track-result div + div { margin-top: 3px; }
.track-result-ok    { background: #DFF6EA; color: #076B3D; }
.track-result-warn  { background: var(--wash-orange); color: var(--orange-ink); }
.track-result-error { background: var(--wash-pink); color: var(--danger); }

/* ── Shipment tracking card (customer portal) ──────────────────────────── */
.ship-card {
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--surface); padding: 16px 18px;
}
.ship-card-waiting { background: var(--bg-sunken); border-style: dashed; }
.ship-card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.ship-status { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.ship-updated { font-size: .78rem; color: var(--ink-faint); }

.ship-facts { display: grid; gap: 8px 18px; margin: 0 0 14px;
              grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ship-facts div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ship-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .07em;
                 text-transform: uppercase; color: var(--ink-muted); }
.ship-facts dd { margin: 0; font-size: .95rem; font-weight: 600; word-break: break-all; }

/* Timeline: only stages the server confirms are filled in. */
.ship-timeline { list-style: none; margin: 0; padding: 0; }
.ship-stage {
  position: relative; padding: 0 0 16px 26px; display: flex;
  align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.ship-stage:last-child { padding-bottom: 0; }
/* The connecting line, drawn behind the dots. */
.ship-stage::before {
  content: ''; position: absolute; left: 7px; top: 14px; bottom: -2px;
  width: 2px; background: var(--hairline-soft);
}
.ship-stage:last-child::before { display: none; }
.ship-stage[data-reached="true"]::before { background: var(--ok); }
.ship-dot {
  position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; border: 2px solid var(--hairline); background: var(--surface);
}
.ship-stage[data-reached="true"] .ship-dot { border-color: var(--ok); background: var(--ok); }
.ship-stage[data-reached="true"] .ship-dot::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ship-stage-label { font-size: .93rem; font-weight: 600; color: var(--ink-muted); }
.ship-stage[data-reached="true"] .ship-stage-label { color: var(--ink); font-weight: 700; }
.ship-stage-at { font-size: .78rem; color: var(--ink-faint); }

/* Carrier scan history — used only when real events exist. */
.ship-scans { list-style: none; margin: 0 0 4px; padding: 0; }
.ship-scans li {
  display: grid; gap: 2px; padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.ship-scans li:last-child { border-bottom: 0; }
.ship-scan-when { font-size: .76rem; color: var(--ink-faint); }
.ship-scan-what { font-size: .92rem; font-weight: 600; }
.ship-scan-where { font-size: .8rem; color: var(--ink-muted); }

/* ── Product card actions ───────────────────────────────────────────────────
   The card used to be a single anchor. It is now a container holding a link
   (image + name + price) and a separate action row, so the Add to Cart button
   is a real <button> rather than a control nested inside a link. The visual
   result is unchanged. */
.product-card > .product-link {
  display: flex; flex-direction: column; flex: 1;
  text-decoration: none; color: inherit; min-width: 0;
}
.product-card .product-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-actions {
  display: flex; gap: 8px; padding: 0 16px 16px;
}
.product-actions .btn { flex: 1; justify-content: center; white-space: nowrap; }
/* Out of stock: visibly inert, and still announced to screen readers. */
.product-actions .btn:disabled {
  background: var(--bg-sunken); color: var(--ink-faint);
  border-color: var(--hairline-soft); cursor: not-allowed; box-shadow: none;
}
.product-actions .btn:disabled:hover { transform: none; }
/* Narrow phones: stack rather than crowd two buttons onto one line. */
@media (max-width: 400px) {
  .product-actions { flex-direction: column; }
}
/* Price sits at the foot of the link area now that the actions row follows it. */
.product-card .product-body .price { margin-top: auto; padding-top: 10px; }
