:root {
  /* kleuren van de Kay's Odyssey-kassa */
  --paper: #f4f1ec;      /* warm gebroken wit */
  --sky: #f6c453;        /* kassageel (accent) */
  --sky-deep: #7a5410;   /* links op licht vlak */
  --ink: #1b1714;        /* donkerbruin-zwart */
  --muted: #6b625a;
  --line: #e7e1d9;
  --white: #ffffff;
  --warn: #b0452d;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--font); font-optical-sizing: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--sky-deep); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- kop ---------- */
.band { background: var(--ink); color: var(--white); margin-bottom: 18px; }
.band .shop .who, .band .intro { color: #cfc6bb; }
.band .shop button, .band a { color: var(--sky); }
.band .sticker { box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 5px var(--sky); }
.shop .sub { color: var(--sky); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.top { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-top: 28px; padding-bottom: 26px; position: relative; }
.shop { font-weight: 700; font-size: 15px; letter-spacing: .01em; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.shop .who { font-weight: 400; color: var(--muted); }
.shop button { background: none; border: 0; padding: 0; color: var(--sky-deep); text-decoration: underline; cursor: pointer; font-size: 15px; }
h1 { font-size: clamp(34px, 6vw, 64px); line-height: .98; font-weight: 800; font-stretch: 85%; letter-spacing: -.02em; margin: 14px 0 12px; max-width: 14ch; }
.intro { max-width: 60ch; color: var(--muted); margin: 0; }
.deadline { margin: 8px 0 0; font-weight: 600; }

/* de hype-sticker: het ene herkenbare element */
.sticker {
  width: clamp(120px, 16vw, 168px); aspect-ratio: 1; border-radius: 50%;
  background: var(--sky); color: var(--ink); display: grid; place-content: center; text-align: center;
  transform: rotate(-9deg); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 5px var(--sky);
  line-height: 1; padding: 10px;
}
.sticker b { display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 800; font-stretch: 80%; }
.sticker span { display: block; font-size: 13px; margin-top: 6px; }

.closed { background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 6px; margin: 0 0 18px; }

/* ---------- filters ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0; position: sticky; top: 0; background: var(--paper); z-index: 5; }
.search { flex: 1 1 240px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 13px; cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--sky); font-weight: 600; border-color: var(--ink); }
.count { color: var(--muted); font-size: 14px; margin-left: auto; }

/* ---------- bak met platen ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 30px 22px; padding: 16px 0 140px; }
.rec { display: flex; flex-direction: column; min-width: 0; }
.sleeve { position: relative; aspect-ratio: 1; background: var(--white); border: 0; padding: 0; cursor: pointer; display: block; width: 100%; box-shadow: 0 1px 0 var(--line), 0 10px 18px -14px rgba(27,23,20,.55); }
.sleeve img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noart { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, var(--sky) 0 7%, var(--ink) 7.5% 46%, #3a322b 46.5% 47.5%, var(--ink) 48% 70%, var(--white) 70.5%); }
.qty-badge { position: absolute; top: -8px; right: -8px; background: var(--sky); color: var(--ink); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; font-weight: 800; font-size: 17px; transform: rotate(-9deg); box-shadow: inset 0 0 0 2px var(--ink); }
.tag { position: absolute; left: 8px; bottom: 8px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 3px; }
.tag.warn { background: var(--warn); }
.rec.dim .sleeve img, .rec.dim .noart { opacity: .45; }
.artist { font-weight: 700; margin-top: 12px; line-height: 1.2; }
.title { line-height: 1.25; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.meta { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 6px 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.price { font-weight: 700; font-size: 17px; white-space: nowrap; }

.step { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--white); }
.step button { width: 36px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; }
.step button:disabled { opacity: .3; cursor: default; }
.step output { min-width: 22px; text-align: center; font-weight: 700; }
.add { border: 1px solid var(--ink); background: var(--ink); color: var(--sky); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; }
.add.on { background: var(--sky); color: var(--ink); border-color: var(--sky); }
.add.on .tick { font-weight: 800; }
.add.on:hover { background: #ffd877; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--sky-deep); text-decoration: underline; cursor: pointer; font-size: 13px; }
.add:disabled { background: none; color: var(--muted); border-color: var(--line); cursor: default; }

/* ---------- onderbalk ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--white); z-index: 10; transform: translateY(110%); transition: transform .25s ease; }
.bar.show { transform: none; }
.bar .wrap { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.bar .sum { flex: 1; min-width: 180px; }
.bar .sum b { font-size: 20px; }
.bar .state { color: #cfc6bb; font-size: 14px; display: block; }
.btn { border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; cursor: pointer; background: var(--sky); color: var(--ink); }
.btn.ghost { background: none; color: inherit; border: 1px solid currentColor; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- dialogen ---------- */
dialog { border: 0; border-radius: 10px; padding: 0; max-width: min(680px, calc(100vw - 32px)); width: 100%; color: var(--ink); background: var(--white); }
dialog::backdrop { background: rgba(27,23,20,.55); }
.dlg { padding: 24px; }
.dlg h2 { margin: 0 0 4px; font-size: 26px; line-height: 1.1; font-weight: 800; font-stretch: 88%; }
.dlg .x { float: right; border: 0; background: none; font-size: 26px; cursor: pointer; line-height: 1; padding: 0 4px; }
.detail { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.detail img, .detail .noart-wrap { width: 100%; aspect-ratio: 1; object-fit: cover; position: relative; }
.detail p { margin: 10px 0 0; color: #4a423b; font-size: 15px; max-width: 62ch; }
.facts { margin: 12px 0 0; font-size: 14px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.lines { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--line); }
.lines li { display: grid; grid-template-columns: 2.5em 1fr auto auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lines small { color: var(--muted); display: block; }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 19px; }
label.note { display: block; margin-top: 16px; font-weight: 600; font-size: 14px; }
label.note textarea { display: block; width: 100%; margin-top: 6px; min-height: 70px; border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-weight: 400; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.actions .btn.ghost { color: var(--ink); }
.err { color: var(--warn); font-weight: 600; }
.err ul { margin: 6px 0 0; padding-left: 18px; font-weight: 400; }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: var(--sky); color: var(--ink); box-shadow: 0 6px 20px rgba(27,23,20,.3); padding: 10px 18px; border-radius: 999px; z-index: 30; font-weight: 600; }

/* ---------- inloggen ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 440px; position: relative; }
.login-card .sticker { position: absolute; right: -10px; top: -70px; width: 120px; }
.login-card h1 { font-size: clamp(34px, 8vw, 50px); margin-top: 6px; }
.login form { margin-top: 22px; display: grid; gap: 10px; }
.login input { padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.login .btn { justify-self: start; }
.empty { padding: 40px 0; color: var(--muted); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top { grid-template-columns: 1fr; }
  .top { padding-top: 18px; padding-bottom: 20px; }
  .top .sticker { position: absolute; right: 12px; top: 52px; width: 92px; padding: 6px; }
  .top .sticker b { font-size: 19px; }
  .top .sticker span { font-size: 11px; margin-top: 3px; }
  h1 { max-width: calc(100% - 100px); font-size: 36px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .detail { grid-template-columns: 1fr; }
  .detail img, .detail .noart-wrap { max-width: 220px; }
  .count { width: 100%; margin: 0; }
  .buy { flex-wrap: wrap; }
  .login-card .sticker { top: -86px; right: 0; width: 96px; }
}
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
