/* Mama Kemi's Ankara Stall: a Balogun market stall in the browser.
   World: the faded indigo awning, cream newsprint ground, kraft price cards lettered in marker,
   the carbon order book. One accent (burnt orange). Type: Archivo (sign caps + body) and Caveat Brush (marker). */

:root {
  /* colour */
  --ground: #f6efe3;        /* cream ground, like newsprint under the awning */
  --paper: #fffaf1;         /* order-book paper */
  --kraft: #e6d0a4;         /* price cards */
  --kraft-edge: #cfb27c;
  --ink: #1f2550;           /* indigo ink: all text */
  --ink-soft: #4a4f73;      /* secondary text */
  --rule: rgba(31, 37, 80, 0.16);
  --rule-strong: rgba(31, 37, 80, 0.38);
  --awning: #2a3566;        /* header, footer, dark bands */
  --on-awning: #f6efe3;
  --on-awning-soft: #c9cbe0;
  --accent: #b2461a;        /* burnt orange: buttons, stamps, the one accent */
  --accent-press: #8f3512;
  --accent-tint: #f3dccb;
  --error: #a3261b;

  /* type */
  --font-sans: "Archivo", system-ui, sans-serif;
  --font-marker: "Caveat Brush", "Archivo", cursive;
  --sign-stretch: 72%;      /* condensed sign caps */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);

  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;

  --radius: 4px;
  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow-card: 0 10px 24px -12px rgba(40, 24, 8, 0.45), 0 2px 4px rgba(40, 24, 8, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--awning) var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
::selection { background: var(--accent); color: var(--paper); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--awning); border: 3px solid var(--ground); border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -60px; background: var(--paper); padding: var(--s2) var(--s4); z-index: 20; }
.skip:focus { top: var(--s4); }

/* sign caps: the hand-painted signboard voice */
.sign, h1, h2 {
  font-family: var(--font-sans);
  font-stretch: var(--sign-stretch);
  font-variation-settings: "wdth" 72;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; margin: 0; line-height: 1.25; }
