/* Plybox storefront — Brand v2: Dispatch.
   A small fulfilment operation that takes craft seriously. Kraft surface,
   ink hairlines, one loud amber. American industrial signage type, paired
   with a sharp grotesque body and a workmanlike monospace for the
   dispatch metadata that frames the whole site. */

:root {
  /* ---- Surface ---- */
  --kraft:        #E8DFCC;   /* page surface, the envelope */
  --kraft-deep:   #D8CDB4;   /* panels, dispatch bars */
  --kraft-light:  #F0E8D5;   /* interior surfaces, chips */

  /* ---- Ink ---- */
  --ink:          #1A1815;   /* type and 2px borders */
  --ink-soft:     #5A554E;   /* secondary type */

  /* ---- Single accent ---- */
  --amber:        #FF6B1A;   /* a single word, the primary button, hover */
  --amber-deep:   #E54E0A;   /* hover state */

  /* ---- Brand accent ---- */
  /* The themed accent. Defaults to amber so the public site is unchanged; a
     gated client shop overrides these three on <body> with the client's colour
     (see src/lib/brand-theme.ts), repainting only the shop. */
  --brand:        var(--amber);       /* solid fills: primary button, active chip, ticks */
  --brand-ink:    var(--amber-deep);  /* the accent AS TEXT, kept legible on kraft */
  --brand-on:     var(--ink);         /* text colour that sits on a --brand fill */

  /* ---- Layout ---- */
  --maxw: 1180px;
  --rule: 2px;             /* the structural hairline */
  --rule-hair: 1px;        /* the plywood inner line */

  /* ---- Type stack ---- */
  --font-body:    "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Big Shoulders Display", "Schibsted Grotesk", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
*:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kraft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }

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

/* ============================================================
   DISPATCH STRIP — the very top band on every page.
   Treats the page like a packing slip. Animates left on load.
   ============================================================ */

.dispatch-strip {
  background: var(--ink);
  color: var(--kraft);
  border-bottom: var(--rule) solid var(--ink);
  overflow: hidden;
  position: relative;
}
.dispatch-strip .strip-track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: strip-slide 60s linear infinite;
}
.dispatch-strip .strip-track span { display: inline-flex; align-items: center; gap: 28px; }
.dispatch-strip .strip-track .dot { color: var(--amber); }
.dispatch-strip .strip-track .sep { opacity: 0.5; }

@keyframes strip-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   HEADER — sits below the dispatch strip. Crisp ink hairline,
   kraft background, no soft blur. Logo + nav + one amber button.
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--kraft);
  border-bottom: var(--rule) solid var(--ink);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  line-height: 1;
}
.logo .mark { width: 24px; height: 24px; flex: none; }
.logo .wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 9px 14px;
  border: var(--rule) solid transparent;
}
.nav a:hover { color: var(--brand-ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
}
.nav .btn { margin-left: 8px; }

/* BOX chip in the header: lights up when there's anything in the box.
   Same mono register as the nav links so it reads as part of the system. */
.box-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: var(--rule) solid var(--ink);
  background: var(--kraft);
  color: var(--ink);
  transition: background 120ms ease, color 120ms ease;
}
.box-chip:hover { background: var(--ink); color: var(--kraft); }
.box-chip.is-active { background: var(--brand); color: var(--brand-on); border-color: var(--ink); }
.box-chip.is-active:hover { background: var(--ink); color: var(--brand-ink); }

/* ============================================================
   BUTTONS — rectangular, mono caps, long arrow.
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: var(--rule) solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, transform 80ms ease;
}
.btn:hover { background: var(--ink); color: var(--kraft); }
.btn:active { transform: translateY(1px); }
.btn .arrow {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: width 160ms ease;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -4px;
  width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.btn:hover .arrow { width: 40px; }

.btn-primary {
  background: var(--brand);
  color: var(--brand-on);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--ink);
  color: var(--brand-ink);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 11px;
}

/* ============================================================
   HERO — boxed (this is the "front of the dispatch slip").
   Huge ALL-CAPS Big Shoulders. One word in amber.
   Right side: a consignment manifest, not a marketing mockup.
   ============================================================ */

