/* Makita-setbouwer. Huisstijl van mastertools.nl (gemeten 30-10 op de productpagina): wit, tekst #111, blauw #1F4898,
   donkerblauw #162A55 (koppen), lichtblauw #EFF7FF, rood #DD2532 (acties), lichtgrijs #F7F7F8, groen #0BAA06 met #E9FFE6 voor
   In winkelwagen, hoeken 4 px, Montserrat voor koppen, Lexend voor knoppen, Inter voor tekst.
   Indeling: categorieën | machinekaarten met foto | vast setpaneel met de setafbeelding. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --fg: #111111;
  --heading: #162a55;
  --muted: #3d4452;
  --line: #e3e6ec;
  --band: #1f4898;
  --band-ink: #ffffff;
  --brand-soft: #eff7ff;
  --link: #1f4898;
  --cart: #0baa06;
  --cart-ink: #e9ffe6;
  --sale: #dd2532;
  --ok: #0a8a05;
  --ok-bg: #e9ffe6;
  --warn: #8a5a00;
  --warn-bg: #fff6e0;
  --bad: #b3202b;
  --bad-bg: #fdecee;
  --mbox: #1f4898;
  --photo: #ffffff;
  --r: 4px;
  --r-card: 6px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .05), 0 4px 14px rgba(17, 17, 17, .06);
  --heading-font: "Montserrat", "Lexend", "Inter", system-ui, sans-serif;
  --display: "Lexend", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.5 var(--body); }
h1, h2, h3 { font-family: var(--heading-font); color: var(--heading); text-wrap: balance; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
img { max-width: 100%; }
.price b, .tot, output { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: 1340px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Kop (alleen als losse pagina; in de pop-up van de webshop heeft die een eigen kop) */
.top { background: var(--band); color: var(--band-ink); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 52px; }
.top .brand { color: var(--band-ink); text-decoration: none; font: 500 14px/1.2 var(--display); }
.top .brand:hover { text-decoration: underline; }
.top .title { margin-left: auto; font: 700 15px/1.2 var(--display); }
body.embedded .top { display: none; }

.status { padding-block: 40px; color: var(--muted); }
.status[data-kind="error"] { color: var(--bad); }

/* Intro */
.intro { padding-block: 22px 6px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; }
.intro > div:first-child { min-width: 0; flex: 1 1 420px; }
.intro h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.01em; }
.intro p { margin: 4px 0 0; color: var(--muted); max-width: 66ch; }
body.embedded .intro { padding-top: 14px; }
.platform { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--mbox); margin-bottom: 8px; }
.platform::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--mbox); }
.vat { display: flex; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.vat button { background: transparent; border: 0; padding: 7px 12px; font: 600 13px/1 var(--display); }
.vat button[aria-pressed="true"] { background: var(--band); color: var(--band-ink); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 24px; align-items: start; padding-block: 16px 48px; }
.main { min-width: 0; }

/* Stappen */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; align-items: center; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 12px; }
.step .n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); font: 600 13px/1 var(--display); }
.step b { font: 600 14px/1.2 var(--display); }
.step small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step[aria-current="step"] { border-color: var(--link); background: var(--brand-soft); }
.step[aria-current="step"] .n { background: var(--band); color: var(--band-ink); }
.step.done .n { background: var(--ok-bg); color: var(--ok); }

/* Voorbeeldsets */
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13.5px; }
.presets > span { color: var(--muted); }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; }
.chip:hover { border-color: var(--link); }
.chip[aria-pressed="true"] { background: var(--band); border-color: var(--band); color: var(--band-ink); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }

/* Machines */
.mach { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 20px; align-items: start; }
.cats { display: flex; flex-direction: column; gap: 2px; }
.cat { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left;
  border: 0; background: transparent; padding: 7px 8px; border-radius: var(--r-card); }
.cat:hover { background: var(--surface-2); }
.cat .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.cat .ico svg { width: 22px; height: 22px; }
.cat b { display: block; font: 600 13.5px/1.25 var(--display); }
.cat small { color: var(--muted); font-size: 12px; }
.cat .got { font: 600 11.5px/1 var(--display); background: var(--band); color: var(--band-ink); border-radius: 999px; padding: 4px 7px; }
.cat[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); }
.cat[aria-pressed="true"] .ico { background: var(--brand-soft); color: var(--link); }