p { margin: 0; max-width: 62ch; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }
.marker { font-family: var(--font-marker); font-weight: 400; letter-spacing: 0; text-transform: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- awning header ---------- */
.awning { background: var(--awning); color: var(--on-awning); position: relative; z-index: 5; }
.awning::after { /* the valance: scallops of canvas hanging from the awning */
  content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 14px;
  background: radial-gradient(circle at 14px 0, var(--awning) 13px, transparent 14px) 0 0 / 28px 14px repeat-x;
}
.awning__bar { display: flex; align-items: center; gap: var(--s5); min-height: 72px; padding-top: var(--s2); padding-bottom: var(--s2); }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand:hover { color: var(--on-awning); }
.brand__name { font-size: 1.75rem; font-stretch: var(--sign-stretch); font-variation-settings: "wdth" 72; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.brand__sub { font-size: 0.8125rem; color: var(--on-awning-soft); margin-top: 4px; letter-spacing: 0.02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s1); }
.nav a { text-decoration: none; padding: var(--s2) var(--s3); border-radius: var(--radius); font-weight: 600; font-size: 0.9375rem; color: var(--on-awning); }
.nav a:hover { background: rgba(246, 239, 227, 0.12); color: var(--on-awning); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.nav .basket-link { display: inline-flex; align-items: center; gap: var(--s2); background: var(--paper); color: var(--ink); }
.nav .basket-link:hover { background: var(--kraft); color: var(--ink); }
.basket-link svg { width: 20px; height: 20px; }
.count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: var(--paper); font-size: 0.8125rem; display: inline-grid; place-items: center; padding: 0 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .awning__bar { flex-wrap: wrap; gap: var(--s2) var(--s4); padding-top: var(--s3); padding-bottom: var(--s3); }
  .brand__name { font-size: 1.5rem; }
  .nav { margin-left: 0; width: 100%; justify-content: space-between; }
  .nav a { padding: var(--s2) var(--s2); font-size: 0.9375rem; }
  .nav .nav-hide-sm { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5); border-radius: var(--radius);
  font: 700 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.btn--primary { background: var(--accent); color: var(--paper); }
.btn--primary:hover { background: var(--accent-press); color: var(--paper); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(31, 37, 80, 0.07); color: inherit; }
.btn[disabled], .btn[aria-disabled="true"] { background: #cfc6b8; color: #5d5a55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.link-arrow { font-weight: 700; display: inline-flex; gap: var(--s2); align-items: center; }

/* ---------- the price card (kraft card lettered in marker) ---------- */
.price-card {
  background: var(--kraft); color: var(--ink); padding: var(--s5) var(--s5) var(--s4);
  border-radius: 3px; box-shadow: var(--shadow-card); position: relative;
  transform: rotate(-2.2deg);
}
.price-card::before { /* punched hole */
  content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--awning); box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
}
.price-card__title { font-family: var(--font-marker); font-size: 1.9rem; line-height: 1; margin: var(--s3) 0 var(--s3); }
.price-card ul { list-style: none; margin: 0; padding: 0; }
.price-card li { display: flex; justify-content: space-between; gap: var(--s4); align-items: baseline; padding: 6px 0; border-top: 1.5px dashed rgba(31, 37, 80, 0.35); }
.price-card li span:first-child { font-weight: 600; font-size: 0.9375rem; }
.price-card li .marker { font-size: 1.6rem; line-height: 1; color: var(--accent-press); white-space: nowrap; }
.price-card small { display: block; margin-top: var(--s2); font-size: 0.8125rem; color: var(--ink-soft); }

.tag { /* small hang tag with a price */
  display: inline-flex; align-items: baseline; gap: 6px; background: var(--kraft);
  padding: 4px 10px 3px; border-radius: 2px; transform: rotate(-3deg);
  box-shadow: 0 4px 10px -6px rgba(40, 24, 8, 0.6);
}
.tag .marker { font-size: 1.45rem; line-height: 1; color: var(--accent-press); }
.tag small { font-size: 0.75rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(640px, 82vh); display: flex; align-items: center; overflow: hidden; color: var(--on-awning); background: #3a2717; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(38, 22, 10, 0.82) 0%, rgba(38, 22, 10, 0.62) 38%, rgba(38, 22, 10, 0) 62%); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 580px); gap: var(--s6); align-items: end; padding-top: var(--s8); padding-bottom: var(--s8); }
.hero h1 { color: var(--on-awning); }
.hero .lede { color: #efe2cf; margin-top: var(--s5); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero__actions .btn--ghost { color: var(--on-awning); }
.hero__actions .btn--ghost:hover { background: rgba(246, 239, 227, 0.12); color: var(--on-awning); }
.hero .price-card { max-width: 300px; justify-self: start; margin-top: var(--s6); animation: hang 1.1s var(--ease-out) 0.2s both; transform-origin: 50% 0; }
@keyframes hang { from { transform: rotate(5deg); } to { transform: rotate(-2.2deg); } }
@media (prefers-reduced-motion: reduce) { .hero .price-card { animation: none; } * { scroll-behavior: auto !important; } }
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; background: var(--ground); color: var(--ink); }
  .hero__photo { position: relative; height: 300px; object-position: 82% 30%; }
  .hero::before { display: none; }
  .hero__inner { grid-template-columns: 1fr; padding-top: var(--s6); padding-bottom: var(--s7); gap: 0; }
  .hero h1 { color: var(--ink); }
  .hero .lede { color: var(--ink-soft); }
  .hero__actions .btn--ghost { color: var(--ink); }
  .hero__actions .btn--ghost:hover { background: rgba(31,37,80,.07); color: var(--ink); }
  .hero .price-card { margin-top: var(--s7); max-width: 320px; }
}

/* ---------- sections ---------- */
.section { padding: var(--s9) 0; }
.section--tight { padding: var(--s8) 0; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s4) var(--s6); margin-bottom: var(--s7); }
.section__head p { color: var(--ink-soft); }
@media (max-width: 760px) { .section { padding: var(--s8) 0; } .section--tight { padding: var(--s7) 0; } }

/* ---------- the shelf (new arrivals as folded bolts) ---------- */
.shelf { border-top: 3px solid var(--ink); }
.shelf__row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: var(--s5); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--rule-strong); text-decoration: none; color: var(--ink); }
.shelf__row:hover { color: var(--ink); background: rgba(230, 208, 164, 0.35); }
.shelf__row:hover .bolt { transform: translateX(10px); }
.bolt { /* a folded bolt seen edge-on: the pattern with fold light */
  height: 76px; border-radius: 14px / 38px; background-size: 64px; position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease-out);
  box-shadow: 0 6px 12px -8px rgba(40, 24, 8, 0.7);
}
.bolt::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 22%, rgba(0,0,0,.22) 47%, rgba(255,255,255,.14) 53%, rgba(255,255,255,0) 76%, rgba(0,0,0,.28) 100%); }
.shelf__name h3 { font-size: var(--step-1); }
.shelf__name p { color: var(--ink-soft); font-size: 0.9375rem; }
@media (max-width: 760px) {
  .shelf__row { grid-template-columns: 1fr auto; row-gap: var(--s2); }
  .shelf__row .bolt { grid-column: 1 / -1; height: 56px; }
}

