/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --blue:     #0070d2;
  --blue-dk:  #005cb3;
  --text:     #1a1a1a;
  --muted:    #767676;
  --border:   #d9d9d9;
  --bg:       #f7f7f7;
  --surface:  #ffffff;
  --hdr-h:    52px;
  --tabs-h:   48px;
  --bar-h:    64px;
  --font:     'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; font-family: var(--font); color: var(--text); background: var(--surface); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.hdr {
  height: var(--hdr-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 30;
  position: relative;
}
.hdr-menu {
  background: none; border: none; cursor: pointer;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #6c727c; display: flex; align-items: center; gap: 8px;
  transition: color .2s ease;
}
.hdr-menu:hover { color: #14161a; }

/* ── ☰ Menu-paneel (links, zelfde links als de homepage-nav) ─────────────── */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20, 22, 26, .45);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-panel {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 95;
  width: min(300px, 86vw);
  background: #fff; box-shadow: 12px 0 40px rgba(0, 0, 0, .18);
  display: flex; flex-direction: column; padding: 12px 0 18px;
  transform: translateX(-102%); visibility: hidden;
  transition: transform .28s ease, visibility .28s;
}
.menu-panel.open { transform: none; visibility: visible; }
.menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 20px 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.menu-head span {
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #6c727c;
}
.menu-close {
  background: none; border: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: #6c727c; padding: 2px 6px;
  transition: color .2s ease;
}
.menu-close:hover { color: #14161a; }
.menu-panel a {
  display: block; padding: 13px 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #3a3f47; text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.menu-panel a:hover { color: #14161a; background: #f7f5f1; border-left-color: #9c7c4e; }
.menu-panel .menu-account { margin-top: auto; border-top: 1px solid var(--border); color: #9c7c4e; }
.hdr-logo {
  font-size: 17px; font-weight: 900; letter-spacing: .12em;
  text-align: center; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.hdr-logo img { height: 34px; width: auto; display: block; }
.hdr-logo a { display: flex; align-items: center; }
.hdr-right { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.hdr-link {
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #6c727c; text-decoration: none; padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.hdr-link:hover { color: #14161a; border-bottom-color: #9c7c4e; text-decoration: none; }

/* ── Step tabs ───────────────────────────────────────────────────────────── */
.steptabs {
  height: var(--tabs-h);
  display: flex;
  border-bottom: 2px solid var(--border);
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.steptabs::-webkit-scrollbar { display: none; }

.steptab {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  padding: 0 16px;
  user-select: none;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.steptab:hover:not(.active):not(.locked) { color: var(--text); }
.steptab.active { color: var(--blue); border-bottom-color: var(--blue); }
.steptab.done { color: var(--text); }
.steptab.locked { opacity: .4; cursor: not-allowed; }
.steptab-num {
  font-size: 11px; font-weight: 800;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--border); color: var(--muted); flex-shrink: 0;
}
.steptab.active .steptab-num { background: var(--blue); color: #fff; }
.steptab.done .steptab-num { background: #2e8b57; color: #fff; }

/* ── Main ────────────────────────────────────────────────────────────────── */
.main {
  display: grid;
  grid-template-columns: 1fr 400px;
  height: calc(100vh - var(--hdr-h) - var(--tabs-h) - var(--bar-h));
  overflow: hidden;
}

/* ── Preview area ────────────────────────────────────────────────────────── */
.preview-area {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 32px 24px;
}
#previewCanvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,.18));
}

/* ── Options panel ───────────────────────────────────────────────────────── */
.options-panel {
  background: #fff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.options-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.options-head h2 {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 2px;
}
.options-head h2 strong { font-weight: 700; color: var(--text); font-size: 17px; }
.options-head p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.options-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* ── Option cards (list style, right panel) ──────────────────────────────── */
.opt-card {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.opt-card:hover { border-color: #aaa; }
.opt-card.selected { border-color: var(--blue); background: #f0f7ff; }
.opt-card-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.opt-card.selected .opt-card-check {
  background: var(--blue); border-color: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700;
}
.opt-card-check::after { content: ''; }
.opt-card.selected .opt-card-check::after { content: '✓'; }
.opt-card-body { flex: 1; min-width: 0; }
.opt-card-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.opt-card-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ── Swatch grid (for materials) ─────────────────────────────────────────── */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.swatch {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.swatch:hover { border-color: #aaa; transform: translateY(-1px); }
.swatch.selected { border-color: var(--blue); }
.swatch.selected::after {
  /* blue check badge */
}
.swatch-color { height: 52px; background-size: cover; background-position: center; }
.swatch-name { font-size: 10px; font-weight: 700; padding: 5px 6px 2px; text-align: center; letter-spacing: .02em; }
.swatch-zoom { position: absolute; right: 6px; bottom: 6px; font-size: 12px; line-height: 1; background: rgba(255, 255, 255, .85); border: 1px solid #d8d8d8; border-radius: 6px; padding: 3px 5px; cursor: pointer; }

/* ── Sliders ─────────────────────────────────────────────────────────────── */
input[type=range] {
  width: 100%; height: 4px; cursor: pointer;
  accent-color: var(--blue); outline: none;
  border-radius: 2px;
}

/* ── Text form ───────────────────────────────────────────────────────────── */
.txt-group { display: flex; flex-direction: column; gap: 16px; }
.txt-row { display: flex; flex-direction: column; gap: 6px; }
.txt-row label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.txt-row input, .txt-row textarea, .txt-row select {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  width: 100%;
  transition: border-color .15s;
}
.txt-row input:focus, .txt-row textarea:focus, .txt-row select:focus {
  outline: none; border-color: var(--blue);
}
.txt-row textarea { resize: vertical; min-height: 80px; }
.txt-row select option { background: #fff; }

/* ── Symbol grid ─────────────────────────────────────────────────────────── */
.sym-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sym-btn {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 12px 6px 8px;
  cursor: pointer;
  text-align: center;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.sym-btn:hover { border-color: #aaa; background: var(--bg); }
.sym-btn.selected { border-color: var(--blue); background: #f0f7ff; }
.sym-lbl { font-size: 10px; color: var(--muted); display: block; }
.sym-thumb { display: block; height: 44px; margin: 0 auto 5px; }
.sym-thumb img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; margin: 0 auto; filter: grayscale(1) contrast(1.05); }
.sym-thumb--none { display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); }
.sym-prijs { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.sym-clear .sym-thumb { color: var(--muted); }
.pv-sym img { -webkit-user-drag: none; }

/* ── Accessoires: keuze-kaarten ──────────────────────────────────────────── */
.acc-hint { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.acc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.acc-card {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--surface); cursor: pointer;
  transition: border-color .15s, transform .1s, box-shadow .15s;
}
.acc-card:hover { border-color: #aaa; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.09); }
.acc-card.selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.acc-card-img {
  position: relative; height: 132px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.acc-card-img img { max-width: 84%; max-height: 116px; object-fit: contain; transition: transform .18s ease; }
.acc-card:hover .acc-card-img img { transform: scale(1.06); }
.acc-zoom {
  position: absolute; top: 6px; left: 6px; z-index: 2; width: 26px; height: 26px; padding: 0;
  border: none; border-radius: 50%; background: rgba(255,255,255,.88); color: #444;
  font-size: 12px; line-height: 26px; cursor: pointer; opacity: 0; transition: opacity .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.18); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.acc-card:hover .acc-zoom, .acc-zoom:focus { opacity: 1; }
@media (hover: none) { .acc-zoom { opacity: 1; } }
.acc-count {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 1px 7px; line-height: 1.5;
}
.acc-card-body { padding: 8px 10px 10px; }
.acc-card-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.25; }
.acc-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.acc-price {
  font-size: 12px; font-weight: 700; color: var(--blue);
  background: #eef5ff; border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.acc-dots { display: inline-flex; gap: 5px; align-items: center; flex-shrink: 0; }
.acc-dot {
  width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px var(--border); background-size: cover; background-position: center;
  cursor: pointer; transition: transform .1s, box-shadow .12s;
}
.acc-dot:hover { transform: scale(1.18); box-shadow: 0 0 0 2px var(--blue); }

/* ── Accessoires: geplaatst op de steen ──────────────────────────────────── */
.acc-placed { display: flex; flex-direction: column; gap: 6px; }
.acc-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px;
}
.acc-row-thumb { height: 30px; width: 30px; object-fit: contain; flex-shrink: 0; }
.acc-row-name { flex: 1; font-size: 13px; min-width: 0; }
.acc-row-sub { color: var(--muted); }
.acc-swatches { display: inline-flex; gap: 5px; }
.acc-kleur {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); padding: 0;
  cursor: pointer; background-size: cover; background-position: center;
}
.acc-kleur.on { border-color: #111; }
.acc-row-price { font-size: 12px; color: #444; font-weight: 600; white-space: nowrap; }
.acc-del { border: none; background: none; color: #c0392b; cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 4px; }
.acc-subtotal { margin-top: 10px; font-size: 13px; text-align: right; color: #333; }

/* ── Accessoires: vergroot-lightbox ──────────────────────────────────────── */
.acc-lightbox {
  position: fixed; inset: 0; z-index: 1000; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,20,22,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: accFade .15s ease;
}
@keyframes accFade { from { opacity: 0; } }
.acc-lb-card {
  position: relative; background: var(--surface); border-radius: 16px; padding: 22px 22px 18px;
  max-width: min(560px, 94vw); max-height: 90vh; overflow: auto; box-shadow: 0 24px 70px rgba(0,0,0,.4);
}
.acc-lb-close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; padding: 0;
  border: none; border-radius: 50%; background: #f0f0f0; color: #555; font-size: 14px; cursor: pointer;
}
.acc-lb-close:hover { background: #e3e3e3; }
.acc-lb-title { font-size: 18px; font-weight: 700; margin: 0 30px 4px 0; color: var(--text); }
.acc-lb-hint { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.acc-lb-vars { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.acc-lb-var {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  margin: 0; padding: 10px 10px 12px; background: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 14px; transition: border-color .12s, background .12s;
}
.acc-lb-var:hover { border-color: var(--blue); background: #f5f9ff; }
.acc-lb-imgwrap {
  width: 200px; height: 200px; background: var(--bg); border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.acc-lb-imgwrap img { max-width: 90%; max-height: 90%; object-fit: contain; }
.acc-lb-cap { font-size: 13px; color: #444; font-weight: 700; }
.acc-lb-plus {
  font-size: 12px; font-weight: 700; color: var(--blue);
  background: #eef5ff; border-radius: 999px; padding: 3px 12px; opacity: .55; transition: opacity .12s;
}
.acc-lb-var:hover .acc-lb-plus { opacity: 1; }
.acc-lb-imgwrap--photo {
  width: min(420px, 80vw); height: min(420px, 80vw); cursor: default;
}
.acc-lb-imgwrap--photo img { max-width: 100%; max-height: 100%; object-fit: cover; border-radius: 8px; }
.acc-lb-card > .acc-lb-cap { display: block; text-align: center; margin-top: 12px; font-size: 14px; }

/* ── Preview: ghost-voorbeeld (nog niets gekozen) ────────────────────────── */
#previewWrap.pv-ghost #pvBase,
#previewWrap.pv-ghost #pvLp,
#previewWrap.pv-ghost #pvLp2 { opacity: .5; filter: saturate(.85); }

/* ── Summary ─────────────────────────────────────────────────────────────── */
.summary-section { margin-bottom: 24px; }
.summary-section h3 {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.sum-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px solid #f0f0f0; }
.sum-row:last-child { border-bottom: none; }
.sum-key { color: var(--muted); }
.sum-val { font-weight: 600; text-align: right; max-width: 55%; }

/* ── Bottom bar ──────────────────────────────────────────────────────────── */
.bottombar {
  height: var(--bar-h);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
  flex-shrink: 0;
  z-index: 20;
  position: relative;
}
.bottombar-price { font-size: 15px; font-weight: 700; flex: 1; }
.bottombar-center { font-size: 13px; color: var(--muted); flex: 1; text-align: center; }
.bottombar-cta {
  background: var(--blue); color: #fff;
  border: none; padding: 13px 36px;
  border-radius: 4px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: background .2s; white-space: nowrap;
}
.bottombar-cta:hover { background: var(--blue-dk); }
@media (max-width: 640px) {
  /* Smal scherm: balk mag wrappen; de stappenbalk bovenin toont de voortgang al. */
  .bottombar { height: auto; min-height: var(--bar-h); flex-wrap: wrap; padding: 10px 14px; gap: 6px 14px; }
  .bottombar-price { font-size: 13px; flex: 1 1 100%; }
  .bottombar-center { display: none; }
  .bottombar-cta { padding: 11px 22px; margin-left: auto; }
  .btn-reset { margin-left: 0 !important; }
}

/* ── Divider / section title ─────────────────────────────────────────────── */
.section-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  margin: 20px 0 10px;
}
.section-title:first-child { margin-top: 0; }

/* ── Model grid ──────────────────────────────────────────────────────────── */
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.model-card {
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .1s, box-shadow .15s;
  background: #fff;
  text-align: center;
}
.model-card:hover { border-color: #aaa; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.model-card.selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.model-card-img {
  height: 120px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.model-card-img img { max-width: 100%; max-height: 110px; object-fit: contain; display: block; }
.model-card-label { font-size: 12px; font-weight: 700; padding: 6px 4px 2px; color: var(--text); }
.model-card-price { font-size: 10px; color: var(--blue); font-weight: 700; padding-bottom: 8px; }
.model-card.selected .model-card-label { color: var(--blue); }

/* Preview-frames: één frame vult de ruimte; in 'combined'-modus (model + tekstvlak naast
   elkaar) delen twee frames de breedte. */
.pv-frame { width: min(820px, calc(100vw - 460px), calc((100vh - 224px) * 1.28)); }
#previewRow.pv-combined .pv-frame { width: min(calc((100vw - 478px) / 2), calc((100vh - 240px) * 1.25)); }
.pv-frame-cap { position: absolute; top: 7px; left: 0; right: 0; text-align: center; font-size: 10px;
  letter-spacing: .09em; text-transform: uppercase; color: #a8a8a8; font-weight: 700; pointer-events: none; }

/* ── Preview image ───────────────────────────────────────────────────────────── */
#previewImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,.18));
}

/* ── Swatch sub-label ────────────────────────────────────────────────────────── */
.swatch-sub { font-size: 9px; color: #999; padding: 0 5px 4px; text-align: center; line-height: 1.3; }

/* ── Preview tekst overlay ───────────────────────────────────────────────── */
#previewWrap { container-type: inline-size; }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
.options-body::-webkit-scrollbar { width: 4px; }
.options-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Lettertype-stap (compact grid + lettersoort-chips + steensoort-swatch) ── */
.lt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 4px; }
.lt-card { border: 1.5px solid var(--border); border-radius: 9px; padding: 12px 10px; cursor: pointer;
           background: #fff; text-align: center; transition: border-color .12s, box-shadow .12s; }
.lt-card:hover { border-color: #aaa; }
.lt-card.selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.lt-sample { font-size: 21px; color: var(--text); line-height: 1.2; margin-bottom: 6px; min-height: 26px; word-break: break-word; }
.lt-name { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.ls-list { display: flex; flex-direction: column; gap: 6px; }
.ls-chip { display: flex; align-items: center; gap: 9px; border: 1.5px solid var(--border); border-radius: 8px;
           padding: 8px 11px; cursor: pointer; background: #fff; transition: border-color .12s, box-shadow .12s; }
.ls-chip:hover { border-color: #aaa; }
.ls-chip.selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.ls-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); flex: none; }
.ls-name { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
.ls-price { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.lt-steen { display: flex; align-items: center; gap: 11px; border: 1px solid var(--border);
            border-radius: 9px; padding: 9px 12px; background: var(--bg); }
.lt-steen img { border-radius: 6px; object-fit: cover; flex: none; }
.lt-steen-naam { font-size: 13px; font-weight: 700; color: var(--text); }
.lt-steen-fin { font-size: 11px; color: var(--muted); }
.lt-steen-wijzig { margin-left: auto; background: none; border: none; color: var(--blue);
                   font-weight: 700; font-size: 12px; cursor: pointer; }

/* ── Mobiel / smalle tablet ──────────────────────────────────────────────────
   De configurator is opgezet als vast desktop-appscherm: header + tabs + main
   (voorbeeld náást optiepaneel) + onderbalk. Op smalle schermen paste dat niet:
   het vaste 400px-paneel duwde het voorbeeld naar 0px. Hieronder wordt de app
   als flexkolom opgebouwd (robuust als de onderbalk wrapt) en het voorbeeld
   boven het optiepaneel gestapeld. */
@media (max-width: 820px) {
  /* App-shell als flexkolom i.p.v. vaste calc-hoogtes: de onderbalk mag nu
     wrappen zonder dat de knop onder de vouw verdwijnt. dvh vangt de mobiele
     adresbalk op. */
  html, body { overflow: hidden; }
  body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
  .hdr, .steptabs, .bottombar { flex-shrink: 0; }

  /* Header: menu-knop (alleen ☰) + logo links, snelkoppelingen rechts */
  .hdr { grid-template-columns: auto auto 1fr; padding: 0 14px; gap: 10px; }
  .hdr-menu { font-size: 16px; }
  .hdr-menu-txt { display: none; }
  .hdr-logo { justify-content: flex-start; }
  .hdr-logo img { height: 26px; }
  .hdr-right { gap: 16px; }
  .hdr-link { font-size: 10.5px; letter-spacing: .08em; }

  /* Stappen-tabs blijven horizontaal scrollbaar, iets compacter */
  .steptab { min-width: auto; padding: 0 14px; font-size: 12.5px; }

  /* Voorbeeld bovenaan, opties eronder; main vult de resterende hoogte */
  .main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(140px, 30vh) 1fr;
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
  }
  .options-panel { border-left: none; border-top: 1px solid var(--border); }
  .preview-stage { padding: 14px; }

  /* Voorbeeld-frames: de desktop-breedte gebruikt calc(100vw - 460px) — dat wordt
     op smalle schermen negatief (frame → 0px). Hier passend gemaakt op de
     beschikbare breedte én de voorbeeldhoogte (aspect 5/4). */
  .pv-frame { width: min(calc(100vw - 44px), calc((30vh - 34px) * 1.25)); }
  #previewRow.pv-combined .pv-frame { width: min(calc((100vw - 62px) / 2), calc((30vh - 34px) * 1.25)); }
}

@media (max-width: 380px) {
  .hdr-right { gap: 10px; }
  .hdr-link { font-size: 10px; }
  .hdr-logo img { height: 24px; }
}