.hero {
  padding: 56px 0 84px;
}
.hero-box {
  border: var(--rule) solid var(--ink);
  background: var(--kraft);
  position: relative;
}
.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  border-bottom: var(--rule) solid var(--ink);
  background: var(--ink);
  color: var(--kraft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-bar .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0;
}
.hero-copy {
  padding: 56px 44px 56px;
  border-right: var(--rule) solid var(--ink);
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(54px, 9vw, 124px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero-copy h1 .hi {
  color: var(--amber);
  font-style: normal;
  position: relative;
}
.hero-copy h1 .hi::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -0.06em;
  height: 6px;
  background: var(--amber);
  opacity: 0.18;
}
.hero-copy .lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 36px;
}
.hero-copy .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Manifest panel on the right of the hero */
.manifest {
  padding: 32px 32px 36px;
  background: var(--kraft-light);
  display: flex;
  flex-direction: column;
}
.manifest-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 12px;
  border-bottom: var(--rule-hair) solid var(--ink);
  margin-bottom: 8px;
}
.manifest-row {
  display: grid;
  grid-template-columns: 36px 1fr 70px 38px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: var(--rule-hair) solid rgba(26, 24, 21, 0.15);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.manifest-row:last-of-type { border-bottom: 0; }
.manifest-row .sku {
  color: var(--ink-soft);
  font-weight: 500;
}
.manifest-row .item {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.manifest-row .price {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.manifest-row .qty {
  text-align: right;
  color: var(--amber-deep);
  font-weight: 600;
}
.manifest-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: var(--rule) solid var(--ink);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.manifest-foot .total {
  font-weight: 700;
}

/* ============================================================
   SECTIONS — batch tag + heading + content.
   Plywood seam between sections instead of boxing each one.
   ============================================================ */

section { padding: 80px 0; }
section.tight { padding: 56px 0; }

.batch-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 24px;
  padding-bottom: 8px;
  border-bottom: var(--rule) solid var(--ink);
}
.batch-tag::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--brand);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 24px;
  max-width: 18ch;
  color: var(--ink);
}
.section-lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 48px;
}

/* Plywood seam: two parallel ink hairlines 4px apart. */
.seam {
  border: 0;
  height: 7px;
  margin: 0;
  background:
    linear-gradient(var(--ink), var(--ink)) top / 100% var(--rule) no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom / 100% var(--rule-hair) no-repeat;
}

/* ============================================================
   HOW IT WORKS — three steps. Boxed cells.
   Each step is numbered like a batch stage on a routing slip.
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--rule) solid var(--ink);
}
.step {
  padding: 36px 28px 40px;
  border-right: var(--rule) solid var(--ink);
  background: var(--kraft);
  position: relative;
}
.step:last-child { border-right: 0; }
.step .num-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: var(--rule-hair) solid var(--ink);
}
.step .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 12px;
  max-width: 14ch;
}
.step p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================================
   PRODUCT CARDS — dispatch labels.
   ============================================================ */

.product-grid {
  display: grid;
  /* Columns are set inline as --cols, chosen per shop for a balanced layout (see
     columnsFor in shop-page.ts) so any product count looks right. */
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 16px;
  /* Each card is its own bordered tile sized to its own content (align-items: start), so
     expanding one card's size grid never stretches its row-mates. Equal columns keep widths
     identical, so the square thumbs still line up. */
  align-items: start;
  max-width: min(100%, calc(var(--cols, 3) * 372px));
  margin-inline: auto;
}
.card {
  background: var(--kraft);
  border: var(--rule) solid var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: background 160ms ease;
}
.card:hover { background: var(--kraft-light); }
.card:hover .thumb svg { transform: translate(-4px, -4px); }