/* ---------- stall story ---------- */
.stall { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s8); align-items: center; }
.stall__photo { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.stall__text > * + * { margin-top: var(--s5); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s5); margin: var(--s6) 0 0; padding-top: var(--s5); border-top: 1px solid var(--rule-strong); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-soft); }
.quote { font-family: var(--font-marker); font-size: 2rem; line-height: 1.15; color: var(--accent-press); max-width: 26ch; }
.quote cite { display: block; font-family: var(--font-sans); font-size: 0.9375rem; font-style: normal; color: var(--ink-soft); margin-top: var(--s2); }
@media (max-width: 860px) { .stall { grid-template-columns: 1fr; gap: var(--s6); } .stall__photo { aspect-ratio: 4 / 3.4; object-position: 50% 25%; } }

/* ---------- the order book (how ordering works) ---------- */
.band-awning { background: var(--awning); color: var(--on-awning); }
.band-awning h2 { color: var(--on-awning); }
.band-awning .section__head p { color: var(--on-awning-soft); }
.orderbook { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: start; }
.book {
  background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: var(--s7) var(--s6) var(--s6);
  position: relative; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
}
.book::before { /* perforated top edge of the receipt book */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: radial-gradient(circle at 9px 0, var(--awning) 4px, transparent 4.5px) 0 0 / 18px 10px repeat-x;
}
.book__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); border-bottom: 2px solid var(--ink); padding-bottom: var(--s3); }
.book__head .sign { font-size: 1.5rem; }
.book__head span:last-child { font-size: 0.875rem; color: var(--ink-soft); }
.book ol { list-style: none; margin: 0; padding: 0; counter-reset: line; }
.book li { counter-increment: line; display: grid; grid-template-columns: 40px 1fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.book li::before { content: counter(line); font-family: var(--font-marker); font-size: 1.9rem; line-height: 1; color: var(--accent); }
.book li p { color: var(--ink-soft); margin-top: 2px; font-size: 0.9375rem; }
.book__foot { display: flex; align-items: center; gap: var(--s5); margin-top: var(--s5); }
.book__foot p { font-size: 0.9375rem; color: var(--ink-soft); }
.stamp { width: 112px; height: 112px; flex: none; color: var(--accent); transform: rotate(-12deg); opacity: 0.9; }
.orderbook__photo { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
.orderbook__aside > * + * { margin-top: var(--s5); }
.orderbook__aside p { color: var(--on-awning-soft); }
@media (max-width: 860px) { .orderbook { grid-template-columns: 1fr; } .book { padding: var(--s6) var(--s5) var(--s5); } .stamp { width: 88px; height: 88px; } }

/* ---------- delivery table ---------- */
.delivery { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: start; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table caption { text-align: left; font-weight: 700; padding-bottom: var(--s3); }
.table th, .table td { text-align: left; padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--rule-strong); vertical-align: top; }
.table thead th { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.table td.fee { font-weight: 700; white-space: nowrap; }
.table td small { display: block; color: var(--ink-soft); font-size: 0.875rem; }
.pickup { background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; }
.pickup img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pickup__body { padding: var(--s5); }
.pickup__body > * + * { margin-top: var(--s3); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s5); font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.hours dt { font-weight: 600; } .hours dd { margin: 0; }
@media (max-width: 860px) { .delivery { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .table th, .table td { padding-right: var(--s2); font-size: 0.9375rem; } }

/* ---------- footer ---------- */
.footer { background: var(--awning); color: var(--on-awning); padding: var(--s8) 0 var(--s6); margin-top: var(--s9); position: relative; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px;
  background: radial-gradient(circle at 14px 14px, var(--awning) 13px, transparent 14px) 0 0 / 28px 14px repeat-x; }
.footer a { color: var(--on-awning); }
.footer a:hover { color: var(--kraft); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6); }
.footer h2 { font-size: 1.75rem; color: var(--on-awning); }
.footer h3 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-awning-soft); margin-bottom: var(--s3); }
.footer p, .footer li { color: var(--on-awning-soft); font-size: 0.9375rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.footer__note { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid rgba(246, 239, 227, 0.2); font-size: 0.8125rem; max-width: none; color: var(--on-awning-soft); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- shop ---------- */
.shop-hero { position: relative; overflow: hidden; background: #2b3352; color: var(--on-awning); }
.shop-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 22%; }
.shop-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, rgba(24, 30, 62, 0.86) 0%, rgba(24, 30, 62, 0.7) 40%, rgba(24, 30, 62, 0) 66%); }
.shop-hero__inner { position: relative; z-index: 2; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; text-align: right; padding-top: var(--s8); padding-bottom: var(--s7); }
.shop-hero__inner > div { max-width: 520px; }
.shop-hero h1 { color: var(--on-awning); }
.shop-hero p { color: #dfe1f0; margin: var(--s4) 0 0 auto; }
@media (max-width: 760px) {
  .shop-hero { background: var(--ground); color: var(--ink); }
  .shop-hero img { position: relative; height: 220px; object-position: 18% 40%; }
  .shop-hero::before { display: none; }
  .shop-hero__inner { min-height: 0; align-items: flex-start; text-align: left; padding-top: var(--s6); padding-bottom: 0; }
  .shop-hero h1 { color: var(--ink); }
  .shop-hero p { color: var(--ink-soft); margin-left: 0; }
}

.filters { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: var(--s4) var(--s6); align-items: end; padding: var(--s6) 0 var(--s5); border-bottom: 3px solid var(--ink); }
.filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters legend, .field label, .field > .label { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: var(--s2); padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); border: 1.5px solid var(--rule-strong); border-radius: var(--radius); font-weight: 600; font-size: 0.9375rem; background: var(--paper); transition: background-color .15s, border-color .15s; }
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(31,37,80,.35); flex: none; }
.chip input:checked + span .dot { border-color: var(--paper); }
.result-count { font-weight: 600; color: var(--ink-soft); align-self: center; justify-self: end; grid-column: 4; white-space: nowrap; }
.filters .select { min-width: 190px; }
.select { min-height: 40px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 600 0.9375rem var(--font-sans); padding: 0 var(--s3); }
@media (max-width: 1000px) { .filters { grid-template-columns: 1fr; } .result-count { grid-column: auto; justify-self: start; } }
@media (max-width: 520px) {
  .chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .chips--scroll .chip { flex: none; }
}

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s7) var(--s5); padding-top: var(--s7); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s4); } }
.cloth { text-decoration: none; color: var(--ink); display: block; position: relative; }
.cloth:hover { color: var(--ink); }
.swatch { /* a folded length of cloth: the pattern with the light of its folds */
  aspect-ratio: 1; border-radius: var(--radius); background-size: 72px; position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 14px 22px -16px rgba(40, 24, 8, 0.8);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.swatch::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 62%, rgba(0,0,0,.26) 64%, rgba(255,255,255,.2) 66.5%, rgba(255,255,255,0) 74%, rgba(0,0,0,.18) 100%); }
