/* Closet Creations
   One theme: black and bright pink. The two-option demo build is gone, so
   anything that reads [data-theme] is a leftover and should be deleted rather
   than kept working.

   Contrast rule for this palette: bright pink is a SURFACE colour, not a text
   colour on light ground. White on --accent is 3.5:1 and fails AA at our
   button size, so anything sitting on pink uses --on-accent (near-black).
   Pink text only ever appears on the dark background, where it clears 5.5:1. */

/* ── tokens ───────────────────────────────────────────────────────── */

:root {
  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 48px);
  --step: clamp(48px, 7vw, 84px);

  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;

  /* Not pure #000 for the page: pure black behind bright pink vibrates on an
     OLED phone, which is most of this audience. --dark is the true black used
     for the bands that need to sit under the page. */
  --bg: #0f0d11;
  --bg-alt: #17141a;
  --surface: #1d1a21;
  --placeholder: #221e28;

  --ink: #f4f1f5;
  --ink-soft: #c3bcc8;
  --muted: #9a92a2;      /* 6.4:1 on --bg — the floor for body copy */
  --line: #2a2530;
  --line-strong: #3d3646;

  --dark: #000000;
  --on-dark: #f4f1f5;

  --accent: #ff2d8f;     /* 5.5:1 as text on --bg */
  --accent-2: #ff77b7;   /* the lighter pink, for text and hovers on dark */
  --on-accent: #0f0d11;  /* 6.0:1 on --accent — everything that sits on pink */
  --focus: #ff77b7;

  --radius: 0px;
  --radius-pill: 0px;
  /* Cards are flat by design. These stay as tokens because they are the whole
     dial between flat and carded, and the client may still want the other. */
  --card-bg: transparent;
  --card-pad: 0px;
  --card-shadow: none;
  --card-border: none;
  --tilt: 0deg;

  --display-weight: 400;
  --display-tracking: -0.01em;
  --body-weight: 300;
  --caps-tracking: 0.14em;
}

/* ── base ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--body-weight) 16px/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }
/* File inputs have an intrinsic minimum width that busts narrow grid cells. */
input[type='file'] { max-width: 100%; }
/* Names and engraving text come from whoever is typing, so they get to be
   silly. Break them rather than let one long word widen the page. */
.bline__label, .bline__title, .card__title, .row-price { overflow-wrap: anywhere; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 5vw, 50px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: clamp(17px, 2vw, 21px); }
p { margin: 0; text-wrap: pretty; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* main is focused after every route change so a screen reader lands on the new
   page rather than staying where the old one was. Chrome counts that as
   :focus-visible, which drew a pink ring around the entire document every time
   somebody clicked a link. Keyboard focus on real controls is untouched. */
[tabindex='-1']:focus,
[tabindex='-1']:focus-visible { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.soft { color: var(--ink-soft); }
.small { font-size: 13.5px; line-height: 1.7; }
.center { text-align: center; }
.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;
}
/* The skip link is the one .sr-only that has to come back on focus. */
a.sr-only:focus {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  width: auto; height: auto; margin: 0; clip: auto;
  padding: 12px 18px;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius);
}

.eyebrow {
  font: 500 11px/1.5 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* letter-spacing puts a gap after the LAST letter too, so anything centred and
   tracked out sits left of centre by exactly that much. Indent it back. */
.btn, .basket-btn, .signup button, .flag, .cta-band .btn {
  text-indent: 0.1em;
}
.btn { text-indent: var(--caps-tracking); }

section { padding: var(--step) 0; }
section + section { padding-top: 0; }

/* ── buttons and controls ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font: 500 11.5px/1 var(--font-body);
  letter-spacing: var(--caps-tracking);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.btn--sm { padding: 10px 18px; font-size: 10.5px; }
.btn--wide { width: 100%; }

.link-quiet {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-quiet:hover { color: var(--accent-2); }

label { display: block; font: 400 11.5px/1 var(--font-body); color: var(--muted); margin-bottom: 6px; }

input[type='text'], input[type='email'], input[type='tel'], input[type='number'],
input[type='date'], input[type='search'], select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: 400 14px/1.4 var(--font-body);
  color: var(--ink);
}
/* On a dark field the UA default placeholder is far too dim to read. */
::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 96px; resize: vertical; }
/* :user-invalid, not :invalid — an empty required field is invalid from the
   moment it renders, and nobody wants a red box before they have typed. */