.card .thumb {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 26px;
  background: var(--kraft-light);
  border-bottom: var(--rule) solid var(--ink);
  position: relative;
  overflow: hidden;
}
.card .thumb svg {
  width: 56%;
  height: 56%;
  color: var(--ink);
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* The placeholder mark only shows when it is the thumb's sole child — i.e. there is no
   image, or the image failed to load and onerror removed it. */
.card .thumb .ph { display: none; }
.card .thumb .ph:only-child { display: block; }

.card .body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 22px;
  gap: 12px;
  /* Reserve room for up to ~3 title lines so collapsed tiles line their controls up. */
  min-height: 92px;
}
.card .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.card .price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: var(--brand);
  color: var(--brand-on);
  padding: 6px 10px 7px;
  border: var(--rule-hair) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.shop-note {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-align: center;
  max-width: 70ch;
  margin-inline: auto;
  line-height: 1.7;
}
.shop-note a {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.shop-note a:hover { color: var(--ink); }

/* ============================================================
   PRODUCT DETAIL PAGE — boxed dispatch label, hydrated from
   /catalogue.json by the inline script in product.html.
   ============================================================ */

.pdp-section { padding: 56px 0 80px; }
.pdp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.pdp-back:hover { color: var(--amber-deep); }

.pdp-box {
  border: var(--rule) solid var(--ink);
  background: var(--kraft);
}
.pdp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  border-bottom: var(--rule) solid var(--ink);
  background: var(--ink);
  color: var(--kraft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pdp-bar .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}
.pdp-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
}
.pdp-art {
  background: var(--kraft-light);
  border-right: var(--rule) solid var(--ink);
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.pdp-art::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: var(--rule-hair) dashed rgba(26, 24, 21, 0.2);
  pointer-events: none;
}
.pdp-art svg {
  width: 56%;
  height: 56%;
  color: var(--ink);
}
.pdp-body {
  padding: 44px 40px 44px;
  display: flex;
  flex-direction: column;
}
.pdp-body .batch-tag { margin-bottom: 18px; }
.pdp-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--ink);
}
.pdp-price {
  align-self: flex-start;
  font-size: 14px;
  padding: 7px 12px 8px;
  margin-bottom: 22px;
}
.pdp-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 38ch;
}
.pdp-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.pdp-options { margin-bottom: 22px; }
.opt-group {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
.opt-group:last-child { margin-bottom: 0; }
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.opt-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  background: var(--kraft);
  color: var(--ink);
  border: var(--rule) solid var(--ink);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.opt-chip:hover { background: var(--ink); color: var(--kraft); }
.opt-chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--amber);
}
.pdp-qty { margin-bottom: 24px; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: var(--rule) solid var(--ink);
  background: var(--kraft);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.qty-stepper .step {
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.qty-stepper .step:hover { background: var(--ink); color: var(--kraft); }
.qty-stepper .qty-val {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  border-left: var(--rule-hair) solid var(--ink);
  border-right: var(--rule-hair) solid var(--ink);
}
.pdp-add { align-self: flex-start; }
.pdp-confirm {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.pdp-meta {
  list-style: none;
  margin: 32px 0 0;
  padding: 20px 0 0;
  border-top: var(--rule-hair) solid var(--ink);
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pdp-missing { padding: 80px 0; max-width: 540px; }

@media (max-width: 860px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-art {
    border-right: 0;
    border-bottom: var(--rule) solid var(--ink);
    aspect-ratio: 4 / 3;
  }
  .pdp-body { padding: 32px 24px 36px; }
}

/* ============================================================
   CTA BAND — ink slab, amber word, kraft type.
   ============================================================ */

.cta-band {
  background: var(--ink);
  color: var(--kraft);
  border: var(--rule) solid var(--ink);
  padding: 72px 56px;
  text-align: left;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.cta-band .batch-tag {
  color: var(--kraft);
  border-bottom-color: var(--kraft);
}
.cta-band .batch-tag::before { background: var(--amber); }
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--kraft);
  max-width: 16ch;
}
.cta-band h2 .hi { color: var(--amber); }
.cta-band p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(232, 223, 204, 0.78);
  max-width: 44ch;
}
.cta-band .cta-end {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.cta-band .btn { border-color: var(--kraft); color: var(--kraft); }
.cta-band .btn:hover { background: var(--kraft); color: var(--ink); }

/* --- Gated shop additions --- */
.nav-company { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-right: 0.5rem; }
.card-foot { margin-top: auto; }
.card .add { display: flex; justify-content: center; margin: 0 18px 18px; cursor: pointer; }
.card .choose { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 18px 18px; cursor: pointer; }
.card .choose .chev { display: inline-block; transition: transform 150ms ease; }
.card .choose[aria-expanded="true"] .chev { transform: rotate(180deg); }
.card .sizes-panel[hidden] { display: none; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
/* Thumb-as-button (opens the gallery) reuses the .thumb box; reset the UA button sides. */
.card .thumb-btn { border-top: 0; border-left: 0; border-right: 0; cursor: zoom-in; width: 100%; font: inherit; color: inherit; }
.card .thumb-count { position: absolute; bottom: 10px; right: 10px; background: var(--ink); color: var(--kraft); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; }
/* Size chips */
.card .sizes { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px; margin-top: 4px; }
.size-chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; padding: 6px 10px; border: var(--rule-hair) solid var(--ink); background: var(--kraft); color: var(--ink); cursor: pointer; }
.size-chip.is-selected { background: var(--ink); color: var(--kraft); }
.size-chip[disabled] { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
/* Lightbox gallery */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(26, 24, 21, 0.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; }
.lb-img { max-width: 90vw; max-height: 86vh; object-fit: contain; background: var(--kraft-light); border: var(--rule) solid var(--ink); display: block; }
.lb-btn { position: absolute; background: var(--kraft); color: var(--ink); border: var(--rule) solid var(--ink); width: 46px; height: 46px; font-size: 24px; line-height: 1; cursor: pointer; font-family: var(--font-mono); }
.lb-btn:hover { background: var(--amber); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--kraft); }

/* ---- Quantity rows + stepper on the card ----
   Full-width framed rows (one per size) so the control reads as part of the card's
   dispatch-slip structure, not a control floating on top of it. .qbtn (not .step) to avoid
   colliding with the how-it-works .step cards. */
.card .qty-grid { display: flex; flex-direction: column; margin: 0 0 12px; border-top: var(--rule) solid var(--ink); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 18px; border-bottom: var(--rule-hair) solid var(--ink); }
.qty-row:last-child { border-bottom: 0; }
.qty-row.is-unavail { opacity: 0.4; }
.qty-size { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.stepper { display: inline-flex; align-items: stretch; height: 34px; border: var(--rule-hair) solid var(--ink); background: var(--kraft); flex: 0 0 auto; }
.stepper .qbtn { width: 34px; min-width: 34px; padding: 0; border: 0; background: var(--kraft-light); color: var(--ink); font-family: var(--font-mono); font-size: 18px; line-height: 1; cursor: pointer; transition: background 120ms ease; }
.stepper .qbtn:first-child { border-right: var(--rule-hair) solid var(--ink); }
.stepper .qbtn:last-child { border-left: var(--rule-hair) solid var(--ink); }
.stepper .qbtn:hover:not([disabled]) { background: var(--amber); }
.stepper .qbtn[disabled] { cursor: not-allowed; opacity: 0.4; }
.stepper .qty-input { width: 42px; min-width: 42px; padding: 0; border: 0; background: var(--kraft); color: var(--ink); font-family: var(--font-mono); font-size: 14px; font-weight: 600; text-align: center; -moz-appearance: textfield; }
.stepper .qty-input::-webkit-outer-spin-button, .stepper .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.card .unavail-note { margin-top: auto; padding: 16px 18px 18px; border-top: var(--rule) solid var(--ink); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* ---- Basket drawer ---- */
.box-chip { cursor: pointer; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(26, 24, 21, 0.5); }
.drawer-backdrop[hidden] { display: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(420px, 92vw); background: var(--kraft); border-left: var(--rule) solid var(--ink); display: flex; flex-direction: column; }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: var(--rule) solid var(--ink); font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.drawer-close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.drawer-lines { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-empty { color: var(--ink-soft); font-family: var(--font-mono); font-size: 13px; padding: 24px 0; }
.drawer-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: var(--rule-hair) solid var(--line, var(--ink)); }
.dl-info { display: flex; flex-direction: column; gap: 2px; }
.dl-info b { font-family: var(--font-display); font-size: 16px; text-transform: uppercase; }
.dl-size { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.dl-price { font-family: var(--font-mono); font-size: 12px; }
.dl-qty { display: flex; align-items: center; gap: 6px; }
.dl-step { width: 26px; height: 26px; border: var(--rule-hair) solid var(--ink); background: var(--kraft-light); cursor: pointer; font-family: var(--font-mono); }
.dl-qty span { min-width: 18px; text-align: center; font-family: var(--font-mono); font-size: 13px; }
.dl-remove { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--ink-soft); }
.drawer-foot { border-top: var(--rule) solid var(--ink); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.drawer-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.drawer-foot .btn { width: 100%; justify-content: center; }

/* ---- Basket page ---- */
.basket-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.basket { border: var(--rule) solid var(--ink); }
.basket-line { display: grid; grid-template-columns: 72px 1fr auto auto auto; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: var(--rule-hair) solid var(--ink); }
.basket-line:last-child { border-bottom: 0; }
.bl-thumb { width: 72px; height: 72px; background: var(--kraft-light); border: var(--rule-hair) solid var(--ink); display: grid; place-items: center; overflow: hidden; }
.bl-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bl-main { display: flex; flex-direction: column; gap: 3px; }
.bl-title { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; }
.bl-size, .bl-unit { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.bl-qty { display: flex; align-items: center; gap: 6px; }
.bl-qty span { min-width: 18px; text-align: center; font-family: var(--font-mono); }
.bl-total { font-family: var(--font-mono); font-weight: 700; }
.bl-remove { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--ink-soft); }
.basket-summary { border: var(--rule) solid var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 12px; background: var(--kraft-light); }
.bs-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.bs-total { font-size: 16px; font-weight: 700; border-top: var(--rule) solid var(--ink); padding-top: 12px; }
.basket-summary .btn { width: 100%; justify-content: center; }
.basket-empty { padding: 40px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
@media (max-width: 760px) { .basket-wrap { grid-template-columns: 1fr; } }
/* --- Login page --- */
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 4rem 0; }
.auth-wrap form { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-wrap input[type="email"] { font-family: var(--font-body); font-size: 1rem; padding: 0.8rem 1rem; border: var(--rule) solid var(--ink); background: var(--kraft-light); }
.auth-note { color: var(--ink-soft); margin-top: 1rem; }
.auth-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.auth-note a:hover { color: var(--amber-deep); }
.auth-sent { display: none; }
.cta-band .btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.cta-band .btn-primary:hover { background: var(--kraft); color: var(--ink); border-color: var(--kraft); }

/* ============================================================
   ABOUT prose — set in dispatch register but readable.
   ============================================================ */

.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose .batch-tag { margin-bottom: 28px; }
.prose h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 28px;
  color: var(--ink);
}
.prose h1 .hi { color: var(--amber); }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: var(--rule) solid var(--ink);
  position: relative;
}
.prose h2::before {
  content: attr(data-batch);
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.prose p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 60ch;
}
.prose p.muted {
  color: var(--ink-soft);
  font-size: 16px;
}
.prose .cta-row {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER — operations seal.
   ============================================================ */

.site-footer {
  border-top: var(--rule) solid var(--ink);
  padding: 56px 0 28px;
  background: var(--kraft-deep);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: var(--rule-hair) solid var(--ink);
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin: 0 0 16px;
  color: var(--ink-soft);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.site-footer a:hover { color: var(--amber-deep); }
.site-footer .seal {
  margin-top: 24px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  max-width: 32ch;
}
.site-footer .stamp {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.site-footer .stamp .est { color: var(--ink); }

/* ============================================================
   MOTION — hero reveal, dispatch strip ticker, hover micro.
   ============================================================ */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy .batch-tag,
.hero-copy h1,
.hero-copy .lede,
.hero-copy .cta-row,
.hero .manifest {
  opacity: 0;
  animation: rise 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-copy .batch-tag { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.14s; }
.hero-copy .lede { animation-delay: 0.24s; }
.hero-copy .cta-row { animation-delay: 0.32s; }
.hero .manifest { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy .batch-tag,
  .hero-copy h1,
  .hero-copy .lede,
  .hero-copy .cta-row,
  .hero .manifest {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .dispatch-strip .strip-track { animation: none; }
}

/* ============================================================
   SKIP LINK
   ============================================================ */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--kraft);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; border-bottom: var(--rule) solid var(--ink); padding: 44px 32px; }
  .manifest { padding: 28px 28px 32px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: var(--rule) solid var(--ink); }
  .step:last-child { border-bottom: 0; }
  .cta-band { grid-template-columns: 1fr; gap: 32px; padding: 56px 36px; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  /* On tablet the dynamic column count would be too narrow — cap at 2. */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  .hero { padding: 36px 0 56px; }
  .hero-copy { padding: 36px 24px; }
  .hero-copy .lede { font-size: 16px; }
  .manifest { padding: 24px 22px 28px; }
  .manifest-row {
    grid-template-columns: 32px 1fr 60px 32px;
    gap: 8px;
    font-size: 11px;
  }
  .step { padding: 28px 22px 32px; }
  .step .num { font-size: 50px; }
  .step h3 { font-size: 24px; }
  .nav a:not(.btn) { display: none; }
  .nav .btn { margin-left: 0; padding: 9px 12px; font-size: 11px; }
  .cta-band { padding: 44px 24px; }
  .product-grid { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SUCCESS PAGE — boxed receipt panel with three states
   (found / pending / error). Mirrors the hero manifest treatment.
   ============================================================ */

.success-section { padding: 56px 0 96px; }

.success-box {
  border: var(--rule) solid var(--ink);
  background: var(--kraft);
}
.success-box[hidden] { display: none !important; }

.success-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  border-bottom: var(--rule) solid var(--ink);
  background: var(--ink);
  color: var(--kraft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.success-bar .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}
.success-bar .sep { opacity: 0.5; padding: 0 4px; }

.success-box-pending .success-bar,
.success-box-error .success-bar {
  background: var(--kraft-deep);
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.success-box-pending .success-bar .dot { background: var(--ink); }
.success-box-error .success-bar .dot { background: var(--amber); animation: none; }

.success-body {
  padding: 56px 48px 56px;
}
.success-body .batch-tag { margin-bottom: 22px; }
.success-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 22px;
  max-width: 16ch;
  color: var(--ink);
}
.success-title .hi { color: var(--amber); }
.success-lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 40px;
}

.success-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border: var(--rule) solid var(--ink);
  margin: 0 0 36px;
  background: var(--kraft-light);
}

.success-manifest {
  padding: 24px 28px;
  border-right: var(--rule) solid var(--ink);
}
.success-manifest-head {
  display: grid;
  grid-template-columns: 32px 1fr 70px 56px;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: var(--rule-hair) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.success-manifest-head .col-price,
.success-manifest-head .col-qty { text-align: right; }

.success-manifest-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.success-manifest-lines .box-line {
  display: grid;
  grid-template-columns: 32px 1fr 70px 56px;
  gap: 12px;
  padding: 16px 0;
  border-bottom: var(--rule-hair) solid rgba(26, 24, 21, 0.15);
  align-items: center;
}
.success-manifest-lines .box-line .col-sku {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.success-manifest-lines .box-line .col-item .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  display: block;
  line-height: 1.05;
  color: var(--ink);
}
.success-manifest-lines .box-line .col-item .attrs {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 4px;
  text-transform: uppercase;
}
.success-manifest-lines .box-line .col-price {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.success-manifest-lines .box-line .col-qty {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--amber-deep);
}

.success-manifest-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: var(--rule) solid var(--ink);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.success-manifest-foot .sep { opacity: 0.5; padding: 0 3px; }

.success-recipient {
  padding: 24px 28px;
}
.recipient-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.recipient-address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.recipient-address span { display: inline; }

.success-cta { margin-top: 0; }

@media (max-width: 860px) {
  .success-grid { grid-template-columns: 1fr; }
  .success-manifest {
    border-right: 0;
    border-bottom: var(--rule) solid var(--ink);
  }
}
@media (max-width: 640px) {
  .success-body { padding: 36px 24px; }
}

/* ============================================================
   BOX DRAWER — right-side sliding panel. The cart-as-packing-slip.
   Injected on every page by /assets/js/drawer.js.
   ============================================================ */

.body-no-scroll { overflow: hidden; }

.box-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}
/* Scoped reset so the hidden attribute beats class-based display rules
   inside the drawer (the head row, totals row, empty state, etc). */
.box-drawer [hidden] { display: none !important; }

/* Disabled SEND IT and other drawer buttons read as "not yet". */
.box-drawer .btn:disabled,
.box-drawer-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--kraft-deep);
  color: var(--ink);
}
.box-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 21, 0);
  transition: background 220ms ease;
}
.box-drawer.is-open .box-drawer-backdrop {
  background: rgba(26, 24, 21, 0.5);
}

.box-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--kraft);
  border-left: var(--rule) solid var(--ink);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: -18px 0 44px rgba(26, 24, 21, 0.18);
}
.box-drawer.is-open .box-drawer-panel {
  transform: translateX(0);
}

.box-drawer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 22px;
  border-bottom: var(--rule) solid var(--ink);
  background: var(--ink);
  color: var(--kraft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.box-drawer-bar .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}
.box-drawer-bar .sep { opacity: 0.5; padding: 0 4px; }
.box-drawer-close {
  background: transparent;
  border: 0;
  color: var(--kraft);
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}
.box-drawer-close:hover { color: var(--amber); }

.box-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 22px;
}

/* Column header */
.box-drawer-head {
  display: grid;
  grid-template-columns: 32px 1fr 60px 86px 24px;
  align-items: end;
  gap: 12px;
  padding: 18px 0 10px;
  border-bottom: var(--rule-hair) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.box-drawer-head .col-price,
.box-drawer-head .col-qty { text-align: right; }

.box-drawer-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.box-line {
  display: grid;
  grid-template-columns: 32px 1fr 60px 86px 24px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: var(--rule-hair) solid rgba(26, 24, 21, 0.15);
}
.box-line .col-sku {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.box-line .col-item .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  display: block;
  line-height: 1.05;
  color: var(--ink);
}
.box-line .col-item .attrs {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 4px;
  text-transform: uppercase;
}
.box-line .col-price {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.box-line .col-qty { display: flex; justify-content: flex-end; }
.box-line .qty-stepper {
  display: inline-flex;
  align-items: center;
  border: var(--rule-hair) solid var(--ink);
  background: var(--kraft);
  font-family: var(--font-mono);
}
.box-line .qty-stepper .step {
  width: 26px; height: 26px;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.box-line .qty-stepper .step:hover { background: var(--ink); color: var(--kraft); }
.box-line .qty-stepper .qty-val {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 26px;
  font-size: 12px;
  font-weight: 600;
  border-left: var(--rule-hair) solid var(--ink);
  border-right: var(--rule-hair) solid var(--ink);
  font-variant-numeric: tabular-nums;
}
.box-line-remove {
  background: transparent;
  border: 0;
  width: 22px; height: 22px;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.box-line-remove:hover { color: var(--amber-deep); }

/* Empty state */
.box-drawer-empty {
  text-align: center;
  padding: 56px 16px 32px;
  color: var(--ink);
}
.box-drawer-empty-art {
  width: 120px;
  height: 90px;
  color: var(--ink);
  margin: 0 auto 22px;
  opacity: 0.85;
}
.box-drawer-empty-copy {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 22px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.box-drawer-foot {
  padding: 20px 22px 22px;
  border-top: var(--rule) solid var(--ink);
  background: var(--kraft);
}
.box-drawer-totals {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: var(--rule-hair) solid var(--ink);
}
.box-drawer-totals .sep { opacity: 0.5; padding: 0 3px; }
.box-drawer-totals [data-drawer-total] {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.box-drawer-send {
  width: 100%;
  justify-content: center;
}
.box-drawer-send[data-sending="true"] {
  opacity: 0.6;
  cursor: progress;
}

.box-drawer-error {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--kraft);
  background: var(--ink);
  padding: 10px 14px;
  margin: 0 0 12px;
  border: var(--rule-hair) solid var(--ink);
}

.box-drawer-clear {
  display: block;
  margin: 14px auto 0;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
}
.box-drawer-clear:hover { color: var(--amber-deep); }

@media (max-width: 480px) {
  .box-drawer-panel { width: 100vw; border-left: 0; }
  .box-drawer-body { padding: 0 16px; }
  .box-drawer-head,
  .box-line { grid-template-columns: 26px 1fr 56px 70px 22px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .box-drawer-panel { transition: none; }
  .box-drawer-backdrop { transition: none; }
}

/* ============================================================
   GATED CLIENT SHOP — co-brand lockup, trust band, themed footer.
   The shop is painted in the client's --brand (set on <body>); these
   pieces make it read as "made for this company, by Plybox".
   ============================================================ */

/* Header lockup: plybox mark, a hairline divider, the client's own logo. */
.cobrand { display: inline-flex; align-items: center; gap: 14px; }
.cobrand .cobrand-x {
  width: var(--rule); align-self: stretch;
  background: var(--ink); opacity: 0.55;
  margin: 2px 0;
}
.cobrand .cobrand-logo {
  display: block; height: 30px; width: auto;
  max-width: var(--cobrand-w, 150px);
  object-fit: contain;
}

/* Trust band: three plain-spoken cells that sell the service, framed like
   the rest of the dispatch system. */
.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--rule) solid var(--ink);
  margin: 28px 0 0;
  background: var(--kraft-light);
}
.trust-tile {
  padding: 22px 24px;
  border-right: var(--rule) solid var(--ink);
}
.trust-tile:last-child { border-right: 0; }
.trust-tile .trust-key {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 9px;
}
.trust-tile .trust-key::before {
  content: ""; width: 9px; height: 9px;
  background: var(--brand); display: inline-block; flex: none;
}
.trust-tile p {
  margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft);
}

/* Themed footer hover follows the brand (defaults to amber off-shop). */
.site-footer a:hover { color: var(--brand-ink); }

@media (max-width: 760px) {
  .trust-band { grid-template-columns: 1fr; }
  .trust-tile { border-right: 0; border-bottom: var(--rule) solid var(--ink); }
  .trust-tile:last-child { border-bottom: 0; }
  .cobrand .cobrand-logo { height: 26px; max-width: 120px; }
}

/* ============================================================
   LEGAL PAGES — lists, links, callouts and the identity block
   layered onto .prose for the privacy / terms / returns pages.
   ============================================================ */
.prose .legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.prose h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  margin: 28px 0 8px;
  color: var(--ink);
}
.prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; max-width: 60ch; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  background: var(--amber);
}
.prose a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:not(.btn):hover { color: var(--amber-deep); }
.prose strong { font-weight: 600; }

/* A framed callout for the must-read disclosure (made to order / no cancellation). */
.prose .notice {
  border: var(--rule) solid var(--ink);
  background: var(--kraft-light);
  padding: 20px 22px;
  margin: 28px 0;
}
.prose .notice p { margin: 0; }
.prose .notice .notice-key {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 10px;
}
.prose .notice .notice-key::before {
  content: ""; width: 9px; height: 9px; background: var(--amber); display: inline-block;
}

/* The business identity / imprint block (e-commerce regs). */
.prose .legal-id {
  border: var(--rule) solid var(--ink);
  background: var(--kraft);
  padding: 20px 22px;
  margin: 28px 0;
  font-size: 16px;
  line-height: 1.7;
}
.prose .fill { color: var(--amber-deep); font-weight: 600; }

/* The "your private store" reassurance band on the gated shop. */
.private-band {
  border: var(--rule) solid var(--ink);
  background: var(--kraft-light);
  margin: 28px 0 0;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.private-band .pb-mark {
  width: 30px; height: 30px; flex: none;
  border: var(--rule) solid var(--ink);
  display: grid; place-items: center;
  background: var(--kraft);
}
.private-band .pb-mark svg { width: 18px; height: 18px; }
.private-band h2 {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 8px; color: var(--ink);
}
.private-band p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.private-band p:last-child { margin: 0; }
.private-band strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .private-band { grid-template-columns: 1fr; }
}

/* Made-to-order disclosure on the basket review, right before Checkout. */
.bs-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 4px 0 4px;
}
.bs-note a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.bs-note a:hover { color: var(--ink); }