.cloth:hover .swatch { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 22px 28px -16px rgba(40, 24, 8, 0.8); }
.cloth .tag { position: absolute; top: -10px; right: 10px; z-index: 2; }
.cloth h3 { margin-top: var(--s4); font-size: 1.125rem; }
.cloth p { color: var(--ink-soft); font-size: 0.875rem; }
.empty { padding: var(--s8) 0; text-align: left; }
.empty > * + * { margin-top: var(--s4); }
.empty h2 { font-size: var(--step-2); }

/* ---------- product ---------- */
.crumbs { font-size: 0.875rem; color: var(--ink-soft); padding-top: var(--s6); }
.crumbs a { color: var(--ink-soft); }
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); padding-top: var(--s5); align-items: start; }
.gallery__main { aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; position: relative; background-color: var(--kraft); }
.gallery__main .swatch { aspect-ratio: auto; height: 100%; border-radius: 0; background-size: 120px; box-shadow: none; }
.gallery__main .swatch--draped::after { background: linear-gradient(100deg, rgba(0,0,0,.25) 0%, rgba(255,255,255,.18) 12%, rgba(0,0,0,0) 22%, rgba(0,0,0,.28) 36%, rgba(255,255,255,.16) 46%, rgba(0,0,0,.05) 60%, rgba(0,0,0,.3) 74%, rgba(255,255,255,.14) 86%, rgba(0,0,0,.2) 100%); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 96px)); gap: var(--s3); margin-top: var(--s3); }
.thumb { aspect-ratio: 1; border-radius: var(--radius); border: 2px solid transparent; padding: 0; overflow: hidden; cursor: pointer; background: var(--kraft); }
.thumb .swatch { height: 100%; border-radius: 0; background-size: 40px; box-shadow: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--ink); }
.thumb:hover { border-color: var(--rule-strong); }
.buy > * + * { margin-top: var(--s5); }
.buy .type { font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; font-size: 0.8125rem; }
.buy h1 { font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); margin-top: var(--s2); }
.buy .tag { transform: rotate(-2deg); padding: 6px 14px 5px; }
.buy .tag .marker { font-size: 2.1rem; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s5); margin-left: 0; margin-right: 0; margin-bottom: 0; padding: var(--s4) 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); font-size: 0.9375rem; }
.spec dt { font-weight: 700; } .spec dd { margin: 0; color: var(--ink-soft); }