.list { min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.search { flex: 1 1 240px; position: relative; }
.search input { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: var(--r-card); padding: 9px 12px 9px 34px; font: inherit; }
.search svg { position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--muted); }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.toggle input { width: 16px; height: 16px; accent-color: var(--band); }
select { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: var(--r-card); padding: 8px 10px; font: inherit; font-size: 13.5px; }
.subs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sub-chip { border: 1px solid var(--line); background: transparent; border-radius: var(--r); padding: 4px 10px; font-size: 12.5px; }
.sub-chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.list-head h2 { font-size: 19px; }
.list-head p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.list-head .cnt { color: var(--muted); font-size: 13px; white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.card.in { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.c-img { position: relative; background: var(--photo); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 10px 12px 6px; border-bottom: 1px solid var(--line); }
.c-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .25s ease; }
.c-img a { display: contents; }
.card:hover .c-img img { transform: scale(1.04); }
.fallback { color: #8a93a5; }
.c-img .fallback svg { width: 56px; height: 56px; }
.c-tags { position: absolute; top: 8px; left: 8px; right: 40px; display: flex; flex-wrap: wrap; gap: 4px; }
.c-check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--band); color: var(--band-ink); display: grid; place-items: center; font: 700 13px/1 var(--display); }
.c-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.c-sku { font: 700 17px/1.15 var(--display); letter-spacing: .01em; }
.c-type { margin: 2px 0 0; font-size: 13.5px; }
.c-type span { color: var(--muted); }
.c-cat { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.c-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.price b { display: block; font: 600 18px/1.1 var(--display); }
.price small { color: var(--muted); font-size: 11.5px; }
.c-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--link); }

