/* ------------------------------------------------------------------
   Crochet_by_Blanchard

   Warm chocolate and cream — the colours of jute, raw cotton and the
   wooden hook. Script type carries the brand voice; everything a
   customer has to read quickly is set in a plain humanist sans.

   Layout: a cream page, one chocolate band at the top and one at the
   bottom, cards in between. Everything stacks to a single column on a
   phone.
   ------------------------------------------------------------------ */

:root {
  /* Paper */
  --paper:      #FDF8F1;
  --paper-warm: #F7EADA;
  --paper-deep: #F0DEC8;
  --card:       #FFFFFF;

  /* Brand — chocolate */
  --cocoa:       #5A3A22;   /* buttons, headings */
  --cocoa-deep:  #402714;   /* top bar, footer */
  --cocoa-soft:  #8A6244;
  --cocoa-pale:  #C4A287;

  /* Accent — warm gold, used for stars and small marks */
  --gold:       #C9872F;
  --gold-light: #E8A33D;

  /* Type */
  --ink:        #3B2616;
  --ink-soft:   #6E5239;
  --ink-faint:  #9C836C;
  --line:       #E8D7C2;
  --line-soft:  #F2E6D6;

  --good:       #3F6B47;
  --warn:       #9A6212;
  --bad:        #A8402B;

  --font-display: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-script:  'Dancing Script', 'Brush Script MT', cursive;

  --step--2: 0.7rem;
  --step--1: clamp(0.79rem, 0.77rem + 0.1vw, 0.85rem);
  --step-0:  clamp(0.93rem, 0.9rem + 0.15vw, 1rem);
  --step-1:  clamp(1.08rem, 1.02rem + 0.28vw, 1.25rem);
  --step-2:  clamp(1.4rem, 1.22rem + 0.8vw, 1.95rem);
  --step-3:  clamp(1.85rem, 1.5rem + 1.7vw, 2.95rem);
  --step-4:  clamp(2.3rem, 1.6rem + 3.3vw, 4.2rem);

  --rail: 1340px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 14px;

  color-scheme: light;
}

/* ---------------- reset ---------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
/* Icons scale with the text they sit in unless a component says otherwise. */
.ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
[hidden] { display: none !important; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

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

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cocoa); color: #fff; font-weight: 600;
  padding: .7em 1.1em; text-decoration: none;
}
.skip-link:focus { left: 0; top: env(safe-area-inset-top, 0px); }

/* ---------------- type helpers ---------------- */

.display { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; color: var(--cocoa); }
.display em { font-style: italic; }

.eyebrow {
  font-size: var(--step--2); letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin: 0;
}

.lede { color: var(--ink-soft); max-width: 50ch; }
.rail { width: 100%; max-width: var(--rail); margin-inline: auto; padding-inline: var(--gutter); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.muted { color: var(--ink-soft); font-size: var(--step--1); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .02em;
  padding: .9em 1.6em; border-radius: 999px;
  border: 1.5px solid var(--cocoa); background: var(--cocoa); color: #fff;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:hover { background: var(--cocoa-deep); border-color: var(--cocoa-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn--gold { background: var(--gold); border-color: var(--gold); color: #2A1B02; }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn--ghost { background: transparent; color: var(--cocoa); }
.btn--ghost:hover { background: var(--cocoa); color: #fff; }

.btn--quiet {
  background: transparent; border: 0; border-bottom: 1.5px solid var(--gold);
  border-radius: 0; color: var(--cocoa); padding: .25em 0; font-weight: 700;
}
.btn--quiet:hover { background: transparent; color: var(--gold); }
.btn--small { padding: .6em 1.1em; font-size: var(--step--2); }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn--block { width: 100%; }
.btn--arrow::after { content: "\2192"; transition: transform .18s ease; }
.btn--arrow:hover::after { transform: translateX(3px); }

/* ---------------- header ---------------- */

header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 80;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .rail { display: flex; align-items: center; gap: 1rem; padding-block: .85rem; }

.wordmark {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--cocoa); flex: 0 0 auto;
}
.wordmark-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.wordmark-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.14rem; line-height: 1; letter-spacing: -0.01em;
}
.wordmark small {
  display: block; font-family: var(--font-body);
  font-size: .55rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-top: .34rem; font-weight: 700;
}
@media (max-width: 400px) {
  .wordmark-text { font-size: 1rem; }
  .wordmark small { letter-spacing: .18em; }
}

nav.main { display: flex; gap: .15rem; flex: 1 1 auto; justify-content: center; flex-wrap: wrap; min-width: 0; }
nav.main a {
  font-size: var(--step--1); font-weight: 600; text-decoration: none;
  color: var(--ink-soft); padding: .45em .8em; white-space: nowrap;
  border-radius: 999px;
}
nav.main a:hover { color: var(--cocoa); background: var(--paper-warm); }
nav.main a[aria-current="page"] { color: var(--cocoa); background: var(--paper-warm); }

.header-tail { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }

.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: .45em;
  text-decoration: none; font-weight: 700; font-size: var(--step--1);
  color: var(--cocoa); border: 1.5px solid var(--line);
  padding: .55em 1em; border-radius: 999px; background: var(--card);
}
.cart-link:hover { border-color: var(--cocoa); }
.cart-count {
  background: var(--cocoa); color: #fff; border-radius: 999px;
  font-size: .68rem; font-weight: 700; min-width: 1.35em;
  padding: .05em .4em; text-align: center;
}
.cart-count[data-empty="1"] { background: var(--ink-faint); }