/* the tape: yards selector drawn as a tailor's tape measure */
.tape { border: 0; margin: 0; padding: 0; min-width: 0; }
.tape legend { font-weight: 700; margin-bottom: var(--s3); padding: 0; }
.tape__band { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--kraft); border-radius: var(--radius); position: relative; padding-top: 18px;
  background-image: linear-gradient(90deg, var(--rule-strong) 1px, transparent 1px), linear-gradient(90deg, var(--rule-strong) 1px, transparent 1px);
  background-size: 25% 16px, 6.25% 9px; background-repeat: repeat-x; background-position: 0 0, 0 0; }
.tape__band label { position: relative; text-align: center; cursor: pointer; padding: var(--s2) 0 var(--s3); }
.tape__band input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tape__band label span { display: block; font-family: var(--font-marker); font-size: 1.7rem; line-height: 1; }
.tape__band label small { display: block; font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }
.tape__band label:has(input:checked) { background: var(--ink); color: var(--paper); border-radius: 0 0 var(--radius) var(--radius); }
.tape__band label:has(input:checked) small { color: var(--on-awning-soft); }
.tape__band label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.tape__band label:hover:not(:has(input:checked)) { background: rgba(31,37,80,.08); }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); font-size: var(--step-1); }
.total strong { font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.added { background: var(--accent-tint); border-radius: var(--radius); padding: var(--s3) var(--s4); font-weight: 600; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; }
.added[hidden] { display: none; }
.note { font-size: 0.875rem; color: var(--ink-soft); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---------- cart / checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s7); align-items: start; padding-top: var(--s6); }
.receipt { background: var(--paper); border-radius: var(--radius); padding: var(--s6) var(--s5) var(--s5); position: relative; box-shadow: var(--shadow-card); }
.receipt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: radial-gradient(circle at 9px 0, var(--ground) 4px, transparent 4.5px) 0 0 / 18px 10px repeat-x; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); align-items: center; }
.line .swatch { width: 64px; background-size: 32px; box-shadow: none; }
.line h3 { font-size: 1rem; }
.line h3 a { text-decoration: none; }
.line .meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; margin-top: var(--s2); font-size: 0.875rem; color: var(--ink-soft); }
.line .select { min-height: 36px; font-size: 0.875rem; }
.line .amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.textbtn { background: none; border: 0; padding: 4px 0; font: 600 0.875rem var(--font-sans); color: var(--ink-soft); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.textbtn:hover { color: var(--error); }
.sums { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) 0; margin: var(--s4) 0 0; font-variant-numeric: tabular-nums; }
.sums dt { color: var(--ink-soft); padding-right: var(--s4); } .sums dd { margin: 0; text-align: right; font-weight: 600; }
.sums .grand { font-size: var(--step-1); font-weight: 800; color: var(--ink); padding-top: var(--s3); border-top: 2px solid var(--ink); }
.form > * + * { margin-top: var(--s5); }
.form h2 { font-size: var(--step-2); }
.field { display: grid; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 400 1rem var(--font-sans); padding: var(--s3); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #6b6a7e; }
.field [aria-invalid="true"] { border-color: var(--error); background: #fbeeea; }
.field .err { color: var(--error); font-size: 0.875rem; font-weight: 600; margin-top: var(--s1); }
.field .hint { color: var(--ink-soft); font-size: 0.875rem; margin-top: var(--s1); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.method { border: 0; padding: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.method legend { grid-column: 1 / -1; }
.method label { border: 1.5px solid var(--rule-strong); border-radius: var(--radius); padding: var(--s4); background: var(--paper); cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); align-items: start; }
.method label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.method input { accent-color: var(--accent); width: 18px; height: 18px; margin: 3px 0 0; grid-row: span 2; }
.method strong { font-size: 1rem; } .method small { color: var(--ink-soft); font-size: 0.875rem; }
.done { background: var(--paper); border-radius: var(--radius); padding: var(--s7) var(--s6); box-shadow: var(--shadow-card); max-width: 680px; position: relative; }
.done > * + * { margin-top: var(--s4); }
.done:focus { outline: none; }
[data-cart] > .done, [data-cart] > .empty { margin-top: var(--s6); }
.done .stamp { position: absolute; right: var(--s5); top: var(--s5); }
.done h2 { padding-right: 120px; }
@media (max-width: 520px) { .done { padding: var(--s6) var(--s5); } .done .stamp { width: 76px; height: 76px; right: var(--s3); top: var(--s3); } .done h2 { padding-right: 70px; } }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .line { grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--s3); } .line .swatch { width: 48px; } }