.pill { display: inline-block; font-size: 11.5px; line-height: 1.3; padding: 2px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.low { background: var(--warn-bg); color: var(--warn); }
.pill.late { background: var(--bad-bg); color: var(--bad); }
.pill.pop { background: var(--band); color: var(--band-ink); }
.pill.dual { background: var(--fg); color: var(--surface); }
.pill.adv { background: var(--band); color: var(--band-ink); }
.pill.box { background: var(--surface-2); color: var(--fg); }

.btn-add { background: var(--cart); color: var(--cart-ink); border: 0; border-radius: var(--r-card); padding: 9px 12px; font: 600 14px/1.2 var(--display); width: 100%; }
.btn-add:hover, .btn-cart:hover { filter: brightness(1.06); }
.btn-primary { background: var(--band); color: var(--band-ink); border: 0; border-radius: var(--r-card); padding: 12px 14px; font: 600 15px/1.2 var(--display); width: 100%; }
.btn-cart { display: block; text-align: center; text-decoration: none; background: var(--cart); color: var(--cart-ink); border: 0; border-radius: var(--r-card); padding: 12px 14px; font: 600 15px/1.2 var(--display); width: 100%; }
.btn-ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 14px; font: 600 14px/1.2 var(--display); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-ghost svg { width: 18px; height: 18px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.stepper button { width: 32px; height: 32px; border: 0; background: var(--surface-2); font-size: 17px; line-height: 1; }
.stepper button:hover:not(:disabled) { background: var(--brand-soft); }
.stepper output { min-width: 34px; text-align: center; font-weight: 600; font-size: 14px; }
.stepper.sm button { width: 26px; height: 26px; font-size: 15px; }
.stepper.sm output { min-width: 26px; font-size: 13px; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-card); }

/* Kleine productfoto */
.thumb { width: 44px; height: 44px; flex: none; background: var(--photo); border: 1px solid var(--line); border-radius: var(--r-card); display: grid; place-items: center; overflow: hidden; padding: 3px; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb .fallback svg { width: 22px; height: 22px; }
.thumb.lg { width: 64px; height: 56px; }

/* Accu's en lader */
.panelbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.p-head h2 { font-size: 21px; }
.p-head p { margin: 4px 0 16px; color: var(--muted); max-width: 62ch; }
.seg { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin-bottom: 18px; width: fit-content; max-width: 100%; }
.seg button { border: 0; background: var(--surface); padding: 9px 14px; font: 600 13.5px/1.2 var(--display); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--band); color: var(--band-ink); }
.reasons { list-style: none; margin: 0 0 18px; padding: 14px 16px; background: var(--brand-soft); border-radius: var(--r-card); display: grid; gap: 6px; font-size: 14px; }
.reasons li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.reasons li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--link); }
.reasons .t { font-weight: 600; font-family: var(--display); font-size: 13px; color: var(--link); margin-bottom: 2px; display: block; }
.reasons .t::before { display: none; }
.ctrls { display: grid; gap: 16px; margin-bottom: 18px; }
.ctrl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: start; }
.ctrl > .lbl { font: 600 14px/1.3 var(--display); padding-top: 7px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.opt { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-card); padding: 8px 12px 8px 8px; text-align: left; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 10px; min-width: 150px; }
.opt.noimg { grid-template-columns: minmax(0, 1fr); padding-left: 12px; }
.opt .thumb { grid-row: span 3; border: 0; }
.opt b { font: 600 14px/1.2 var(--display); }
.opt small { color: var(--muted); font-size: 12px; }
.opt[aria-pressed="true"] { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); background: var(--brand-soft); }
.opt .pill { justify-self: start; }
.hint { color: var(--muted); font-size: 13px; }
.result { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.result-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-2); font: 600 14px/1.3 var(--display); flex-wrap: wrap; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.row .nm { font-size: 14px; }
.row .nm b { font-family: var(--display); font-weight: 600; }
.row .nm small { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; color: var(--muted); font-size: 12px; margin-top: 2px; }
.row .am { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.saving { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13.5px; background: var(--ok-bg); color: var(--ok); font-weight: 500; }
.saving.neutral { background: var(--surface); color: var(--muted); }
.mgroup h3 { font-size: 15px; margin: 18px 0 6px; }
.mrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mrow .nm { font-size: 14px; }
.mrow .nm small { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mrow .am { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; min-width: 74px; }
.note { padding: 14px 16px; border-radius: var(--r-card); background: var(--surface-2); font-size: 14px; }
.note.warn { background: var(--warn-bg); color: var(--warn); }

/* Overzicht */
.shot { margin: 0 0 18px; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: #eef2f7; }
.shot img, .shot canvas { display: block; width: 100%; height: auto; }
.shot figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.shot .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.otable-wrap { overflow-x: auto; margin: 4px -4px 0; }
.otable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.otable th { text-align: left; font: 600 12px/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.otable td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.otable td.r, .otable th.r { text-align: right; font-variant-numeric: tabular-nums; }
.otable .art { display: flex; gap: 12px; align-items: center; }
.otable td small { display: block; color: var(--muted); font-size: 12px; }
.otable .grp td { background: var(--surface-2); font: 600 12.5px/1.2 var(--display); color: var(--muted); padding: 6px 8px; }
.ofoot { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 18px; align-items: start; }
.flash { font-size: 13px; color: var(--ok); font-weight: 600; }

/* Setpaneel */
.setpanel { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 14px; }
.sp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sp-head h2 { font-size: 18px; }
.panel-close { display: none; }
.setimg { border-radius: var(--r-card); overflow: hidden; background: #eef2f7; }
.setimg canvas { display: block; width: 100%; height: auto; }
.sp-sec h3 { font: 600 12px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; display: flex; justify-content: space-between; }
.sp-sec h3 button { text-transform: none; letter-spacing: 0; }
.pline { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto 22px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pline:last-child { border-bottom: 0; }
.pline b { font: 600 13.5px/1.2 var(--display); }
.pline small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pline .am { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pline .x { width: 22px; height: 22px; border: 0; background: transparent; color: var(--muted); border-radius: 6px; font-size: 16px; line-height: 1; }
.pline .x:hover { background: var(--bad-bg); color: var(--bad); }
.otable .x { width: 26px; height: 26px; border: 0; background: transparent; color: var(--muted); border-radius: 6px; font-size: 17px; line-height: 1; }
.otable .x:hover { background: var(--bad-bg); color: var(--bad); }
.otable .grp .linkbtn { margin-left: 8px; font-size: 12.5px; text-transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Kleine verwijzingen bij een regel (levertijd, toebehoren) in plaats van gele blokken (DC 30-10). */
.pmeta { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.pline .pmeta { grid-column: 2 / -1; margin-top: -6px; }
.lt { display: inline-flex; align-items: center; gap: 3px; min-width: 0; max-width: 100%; color: var(--warn); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt svg { width: 12px; height: 12px; flex: none; }
.linkbtn.mini { font-size: 11.5px; font-weight: 600; }
.warn-s { margin: 2px 0 4px; color: var(--warn); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.tot { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13.5px; }
.tot div { display: flex; justify-content: space-between; gap: 8px; }
.tot .grand { font: 700 19px/1.2 var(--display); margin-top: 2px; }
.tot .other { color: var(--muted); font-size: 12.5px; }
.sp-actions { display: grid; gap: 8px; }
.sp-actions .hint { text-align: center; }
.note-b2b { font-size: 12.5px; color: var(--muted); margin: 0; }

/* Telefoon: vaste balk onderaan */
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .08); align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.mbar .mthumbs { display: flex; }
.mbar .mthumbs .thumb { width: 34px; height: 34px; margin-right: -8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.mbar div.txt { font-size: 13px; line-height: 1.3; min-width: 0; flex: 1; }
.mbar b { font-family: var(--display); }
.mbar .big { font: 700 16px/1.2 var(--display); }
.mbar button { flex: none; width: auto; }

@media (max-width: 1180px) {
  .mach { grid-template-columns: minmax(0, 1fr); }
  .cats { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin; }
  .cat { flex: 0 0 auto; grid-template-columns: 30px auto auto; padding: 6px 10px 6px 6px; border: 1px solid var(--line); background: var(--surface); }
  .cat .ico { width: 30px; height: 30px; }
  .cat .ico svg { width: 18px; height: 18px; }
  .cat small { display: none; }
  .cat[aria-pressed="true"] { border-color: var(--link); }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .setpanel { display: none; }
  .setpanel.open { display: grid; position: fixed; inset: 0; z-index: 60; border-radius: 0; border: 0; overflow-y: auto; align-content: start;
    padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .panel-close { display: inline-flex; }
  .mbar { display: flex; }
  body { padding-bottom: 84px; }
  .ofoot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .steps { gap: 6px; }
  .step { grid-template-columns: minmax(0, 1fr); padding: 8px; text-align: center; justify-items: center; }
  .step .n { grid-row: auto; }
  .step small { display: none; }
  .step b { font-size: 12.5px; }
  .ctrl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ctrl > .lbl { padding-top: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .c-body { padding: 10px; }
  .c-sku { font-size: 15px; }
  .panelbox { padding: 16px; }
  .seg button { flex: 1 1 auto; }
  .opt { min-width: 0; flex: 1 1 140px; }
  .row { grid-template-columns: 52px minmax(0, 1fr); }
  .row .am { grid-column: 2; text-align: left; }
  .mrow { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .mrow .am { display: none; }
}
@media (max-width: 380px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .c-img img { transition: none; }
  .card:hover .c-img img { transform: none; }
}

/* Knoppen en velden met de hoeken van de webshop (4 px); groene knop zoals "In winkelwagen" */
.btn-add, .btn-primary, .btn-cart, .btn-ghost, .stepper, .search input, select, .vat, .seg, .chip, .sub-chip { border-radius: var(--r); }
.btn-add, .btn-cart { font-weight: 700; }
.step, .opt, .cat, .thumb { border-radius: var(--r-card); }
.top { background: var(--band); }
.c-sku { font-family: var(--heading-font); color: var(--fg); }
.price b { font-family: var(--heading-font); color: var(--fg); }
.pill.pop { background: var(--heading); color: #ffffff; }
.pill.dual { background: var(--fg); color: #ffffff; }
.platform { color: var(--link); }
.platform::before { background: var(--link); }

/* Keuze in Mbox of zonder koffer */
.variant { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.variant button { border: 0; background: var(--surface); padding: 6px 8px; text-align: left; display: grid; gap: 1px; }
.variant button + button { border-left: 1px solid var(--line); }
.variant b { font: 600 12.5px/1.2 var(--display); }
.variant small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.variant button[aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--link); }
.variant button[aria-pressed="true"] b { color: var(--link); }
.c-var { margin: 0; font-size: 12.5px; color: var(--muted); }
.cat-combi { margin-top: 6px; }

/* Setkorting */
.kortingbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; padding: 10px 14px;
  background: var(--brand-soft); border-radius: var(--r-card); border-left: 4px solid var(--sale); }
.kb-txt { font: 600 14px/1.35 var(--display); color: var(--heading); }
.kb-steps { display: flex; gap: 6px; }
.kb-step { display: grid; text-align: center; padding: 4px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-width: 74px; }
.kb-step b { font: 700 15px/1.1 var(--heading-font); color: var(--muted); }
.kb-step small { font-size: 11px; color: var(--muted); }
.kb-step.on { background: var(--sale); border-color: var(--sale); }
.kb-step.on b, .kb-step.on small { color: #ffffff; }
.tot .disc { color: var(--sale); font-weight: 600; }
.kb-next { font-size: 12.5px; color: var(--sale); font-weight: 600; }
.presets { display: block; }
.presets-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.presets-row > span { color: var(--muted); }

/* Ook als combiset */
.combihint { background: var(--brand-soft); border-radius: var(--r-card); padding: 10px 12px; font-size: 13px; }
.combihint p { margin: 0; }
.combihint p + p { margin-top: 6px; }

/* Bijverkoop-pop-up */
.bij { position: fixed; inset: 0; z-index: 80; background: rgba(17, 17, 17, .5); display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.bij-box { width: min(640px, 100%); max-height: 100%; overflow-y: auto; background: var(--surface); border-radius: var(--r-card); box-shadow: 0 16px 48px rgba(0, 0, 0, .3); }
.bij-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 10px; }
.bij-head h2 { font-size: 19px; }
.bij-ok { margin: 0 0 4px; font: 600 13px/1.2 var(--display); color: var(--ok); }
.bij-head .x { width: 34px; height: 34px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); border-radius: var(--r); }
.bij-head .x:hover { background: var(--surface-2); }
.bij-list { display: grid; padding: 0 20px; }
.bij-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.bij-item.in { background: linear-gradient(90deg, var(--brand-soft), transparent 70%); }
.bij-img { width: 64px; height: 56px; display: grid; place-items: center; background: var(--photo); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; padding: 3px; }
.bij-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bij-img .fallback svg { width: 26px; height: 26px; }
.bij-nm { font-size: 14px; min-width: 0; }
.bij-nm a { color: var(--fg); text-decoration: none; }
.bij-nm a:hover { text-decoration: underline; }
.bij-nm small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bij-pr { text-align: right; }
.bij-pr b { display: block; font: 700 15px/1.1 var(--heading-font); font-variant-numeric: tabular-nums; }
.bij-pr small { color: var(--muted); font-size: 11px; }
.bij-item .btn-add { width: auto; padding: 8px 12px; font-size: 13px; }
.bij-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.bij-foot .btn-primary { width: auto; padding: 11px 20px; }
@media (max-width: 560px) {
  .bij { place-items: end center; padding: 0; }
  .bij-box { border-radius: var(--r-card) var(--r-card) 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bij-item { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .bij-item .bij-pr { grid-column: 2; text-align: left; }
  .bij-item > :last-child { grid-column: 3; grid-row: 1 / span 2; }
  .bij-foot .btn-primary { width: 100%; }
}

/* Overzicht over de volle breedte (zonder zijpaneel) */
.layout.wide { grid-template-columns: minmax(0, 1fr); }
.layout.wide .shot { max-width: 980px; margin-inline: auto; }
@media (max-width: 960px) { body:has(.layout.wide) { padding-bottom: 0; } }

/* Productfoto altijd binnen een vak van vaste verhouding schalen (Z-foto's zijn strak bijgesneden en groeiden anders mee, DC 30-10) */
.c-img { display: block; overflow: hidden; }
.c-img > img, .c-img > a > img, .c-img > .fallback, .c-img > a > .fallback {
  position: absolute; top: 12px; right: 14px; bottom: 10px; left: 14px;
  width: calc(100% - 28px); height: calc(100% - 22px); max-width: none; max-height: none; object-fit: contain;
}
.c-img > .fallback, .c-img > a > .fallback { display: grid; place-items: center; }

/* Zoekveld bovenaan op de plek van de uitleg (DC 30-10); tekst donkerder */
.intro { align-items: center; padding-block: 18px 4px; }
.intro > div:first-child { flex: 0 1 auto; }
.top-search { flex: 1 1 320px; max-width: 560px; }
.top-search input { padding-block: 11px; font-size: 15px; border-color: #c9ced8; }
.search input::placeholder { color: #6b7280; opacity: 1; }
.sub-chip, .chip, .cat b, .list-head p, .c-type { color: var(--fg); }
.list-head p, .hint, .c-cat, .price small { color: var(--muted); }
@media (max-width: 640px) { .top-search { order: 3; flex-basis: 100%; max-width: none; } }

/* Overzicht: links de afbeelding, rechts de lijst met aantallen en prijzen (DC 30-10) */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 24px; align-items: start; }
.ov-left { position: sticky; top: calc(12px + env(safe-area-inset-top, 0px)); }
.ov-left .shot { margin: 0; }
.ov-right { min-width: 0; }
.ov-grp { font: 600 12px/1.2 var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 2px; display: flex; gap: 8px; align-items: baseline; }
.ov-grp:first-child { margin-top: 0; }
.ov-grp .linkbtn { text-transform: none; letter-spacing: 0; font-size: 12px; }
.ov-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto 24px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ov-nm { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 13.5px; }
.ov-nm b { font: 700 14px/1.2 var(--heading-font); width: 100%; }
.ov-nm b a { color: var(--fg); text-decoration: none; }
.ov-nm b a:hover { text-decoration: underline; }
.ov-nm small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ov-nm .pill { font-size: 11px; padding: 1px 7px; }
.ov-row .am { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; min-width: 72px; }
.ov-row .x { width: 24px; height: 24px; border: 0; background: transparent; color: var(--muted); border-radius: var(--r); font-size: 17px; line-height: 1; }
.ov-row .x:hover { background: var(--bad-bg); color: var(--bad); }
.ov-tot { margin-top: 12px; }
.layout.wide .shot { max-width: none; }
@media (max-width: 960px) {
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .ov-left { position: static; }
}
@media (max-width: 480px) {
  .ov-row { grid-template-columns: 40px minmax(0, 1fr) auto 24px; }
  .ov-row .am { grid-column: 2; grid-row: 2; text-align: left; }
  .ov-row .stepper { grid-column: 3; grid-row: 1 / span 2; }
}
/* Totaal en winkelwagenknop blijven onderaan in beeld bij een lange lijst */
.ov-tot { position: sticky; bottom: 0; background: var(--surface); padding: 10px 0 10px; box-shadow: 0 -10px 14px -10px rgba(17, 17, 17, .18); z-index: 2; }
@media (max-width: 960px) { .ov-tot { position: static; box-shadow: none; } }

/* Setpaneel past binnen het scherm en scrolt zelf (was hoger dan het scherm: onderkant onbereikbaar, DC 30-10) */
@media (min-width: 961px) {
  .setpanel { max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .setpanel .tot, .setpanel .sp-actions { background: var(--surface); }
  .setpanel .sp-actions { position: sticky; bottom: -16px; padding: 10px 0 16px; margin-bottom: -16px; box-shadow: 0 -10px 14px -10px rgba(17, 17, 17, .18); }
}

/* Compacte kaarten: 3 tot 4 naast elkaar op een laptop/pc (DC 30-10). */
@media (min-width: 1181px) { .mach { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; } }
.cards { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
.c-img { aspect-ratio: 1 / 1; padding: 8px; }
.c-tags { top: 6px; left: 6px; right: 34px; }
.c-tags .pill { font-size: 10.5px; padding: 1px 6px; }
.c-check { top: 6px; right: 6px; width: 22px; height: 22px; font-size: 12px; }
.c-body { padding: 9px 10px 10px; gap: 8px; }
.c-sku { font-size: 15px; }
/* Soort altijd twee regels hoog (langer = afgekapt), zodat In Mbox / Zonder koffer op elke kaart op dezelfde hoogte staat. */
.c-type { font-size: 12.5px; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.variant { grid-template-columns: minmax(0, 1fr); }
.variant button { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; padding: 4px 6px; }
.variant button + button { border-left: 0; border-top: 1px solid var(--line); }
.variant b { font-size: 11.5px; white-space: nowrap; }
.variant small { font-size: 11px; white-space: nowrap; }
/* Vaste hoogtes per onderdeel, zodat naam, keuze, prijs, voorraad en knop op elke kaart op dezelfde lijn staan (DC 30-10). */
.variant { min-height: 52px; box-sizing: border-box; }
.c-var { height: 52px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.c-foot { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 0; }
.c-foot .pill { font-size: 10.5px; padding: 1px 6px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
.c-body > .btn-add, .c-body > .c-in { margin-top: auto; height: 32px; box-sizing: border-box; }
.c-in { flex-wrap: nowrap; }
.c-in .stepper { height: 32px; }
.c-in > span { white-space: nowrap; font-size: 11.5px; }
.price b { font-size: 16px; }
.price small { font-size: 11px; }
.btn-add { padding: 8px 8px; font-size: 13px; }
.c-in { font-size: 12px; }
@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.c-cat { line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