.nav-toggle {
  display: none; background: var(--card); border: 1.5px solid var(--line);
  color: var(--cocoa); border-radius: 999px;
  width: 2.4rem; height: 2.4rem; cursor: pointer; font-size: 1rem; flex: 0 0 auto;
}

@media (max-width: 920px) {
  header.site .rail { flex-wrap: wrap; row-gap: .7rem; }
  .nav-toggle { display: grid; place-items: center; order: 3; }
  .header-tail { order: 2; margin-left: auto; }
  nav.main { order: 4; flex-basis: 100%; justify-content: flex-start; flex-direction: column; gap: 0; display: none; }
  nav.main.is-open { display: flex; }
  nav.main a { padding: .7em .2em; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
}

/* ---------------- photo frames ---------------- */

.shot {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(90% 90% at 25% 15%, rgba(201,153,47,.14), transparent 60%),
    linear-gradient(150deg, var(--paper-warm), #EADFC9);
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; max-width: 100%;
}
.shot span {
  position: relative; z-index: 1; margin: .8rem;
  font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); background: rgba(255,255,255,.75);
  padding: .35em .7em; border-radius: 999px;
}
.shot--filled { padding: 0; }
.shot--filled img { width: 100%; height: 100%; object-fit: cover; }
.shot--filled span { display: none; }

/* ---------------- bands ---------------- */

.band { padding-block: clamp(3rem, 2.2rem + 4vw, 5.5rem); }
.band--paper { background: var(--paper); }
.band--warm  { background: var(--paper-warm); }
.band--cocoa  { background: var(--cocoa); color: #F8EEE2; }
.band--cocoa .display, .band--cocoa h2, .band--cocoa h3 { color: #fff; }
.band--cocoa .lede, .band--cocoa .muted { color: #E3D0BC; }
.band--cocoa .eyebrow { color: var(--gold-light); }
.band--cocoa .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.band--cocoa .btn--ghost:hover { background: #fff; color: var(--cocoa); }
.band--cocoa .btn--quiet { color: #fff; }

.section-head { display: grid; gap: .8rem; margin-bottom: clamp(1.6rem, 1.2rem + 2vw, 2.8rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head.row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.section-head.row > div { display: grid; gap: .6rem; }

/* ---------------- product grid ---------------- */

.product-grid {
  display: grid; gap: clamp(1rem, .8rem + 1vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
}
/* auto-fit lets two or three products span the whole row; the cap stops a
   single one from stretching to the full width of a desk monitor. */
.product-grid > * { width: 100%; max-width: 440px; justify-self: center; }

.product-card {
  display: grid; grid-template-rows: auto 1fr; align-content: start; min-width: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  border-color: var(--cocoa-soft); transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(90,58,34,.12);
}
.product-card .card-link { text-decoration: none; color: inherit; display: block; }
.product-card .shot { aspect-ratio: 1; border: 0; border-radius: 0; }
.product-card .shot--filled img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.product-card:hover .shot--filled img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) {
  .product-card:hover { transform: none; }
  .product-card:hover .shot--filled img { transform: none; }
}
.product-card h3 { font-size: var(--step-0); font-weight: 700; line-height: 1.35; }
.product-card h3 a:hover { color: var(--cocoa); }
.product-card .cat {
  font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.price-row { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-1); color: var(--cocoa); font-variant-numeric: tabular-nums;
}
.price-was { font-size: var(--step--1); color: var(--ink-faint); text-decoration: line-through; }
.price-alt { font-size: var(--step--2); color: var(--ink-faint); }

/* The badge that tells a customer what kind of purchase this is. */
.tag {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: var(--step--2); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .32em .8em; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.tag--stock    { background: #E7F2EA; color: var(--good);  border-color: #C8E2D0; }
.tag--preorder { background: #F6ECD8; color: var(--warn);  border-color: #E8D5AC; }
.tag--out      { background: #F2E7E6; color: var(--bad);   border-color: #E2CBC8; }
.tag--low      { background: #FBEFD8; color: var(--warn);  border-color: #EEDCB4; }
.band--cocoa .tag--stock, .band--cocoa .tag--preorder { border-color: transparent; }

.card-tags { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------------- filters ---------------- */

.filters {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
  margin-bottom: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
}
.chip {
  font-size: var(--step--1); font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: .5em 1.05em; color: var(--ink-soft); background: var(--card);
  white-space: nowrap;
}
.chip:hover { border-color: var(--cocoa-soft); color: var(--cocoa); }
.chip[aria-current="true"] { background: var(--cocoa); border-color: var(--cocoa); color: #fff; }

/* ---------------- product page ---------------- */

.product-detail {
  display: grid; gap: clamp(1.8rem, 1.2rem + 3vw, 3.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
}
@media (max-width: 860px) { .product-detail { grid-template-columns: minmax(0, 1fr); } }

.gallery-main { border-radius: var(--radius); overflow: hidden; }
.gallery-main .shot { aspect-ratio: 1; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; margin-top: .6rem; }
.gallery-thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1;
}
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--cocoa); }

.product-info { display: grid; gap: 1.2rem; align-content: start; }
.product-info h1 { font-size: var(--step-3); }
.product-info .price { font-size: var(--step-2); }

.buy-box {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem; display: grid; gap: 1rem;
}

/* The pre-order explainer — the single most important thing to get across. */
.deposit-note {
  background: #FBF1DC; border: 1px solid #EBD9AE; border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 1rem 1.1rem; display: grid; gap: .5rem;
  font-size: var(--step--1); color: #5E4512;
}
.deposit-note strong { color: #3F2E09; }
.deposit-split { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: .2rem; }
.deposit-split div { display: grid; gap: .1rem; }
.deposit-split dt { font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: #8A6A1E; }
.deposit-split dd {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-1); color: #3F2E09; font-variant-numeric: tabular-nums;
}

.qty { display: inline-flex; align-items: center; gap: .3rem; }
.qty button {
  width: 2.2rem; height: 2.2rem; border: 1.5px solid var(--line);
  background: var(--card); color: var(--cocoa); border-radius: 999px;
  cursor: pointer; font: inherit; line-height: 1; font-weight: 700;
}
.qty button:hover { border-color: var(--cocoa); }
.qty input {
  width: 3rem; text-align: center; font: inherit; font-weight: 700;
  font-variant-numeric: tabular-nums; border: 0; background: transparent;
  color: inherit; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------- cart & checkout ---------------- */

.cart-layout {
  display: grid; gap: clamp(1.5rem, 1.2rem + 2vw, 2.5rem);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 880px) { .cart-layout { grid-template-columns: minmax(0, 1fr); } }

.cart-lines { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-line {
  display: grid; gap: 1rem; padding: 1.1rem;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center; border-bottom: 1px solid var(--line-soft);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line .shot { aspect-ratio: 1; border-radius: 10px; }
.cart-line-body { min-width: 0; display: grid; gap: .3rem; }
.cart-line-body h3 { font-size: var(--step-0); font-weight: 700; }
.cart-line-end { display: grid; gap: .5rem; justify-items: end; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-line-end { grid-column: 1 / -1; justify-items: start; }
}

.summary {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .9rem;
  position: sticky; top: 6rem;
}
@media (max-width: 880px) { .summary { position: static; } }
.summary h2 { font-family: var(--font-display); font-size: var(--step-2); color: var(--cocoa); }
.summary dl { margin: 0; display: grid; gap: .55rem; }
.summary .row { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--1); }
.summary .row dt { color: var(--ink-soft); }
.summary .row dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.summary .row--total {
  border-top: 1px solid var(--line); padding-top: .8rem; font-size: var(--step-0);
}
.summary .row--total dd { font-family: var(--font-display); font-size: var(--step-1); color: var(--cocoa); }
.summary .row--due dd { color: var(--gold); }

/* ---------------- payment choice ---------------- */

.pay-methods { display: grid; gap: .7rem; }
.pay-method {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem;
  align-items: start; padding: 1rem 1.1rem; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
}
.pay-method:hover { border-color: var(--cocoa-soft); }
.pay-method:has(input:checked) { border-color: var(--cocoa); background: #FDF7F0; }
.pay-method input { margin-top: .25rem; accent-color: var(--cocoa); width: 1.05rem; height: 1.05rem; }
.pay-method .pm-label { font-weight: 700; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pay-method .pm-blurb { font-size: var(--step--1); color: var(--ink-soft); }
.pm-test {
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  background: #F6ECD8; color: var(--warn); padding: .2em .6em; border-radius: 999px;
}

/* ---------------- forms ---------------- */

.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.field { display: grid; gap: .4rem; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label {
  font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700;
}
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-0); color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 10px; padding: .72em .85em; width: 100%; min-width: 0;
}
.field textarea { resize: vertical; min-height: 5rem; }
.field :is(input, select, textarea):focus { border-color: var(--cocoa); outline: none; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); }

.form-foot { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.2rem; }
.form-status { font-size: var(--step--1); color: var(--ink-soft); min-width: 0; }
.form-status[data-tone="good"] { color: var(--good); }
.form-status[data-tone="warn"] { color: var(--bad); }

.notice {
  border: 1px solid var(--line); border-left: 4px solid var(--good);
  background: var(--card); border-radius: 10px;
  padding: .9em 1.1em; font-size: var(--step--1);
}
.notice[data-tone="warn"] { border-left-color: var(--bad); }
.notice[data-tone="info"] { border-left-color: var(--gold); }

/* ---------------- gallery ---------------- */

.media-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.media-grid .shot { aspect-ratio: 1; }
.media-grid .shot.tall { aspect-ratio: 3 / 4; }

.video-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.video-card { margin: 0; display: grid; gap: .5rem; min-width: 0; }
.video-card video, .video-embed {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  background: var(--paper-warm); border: 1px solid var(--line); object-fit: cover;
}
.video-embed { position: relative; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------------- generic ---------------- */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: clamp(1.2rem, 1rem + 1vw, 1.8rem); }
.stack { display: grid; gap: 1rem; align-content: start; }
.stack-tight { display: grid; gap: .5rem; align-content: start; }
.split {
  display: grid; gap: clamp(1.5rem, 1.2rem + 2vw, 2.8rem);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: start;
}
.split > * { min-width: 0; }

.empty-note {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 2rem 1.4rem; color: var(--ink-soft); font-size: var(--step--1);
  display: grid; gap: .9rem; justify-items: center; text-align: center;
}

.steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); counter-reset: s; }
.step { display: grid; gap: .5rem; align-content: start; }
.step::before {
  counter-increment: s; content: counter(s);
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 600;
  color: var(--gold); line-height: 1;
}
.step h3 { font-size: var(--step-0); font-weight: 700; }
.step p { font-size: var(--step--1); color: var(--ink-soft); }
.band--cocoa .step p { color: #E3D0BC; }

.copy-line { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.copy-line .val { font-weight: 700; user-select: all; overflow-wrap: anywhere; }
.copy-btn {
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; font: inherit; font-size: var(--step--2);
  letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: .3em .8em; cursor: pointer; flex: 0 0 auto;
}
.copy-btn:hover { color: var(--cocoa); border-color: var(--cocoa); }

.social { display: flex; gap: .5rem; flex-wrap: wrap; }
.social a {
  border: 1.5px solid var(--line); border-radius: 999px; padding: .5em 1.05em;
  text-decoration: none; font-size: var(--step--1); font-weight: 600;
  color: var(--ink-soft); background: var(--card);
}
.social a:hover { color: var(--cocoa); border-color: var(--cocoa); }

/* The order receipt a customer lands on after paying. */
.receipt { border: 1.5px solid var(--gold); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1rem; background: var(--card); }
.receipt h2 { font-family: var(--font-display); font-size: var(--step-2); color: var(--cocoa); }
.receipt dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; font-size: var(--step--1); }
.receipt dt { color: var(--ink-soft); }
.receipt dd { margin: 0; font-weight: 600; }

/* ---------------- footer ---------------- */

footer.site {
  background: var(--cocoa); color: #F0E2D2;
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}
footer.site a { color: #F0E2D2; }
footer.site .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
footer.site h4 {
  font-size: var(--step--2); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: .8rem; font-weight: 700;
}
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
footer.site ul a { font-size: var(--step--1); text-decoration: none; }
footer.site ul a:hover { color: var(--gold-light); }
footer.site .wordmark { color: #fff; }
footer.site .wordmark-mark { width: 40px; height: 40px; }
footer.site .wordmark small { color: var(--gold-light); }
footer.site .social a { background: transparent; border-color: rgba(255,255,255,.3); color: #F0E2D2; }
footer.site .social a:hover { border-color: var(--gold-light); color: var(--gold-light); }

.colophon {
  margin-top: 2.2rem; padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: var(--step--1); color: #C9B29A;
  display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap;
}

/* ---------------- breadcrumbs ----------------
   Small, quiet, and always one line on a phone — a trail that wraps into
   three lines costs more attention than it gives back. */

.crumbs { margin-bottom: clamp(1.1rem, .9rem + 1vw, 1.8rem); }
.crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .55rem;
  font-size: var(--step--1); color: var(--ink-faint);
}
.crumbs li { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.crumbs li + li::before { content: "\203A"; color: var(--line); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--cocoa); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] {
  color: var(--ink); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch;
}

/* ---------------- reassurance strip ----------------
   What a first-time buyer checks before trusting an unfamiliar shop:
   who makes it, what it costs up front, is the payment safe, how it ships. */

.trust {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.1rem, .9rem + 1.4vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.trust li {
  display: grid; gap: .35rem; align-content: start;
  padding-top: 1rem; border-top: 2px solid var(--gold);
}
.trust h3 {
  font-size: var(--step-0); font-weight: 700; color: var(--cocoa);
  font-family: var(--font-body); letter-spacing: 0;
}
.trust p { font-size: var(--step--1); color: var(--ink-soft); }
.band--cocoa .trust h3 { color: #fff; }
.band--cocoa .trust p { color: #E3D0BC; }
.band--cocoa .trust li { border-top-color: var(--gold-light); }

.band--thin { padding-block: clamp(2rem, 1.6rem + 2vw, 3.2rem); }

/* ---------------- sticky buy bar (phones) ----------------
   On a phone the Add-to-cart button scrolls out of sight as soon as the
   customer reads the description. This brings the price and the button
   back, and it is the same form — no second code path to keep in step. */

.buy-bar { display: none; }

@media (max-width: 860px) {
  .buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: flex; align-items: center; gap: .9rem;
    padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .buy-bar.is-up { transform: none; }
  .buy-bar-info { display: grid; gap: .1rem; min-width: 0; flex: 1 1 auto; }
  .buy-bar-info .name {
    font-size: var(--step--1); font-weight: 600; color: var(--ink-soft);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .buy-bar .price { font-size: var(--step-1); }
  .buy-bar .btn { flex: 0 0 auto; }
  /* room so the bar never covers the last line of the page */
  body.has-buy-bar footer.site { padding-bottom: 5.5rem; }
}

/* ---------------- not found ---------------- */

.lost { display: grid; gap: 1.2rem; justify-items: start; max-width: 46ch; }
.lost .code {
  font-family: var(--font-display); font-size: var(--step-4);
  color: var(--gold); line-height: 1;
}

/* ---------------- printing ----------------
   The one page people print is the receipt. Strip the furniture and keep
   the order readable in black and white. */

@media print {
  header.site, footer.site, .buy-bar, .skip-link,
  .crumbs, .filters, .trust, .btn, .copy-btn, .social { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band { padding-block: 0; background: #fff !important; color: #000 !important; }
  .rail { max-width: none; padding-inline: 0; }
  .receipt, .card, .summary { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  .display, .price, h1, h2, h3 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ==================================================================
   The 2026 layout — top bar, icon header, collections, reviews.
   ================================================================== */

.script {
  font-family: var(--font-script); font-weight: 700;
  line-height: 1.15; letter-spacing: 0;
}

/* ---------------- announcement bar ---------------- */

.topbar {
  background: var(--cocoa-deep); color: #EBD9C5;
  font-size: var(--step--2); letter-spacing: .01em;
}
.topbar .rail {
  display: flex; align-items: center; gap: 1.2rem;
  justify-content: space-between; padding-block: .55rem; flex-wrap: wrap;
}
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; flex-wrap: wrap; }
.topbar li, .topbar .tel { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .ico { width: 14px; height: 14px; flex: 0 0 auto; opacity: .85; }
.topbar-end { display: flex; align-items: center; gap: 1.1rem; }
.topbar .social-icons { display: flex; gap: .7rem; }
.topbar .social-icons a { display: grid; place-items: center; }
.topbar .social-icons .ico { width: 15px; height: 15px; opacity: .9; }
.topbar .social-icons a:hover .ico { opacity: 1; }

@media (max-width: 760px) {
  .topbar ul li:nth-child(n+2) { display: none; }
  .topbar .tel { display: none; }
}

/* ---------------- header icons ---------------- */

.icon-btn {
  display: inline-grid; place-items: center; position: relative;
  width: 2.35rem; height: 2.35rem; border-radius: 999px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--cocoa); text-decoration: none; flex: 0 0 auto;
}
.icon-btn:hover { background: var(--paper-warm); }
.icon-btn .ico { width: 19px; height: 19px; }
.icon-btn .cart-count {
  position: absolute; top: -1px; right: -1px;
  background: var(--cocoa); color: #fff; border-radius: 999px;
  font-size: .62rem; font-weight: 800; line-height: 1;
  min-width: 1.15rem; padding: .22em .3em; text-align: center;
  border: 2px solid var(--paper);
}
.icon-btn .cart-count[data-empty="1"] { background: var(--cocoa-pale); }

/* The search field drops out of the header rather than living in it. */
.searchbar { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.searchbar.is-open { display: block; }
.searchbar form { display: flex; gap: .6rem; padding-block: .8rem; }
.searchbar input {
  flex: 1 1 auto; font: inherit; border: 1.5px solid var(--line);
  background: var(--card); border-radius: 999px; padding: .65em 1.1em; min-width: 0;
}
.searchbar input:focus { border-color: var(--cocoa); outline: none; }

/* ---------------- hero ---------------- */

.hero { padding: 0; }
.hero .rail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0; align-items: stretch; padding-inline: 0; max-width: none;
}
.hero-copy {
  display: grid; gap: 1.1rem; align-content: center; justify-items: center;
  text-align: center; padding: clamp(2.2rem, 1.6rem + 4vw, 4.5rem) var(--gutter);
  background:
    radial-gradient(120% 100% at 10% 0%, #FBEEDC, transparent 60%),
    linear-gradient(160deg, var(--paper-warm), var(--paper-deep));
}
.hero-copy > * { max-width: 34rem; }
/* The script face is wide and the name is long: size it off the viewport
   so it never has to break mid-word. */
.hero h1.script {
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.2rem);
  color: var(--cocoa); max-width: none; overflow-wrap: break-word;
}
.hero h1 .heart { color: var(--cocoa); font-size: .62em; vertical-align: .12em; }
.hero-lede { font-size: var(--step-1); color: var(--ink-soft); }

.hero-divider {
  display: flex; align-items: center; gap: .7rem; width: min(16rem, 70%);
  color: var(--cocoa-pale); justify-self: center;
}
.hero-divider::before, .hero-divider::after {
  content: ""; flex: 1 1 auto; height: 1px; background: currentColor;
}

/* The five categories, as icons rather than another wall of words. */
.cat-icons {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(.7rem, .4rem + 1.4vw, 1.9rem);
}
.cat-icons a {
  display: grid; justify-items: center; gap: .4rem;
  text-decoration: none; color: var(--ink); font-size: var(--step--1); font-weight: 600;
}
.cat-icons .ico { width: 30px; height: 30px; color: var(--cocoa); transition: transform .2s ease; }
.cat-icons a:hover .ico { transform: translateY(-3px); }
.cat-icons a:hover { color: var(--cocoa); }

.hero-note {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--step--1); color: var(--ink-soft);
}
.hero-note .ico { width: 17px; height: 17px; color: var(--cocoa); flex: 0 0 auto; }

.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }

/* Tall enough that a portrait photograph is not reduced to a strip: the
   panel is about 1.6:1 on a desk screen and nearly square on a phone. */
.hero-art { position: relative; min-height: clamp(20rem, 15rem + 26vw, 36rem); overflow: hidden; }
.hero-art .shot { position: absolute; inset: 0; border: 0; border-radius: 0; height: 100%; }
.hero-art .shot--filled img {
  width: 100%; height: 100%; object-fit: cover;
  /* Hold the upper third: on a standing shot that keeps the garment and
     the face area rather than centring on the hem. */
  object-position: center 28%;
}
.hero-script {
  position: absolute; right: clamp(1rem, .5rem + 2vw, 2.5rem); top: 50%;
  transform: translateY(-50%); z-index: 2; text-align: center;
  font-family: var(--font-script); font-weight: 700;
  font-size: clamp(1.15rem, .85rem + 1.3vw, 1.9rem); line-height: 1.35;
  color: var(--cocoa); max-width: 11rem; pointer-events: none;
}
/* Over a real photograph it flips to cream on a soft scrim; over the empty
   placeholder it stays dark, which is the only readable choice there. */
.hero-art:has(.shot--filled) .hero-script {
  color: #FFF8EE; text-shadow: 0 2px 16px rgba(40,22,8,.7);
}
.hero-art:has(.shot--filled)::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(270deg, rgba(40,22,8,.45), transparent 55%);
}
.hero-script .heart { display: block; margin-top: .4rem; font-size: 1.1em; }

@media (max-width: 860px) {
  .hero .rail { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; min-height: min(22rem, 78vw); }
}

/* ---------------- section heading with the script rule ---------------- */

.script-head { text-align: center; margin-bottom: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); }
.script-head h2 {
  font-family: var(--font-script); font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); color: var(--cocoa);
  display: inline-flex; align-items: center; gap: 1rem;
}
.script-head h2::before, .script-head h2::after {
  content: ""; width: clamp(14px, 3vw, 28px); height: 2px;
  background: var(--cocoa-pale); border-radius: 2px;
}
.script-head .heart { display: block; color: var(--cocoa-pale); font-size: .9rem; margin-top: .1rem; }
.script-head p { margin-top: .5rem; color: var(--ink-soft); }

/* ---------------- collections row ---------------- */

.collections {
  display: grid; gap: clamp(.8rem, .6rem + .9vw, 1.3rem);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.collections > * { width: 100%; max-width: 380px; justify-self: center; }
.collection {
  display: grid; gap: 0; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.collection:hover {
  transform: translateY(-3px); border-color: var(--cocoa-pale);
  box-shadow: 0 12px 26px rgba(90,58,34,.12);
}
.collection .shot { aspect-ratio: 4 / 3; border: 0; border-radius: 0; }
.collection .shot--filled img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.collection:hover .shot--filled img { transform: scale(1.05); }
.collection-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; padding: .85rem 1rem; font-weight: 700; font-size: var(--step-0);
}
.collection-foot .arrow { color: var(--cocoa-soft); transition: transform .2s ease; }
.collection:hover .arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .collection:hover { transform: none; }
  .collection:hover .shot--filled img, .collection:hover .arrow { transform: none; }
}

/* ---------------- product card: add straight from the grid ---------------- */

.product-card { position: relative; }
.product-card .card-body { display: grid; gap: .45rem; padding: .9rem .95rem 1rem; }
.product-card .quick {
  margin-top: .55rem; display: grid;
}
.product-card .quick .btn { width: 100%; }

/* ---------------- about band ---------------- */

.about-split {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) minmax(0, .7fr);
  gap: clamp(1.4rem, 1rem + 2.5vw, 3rem); align-items: center;
}
.about-split .shot { aspect-ratio: 4 / 3; }
.about-body { display: grid; gap: 1rem; }
.about-body h2 { font-size: var(--step-2); font-weight: 800; color: var(--cocoa); }
.about-marks { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.about-marks li { display: flex; align-items: center; gap: .6rem; }
.about-marks .ico { width: 26px; height: 26px; color: var(--cocoa); flex: 0 0 auto; }
.about-marks b { display: block; font-size: var(--step--1); font-weight: 800; }
.about-marks span { display: block; font-size: var(--step--1); color: var(--ink-soft); }
.about-quote {
  margin: 0; font-family: var(--font-script); font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.8rem); color: var(--cocoa);
  line-height: 1.3; text-align: center;
}
.about-quote .heart { display: block; margin-top: .4rem; color: var(--cocoa-pale); font-size: .8em; }
@media (max-width: 980px) {
  .about-split { grid-template-columns: minmax(0, 1fr); }
  .about-quote { text-align: left; }
}

/* ---------------- reviews ---------------- */

.reviews { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.review {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; display: grid; gap: .6rem; align-content: start; margin: 0;
}
.review-head { display: flex; align-items: center; gap: .75rem; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 999px; object-fit: cover;
  background: var(--paper-warm); flex: 0 0 auto;
}
.review-avatar--letter {
  display: grid; place-items: center; font-weight: 800; color: var(--cocoa);
  font-size: var(--step-0); border: 1px solid var(--line);
}
.stars { display: inline-flex; gap: .1rem; color: var(--gold-light); line-height: 1; }
.stars .ico { width: 15px; height: 15px; }
.stars .ico--off { color: var(--line); }
.review blockquote { margin: 0; font-size: var(--step--1); color: var(--ink); }
.review figcaption { font-size: var(--step--1); color: var(--ink-soft); }
.review .for { font-size: var(--step--2); color: var(--ink-faint); }

/* ---------------- closing call to action ---------------- */

.cta-band { background: var(--cocoa); color: #F6EADF; padding-block: clamp(2.2rem, 1.8rem + 2.5vw, 3.6rem); }
.cta-band .rail {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.2rem, 1rem + 2vw, 3rem); align-items: center;
}
.cta-band .yarn { width: clamp(90px, 10vw, 140px); height: auto; color: #8F6744; }
.cta-band .mid { display: grid; gap: .7rem; justify-items: center; text-align: center; }
.cta-band h2 {
  font-family: var(--font-script); font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); color: #fff;
}
.cta-band p { color: #E3D0BC; font-size: var(--step--1); }
.cta-band .end { display: grid; gap: .9rem; justify-items: center; }
.cta-band .social-icons { display: flex; gap: .9rem; }
.cta-band .social-icons .ico { width: 19px; height: 19px; color: #F0E2D2; }
.cta-band .social-icons a:hover .ico { color: #fff; }
.cta-band .tag { font-family: var(--font-script); font-weight: 700; font-size: 1.15rem; color: #F0E2D2; }
@media (max-width: 860px) {
  .cta-band .rail { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .cta-band .yarn { display: none; }
}

/* ---------------- order tracking ---------------- */

.track-form { display: grid; gap: 1rem; max-width: 34rem; }
.track-state { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.track-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.track-steps li { display: flex; align-items: center; gap: .7rem; font-size: var(--step--1); color: var(--ink-faint); }
.track-steps .dot {
  width: 11px; height: 11px; border-radius: 999px; flex: 0 0 auto;
  border: 2px solid var(--line); background: var(--card);
}
.track-steps li[data-done="1"] { color: var(--ink); font-weight: 600; }
.track-steps li[data-done="1"] .dot { background: var(--cocoa); border-color: var(--cocoa); }

/* ==================================================================
   Utilities.

   The Content-Security-Policy has no 'unsafe-inline' for styles, so a
   style="" attribute is silently dropped in the browser. Every one-off
   tweak therefore has to be a class.
   ================================================================== */

.u-center     { text-align: center; }
.u-auto       { margin-inline: auto; }
.u-measure    { max-width: 56ch; margin-inline: auto; text-align: center; }
.u-narrow     { max-width: 48rem; margin-inline: auto; }
.u-narrow-sm  { max-width: 40rem; margin-inline: auto; }
.u-narrow-xs  { max-width: 34rem; }
.u-mid        { max-width: 46rem; margin-inline: auto; }
.u-mt         { margin-top: 1.6rem; }
.u-mt-lg      { margin-top: 2.4rem; }
.u-mb         { margin-bottom: 1rem; }
.u-mb-lg      { margin-bottom: 2.5rem; }
.u-flat-top   { padding-top: 0; }
.u-h2         { font-size: var(--step-2); }
.u-h3         { font-size: var(--step-1); }
.u-fine       { font-size: var(--step--2); }
.u-spacer     { flex: 1 1 1rem; }
.u-plain      { text-decoration: none; }
.u-bold       { font-weight: 700; }
.u-narrow-field { max-width: 9rem; }
.u-plaincase  { text-transform: none; letter-spacing: 0; }
.form-foot--center { justify-content: center; }
.rail--narrow { max-width: 48rem; }
.footer-place { margin-top: .9rem; color: #C9B29A; }

/* ------------------------------------------------------------------
   A card keeps its own colours inside a dark band.

   `.band--cocoa h3 { color: #fff }` was turning product titles white on
   a white card — invisible. Anything that draws its own surface opts
   back out here.
   ------------------------------------------------------------------ */

.band--cocoa :is(.card, .product-card, .collection, .review, .buy-box,
                 .summary, .deposit-note, .notice, .receipt, .empty-note) {
  color: var(--ink);
}
.band--cocoa :is(.card, .product-card, .collection, .review) :is(h2, h3, h4) {
  color: var(--cocoa);
}
.band--cocoa :is(.card, .product-card, .collection, .review) :is(.lede, .muted, p) {
  color: var(--ink-soft);
}
.band--cocoa .product-card .price { color: var(--cocoa); }
.band--cocoa .product-card .cat   { color: var(--gold); }
.band--cocoa .deposit-note, .band--cocoa .deposit-note p { color: #5E4512; }

/* The script heading sits on the dark band too. */
.band--cocoa .script-head h2 { color: #fff; }
.band--cocoa .script-head .heart,
.band--cocoa .script-head h2::before,
.band--cocoa .script-head h2::after { color: var(--gold-light); background: var(--gold-light); }
.band--cocoa .script-head .heart { background: none; }
.band--cocoa .script-head p { color: #E3D0BC; }

/* The converted figure a card or PayPal customer will actually be
   charged. Quiet, but it has to be read before they commit. */
.pay-method .pm-fx {
  display: block; margin-top: .45rem;
  font-size: var(--step--1); color: var(--ink-soft);
  border-left: 3px solid var(--gold); padding-left: .7em;
}
.pay-method .pm-fx strong { color: var(--cocoa); }

/* A gallery tile that belongs to a product links back to it and says so. */
.media-tile { display: block; text-decoration: none; color: inherit; }
.media-grid .shot--filled { position: relative; }
.shot-tag {
  position: absolute; left: .5rem; right: .5rem; bottom: .5rem; z-index: 1;
  display: block; margin: 0; padding: .3em .7em;
  font-size: var(--step--2); font-weight: 600; text-align: center;
  color: var(--cocoa); background: rgba(255, 251, 245, .88);
  border-radius: 999px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  opacity: 0; transition: opacity .18s ease;
}
.media-tile:hover .shot-tag, .media-tile:focus-visible .shot-tag { opacity: 1; }
@media (hover: none) { .shot-tag { opacity: 1; } }

/* ------------------------------------------------------------------
   Two products per row on a phone.

   `minmax(236px, 1fr)` only ever fits one card in a 354px viewport, so
   the shop scrolled one tall card at a time. Below 640px the grid is
   fixed at two columns and the card is tightened to suit ~165px: a
   smaller gap, less padding, and a button that is still tappable.
   ------------------------------------------------------------------ */

@media (max-width: 640px) {
  .product-grid,
  .collections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }
  .product-grid > *, .collections > * { max-width: none; }

  .product-card .card-body { gap: .3rem; padding: .6rem .6rem .7rem; }
  .product-card h3 { font-size: .9rem; line-height: 1.25; }
  .product-card .cat { font-size: .6rem; letter-spacing: .08em; }
  .product-card .price { font-size: 1rem; }
  .product-card .price-was, .product-card .price-alt { font-size: .72rem; }
  .product-card .tag { font-size: .6rem; padding: .25em .6em; letter-spacing: .04em; }
  .product-card .quick { margin-top: .35rem; }
  .product-card .quick .btn {
    font-size: .72rem; padding: .62em .5em; gap: .3em;
    /* The label is the longest thing in the card; let it wrap rather than
       push the card wider than its track. */
    white-space: normal; line-height: 1.2;
  }
  .product-card .quick .btn .ico { width: .95em; height: .95em; }

  .collection-foot { padding: .6rem .7rem; font-size: .82rem; gap: .4rem; }
}

/* Very narrow phones: keep two columns but drop the card to essentials. */
@media (max-width: 360px) {
  .product-grid, .collections { gap: .5rem; }
  .product-card .card-body { padding: .5rem .5rem .6rem; }
  .product-card h3 { font-size: .84rem; }
}

/* The payment surcharge, shown on the option that carries it. */
.pay-method .pm-fee {
  display: block; margin-top: .45rem;
  font-size: var(--step--1); color: var(--ink-soft);
  border-left: 3px solid var(--cocoa-pale); padding-left: .7em;
}
.pay-method .pm-fee strong { color: var(--cocoa); }