input:user-invalid, textarea:user-invalid { border-color: #ff6b6b; }

.field + .field { margin-top: 14px; }
.field-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
/* Side by side, the stacking margin would drop every field after the first. */
.field-row > .field + .field { margin-top: 0; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.qty button {
  width: 40px; height: 46px;
  background: none; border: 0;
  font: 400 18px/1 var(--font-body);
  color: var(--ink);
  cursor: pointer;
}
.qty button:hover { background: var(--surface); }
.qty input {
  width: 52px; height: 46px;
  text-align: center;
  border: 0; border-radius: 0;
  background: none;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── site header ──────────────────────────────────────────────────── */

.announce {
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
  padding: 10px var(--gut);
  font: 400 11.5px/1.5 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.masthead {
  position: sticky; top: 0; z-index: 70;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
/* logo.jpg is dark linework on a white ground, so it disappears against this
   palette. Until there is a transparent light-on-dark version it gets its own
   white chip, which at least reads as deliberate. */
.brand img {
  width: 44px; height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
  padding: 2px;
}
.brand span {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 17px;
  letter-spacing: 0.02em;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); }
.nav a {
  font: 400 13px/1 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--accent); }

.basket-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font: 500 11px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.basket-btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.basket-btn__count {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--on-accent);
  color: var(--accent-2);
  font-size: 10.5px;
  text-align: center;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
}

/* Five nav items plus the basket need about 800px before they start pushing
   the document sideways. */
@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a[aria-current='page'] { border-bottom-color: var(--line); }
  .masthead__inner { position: relative; }
  .brand img { width: 38px; height: 38px; }
}

/* ── home ─────────────────────────────────────────────────────────── */

.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: stretch; }
.hero__text { background: var(--dark); color: var(--on-dark); padding: clamp(44px, 6vw, 78px) var(--gut); }
.hero__text .eyebrow { color: var(--accent-2); }
.hero__text h1 { margin-top: 22px; color: var(--on-dark); }
.hero__text p { margin-top: 24px; max-width: 27em; color: var(--ink-soft); font-size: 16px; line-height: 1.85; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__cta .btn--ghost { color: var(--on-dark); border-color: rgba(244, 241, 245, 0.3); }
.hero__cta .btn--ghost:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--dark); }
.hero__notes {
  margin-top: 46px; padding-top: 24px;
  border-top: 1px solid rgba(244, 241, 245, 0.16);
  display: grid; gap: 10px;
  font-size: 14.5px; color: var(--muted);
}
.hero__img { position: relative; background: var(--placeholder); min-height: 460px; }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 26px var(--gut);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
  color: var(--on-dark);
}
.hero__cap .eyebrow { color: var(--accent-2); }
.hero__cap p { margin-top: 8px; font-family: var(--font-display); font-size: 20px; line-height: 1.4; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head p { max-width: 30em; font-size: 14.5px; color: var(--ink-soft); }
.section-head--rule { padding-bottom: 16px; border-bottom: 1px solid var(--line); align-items: baseline; }

/* Category tiles: a big one beside two stacked, with the caption card
   overlapping the photo. */
.tiles { display: grid; gap: 20px; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
.tile:first-child { grid-row: span 2; }

.tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--placeholder);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 210px;
}
.tile__media { position: relative; height: 100%; min-height: 170px; background: var(--placeholder); overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile__cap {
  position: absolute; left: 22px; bottom: 20px; right: auto;
  max-width: 320px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px 22px;
  transform: rotate(-0.5deg);
}
.tile__cap h3 { font-size: 20px; }
.tile__cap p { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

.tilt { transform: rotate(var(--tilt)); }
.tilt-alt { transform: rotate(calc(var(--tilt) * -1.2)); }

/* ── product grid ─────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  box-shadow: var(--card-shadow);
  position: relative;
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--placeholder);
  overflow: hidden;
  border-radius: var(--radius);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding-top: 12px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-family: var(--font-display); font-size: 17px; line-height: 1.3; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__desc { margin-top: 5px; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.card__foot { margin-top: 12px; }
.card__foot .btn { width: 100%; margin-top: 10px; }
.card__price { font-size: 15px; }

.flag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 6px 10px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  font: 500 9.5px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-accent);
}

/* A photo we do not have yet. Deliberately visible so the client can see
   exactly which shots are still needed. */
.needs-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 150px;
  padding: 16px;
  background: var(--placeholder);
  color: var(--muted);
  font: 400 12px/1.7 var(--font-body);
}
.needs-photo span { display: block; }
.needs-photo b { display: block; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; font-size: 10px; }

/* ── shop layout ──────────────────────────────────────────────────── */

.shop { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: 88px; }
.filters__group { padding: 16px 0 14px; border-top: 1px solid var(--line); }
.filters__group:first-child { border-top: 0; padding-top: 0; }
.filters__title {
  font: 500 11.5px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.filters__list { display: grid; gap: 2px; }
.filters__list button {
  text-align: left;
  background: none;
  border: 0;
  padding: 6px 0;
  font: 400 13.5px/1.6 var(--font-body);
  color: var(--ink-soft);
  cursor: pointer;
}
.filters__list button:hover { color: var(--ink); }
.filters__list button[aria-pressed='true'] { color: var(--accent); font-weight: 500; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0;
  cursor: pointer;
  outline-offset: 3px;
}
.swatch[aria-pressed='true'] { outline: 2px solid var(--accent); }
.swatch--lg { width: 38px; height: 38px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font: 400 11.5px/1 var(--font-body);
  cursor: pointer;
}
.chip:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font: 400 12.5px/1 var(--font-body);
  cursor: pointer;
  text-decoration: none;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed='true'], .pill.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.aside-note {
  margin-top: 22px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.aside-note h3 { font-size: 18px; }
.aside-note p { margin: 8px 0 14px; font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); }

@media (max-width: 860px) {
  .shop { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; }
  .filters__inner { display: grid; gap: 4px; }
  .filters[hidden] { display: none; }
}

/* ── product page ─────────────────────────────────────────────────── */

.crumbs { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); padding-top: 20px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; padding: 22px 0 var(--step); }
.gallery__main {
  aspect-ratio: 1 / 1;
  background: var(--placeholder);
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.gallery__thumbs button {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: var(--placeholder);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  outline-offset: -2px;
}
.gallery__thumbs button[aria-current='true'] { outline: 2px solid var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs .needs-photo { min-height: 0; font-size: 10px; line-height: 1.4; padding: 6px; }

.pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.pdp__price strong { font-weight: 400; font-size: 26px; }
.pdp__desc { margin-top: 18px; font-size: 15px; line-height: 1.85; color: var(--ink-soft); }

.opt-group { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.opt-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.opt-group__head .filters__title { margin-bottom: 0; }
.opt-group__value { font-size: 12.5px; color: var(--muted); }
.opt-group .swatches, .opt-group .pill-row { margin-top: 12px; }

.personalise { margin-top: 24px; padding: 20px; background: var(--bg-alt); border-radius: var(--radius); }
.personalise .filters__title { margin-bottom: 14px; }
.personalise__note { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.counter { float: right; font-size: 10.5px; color: var(--muted); }

.buy { display: flex; gap: 12px; margin-top: 24px; align-items: stretch; flex-wrap: wrap; }
.buy .btn { flex: 1; min-width: 180px; padding: 17px 24px; }
.buy-notes { margin-top: 14px; display: grid; gap: 6px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

.tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button {
  background: none; border: 0;
  padding: 0 0 14px;
  margin-bottom: -1px;
  font: 400 13px/1 var(--font-body);
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1.5px solid transparent;
}
.tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--accent); }
.tabpanel { padding-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; font-size: 14px; line-height: 1.85; color: var(--ink-soft); }
.tabpanel h3 { font: 500 11.5px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .hero { grid-template-columns: 1fr; }
  .hero__img { min-height: 300px; }
  .tiles { grid-template-columns: 1fr; }
  .tile:first-child { grid-row: auto; }
}

/* ── roster builder ───────────────────────────────────────────────── */

.roster { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.roster__head { padding: 20px; background: var(--bg-alt); border-radius: var(--radius); }

.rows { display: grid; gap: 8px; }
.row-grid {
  display: grid;
  grid-template-columns: 28px 1.4fr 60px 1.3fr 1fr 66px 32px;
  gap: 10px;
  align-items: center;
}
.row-grid--quote { grid-template-columns: 1.6fr 80px 32px; }
.rows__head {
  font: 500 10.5px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 0 4px;
}
.row-grid input, .row-grid select { padding: 10px 11px; font-size: 13.5px; }
.row-num { color: var(--muted); font-size: 13px; }
.row-price { text-align: right; font-size: 13.5px; }
.row-x {
  width: 30px; height: 30px;
  border: 0; background: none;
  color: var(--muted); cursor: pointer;
  font-size: 15px; line-height: 1;
  border-radius: 50%;
}
.row-x:hover { background: var(--surface); color: var(--accent); }

.summary { position: sticky; top: 88px; padding: 22px; background: var(--bg-alt); border-radius: var(--radius); }
.summary__line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 5px 0; color: var(--ink-soft); }
.summary__total { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-strong); font-size: 17px; }
.summary__nudge { margin-top: 12px; font-size: 12.5px; line-height: 1.65; color: var(--accent-2); }

@media (max-width: 980px) {
  .roster { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 720px) {
  .rows__head { display: none; }
  .row-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .row-num { grid-column: 1 / -1; }
  .row-grid > *:nth-child(2) { grid-column: 1 / -1; }
  .row-grid--quote { grid-template-columns: 1fr 80px 32px; padding: 0; background: none; border: 0; }
  .row-grid--quote > *:nth-child(1) { grid-column: auto; }
  .row-price { text-align: left; align-self: center; }
  .row-x { justify-self: end; }
}

/* ── basket and checkout ──────────────────────────────────────────── */

.basket { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.blines { display: grid; gap: 0; }
.bline {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.bline__media { width: 96px; height: 96px; background: var(--placeholder); border-radius: var(--radius); overflow: hidden; }
.bline__media img { width: 100%; height: 100%; object-fit: cover; }
.bline__media .needs-photo { min-height: 0; height: 100%; font-size: 9.5px; line-height: 1.3; padding: 6px; }
.bline__title { font-family: var(--font-display); font-size: 17px; }
.bline__meta { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
/* The engraving text is the one thing on this page worth double checking, so
   it gets the accent rather than blending into the options line above it. */
.bline__label { margin-top: 6px; font-size: 13px; color: var(--accent-2); }
.bline__acts { margin-top: 10px; display: flex; gap: 16px; }
.bline__right { text-align: right; display: grid; gap: 10px; justify-items: end; }
.bline__right .qty { transform: scale(0.9); transform-origin: right center; }

.totals { position: sticky; top: 88px; padding: 24px; background: var(--bg-alt); border-radius: var(--radius); }
.totals__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; color: var(--ink-soft); }
.totals__row--big { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line-strong); font-size: 19px; color: var(--ink); }
.totals__ship { display: grid; gap: 8px; margin: 16px 0; }
.ship-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 13.5px;
  cursor: pointer;
}
.ship-opt input { width: auto; accent-color: var(--accent); }
.ship-opt:has(input:checked) { border-color: var(--accent); }

@media (max-width: 900px) {
  .basket { grid-template-columns: 1fr; }
  .totals { position: static; }
  .bline { grid-template-columns: 72px 1fr; }
  .bline__media { width: 72px; height: 72px; }
  .bline__right { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .bline__right .qty { transform: none; }
}

/* ── forms, notices, footer ───────────────────────────────────────── */

.panel {
  padding: clamp(20px, 3vw, 30px);
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.panel--surface { background: var(--surface); border: 1px solid var(--line); }

.notice {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
}
.notice--good { border-left-color: #4ade80; }
.notice--bad { border-left-color: #ff6b6b; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  /* Its own height PLUS the bottom offset. 120% only clears the screen if
     the toast is taller than 120px; an empty one is about 30px, so a ~18px
     square of it sat at the bottom of every page doing nothing. */
  transform: translate(-50%, calc(100% + 24px));
  pointer-events: none;
  z-index: 200;
  padding: 14px 22px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.9);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
  max-width: calc(100% - 32px);
}
.toast.is-up { transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--accent-2); }

.split { background: var(--bg-alt); }
.split__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 46px; align-items: center; }
@media (max-width: 860px) { .split__inner { grid-template-columns: 1fr; gap: 26px; } }

.quote-block {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.6;
  margin: 16px 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
}

/* The one pink slab per page. Everything else keeps pink to buttons and
   accents so this still reads as an interruption. */
.cta-band {
  background: var(--accent);
  color: var(--on-accent);
  padding: 44px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-radius: var(--radius);
}
.cta-band h2 { color: var(--on-accent); font-size: clamp(20px, 2.6vw, 24px); max-width: 20em; }
/* .86 not .75 — 0.75 composites to 3.5:1 on this pink, which fails AA at
   body size. .80 is the floor, this leaves a little room. */
.cta-band p { margin-top: 10px; font-size: 14px; color: rgba(15, 13, 17, 0.86); max-width: 30em; }
.cta-band .btn { background: var(--on-accent); border-color: var(--on-accent); color: #fff; }
.cta-band .btn:hover { background: #fff; border-color: #fff; color: var(--on-accent); }

/* Both of these used to apply at once, leaving about 170px of nothing above
   the footer on any page ending in a section. */
main > section:last-child { padding-bottom: 0; }
.foot { background: var(--dark); color: var(--on-dark); margin-top: var(--step); }
.foot__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 34px; padding: 48px var(--gut) 20px; max-width: var(--wrap); margin: 0 auto; }
.foot h3 { font-size: 20px; color: var(--on-dark); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: inherit; text-decoration: none; opacity: 0.82; font-size: 13.5px; }
.foot a:hover { opacity: 1; color: var(--accent-2); text-decoration: underline; }
.foot__place { margin-top: 8px; font-size: 13.5px; opacity: 0.75; }
.signup { display: flex; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--radius-pill); overflow: hidden; margin-top: 12px; }
.signup input { border: 0; border-radius: 0; background: rgba(255, 255, 255, 0.06); color: #fff; }
/* flex-shrink and nowrap, or the input squeezes it into "SIGN / UP". */
.signup button { flex: none; white-space: nowrap; border: 0; padding: 12px 18px; background: var(--accent); color: var(--on-accent); font: 500 11px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.signup input { min-width: 0; }
.signup button:hover { background: var(--accent-2); }
.foot__legal {
  max-width: var(--wrap); margin: 0 auto;
  padding: 18px var(--gut) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px; opacity: 0.6;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
@media (max-width: 820px) { .foot__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__inner { grid-template-columns: 1fr; } }

/* Sticky buy bar on small screens, so the price and the button stay reachable
   down a long product page. */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none;
  align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.buybar .btn { flex: 1; }
@media (max-width: 720px) {
  .buybar.is-on { display: flex; }
  body.has-buybar { padding-bottom: 78px; }
}

.empty { padding: var(--step) 0; text-align: center; }
.empty h2 { margin-bottom: 12px; }
.empty p { max-width: 34em; margin: 0 auto 22px; color: var(--ink-soft); }

/* A dark page printed as-is costs a cartridge and reads badly. Anyone printing
   this is printing an order confirmation, so flip it back to ink on paper. */
@media print {
  .masthead, .foot, .buybar, .toast, .announce { display: none !important; }
  :root {
    --bg: #fff; --bg-alt: #fff; --surface: #fff; --placeholder: #eee;
    --ink: #000; --ink-soft: #222; --muted: #555;
    --line: #ccc; --line-strong: #999;
    --dark: #fff; --on-dark: #000;
    --accent: #000; --accent-2: #000; --on-accent: #fff;
  }
  body { background: #fff; color: #000; }
  .cta-band, .split { display: none !important; }
}
