/* Towards Night merch: dark cinematic. Brand faces are Apple system fonts (Bodoni 72, Avenir Next Condensed, Optima);
   other devices fall back to close free-standing faces. No web fonts are downloaded. */
:root {
  --bg: #07070a; --panel: #111117; --line: #26262f; --ink: #f2efe8; --muted: #a9a6b2; --accent: #c9a24a; --maroon: #7a1424;
  --display: "Bodoni 72", "Bodoni Moda", Didot, "Playfair Display", Georgia, serif;
  --label: "Avenir Next Condensed", "Avenir Next", "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: Optima, Candara, "Segoe UI", "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.promo { background: var(--maroon); text-align: center; font: 600 13px/1.3 var(--label); letter-spacing: .08em; text-transform: uppercase; padding: 8px 16px; }
.promo a { text-decoration: none; }
.previewbar { background: #b8860b; color: #000; text-align: center; font: 700 13px var(--label); padding: 6px; letter-spacing: .05em; }

.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left)); background: rgba(7,7,10,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px var(--label); letter-spacing: .22em; }
.brand img { border-radius: 4px; }
.top nav { display: flex; gap: 18px; font: 600 15px var(--label); letter-spacing: .12em; text-transform: uppercase; }
.top nav a { text-decoration: none; padding: 8px 2px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.count { background: var(--accent); color: #000; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: 13px; letter-spacing: 0; }

.hero { position: relative; min-height: min(78vh, 720px); display: grid; place-items: center; text-align: center; padding: 48px 20px 56px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, rgba(122,20,36,.45), transparent 60%), radial-gradient(ellipse at 50% 120%, rgba(201,162,74,.18), transparent 55%), var(--bg); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero img.wordmark { width: min(78vw, 560px); height: auto; margin: 0 auto; filter: drop-shadow(0 0 24px rgba(255,255,255,.12)); }
.hero h1 { font: italic 400 clamp(30px, 6vw, 60px)/1.08 var(--display); margin: 18px 0 10px; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 1px solid var(--ink); background: var(--ink); color: #000;
  font: 700 15px var(--label); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: 2px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 16px 56px; }
.eyebrow { font: 600 13px var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
h2 { font: 400 clamp(26px, 4vw, 40px)/1.15 var(--display); margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: none; }
.chips a { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; text-decoration: none; font: 600 14px var(--label); letter-spacing: .08em; white-space: nowrap; }
.chips a[aria-current="page"] { background: var(--ink); color: #000; border-color: var(--ink); }

.coll-row { margin: 0 0 44px; }
.coll-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.coll-head a { font: 600 14px var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { text-decoration: none; display: block; }
.card .ph { aspect-ratio: 3 / 4; background: var(--panel); border-radius: 4px; overflow: hidden; position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .ph img { transform: scale(1.03); }
.card h3 { font: 600 16px/1.3 var(--label); letter-spacing: .03em; margin: 10px 0 2px; }
.card .price { color: var(--muted); font-size: 15px; }
.tag { position: absolute; left: 8px; top: 8px; background: #b8860b; color: #000; font: 700 11px var(--label); letter-spacing: .1em; padding: 3px 7px; border-radius: 2px; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font: 600 13px var(--label); letter-spacing: .12em; text-transform: uppercase;
  background: repeating-linear-gradient(45deg, #111117, #111117 10px, #15151c 10px, #15151c 20px); }

.empty { border: 1px dashed var(--line); border-radius: 6px; padding: 40px 20px; text-align: center; color: var(--muted); }
.empty h3 { font: 400 26px var(--display); color: var(--ink); margin: 0 0 8px; }

.pdp { display: grid; gap: 26px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; } .pdp .info { position: sticky; top: 80px; } }
.gallery .main { aspect-ratio: 3 / 4; background: var(--panel); border-radius: 4px; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: thin; }
.thumbs button { flex: none; width: 64px; height: 84px; padding: 0; border: 1px solid var(--line); background: var(--panel); border-radius: 3px; cursor: pointer; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { font: 400 clamp(28px, 4.5vw, 44px)/1.12 var(--display); margin: 0 0 8px; }
.info .price { font: 600 22px var(--label); letter-spacing: .04em; margin: 0 0 18px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font: 600 13px var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
legend b { color: var(--ink); letter-spacing: .04em; text-transform: none; font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opts span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 48px; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; font: 600 15px var(--label); }
.opts input:checked + span { border-color: var(--ink); background: var(--ink); color: #000; }
.opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opts input:disabled + span { opacity: .35; text-decoration: line-through; }
.sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); flex: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; }
.qty button { width: 44px; height: 44px; background: none; border: 0; color: var(--ink); font-size: 20px; cursor: pointer; }
.qty output { min-width: 34px; text-align: center; font: 600 16px var(--label); }
.buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 22px; }
.buy .btn { flex: 1; min-width: 200px; }
.desc { color: #d8d5de; border-top: 1px solid var(--line); padding-top: 16px; }
.desc p { margin: 0 0 12px; }
.note { color: var(--muted); font-size: 14px; }

.cart-list { list-style: none; margin: 0 0 24px; padding: 0; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img, .cart-item .noimg { width: 84px; height: 110px; object-fit: cover; border-radius: 3px; }
.cart-item h3 { font: 600 16px var(--label); margin: 0 0 2px; }
.cart-item .meta { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; padding: 8px 0; min-height: 44px; }
.total { display: flex; justify-content: space-between; font: 600 20px var(--label); margin: 0 0 6px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #000; padding: 12px 18px; border-radius: 3px; font: 600 15px var(--label);
  transition: transform .25s ease; z-index: 20; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; padding: 26px 16px 40px; }
.foot p { margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.pdp { margin-top: 14px; }
.narrow { max-width: 760px; }
.btn.wide { width: 100%; }
.pdp > * { min-width: 0; }
.toast:empty { display: none; }
