/* Kassa! prototype — winkel "Linde" */
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-var.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1f1e1b;
  --ink-2: #3b3934;
  --muted: #6e6a62;
  --line: #e6e2da;
  --line-2: #d9d4ca;
  --sage: #55705f;
  --sage-soft: #e7ede8;
  --sand: #f3efe8;
  --focus: #2f5d8a;
  --night: #15140f;
  --night-2: #1f1d17;
  --paper: #f7f3ea;
  --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --r: 10px;
  --gx: 32px; /* zijmarge, wordt per schermbreedte kleiner */
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(var(--wrap-max, 1280px), 100% - 2 * max(var(--gx), var(--safe-l), var(--safe-r))); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--ink); color: #fff; padding: 15px 26px; border-radius: 999px; font-weight: 500; font-size: 15.5px; letter-spacing: .01em; transition: background .2s; }
.btn:hover { background: #3a3832; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.wide { width: 100%; }
.btn.small { padding: 10px 18px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link:hover { text-decoration-color: currentColor; }
.link.quiet { color: var(--muted); font-size: 14px; }

/* ---------- Start ---------- */
.start { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px 16px; }
.start-card { max-width: 520px; text-align: center; display: grid; gap: 22px; justify-items: center; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.start h1 { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; }
.budget { font-size: 18px; color: var(--ink-2); }
.budget strong { font-weight: 600; }

/* ---------- Header ---------- */
.usp-bar { background: var(--sand); font-size: 13px; color: var(--ink-2); }
.usp-bar .wrap { display: flex; justify-content: center; gap: 48px; padding: 8px 0; flex-wrap: wrap; }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .bar { display: flex; align-items: center; gap: 40px; height: var(--header-h); }
.brand { font-family: var(--serif); font-size: 34px; line-height: 1; background: none; border: 0; padding: 0; letter-spacing: -.01em; }
.brand.small { font-size: 26px; }
.main-nav { display: flex; gap: 26px; flex: 1; }
.main-nav button { background: none; border: 0; padding: 6px 0; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid transparent; }
.main-nav button:hover, .main-nav button.active { border-color: var(--ink); }
.tools { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.search { color: var(--ink-2); display: inline-flex; }
.cart-btn { position: relative; background: none; border: 0; padding: 6px; display: inline-flex; }
.cart-btn .count { position: absolute; top: -2px; right: -6px; background: var(--ink); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.site-header.minimal .bar { justify-content: space-between; }
.secure { font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Shop ---------- */
.intro { padding: 56px 0 28px; display: grid; gap: 8px; }
.intro h1 { font-family: var(--serif); font-size: clamp(36px, 3.6vw, 52px); line-height: 1.05; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 15px; font-size: 14px; color: var(--ink-2); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; }
.sort select { font: inherit; font-size: 14px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 8px 30px 8px 12px; color: var(--ink); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' fill='none' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }

.grid { list-style: none; padding: 0; margin: 0 0 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.card { display: block; }
.card .img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--sand); }
.art { width: 100%; height: 100%; display: block; }
.card .img .art { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .card:hover .img .art { transform: scale(1.025); } }
.tag { position: absolute; top: 12px; left: 12px; font-size: 11.5px; letter-spacing: .04em; background: rgba(255,255,255,.85); padding: 3px 9px; border-radius: 999px; color: var(--ink-2); }
.card .meta { padding: 14px 2px 0; display: grid; gap: 2px; }
.card h2 { font-size: 15.5px; font-weight: 500; }
.card .sub { font-size: 13.5px; }
.card .price { font-size: 15px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.card .from { font-size: 13px; }

/* ---------- Product ---------- */
.crumbs { display: flex; gap: 10px; font-size: 14px; padding: 22px 0; }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; padding-bottom: 80px; align-items: start; }
.pd-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--sand); position: sticky; top: calc(var(--header-h) + 24px); }
.pd-info { display: grid; gap: 14px; max-width: 520px; }
.pd-info h1 { font-family: var(--serif); font-size: clamp(34px, 3vw, 46px); line-height: 1.05; }
.rating { font-size: 14px; }
.rating span[aria-hidden] { color: var(--ink-2); }
.pd-price { font-size: 22px; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 12px; }
.pd-price .per { font-size: 14px; }
.blurb { color: var(--ink-2); max-width: 46ch; }

.tiers { border: 0; padding: 0; margin: 8px 0 4px; row-gap: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiers legend { font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 8px; }
.tier { position: relative; display: grid; gap: 4px; padding: 14px 14px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tier:hover { border-color: #b9b3a7; }
.tier.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tier input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tier:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.t-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 22px; flex-wrap: wrap; }
.t-label { font-size: 14px; font-weight: 500; }
.tier .pill { position: absolute; top: -10px; right: 10px; }
.pill { font-size: 11px; background: var(--sage-soft); color: var(--sage); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.t-per { font-size: 19px; font-variant-numeric: tabular-nums; }
.t-unit { font-size: 12.5px; color: var(--muted); }
.t-total { font-size: 12.5px; }

.delivery { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.delivery.center { justify-content: center; }
.delivery .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.delivery .muted { font-size: 13px; }
.stock { font-size: 13px; margin-top: -6px; }
.usps { list-style: none; padding: 16px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.usps li::before { content: '—'; color: var(--muted); margin-right: 10px; }
.details { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.details summary { cursor: pointer; }
.details ul { color: var(--ink-2); padding-left: 18px; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(25, 24, 20, .28); z-index: 40; animation: fade .25s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--surface); z-index: 41; display: flex; flex-direction: column; padding: 24px calc(28px + var(--safe-r)) calc(24px + var(--safe-b)) 28px; gap: 18px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; animation: slide .32s cubic-bezier(.2, .7, .2, 1); box-shadow: -20px 0 60px rgba(0,0,0,.06); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.d-head { display: flex; justify-content: space-between; align-items: center; }
.d-head h2 { font-family: var(--serif); font-size: 28px; }
.icon { background: none; border: 0; font-size: 28px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; }
.icon:hover { background: var(--sand); }
.empty { padding: 40px 0; }
.shipbar { display: grid; gap: 8px; font-size: 14px; background: var(--sand); padding: 14px 16px; border-radius: var(--r); }
.shipbar strong { font-weight: 600; }
.track { height: 4px; background: #e2dccf; border-radius: 4px; overflow: hidden; }
.track span { display: block; height: 100%; background: var(--sage); border-radius: 4px; transition: width .5s ease; }
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; }
.l-img { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; }
.l-name { font-size: 15px; font-weight: 500; }
.l-text { display: grid; gap: 1px; justify-items: start; }
.l-price { font-variant-numeric: tabular-nums; font-size: 15px; }
.upsell { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.u-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.u-img { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; }
.u-name { font-size: 15px; font-weight: 500; }
.u-name .muted { font-weight: 400; }
.u-body { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.u-actions { display: flex; gap: 18px; align-items: center; }
.d-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.row strong { font-weight: 600; }

/* ---------- Checkout ---------- */
.checkout { padding: 28px 0 80px; }
.checkout > h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 40px); line-height: 1.1; margin-bottom: 20px; }
.co-sec.addr { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.co-sec.addr h2 { margin-bottom: 4px; }
.co { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
.co-main { display: grid; gap: 16px; }
.co-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.co-sec h2, .co-side h2 { font-size: 17px; font-weight: 600; }
.co-sec legend { padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.co-sec legend + * { clear: both; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.fields input { font: inherit; font-size: 15px; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; background: var(--bg); }
.opt { position: relative; display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; align-items: center; padding: 11px 16px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input, .check input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.o-text { display: grid; gap: 1px; }
.o-name { font-weight: 500; }
.o-price { font-variant-numeric: tabular-nums; }
.checks { gap: 14px; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 14.5px; color: var(--ink-2); align-items: start; cursor: pointer; }
.check input { margin-top: 2px; }
.check strong { color: var(--ink); font-weight: 600; }
.co-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 16px; position: sticky; top: 96px; min-width: 0; }
.sum { margin: 0; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.sum dt { color: var(--ink-2); }
.sum dd { margin: 0; }
.sum .total { font-weight: 600; font-size: 17px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.sum .total dt { color: var(--ink); }
.sum .today { color: var(--sage); font-size: 14px; }
.sum .today dt { color: var(--sage); }

.confirm { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; }
.confirm h1 { font-family: var(--serif); font-size: clamp(32px, 6vw, 44px); line-height: 1.12; text-wrap: balance; }
.ok { width: 56px; height: 56px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); display: grid; place-items: center; font-size: 24px; margin-bottom: 8px; }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 calc(48px + var(--safe-b)); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer p { font-size: 14px; margin-top: 6px; }

/* ---------- Overgang ---------- */
body.fade-out #app { opacity: 0; transition: opacity .9s ease; }
body.fade-out { background: var(--night); transition: background .9s ease; }

/* ---------- Onthulling ---------- */
body[data-screen="reveal"] { background: var(--night); color: #efeae0; }
.reveal { min-height: 100vh; min-height: 100svh; padding: 28px max(32px, var(--safe-r)) calc(80px + var(--safe-b)) max(32px, var(--safe-l)); animation: fade .8s ease; }
.rv-top { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: baseline; font-size: 13px; letter-spacing: .02em; max-width: 1280px; margin: 0 auto; }
.reveal .muted { color: #9b958a; }
.proj { font-family: var(--serif); font-size: 22px; }
.rv-center { min-height: calc(100vh - 140px); min-height: calc(100svh - 140px); display: grid; place-content: center; justify-items: center; gap: 26px; text-align: center; }
.big { font-family: var(--serif); font-size: clamp(40px, min(11vw, 15vh), 112px); text-wrap: balance; line-height: 1; letter-spacing: -.01em; }
.lead { font-size: 19px; color: #c9c3b7; max-width: 40ch; }
.lead.small { font-size: 16.5px; max-width: 56ch; }
.btn.light { background: #efeae0; color: var(--night); }
.btn.light:hover { background: #fff; }
.light-link { color: #b8b2a6; text-decoration-color: #55524b; }
.rv-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding-top: 64px; display: grid; gap: 22px; }
.reveal .eyebrow { color: #9b958a; }
.rv-narrow h1 { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 50px); line-height: 1.1; }
.rv-narrow textarea { font: inherit; font-size: 17px; background: var(--night-2); color: #efeae0; border: 1px solid #3a372f; border-radius: var(--r); padding: 16px 18px; resize: vertical; width: 100%; max-width: 100%; }
.rv-narrow textarea::placeholder { color: #7d786e; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 6px; }

.receipt { background: var(--paper); color: var(--ink); border-radius: 4px; padding: 36px 40px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.35); display: grid; gap: 22px; }
.r-big { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 22px; border-bottom: 1px dashed #c8c1b2; }
.r-label { font-size: 13px; color: var(--muted); min-height: 2.6em; }
.r-amount { font-family: var(--serif); font-size: clamp(56px, 6vw, 84px); line-height: 1; font-variant-numeric: tabular-nums; margin-top: 4px; }
.r-amount.soft { color: #7d786e; }
.r-small { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.r-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.r-table th, .r-table td { text-align: left; padding: 8px 0; border-bottom: 1px dotted #d5cfc2; font-weight: 400; vertical-align: top; }
.r-table td { text-align: right; width: 1%; white-space: nowrap; padding-left: 16px; }
.r-table thead th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.r-table thead th:first-child { text-align: left; }
.r-table thead th + th { padding-left: 16px; white-space: nowrap; }
.r-table tbody th span { display: block; font-size: 12.5px; color: var(--muted); }
.r-table tfoot th, .r-table tfoot td { font-weight: 600; border-bottom: 0; padding-top: 12px; }
.r-diff { font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.r-diff span { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--muted); display: inline-block; margin-top: 4px; }
.r-budget { font-size: 13px; color: var(--muted); }

.own { margin: 0; border-left: 2px solid #4a463d; padding: 4px 0 4px 18px; color: #d6d0c4; font-family: var(--serif); font-style: italic; font-size: 20px; }
.own span { display: block; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8d877b; margin-bottom: 4px; }
.nudges { list-style: none; padding: 0; margin: 0; display: grid; }
.nudges li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid #2f2c25; }
.n-num { font-family: var(--serif); font-size: 22px; color: #6f6a60; line-height: 1.2; }
.n-tag { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #a3c0ad; margin-bottom: 4px; }
.n-title { font-size: 18px; color: #f2ede3; line-height: 1.4; }
.n-how { font-size: 15px; color: #a8a296; margin-top: 4px; line-height: 1.5; max-width: 62ch; }

.votes { display: grid; gap: 14px; }
.vote { background: var(--night-2); border: 1px solid #34312a; border-radius: var(--r); padding: 22px 24px; display: grid; gap: 6px; }
.v-text { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: #f2ede3; }
.v-note { font-size: 14px; color: #9b958a; }
.v-btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.vbtn { background: transparent; border: 1px solid #4a463d; color: #efeae0; border-radius: 999px; padding: 10px 18px; font-size: 15px; }
.vbtn:hover { border-color: #efeae0; }
.bars { display: grid; gap: 8px; margin-top: 12px; }
.vbar { display: grid; grid-template-columns: 200px 1fr 48px; gap: 14px; align-items: center; font-size: 14px; color: #b8b2a6; }

.vbar.mine { color: #f2ede3; }
.b-label em { font-style: normal; font-size: 11.5px; color: #a3c0ad; margin-left: 6px; }
.b-track { height: 8px; background: #2c2a23; border-radius: 4px; overflow: hidden; }
.b-track span { display: block; height: 100%; background: #6f6a60; border-radius: 4px; animation: grow .8s cubic-bezier(.2,.7,.2,1); transform-origin: left; }
.vbar.mine .b-track span { background: #a3c0ad; }
.b-pct { text-align: right; font-variant-numeric: tabular-nums; }
.demo-note { font-size: 12px; color: #7d786e; margin-top: 2px; }
@keyframes grow { from { transform: scaleX(0); } }
.rv-end { display: grid; gap: 16px; justify-items: start; margin-top: 10px; }

/* ---------- Labels voor filmen (T of ?labels) ---------- */
body.labels [data-nudge]:not(.pill) { position: relative; } body.labels [data-nudge] { outline: 1.5px dashed rgba(85, 112, 95, .7); outline-offset: 3px; }
body.labels [data-nudge]::after { content: attr(data-nudge); position: absolute; top: -12px; right: -6px; z-index: 5; font: 500 11px/1 var(--sans); letter-spacing: .02em; color: #fff; background: var(--sage); padding: 4px 7px; border-radius: 4px; white-space: nowrap; pointer-events: none; }

/* ---------- iPad en kleiner ---------- */
@media (max-width: 1180px) {
  .wrap { width: min(1280px, 100% - 48px); }
  .main-nav { gap: 18px; }
  .grid { gap: 32px 18px; }
  .pd { gap: 40px; }
  .co { grid-template-columns: 1fr 360px; gap: 28px; }
  .tier { padding: 12px; }
  .t-per { font-size: 18px; }
  .t-unit { display: block; margin-top: -2px; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pd, .co { grid-template-columns: 1fr; }
  .pd-img { position: static; }
  .co-side { position: static; }
  .tiers { grid-template-columns: 1fr; }
  .usp-bar .wrap { gap: 16px; }
  .r-big { grid-template-columns: 1fr; }
  .vbar { grid-template-columns: 1fr 1fr 40px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .usp-bar span:not(:first-child) { display: none; }
  .fields { grid-template-columns: 1fr; }
  .receipt { padding: 24px 20px; }
  .reveal { padding: 20px 16px 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* aftellen naar de onthulling */
.countdown { position: relative; width: 64px; height: 64px; margin-top: 18px; }
.countdown svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.countdown circle { fill: none; stroke-width: 3; }
.countdown .cd-track { stroke: currentColor; opacity: .15; }
.countdown .cd-ring { stroke: currentColor; stroke-dasharray: 119.4; stroke-dashoffset: 0; stroke-linecap: round; }
.countdown .cd-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.cd-label { font-size: 14px; opacity: .7; margin: 0; }
.confirm .order-card { width: min(440px, 100%); text-align: left; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 20px 22px; margin-top: 8px; }
.confirm .order-card h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.confirm .order-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.confirm .order-lines li, .confirm .order-total { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 4px 0; }
.confirm .order-meta { margin: 0; padding: 10px 0; border-top: 1px solid rgba(0,0,0,.08); border-bottom: 1px solid rgba(0,0,0,.08); display: grid; gap: 6px; }
.confirm .order-meta div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.confirm .order-meta dt { opacity: .6; }
.confirm .order-meta dd { margin: 0; text-align: right; }
.confirm .order-total { font-weight: 600; font-size: 15px; padding-top: 10px; }
.confirm .small { font-size: 12px; margin: 2px 0 0; }
.confirm .cd-wrap { display: grid; justify-items: center; gap: 8px; margin-top: 10px; }
.confirm .countdown { margin-top: 0; }
.confirm { place-content: start center; padding-block: 56px 72px; min-height: auto; }

/* ---------- Responsief ---------- */
@media (max-width: 1180px) { :root { --gx: 24px; } }
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
  /* staffel als rijen: label links, prijs rechts */
  .tier { grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; }
  .tier .t-top { grid-column: 1; grid-row: 1; }
  .tier .t-total { grid-column: 1; grid-row: 2; }
  .tier .t-per { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .tier .t-unit { margin-top: 0; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .pd { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pd-img { position: sticky; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .pd { gap: 24px; padding-bottom: 56px; }
  .pd-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  :root { --gx: 16px; --header-h: 60px; }
  .site-header .bar { gap: 16px; }
  .brand { font-size: 30px; }
  .intro { padding: 32px 0 16px; }
  .intro h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .toolbar { padding-top: 8px; margin-bottom: 20px; }
  /* winkelmand: volle breedte, schuift van onder in */
  .drawer { width: 100%; padding: 16px calc(16px + var(--safe-r)) calc(20px + var(--safe-b)) calc(16px + var(--safe-l)); gap: 16px; animation-name: sheet; }
  .co-sec { padding: 16px; }
  .co-side { padding: 18px 16px; }
  .co-sec.addr { flex-wrap: wrap; }
  .confirm { padding-block: 32px 48px; }
  .confirm .order-card { padding: 16px; }
  .confirm .order-meta div { flex-wrap: wrap; }
  .reveal { padding: 20px max(16px, var(--safe-r)) calc(48px + var(--safe-b)) max(16px, var(--safe-l)); }
  .rv-narrow { padding-top: 40px; gap: 18px; }
  .receipt { gap: 18px; }
  .r-label { min-height: 0; }
  .r-table { font-size: 14px; }
  .r-table td { padding-left: 10px; }
  .nudges li { grid-template-columns: 32px 1fr; gap: 10px; }
  .own { font-size: 18px; }
  .vote { padding: 18px 16px; }
  .v-text { font-size: 21px; }
  /* stemresultaat: label boven de balk */
  .vbar { grid-template-columns: 1fr 44px; gap: 4px 12px; }
  .vbar .b-label { grid-column: 1 / -1; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }

/* Telefoon liggend en andere lage schermen */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 56px; }
  .pd-img { position: static; aspect-ratio: 4 / 3; }
  .co-side { position: static; }
  .confirm { padding-block: 24px 40px; }
  .rv-center { min-height: calc(100svh - 80px); gap: 18px; }
  .rv-narrow { padding-top: 28px; }
}

/* Aanraakschermen: tikdoelen van minstens 44px */
@media (pointer: coarse) {
  .chip, .sort select, .vbtn, .btn.small { min-height: 44px; }
  .sort select { font-size: 16px; } /* voorkomt inzoomen op iOS */
  .brand, .main-nav button { min-height: 44px; }
  .cart-btn, .icon { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
  .link { display: inline-flex; align-items: center; min-height: 44px; margin-block: -11px; }
  .link.center { justify-content: center; }
  .crumbs { align-items: center; }
  .details summary { padding: 11px 0; }
  .check { padding-block: 6px; min-height: 44px; }
  .u-actions { gap: 10px 18px; flex-wrap: wrap; }
}

/* Grote schermen: de inhoud groeit mee */
@media (min-width: 1700px) { :root { --wrap-max: 1440px; } .co { grid-template-columns: 1fr 440px; } }
@media (min-width: 2200px) { :root { --wrap-max: 1680px; } .pd-info { max-width: 600px; } .grid { gap: 48px 28px; } }
