/* Diagos Vault: thrift-shop editorial. Chunky Syne headlines, sticker price tags,
   plum + hot pink with mustard highlights on a clean warm white. */
:root {
  --paper: #fbfaf6;
  --card: #ffffff;
  --ink: #1c1426;
  --muted: #6b6274;
  --line: #e7e2ea;
  --plum: #3d1a5b;
  --plum-2: #57297d;
  --pink: #ff4f8b;
  --pink-soft: #ffe3ee;
  --mustard: #f5b700;
  --mint: #b9f0d8;
  --good: #11804a;
  --warn: #b04400;
  --display: "Syne", "Arial Black", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --max: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0 0 .4em; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 72px; }
.eyebrow { display: inline-block; font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--pink); margin-bottom: 14px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--pink); }
.btn-pink { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-pink:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-light { background: #fff; color: var(--plum); border-color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Announcement ticker */
.ticker { background: var(--plum); color: #fff; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .88rem; }
.ticker-track { display: inline-flex; gap: 48px; padding: 9px 0; animation: ticker 32s linear infinite; }
.ticker-track span::before { content: "✶"; color: var(--mustard); margin-right: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 31; }
.head-row { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 46px; height: 46px; }
.brand b { display: block; font: 800 1.35rem/0.9 var(--display); letter-spacing: -.03em; }
.brand small { display: block; font: 700 .62rem/1 var(--body); letter-spacing: .3em; color: var(--pink); margin-bottom: 3px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.head-search { flex: 1; display: flex; max-width: 360px; margin-left: auto; }
.head-search input { flex: 1; min-width: 0; border: 2px solid var(--ink); border-right: 0; border-radius: 999px 0 0 999px; padding: 9px 16px; font: inherit; background: #fff; }
.head-search button { border: 2px solid var(--ink); background: var(--ink); color: #fff; border-radius: 0 999px 999px 0; padding: 0 16px; cursor: pointer; font-weight: 700; }
.basket-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; text-decoration: none; flex: none; }
.basket-link svg { width: 22px; height: 22px; }
.basket-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font: 800 .75rem/22px var(--body); text-align: center; border: 2px solid var(--paper); }
.menu-btn { display: none; border: 2px solid var(--ink); background: #fff; border-radius: 12px; width: 46px; height: 46px; cursor: pointer; font-size: 1.3rem; }

/* Category strip under the header */
.cat-strip { border-bottom: 1px solid var(--line); background: #fff; }
.cat-strip .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.cat-strip a { flex: none; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); }
.cat-strip a:hover, .cat-strip a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 64px 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); line-height: .92; letter-spacing: -.045em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--pink); -webkit-text-stroke: 0; }
.hero .lede { font-size: 1.18rem; max-width: 46ch; color: var(--muted); margin-bottom: 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: end; }
.hero-art .blob { position: absolute; inset: 6%; border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%; background: var(--plum); }
.hero-art .rail { position: absolute; left: 12%; right: 12%; top: 24%; height: 8px; border-radius: 8px; background: var(--mustard); }
.hero-art .hanger { position: absolute; top: 18%; width: 22%; aspect-ratio: .78; border-radius: 14px 14px 22px 22px; border: 3px solid var(--ink); }
.hero-art .hanger::before { content: ""; position: absolute; left: 50%; top: -22px; width: 18px; height: 22px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0; transform: translateX(-50%); }
.hero-art .h1 { left: 16%; background: var(--pink); height: 46%; }
.hero-art .h2 { left: 40%; background: var(--mint); height: 56%; }
.hero-art .h3 { left: 63%; background: var(--paper); height: 42%; }
.sticker { position: absolute; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font: 800 1rem/1.05 var(--display); color: var(--ink); background: var(--mustard); border: 2px solid var(--ink); border-radius: 50%; width: 112px; height: 112px; padding: 10px; transform: rotate(-12deg); box-shadow: 4px 4px 0 var(--ink); }
.sticker b { font-size: 1.7rem; }
.sticker.s1 { right: 2%; top: 4%; }
.sticker.s2 { left: 0; bottom: 8%; background: var(--pink); color: #fff; transform: rotate(9deg); }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 28px; }
.cat { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; padding: 18px; border-radius: var(--radius); border: 2px solid var(--ink); text-decoration: none; background: var(--c, #fff); transition: transform .15s, box-shadow .15s; overflow: hidden; }
.cat:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.cat b { font: 800 1.15rem/1.05 var(--display); letter-spacing: -.02em; }
.cat span { font-size: .85rem; font-weight: 600; opacity: .75; }
.cat::after { content: "→"; position: absolute; right: 16px; bottom: 12px; font-weight: 800; font-size: 1.2rem; }

/* Section heads */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.sec-head a { font-weight: 700; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.card-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); background: var(--c, var(--pink-soft)); container-type: inline-size; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.04); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 12% 10% 22%; text-align: center; font: 800 11.5cqw/.95 var(--display); letter-spacing: -.03em; color: var(--ink); text-transform: lowercase; overflow-wrap: anywhere; hyphens: auto; }
.ph small { display: block; font: 700 .66rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; margin-top: 10px; opacity: .6; }
.price-tag { position: absolute; right: 10px; bottom: 12px; background: #fff; border: 2px solid var(--ink); border-radius: 6px 12px 12px 6px; padding: 6px 12px 6px 18px; font: 800 1rem/1 var(--display); transform: rotate(-6deg); }
.price-tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transform: translateY(-50%); }
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge { font: 700 .72rem/1 var(--body); padding: 6px 9px; border-radius: 999px; background: var(--ink); color: #fff; }
.badge.pink { background: var(--pink); }
.badge.mustard { background: var(--mustard); color: var(--ink); }
.card-body { padding: 12px 4px 0; }
.card-body h3 { font: 700 1.02rem/1.3 var(--body); letter-spacing: 0; margin: 0 0 4px; }
.card-meta { font-size: .86rem; color: var(--muted); }
.wholesale-note { font-size: .84rem; font-weight: 700; color: var(--plum-2); margin-top: 4px; }

/* Bands */
.band { background: var(--plum); color: #fff; border-block: 2px solid var(--ink); }
.band .eyebrow { color: var(--mustard); }
.band .muted { color: #d9c9e6; }
.band-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.step { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; }
.step b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mustard); font: 800 1.1rem var(--display); margin-bottom: 12px; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); margin: 0; }

.sell-cta { background: var(--mustard); border: 2px solid var(--ink); border-radius: 28px; padding: 40px clamp(20px, 4vw, 48px); }
.sell-cta .eyebrow { color: var(--plum); }
.sell-cta p { margin: 0; max-width: 52ch; }

/* Shop page */
.shop-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: 140px; display: grid; gap: 18px; }
.filters h3 { font: 700 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.filter-list { display: grid; gap: 2px; }
.filter-list a { display: flex; justify-content: space-between; text-decoration: none; padding: 7px 10px; border-radius: 10px; font-weight: 600; }
.filter-list a:hover { background: #fff; }
.filter-list a[aria-current="page"] { background: var(--ink); color: #fff; }
.filter-list a span { opacity: .55; font-weight: 500; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.toolbar h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
select, input, textarea { font: inherit; color: var(--ink); }
.field, .select { padding: 11px 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; width: 100%; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--pink); }
.empty { text-align: center; padding: 60px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty b { display: block; font: 800 1.6rem var(--display); color: var(--ink); margin-bottom: 6px; }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; padding-block: 40px 72px; }
.pdp .card-img { aspect-ratio: 4 / 5; }
.pdp .ph { font-size: 12cqw; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.pdp h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.pdp-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 16px; }
.pdp-price b { font: 800 2.4rem/1 var(--display); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.tier { border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.tier.on { border-color: var(--ink); background: var(--pink-soft); }
.tier small { display: block; color: var(--muted); font-weight: 600; }
.tier b { font: 800 1.3rem var(--display); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 20px 0; padding: 16px 0; border-block: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.buy-row { display: flex; gap: 12px; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.qty button { width: 44px; height: 48px; border: 0; background: none; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.qty input { width: 52px; border: 0; text-align: center; font-weight: 800; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock-note { margin-top: 12px; font-weight: 700; }
.stock-note.low { color: var(--warn); }

/* Basket */
.basket { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; padding-block: 40px 72px; }
.line { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .card-img { aspect-ratio: 1; border-radius: 12px; }
.line .ph { font-size: 13cqw; padding: 8px; }
.line .ph small { display: none; }
.line h3 { font: 700 1rem/1.3 var(--body); margin: 0 0 4px; }
.line .qty button { width: 36px; height: 38px; }
.line .qty input { width: 40px; }
.remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0; margin-top: 6px; }
.summary { position: sticky; top: 140px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 6px 6px 0 var(--ink); }
.summary h2 { font-size: 1.6rem; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { font: 800 1.35rem var(--display); border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 14px; }
.note-box { background: var(--pink-soft); border-radius: 12px; padding: 10px 14px; font-size: .9rem; font-weight: 600; margin: 12px 0; }
.alert-box { background: #fff1e6; color: #7a2f00; border: 2px solid #f0b48a; border-radius: 12px; padding: 12px 14px; font-weight: 600; margin-bottom: 16px; }
.ok-box { background: #e6f7ee; color: #0b5c34; border: 2px solid #9fd9b9; border-radius: 12px; padding: 12px 14px; font-weight: 600; }

/* Order tracking */
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 24px 0; }
.track div { text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); }
.track div::before { content: ""; display: block; height: 8px; border-radius: 8px; background: var(--line); margin-bottom: 8px; }
.track div.done { color: var(--ink); }
.track div.done::before { background: var(--pink); }

/* Forms (sell page) */
.form { display: grid; gap: 14px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: 6px 6px 0 var(--pink); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
.form textarea { min-height: 130px; resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }

/* Info page */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.info-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px; }
.info-card h2 { font-size: 1.6rem; }

/* Footer */
.site-foot { background: var(--ink); color: #e8e0ef; padding-block: 56px 32px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-foot h4 { font: 700 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); margin: 0 0 14px; }
.site-foot a { color: #e8e0ef; text-decoration: none; display: block; padding: 3px 0; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .brand b { color: #fff; }
.foot-small { margin-top: 36px; padding-top: 20px; border-top: 1px solid #3a2f47; font-size: .85rem; color: #a99fb5; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.toast a { color: var(--mustard); margin-left: 8px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .head-search { max-width: none; }
  .hero-grid, .band-grid, .pdp, .basket { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; justify-self: center; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; grid-template-columns: 1fr 1fr; }
  .filters .filter-cats { display: none; }
  .steps { grid-template-columns: 1fr; }
  .summary { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section { padding-block: 52px; }
  .head-row { height: auto; flex-wrap: wrap; padding-block: 10px; gap: 10px; }
  .head-search { order: 3; flex-basis: 100%; }
  .nav { display: flex; order: 4; flex-basis: 100%; margin: 0; gap: 18px; overflow-x: auto; font-size: .92rem; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .brand img { width: 40px; height: 40px; }
  .hero { padding-block: 36px 56px; }
  .sticker { width: 90px; height: 90px; font-size: .85rem; }
  .sticker b { font-size: 1.35rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-tag { font-size: .85rem; padding: 5px 9px 5px 15px; }
  .form .two, .tiers { grid-template-columns: 1fr; }
  .line { grid-template-columns: 72px minmax(0, 1fr); }
  .line > :last-child { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr; }
  .track div { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
