/* Paper (~/Code/DESIGN.md): warm page, white sheets, hairlines, 3px radii,
   Inter, one ink blue for what the buyer types. Light only: it is a printed
   linesheet's twin. */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --page: #f4f3ef; --sheet: #fff; --fg: #1c1c1a; --muted: #6f6e69; --faint: #a3a29c;
  --line: #e6e5e0; --line-soft: #eeede8; --field: #c9c8c2; --r: 3px;
  --blue: #2f5d8a; --blue-bg: #e8eff6; --red: #a13a2f; --red-bg: #f8ebe8;
  --green: #2f6b3a; --green-bg: #e8f1e9;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .done/.sheet set display; hidden must still win */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--fg); font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; padding-bottom: 88px; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; margin: 0; letter-spacing: -0.01em; }

.top { background: var(--sheet); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 14px; }
.brand { display: block; line-height: 0; flex: none; }
.brand img { height: 24px; width: auto; display: block; }
@media (max-width: 480px) { .brand img { height: 20px; } }
.for { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 32px 24px 40px; }
/* Hero: serif headline (matches the italic wordmark) beside three best-seller photos. */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.eyebrow span:not(:empty)::before { content: "· "; }
.hero h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 54px; line-height: 1.02; letter-spacing: -.01em; }
.hero h1 em { display: block; font-size: .62em; line-height: 1.15; margin-top: 6px; color: var(--muted); }
.lead { color: var(--muted); max-width: 46ch; margin: 18px 0 0; text-wrap: pretty; }
.hero-cta { margin-top: 22px; display: inline-flex; align-items: center; height: 44px; padding: 0 22px; text-decoration: none; }
.hero-ph { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hero-ph > * { aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: #ecebe6; position: relative; display: block; }
.hero-ph .sk { background: linear-gradient(100deg, #ecebe6 30%, #f4f3ef 50%, #ecebe6 70%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s ease; }
.hero-ph img.loaded { opacity: 1; }
.hero-ph small { position: absolute; left: 8px; bottom: 8px; background: var(--sheet); color: var(--fg); font-size: 11px; font-weight: 500;
  padding: 3px 7px; border-radius: var(--r); }
.hero-ph a:hover img { transform: scale(1.02); }
.hero-ph img { transition: opacity .4s ease, transform .5s ease; }

/* Trust strip: the four things a new buyer checks before ordering. */
.trust { list-style: none; margin: 34px 0 0; padding: 14px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.trust b { color: var(--fg); font-weight: 500; }
.trust a { color: inherit; white-space: nowrap; }
.trust svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linejoin: round; }

.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.tab { text-align: left; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; cursor: pointer; transition: border-color .15s; }
.tab:hover { border-color: var(--fg); }
.tab[aria-selected="true"] { background: var(--fg); border-color: var(--fg); color: #fff; cursor: default; }
.tab[aria-selected="true"] .sub { color: rgba(255,255,255,.7); }
.tab[aria-selected="true"] .sub b { color: #fff; }
.tab .go { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-soft);
  font-size: 13px; font-weight: 600; color: var(--blue); }
.tab .go svg { width: 12px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .15s; }
.tab:not([aria-selected="true"]):hover .go svg { transform: translateX(3px); }
.tab[aria-selected="true"] .go { color: #fff; border-top-color: rgba(255,255,255,.2); font-weight: 500; }
.tab[aria-selected="true"] .go svg { display: none; }
.tab .off { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.tab .lbl { font-size: 13px; margin-top: 2px; }
.tab .sub { font-size: 12px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.tab .sub b { color: var(--blue); font-weight: 500; }

.controls { position: sticky; top: var(--hdr, 0px); z-index: 15; background: var(--page); margin: 0 -24px; padding: 0 24px;
  transition: transform .25s ease, box-shadow .2s; }
.controls.stuck { box-shadow: 0 1px 0 var(--line); }
.controls.away { transform: translateY(-100%); }   /* the tier switch below it stays under the header */
/* Compact tier switch: hangs under the sticky bar (out of flow, so nothing jumps) once the big tabs scroll away. */
.tiers { position: absolute; left: 0; right: 0; top: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  padding: 8px 24px; background: var(--page); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s; }
.controls.stuck .tiers { opacity: 1; visibility: visible; transition: opacity .15s; }
.tier { display: flex; align-items: baseline; justify-content: center; gap: 6px; height: 34px; padding: 0 10px; min-width: 0;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; white-space: nowrap;
  font-size: 13px; line-height: 32px; transition: border-color .15s; }
.tier:hover { border-color: var(--fg); }
.tier b { font-weight: 600; }
.tier .t-l { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.tier .t-n { color: var(--blue); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tier[aria-selected="true"] { background: var(--fg); border-color: var(--fg); color: #fff; cursor: default; }
.tier[aria-selected="true"] .t-l { color: rgba(255,255,255,.7); }
.tier[aria-selected="true"] .t-n { color: #fff; }
.controls .filters, .controls .actives { padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .tiers { transition: none; } }
@media (prefers-reduced-motion: reduce) { .controls { transition: none; } }
.tools { display: flex; align-items: center; gap: 16px; margin: 18px 0 16px; flex-wrap: wrap; }
.search { flex: 1 1 260px; max-width: 360px; display: flex; align-items: center; gap: 8px; background: var(--sheet);
  border: 1px solid var(--line); border-radius: var(--r); padding: 0 10px; height: 36px; }
.search:focus-within { border-color: var(--field); }
.search svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.6; flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; }
.count { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; }
.card.picked { border-color: #b9c9da; }
.ph { aspect-ratio: 2 / 3; background: #efeeea; position: relative; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%) #efeeea;
  background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
.ph.loaded::before, .ph.failed::before { display: none; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.ph.loaded img { opacity: 1; }
.ph .nophoto { position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12px; }
.ph.failed .nophoto { display: flex; }
@keyframes shimmer { to { background-position: -120% 0; } }
.ph .track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.ph .track::-webkit-scrollbar { display: none; }
.ph .track img { position: static; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.ph .dots { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 5px; padding: 5px 7px;
  border-radius: 10px; background: rgba(255,255,255,.82); box-shadow: 0 1px 2px rgba(0,0,0,.12); pointer-events: none; }
.ph .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(28,28,26,.25); transition: background .2s; }
.ph .dots i.on { background: var(--fg); }
.ph .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); box-shadow: 0 1px 3px rgba(0,0,0,.15); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity .2s; }
.ph .nav svg { width: 8px; height: 12px; fill: none; stroke: var(--fg); stroke-width: 1.8; }
.ph .nav.prev { left: 8px; } .ph .nav.next { right: 8px; }
.ph .nav[hidden] { display: none; }
@media (hover: hover) { .ph:hover .nav { opacity: 1; } }
@media (hover: none) { .ph .nav { display: none; } }
.badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.badge { background: var(--fg); color: #fff; font-size: 11px; font-weight: 500;
  border-radius: var(--r); padding: 1px 6px; line-height: 18px; border: 1px solid var(--fg); }
.badge.reg { background: #fff; color: var(--fg); }
.badge.again { background: var(--blue); }

.cap { padding: 12px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.code { font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.meta { font-size: 12px; color: var(--muted); margin-top: 1px; }
.colour { font-size: 12.5px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.tbl th { font-weight: 400; color: var(--muted); font-size: 11px; text-align: right; padding: 0 0 3px 6px; border-bottom: 1px solid var(--line); }
.tbl td { text-align: right; padding: 4px 0 4px 6px; border-bottom: 1px solid var(--line-soft); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; color: var(--muted); font-size: 11.5px; }
.tbl s { color: var(--faint); }
.tbl .now { font-weight: 600; color: var(--red); font-size: 13px; }
.tbl .pk { font-size: 11px; color: var(--muted); }

.chips { display: flex; gap: 8px; margin-top: auto; padding-top: 2px; }
/* Pack stepper: − [n] +, the number stays typeable for big orders; + stops at the ATS cap. */
.qty { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.qh { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 10.5px; line-height: 14px; }
.qh b { font-weight: 400; color: var(--muted); }
.qh i { font-style: normal; color: var(--red); font-weight: 500; white-space: nowrap; }
.qs { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; height: 40px; border: 1px solid var(--field);
  border-radius: var(--r); background: #fff; overflow: hidden; transition: border-color .15s, background-color .15s; }
.qs:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-bg); }
.qty.has .qs { border-color: var(--blue); background: var(--blue-bg); }
.qs button { border: 0; background: transparent; font-size: 19px; line-height: 1; color: var(--fg); cursor: pointer;
  touch-action: manipulation; transition: background-color .12s, opacity .12s; }
.qs button:hover:not(:disabled) { background: rgba(28,28,26,.05); }
.qs button:active:not(:disabled) { background: rgba(28,28,26,.1); }
.qs button:disabled { opacity: .3; cursor: default; }
.qs button[data-d="1"] { color: var(--blue); font-weight: 500; }
.qs input { min-width: 0; width: 100%; border: 0; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft);
  background: transparent; outline: 0; text-align: center; font-size: 17px; font-weight: 500; color: var(--blue);
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; padding: 0; }
.qs input::placeholder { color: var(--faint); font-weight: 400; }
.qs input::-webkit-outer-spin-button, .qs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.empty { color: var(--muted); text-align: center; padding: 60px 0; }
.more { display: block; margin: 26px auto 0; }

.btn { height: 38px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--sheet);
  cursor: pointer; font-weight: 500; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { border-color: var(--field); }
.btn.primary { background: var(--fg); border-color: var(--fg); color: #fff; }
.btn.primary:hover { background: #33332f; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.big { height: 46px; width: 100%; font-size: 15px; }
.icon { width: 34px; height: 34px; border: 0; background: transparent; border-radius: var(--r); cursor: pointer; display: grid; place-items: center; }
.icon:hover { background: var(--page); }
.icon svg { width: 18px; height: 18px; fill: none; stroke: var(--fg); stroke-width: 1.6; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--sheet); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); }
.bar-in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.bar-sum { flex: 1; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 0; }
.bar-sum b { color: var(--fg); font-weight: 600; }

.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(28,28,26,.35); }
.sheet-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--sheet);
  display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.08); animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 17px; }
.sheet-body { overflow-y: auto; padding: 4px 20px 28px; -webkit-overflow-scrolling: touch; }
.grp { margin-top: 18px; }
.grp h4 { margin: 0 0 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.ln { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.ln img { width: 40px; height: 60px; object-fit: cover; border-radius: 2px; background: #efeeea; }
.ln .t { font-size: 13px; }
.ln .s { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ln .amt { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.ln .x { border: 0; background: none; color: var(--red); font-size: 12px; font-weight: 500; cursor: pointer; padding: 0; margin-top: 2px; }
.ln .x:hover { text-decoration: underline; }
.ln .sz { display: inline-block; margin-left: 4px; padding: 0 5px; border: 1px solid var(--fg); border-radius: var(--r);
  background: var(--fg); color: #fff; font-size: 10.5px; line-height: 16px; vertical-align: 1px; }
.ln .sz.reg { background: #fff; color: var(--fg); }
.step { display: inline-flex; align-items: center; margin-top: 6px; border: 1px solid var(--field); border-radius: var(--r); background: #fff; }
.step button { width: 32px; height: 32px; border: 0; background: none; font: 500 17px var(--font); color: var(--fg); cursor: pointer; }
.step button:hover { background: var(--page); }
.step input { width: 38px; height: 32px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font: 500 14px var(--font); color: var(--blue); font-variant-numeric: tabular-nums; outline: 0; background: #fff; }
.step input:focus { background: var(--blue-bg); }
.step span { padding: 0 10px 0 8px; font-size: 12px; color: var(--muted); }
.sib { display: block; margin-top: 6px; padding: 6px 9px; border: 1px dashed var(--blue); border-radius: var(--r); background: var(--blue-bg);
  color: var(--blue); font: 600 12px var(--font); cursor: pointer; text-align: left; }
.sib span { font-weight: 400; color: var(--muted); margin-left: 4px; }
.sib:hover { border-style: solid; }
.bump { margin-top: 18px; border: 1px solid var(--red); border-radius: var(--r); background: var(--red-bg); padding: 12px; }
.bump-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.bump-h b { font-size: 14px; font-weight: 600; color: var(--red); }
.bump-h span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bump-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bump-it { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bump-it img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; background: #efeeea; display: block; }
.bump-it .t { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bump-it .p { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bump-it .p small { font-weight: 400; font-size: 11px; color: var(--muted); }
.bump-it .p s { font-weight: 400; color: var(--faint); font-size: 11px; margin-left: 3px; }
.bump-it button { height: 30px; border: 0; border-radius: var(--r); background: var(--fg); color: #fff; font: 600 12px var(--font); cursor: pointer; }
.bump-it button:hover { background: #33332f; }
.totals { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.totals .grand { color: var(--fg); font-size: 15px; font-weight: 600; margin-top: 4px; }
.totals .free { color: var(--green); }

.buyer { margin-top: 26px; }
.buyer h3 { font-size: 15px; margin-bottom: 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.fields .wide { grid-column: 1 / -1; }
.fields .optl { color: var(--faint); font-weight: 400; }
.fields input, .fields textarea { border: 1px solid var(--field); border-radius: var(--r); padding: 9px 10px; font-size: 14px;
  color: var(--blue); background: #fff; outline: 0; resize: vertical; }
.fields input:focus, .fields textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-bg); }
.fields .bad { border-color: var(--red); }
.pay { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pay legend { font-size: 12px; color: var(--muted); padding: 0; margin-bottom: 5px; }
.pay .opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fields .radio { flex-direction: row; align-items: flex-start; gap: 9px; border: 1px solid var(--field); border-radius: var(--r);
  padding: 10px 12px; background: #fff; color: var(--fg); font-size: 13.5px; font-weight: 500; line-height: 1.35; cursor: pointer;
  transition: border-color .15s, background-color .15s; }
.fields .radio:hover { border-color: var(--fg); }
.fields .radio:has(input:checked) { border-color: var(--blue); background: var(--blue-bg); box-shadow: inset 0 0 0 1px var(--blue); }
.fields .radio input { accent-color: var(--blue); width: 15px; height: 15px; margin: 1px 0 0; padding: 0; border: 0; box-shadow: none; flex: none; }
.fields .radio small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.pay.bad .radio { border-color: var(--red); }
.pay .last4 { max-width: 220px; }
.pay .last4 input { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.pay .hint { font-size: 12px; color: var(--muted); margin: 0; }
.err { color: var(--red); background: var(--red-bg); border-radius: var(--r); padding: 8px 10px; font-size: 13px; margin: 14px 0 0; }
.buyer .big { margin-top: 18px; }
.fine { font-size: 12px; color: var(--muted); margin: 10px 0 0; text-align: center; }

.done { position: fixed; inset: 0; z-index: 60; background: var(--page); display: grid; place-items: center; padding: 24px; }
.done-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 28px; max-width: 440px; text-align: center; }
.tick { width: 40px; height: 40px; fill: none; stroke: var(--green); stroke-width: 2; background: var(--green-bg); border-radius: 50%; padding: 8px; }
.done-card h2 { font-size: 20px; margin-top: 12px; }
.done-card p { color: var(--muted); margin: 8px 0 20px; text-wrap: pretty; }

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) and (min-width: 481px) { .trust { grid-template-columns: 1fr 1fr; } .hero h1 { font-size: 44px; } }
@media (max-width: 800px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } .chips { flex-direction: column; } }
@media (max-width: 480px) {
  .wrap { padding: 22px 16px 32px; }
  .controls { margin: 0 -16px; padding: 0 16px; }
  .tiers { padding: 8px 16px; }
  .tier .t-l { display: none; }
  .top-in, .bar-in { padding-left: 16px; padding-right: 16px; }
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .hero-ph { order: -1; gap: 6px; }
  .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .hero h1 { font-size: 38px; }
  .lead { margin-top: 12px; font-size: 14px; }
  .hero-cta { width: 100%; justify-content: center; margin-top: 16px; }
  .trust { grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 24px; }
  .trust li { font-size: 12px; align-items: flex-start; }
  .tabs { gap: 6px; }
  .tab { padding: 10px 10px; }
  .tab .off { font-size: 18px; }
  .tab .lbl { font-size: 12px; }
  .tab .sub { font-size: 11px; }
  .tab .go { font-size: 12px; margin-top: 8px; padding-top: 7px; }
  .search { max-width: none; }
  .count { margin-left: 0; }
  .cap { padding: 10px 9px; }
  .tbl { font-size: 11.5px; }
  .chip { height: 44px; }
  .chip b { left: 6px; } .chip i { right: 6px; }
  .qs { grid-template-columns: 36px minmax(0, 1fr) 36px; height: 42px; }
  .fields { grid-template-columns: 1fr; }
  .pay .opts { grid-template-columns: 1fr; }
  .pay .last4 { max-width: none; }
  .bar-in .btn { padding: 0 14px; }
}

.tab.sk { height: 118px; background: linear-gradient(100deg, #fff 30%, #f6f5f2 50%, #fff 70%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; cursor: default; }
.nw { white-space: nowrap; }
.meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Filter bar + sort (Aritzia-style) ─────────────────────────────── */
.sortby { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.sort-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 0; font: inherit;
  color: var(--fg); cursor: pointer; }
.sort-btn u { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sort-btn svg, .fbtn svg { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .15s; }
.sort-btn[aria-expanded="true"] svg, .fbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; font: 500 12.5px/1 var(--font);
  color: var(--fg); background: var(--sheet); border: 1px solid var(--field); border-radius: var(--r); cursor: pointer; }
.fbtn:hover, .fbtn[aria-expanded="true"] { border-color: var(--fg); }
.fbtn.on { border-color: var(--fg); box-shadow: inset 0 0 0 0.5px var(--fg); }
.fbtn b { font-weight: 600; font-size: 11px; background: var(--fg); color: #fff; border-radius: 8px; min-width: 16px; height: 16px;
  display: inline-grid; place-items: center; padding: 0 4px; }
.actives { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 10px; font: 12px/1 var(--font);
  background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r); color: var(--fg); cursor: pointer; }
.tag:hover { border-color: var(--field); }
.tag svg { width: 8px; height: 8px; stroke: var(--muted); stroke-width: 1.5; }
.link { border: 0; background: none; padding: 0 4px; font: inherit; font-size: 12.5px; color: var(--fg); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.pop { position: absolute; z-index: 40; width: 260px; max-height: min(420px, 70vh); overflow: auto; background: var(--sheet);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 28px rgba(28, 28, 26, .12); padding: 6px; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; background: none;
  border-radius: var(--r); font: 13.5px/1.3 var(--font); color: var(--fg); text-align: left; cursor: pointer; }
.opt:hover { background: var(--page); }
.opt.cur::before { content: "•"; margin-left: -8px; width: 8px; }
.opt.chk input { accent-color: var(--fg); width: 15px; height: 15px; margin: 0; flex: none; }
.opt span { flex: 1; }
.opt em { font-style: normal; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.opt.none { color: var(--faint); }
.sw { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* ── Announcement banner (rotating ribbon + countdown) ─────────────── */
.ann { position: relative; overflow: hidden; color: #fff; font-size: 12.5px; letter-spacing: .02em;
  background: linear-gradient(100deg, #1c1c1a 0%, #1c1c1a 35%, #3a2a27 50%, #1c1c1a 65%, #1c1c1a 100%);
  background-size: 300% 100%; animation: ann-sheen 9s linear infinite; }
.ann.soon { background-image: linear-gradient(100deg, #6e2219 0%, #6e2219 35%, #a13a2f 50%, #6e2219 65%, #6e2219 100%); }
.ann.over { animation: none; background: #3a3a37; }
@keyframes ann-sheen { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.ann-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 34px; display: flex; align-items: center;
  justify-content: center; gap: 22px; }
.ann-rot { position: relative; height: 34px; flex: 0 1 340px; min-width: 0; }
.ann-rot span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  opacity: 0; transform: translateY(100%); transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .5s; }
.ann-rot span.on { opacity: 1; transform: none; }
.ann-rot span.out { opacity: 0; transform: translateY(-100%); }
.ann-clock { display: inline-flex; align-items: baseline; gap: 1px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .22);
  line-height: 34px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ann-clock .lbl { color: rgba(255, 255, 255, .7); margin-right: 7px; }
.ann-clock b { font-weight: 600; font-size: 13.5px; }
.ann-clock i { font-style: normal; color: rgba(255, 255, 255, .65); margin: 0 6px 0 1px; }
.ann-clock i:last-child { margin-right: 0; }
@media (prefers-reduced-motion: reduce) { .ann { animation: none; } .ann-rot span { transition: none; } }

@media (max-width: 480px) {
  .ann-in { padding: 0 16px; gap: 12px; justify-content: space-between; }
  .ann-rot span { justify-content: flex-start; }
  .ann-clock { padding-left: 12px; }
  .ann-clock .lbl { display: none; }
  .ann-clock i { margin-right: 4px; }
  .tools { gap: 10px; }
  .search { max-width: none; flex-basis: 100%; }
  .count { margin-left: 0; }
  .sortby { margin-left: auto; }
  .filters { gap: 4px; flex-wrap: nowrap; }
  .fbtn { padding: 0 7px; gap: 4px; font-size: 12px; flex: 1 1 auto; justify-content: center; }
  .fbtn svg { display: none; }
  .pop { width: calc(100vw - 32px); }
}

/* Card price: one big sale price, the old price struck beside it, packs on one quiet line. */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font-variant-numeric: tabular-nums; }
.price .now { font-size: 17px; font-weight: 600; color: var(--red); }
.price s { font-size: 13px; color: var(--faint); }
.price .pp { font-size: 12px; color: var(--muted); }
.price .pp b { font-weight: 600; color: var(--fg); }
.packs { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.badge.best { background: var(--red); }
.bar-sum .save { color: var(--green); font-weight: 500; }
@media (max-width: 480px) { .price .now { font-size: 16px; } .bar-sum .save { display: block; font-size: 12.5px; margin-top: 1px; } }
@media (prefers-reduced-motion: reduce) { .hero-ph img, .hero-ph .sk { transition: none; animation: none; } }
