@import url('theme.css');
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; }
h1 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.015em; margin: .3em 0; }
h2 { font-size: 1.2rem; letter-spacing: -.01em; margin: 1.4em 0 .6em; }
h3, h4 { line-height: 1.3; }
[hidden] { display: none !important; }
.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
main.wrap { min-height: 70vh; padding-block: 18px 56px; }

/* Basiselementen */
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox], [type=radio]), select, textarea { border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; background: var(--card); max-width: 100%; }
input:not([type=checkbox], [type=radio]):focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 17px; height: 17px; margin: 0; flex: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input[type=number] { appearance: textfield; }
input[type=number]::-webkit-inner-spin-button { appearance: none; }
.invalid { border-color: var(--danger) !important; background: var(--danger-soft) !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); padding: 9px 18px; border-radius: 10px; cursor: pointer; text-decoration: none; font-weight: 600; transition: filter .15s, transform .05s; }
.btn:hover:not(:disabled) { filter: brightness(1.07); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: var(--card); color: var(--brand); border-color: var(--line-strong); }
.btn.small { padding: 7px 12px; font-size: .85rem; }
.btn.big { padding: 13px 26px; font-size: 1.02rem; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .88rem; }

.note { color: var(--muted); font-size: .87rem; }
.notice { background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 8px 12px; font-size: .87rem; }
.error { color: var(--danger); font-weight: 600; }
.request { font-size: .9rem; font-weight: 600; color: var(--muted); }
.pre { white-space: pre-line; }
.prose { max-width: 75ch; }
.empty, .loading { padding: 48px 0; text-align: center; color: var(--muted); }
.brand { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tag { background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 2px 10px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.swatch { display: inline-block; width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); flex: none; vertical-align: -2px; }
.noimg { display: block; min-height: 40px; background: var(--brand-soft); border-radius: 8px; }

/* Kop */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.top-row { display: flex; align-items: center; gap: 24px; padding-block: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo-dot { width: 28px; height: 28px; border-radius: 9px; background: radial-gradient(circle, var(--accent) 0 34%, var(--brand) 36%); }
.search { flex: 1; display: flex; gap: 8px; min-width: 240px; max-width: 680px; }
.search input { flex: 1; min-width: 0; }
.search { position: relative; }
.suggest { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); padding: 8px; }
.suggest h3 { margin: 8px 10px 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.suggest .note { margin: 6px 10px; }
.suggest-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 4px; }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.suggest-item img, .suggest-item .noimg { width: 44px; height: 44px; min-height: 0; flex: none; object-fit: contain; background: var(--image-bg); }
.suggest-item span { flex: 1; min-width: 0; line-height: 1.35; }
.suggest-item strong { display: block; font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item small { color: var(--muted); font-size: .76rem; }
.suggest-item em { font-style: normal; font-size: .82rem; font-weight: 700; color: var(--brand); white-space: nowrap; }
.suggest-item:hover, .suggest-item[aria-selected=true], .suggest-all:hover, .suggest-all[aria-selected=true] { background: var(--brand-soft); }
.suggest .chip[aria-selected=true] { background: var(--brand-soft); border-color: var(--brand); }
.suggest-all { display: block; margin-top: 6px; padding: 11px 10px; border-radius: 10px; border-top: 1px solid var(--line); font-weight: 600; text-align: center; text-decoration: none; }
.also { margin: -6px 0 14px; }
.settings textarea { font: .85rem/1.5 ui-monospace, Consolas, monospace; width: 100%; }
.top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.langs { display: flex; gap: 2px; background: var(--bg); border-radius: 10px; padding: 3px; }
.langs button { border: 0; background: none; padding: 4px 9px; border-radius: 8px; cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--muted); }
.langs button[aria-pressed=true] { background: var(--card); color: var(--brand); box-shadow: var(--shadow); }
.cart-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 1px 8px; font-size: .78rem; margin-left: 2px; }

.navbar { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; }
.menu-button { flex: none; border: 0; background: var(--brand); color: var(--brand-ink); border-radius: 10px; padding: 7px 14px; font-weight: 600; font-size: .9rem; cursor: pointer; }
/* Wat niet op een regel past valt weg; alles staat ook in het menu */
.main-nav { display: flex; flex-wrap: wrap; flex: 1; gap: 2px; list-style: none; margin: 0; padding: 0; height: 34px; overflow: hidden; }
.main-nav a { display: block; padding: 6px 12px; line-height: 22px; border-radius: 99px; white-space: nowrap; text-decoration: none; color: var(--ink); font-size: .9rem; }
.main-nav a:hover, .main-nav a.active { background: var(--brand-soft); color: var(--brand); }
.mega { position: absolute; inset: 100% 0 auto; background: var(--card); border-top: 1px solid var(--line); box-shadow: var(--shadow-up); padding-block: 22px 26px; }
.mega .wrap { columns: 5 190px; column-gap: 28px; }
.mega section { break-inside: avoid; margin-bottom: 18px; }
.mega h3 { margin: 0 0 5px; font-size: .95rem; }
.mega h3 a { color: var(--ink); text-decoration: none; }
.mega ul { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.mega li a { display: block; padding: 2px 0; color: var(--muted); text-decoration: none; }
.mega a:hover { color: var(--brand); text-decoration: underline; }
.mega .more-link { color: var(--brand); font-weight: 600; }

.foot { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .85rem; }


/* Home */
.hero { background: var(--hero); color: var(--deep-ink); border-radius: 24px; padding: clamp(28px, 6vw, 72px); }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 .35em; max-width: 18ch; }
.hero p { max-width: 50ch; font-size: 1.1rem; opacity: .88; margin: 0 0 1.6em; }
.section-title { margin-top: 2em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: box-shadow .2s, translate .2s; }
.tile img, .tile .noimg { height: 120px; width: 100%; object-fit: cover; border-radius: 0; }
.tile img, .tile .noimg { height: auto; aspect-ratio: 1; }
.tile:not(.photo) img { object-fit: contain; background: var(--image-bg); padding: 12px; }
.tile span:last-child { display: flex; flex-direction: column; padding: 11px 14px 13px; line-height: 1.35; }
.tile small { color: var(--muted); }
.tile:hover, .card:hover { box-shadow: var(--shadow-up); translate: 0 -2px; }

/* Overzicht */
.crumbs { display: flex; flex-wrap: wrap; font-size: .84rem; margin-bottom: 10px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs a + a::before { content: "›"; margin: 0 9px; opacity: .6; }
.list-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.list-title h1 { margin: 0; }
.list-title span { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--card); border-radius: 99px; padding: 6px 14px; font-size: .87rem; color: var(--ink); text-decoration: none; cursor: pointer; line-height: 1.4; }
.chip small { color: var(--muted); font-size: .76rem; }
.chip:hover { border-color: var(--brand); }
.chip.active, .chip.removable { background: var(--brand-soft); border-color: transparent; color: var(--brand); font-weight: 600; }
.chip.more { color: var(--brand); font-weight: 600; }
.subcategories { margin-bottom: 22px; }

.listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.filters-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 18px 8px; }
.filters-panel > header, .filters-panel > footer, .open-filters { display: none; }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; font-weight: 600; cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: translate .2s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { translate: 16px 0; }
.filter-group { border-top: 1px solid var(--line); }
.filter-group summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; }
.filter-group[open] summary::after { rotate: 225deg; translate: 0 2px; }
.filter-group > div { padding-bottom: 16px; }
.range { display: flex; gap: 6px; align-items: center; }
.range input { width: 100%; min-width: 0; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 9px; }
.color-grid label { position: relative; display: grid; place-items: center; aspect-ratio: 1; cursor: pointer; }
.color-grid input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.color-grid .swatch { width: 26px; height: 26px; pointer-events: none; transition: scale .15s; }
.color-grid label:hover .swatch { scale: 1.12; }
.color-grid input:checked + .swatch { outline: 2px solid var(--brand); outline-offset: 3px; }
.color-grid input:focus-visible + .swatch { outline: 2px dashed var(--brand); outline-offset: 3px; }
.brand-search { width: 100%; margin-bottom: 8px; font-size: .88rem; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: .92rem; }
.check span { flex: 1; overflow-wrap: anywhere; }
.check small { color: var(--muted); }
.toggle-brands { margin-top: 8px; }

.toolbar-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; min-height: 42px; }
.toolbar-row .chips { flex: 1; }
.sort-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.sort-label select { color: var(--ink); padding-block: 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, translate .2s; }
.card > a { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: var(--ink); }
.card-img { position: relative; aspect-ratio: 1; background: var(--image-bg); }
.card-img img, .card-img .noimg { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 15px 15px; flex: 1; }
.card h3 { font-size: .95rem; font-weight: 600; margin: 0; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.swatches { display: flex; gap: 5px; min-height: 18px; align-items: center; color: var(--muted); }
.swatches .swatch { width: 13px; height: 13px; }
.card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; color: var(--muted); }
.card-foot > small { font-size: .78rem; }
.price { display: flex; flex-direction: column; line-height: 1.3; }
.price small { font-size: .72rem; }
.price strong { font-size: 1.2rem; color: var(--brand); }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border: 1px solid var(--line-strong); background: var(--card); border-radius: 10px; cursor: pointer; padding: 0 10px; font-weight: 600; }
.pager button[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pager button:disabled { opacity: .35; cursor: default; }

/* Productpagina */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; scroll-margin-top: 16px; }
.pdp-media { position: sticky; top: 16px; }
.main-image { background: var(--image-bg); border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 1; max-height: calc(100vh - 140px); width: 100%; padding: 28px; }
.main-image a { display: block; height: 100%; }
.main-image img, .main-image .noimg { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 12px; }
.thumbs button, .color-picker button { position: relative; background: var(--image-bg); border: 0; border-radius: 10px; padding: 4px; cursor: pointer; aspect-ratio: 1; box-shadow: 0 0 0 1px var(--line); }
.thumbs button:hover, .color-picker button:hover { box-shadow: 0 0 0 1px var(--brand); }
.thumbs img, .color-picker img, .color-picker .noimg { display: block; width: 100%; height: 100%; object-fit: contain; }
.thumbs button.active, .color-picker button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--brand); }
.thumbs .more, .color-picker .more { font-weight: 700; color: var(--brand); background: var(--brand-soft); }

.pdp-title h1 { font-size: 1.9rem; margin: .15em 0 .35em; }
.from-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; color: var(--muted); }
.from-price strong { font-size: 1.7rem; color: var(--brand); letter-spacing: -.02em; }
.lead { font-size: 1.02rem; margin: 12px 0 0; }
.codes { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

.step { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; margin-top: 18px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-head h2 { margin: 0; font-size: 1.12rem; }
.step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: .9rem; flex: none; }
.field-label { margin: 18px 0 8px; font-size: .82rem; font-weight: 700; }
.field-label small { font-weight: 400; color: var(--muted); }
.step-head + .field-label { margin-top: 0; }
.color-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 9px; }
.color-picker .swatch { width: 100%; height: 100%; }
.color-picker em { position: absolute; top: -7px; right: -7px; background: var(--brand); color: var(--brand-ink); border-radius: 99px; padding: 0 6px; font-size: .68rem; font-style: normal; font-weight: 700; line-height: 18px; }

.qty-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.qty { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; cursor: text; }
.qty span { padding: 5px 8px; background: var(--bg); font-size: .78rem; font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid var(--line); }
.qty input:not([type=checkbox]) { border: 0; border-radius: 0; width: 100%; text-align: center; font-size: 1.05rem; font-weight: 600; padding: 9px 4px; }
.qty:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.qty input:not([type=checkbox]):focus { outline: 0; }
.qty.filled { border-color: var(--brand); }
.qty.filled span { background: var(--brand-soft); color: var(--brand); }
.moq:empty { display: none; }

/* Staffelprijzen: tegels die over meerdere regels lopen */
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; list-style: none; margin: 8px 0; padding: 0; }
.tiers li { display: flex; flex-direction: column; align-items: center; background: var(--bg); border-radius: 10px; padding: 7px 6px; line-height: 1.35; border: 2px solid transparent; }
.tiers span { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.tiers strong { font-size: .93rem; white-space: nowrap; }
.tiers li.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.tiers li.active span { color: var(--brand); }
.hint { display: flex; gap: 8px; background: var(--warm-soft); color: var(--warm-ink); border-radius: 10px; padding: 9px 12px; font-size: .86rem; margin: 10px 0 0; }
.hint::before { content: "↗"; font-weight: 800; }
.costs { list-style: none; margin: 10px 0 0; padding: 0; font-size: .87rem; }
.costs li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px dashed var(--line-strong); }
.costs small { display: block; color: var(--muted); font-size: .76rem; }
.costs strong { white-space: nowrap; }

/* Drukconfigurator */
.step-head + .note { margin-top: 0; }
.positions { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin-bottom: 10px; }
.position { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 8px; cursor: pointer; line-height: 1.3; }
.position:hover { border-color: var(--brand); }
.position strong { font-size: .8rem; font-weight: 600; overflow-wrap: anywhere; }
.position small { font-size: .72rem; color: var(--muted); }
.position-img { display: block; width: 100%; height: 80px; }
.position-img img, .position-img .noimg { width: 100%; height: 100%; object-fit: contain; }
.position[aria-pressed=true] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-tint); }
.position[aria-pressed=true]::after { content: "✓"; position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: .8rem; font-weight: 800; line-height: 22px; }
.editor { border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px; margin-top: 14px; }
.editor > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.editor h3 { margin: 0; font-size: 1rem; }
.editor header small { color: var(--muted); }
.editor .field-label { margin-top: 12px; }
.techniques { display: flex; flex-direction: column; gap: 6px; }
.technique { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: .9rem; }
.technique:hover { border-color: var(--brand); }
.technique span { flex: 1; }
.technique em { font-style: normal; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.technique:has(:checked) { background: var(--brand-soft); border-color: var(--brand); font-weight: 600; }
.ref { margin-top: 12px; }
.ref .note { margin: 4px 0; }

.summary-step { border: 2px solid var(--brand); }
.quote.busy { opacity: .5; }
.buybar { position: fixed; inset: auto 0 0; z-index: 15; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgb(16 40 44 / .13); padding: 12px 0; }
.buybar .wrap { display: flex; align-items: center; gap: 26px; }
.buybar-info { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.buybar-qty { font-weight: 700; }
.buybar-unit { font-size: .83rem; color: var(--muted); }
.buybar-unit.error { color: var(--danger); }
.buybar-total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.buybar-total small { color: var(--muted); font-size: .74rem; }
.buybar-total strong { font-size: 1.35rem; color: var(--brand); white-space: nowrap; }
body:has(.buybar:not([hidden])) .foot { padding-bottom: 84px; }
body:has(.buybar:not([hidden])) .toast { bottom: 100px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.tabs button { border: 1px solid var(--line-strong); background: var(--card); padding: 9px 18px; border-radius: 99px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button:hover { border-color: var(--brand); color: var(--brand); }
.tabs button[aria-selected=true] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.count { font-size: .75rem; opacity: .75; }
.tab-body { margin-top: 18px; }
.tab-body > .prose, .tab-body > .downloads { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; max-width: none; margin: 0; }
.downloads { list-style: none; }

.spec-list { columns: 2 380px; column-gap: 40px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 26px; margin: 0; }
.spec-list > div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: .9rem; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; overflow-wrap: anywhere; }

.variant-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; list-style: none; margin: 0 0 16px; padding: 0; }
.variant-list button { display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px 9px 9px; cursor: pointer; }
.variant-list button:hover { border-color: var(--brand); }
.mini { width: 56px; height: 56px; min-height: 0; object-fit: contain; flex: none; }
.variant-name { flex: 1; min-width: 0; line-height: 1.4; font-size: .88rem; }
.variant-name small { display: block; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.variant-list em { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--brand); text-align: right; white-space: nowrap; }

.accordion { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; }
.accordion > summary { display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; cursor: pointer; list-style: none; }
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--brand); line-height: 1; }
.accordion[open] > summary::after { content: "−"; }
.accordion > summary .position-img { width: 62px; height: 62px; flex: none; }
.accordion > summary small { display: block; color: var(--muted); }
.accordion-body { padding: 2px 20px 20px; border-top: 1px solid var(--line); }
.print-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 14px; margin-top: 16px; align-items: start; }
.print-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.print-card h4 { margin: 0; font-size: .95rem; }
.print-card .note { margin: 3px 0; overflow-wrap: anywhere; }
.print-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 8px; }
.print-photos > * { display: block; aspect-ratio: 1; background: var(--image-bg); border: 1px solid var(--line); border-radius: 10px; padding: 5px; cursor: zoom-in; }
.print-photos > *:hover, .print-photos > .active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.print-photos img, .print-photos .noimg { display: block; width: 100%; height: 100%; object-fit: contain; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Logo-upload */
.logo-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; border: 2px dashed var(--line-strong); border-radius: 12px; padding: 18px 14px; cursor: pointer; color: var(--brand); }
.logo-file.over { outline: 2px dashed var(--brand); outline-offset: 2px; }
.logo-drop:hover, .logo-drop.over, .logo-drop:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.logo-drop small { color: var(--muted); font-size: .76rem; }
.logo-drop.busy { cursor: progress; color: var(--muted); }
/* Onzichtbaar maar wel met het toetsenbord bereikbaar */
.logo-drop input, .logo-file label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.logo-file, .order-files li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--brand); background: var(--brand-tint); border-radius: 12px; padding: 10px 12px; }
.logo-file span, .order-files li span { flex: 1; min-width: 0; line-height: 1.4; }
.logo-file strong, .order-files strong { display: block; overflow-wrap: anywhere; font-size: .88rem; }
.logo-file small, .order-files small { color: var(--muted); font-size: .76rem; }
.logo-file label { position: relative; cursor: pointer; font-size: .88rem; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.logo-file label:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.logo-thumb { width: 52px; height: 52px; flex: none; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: repeating-conic-gradient(var(--line) 0 25%, var(--card) 0 50%) 0 / 12px 12px; }
.logo-thumb.ext { display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: .72rem; font-weight: 700; flex: none; }
.breakdown .logo-line { color: var(--warm-ink); }
.breakdown .logo-line.ok { color: var(--brand); font-weight: 600; }
.order-files { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 18px 12px; margin-bottom: 18px; }
.order-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.print-photos.static { grid-template-columns: minmax(0, 150px); }
.print-photos.static > * { cursor: default; padding: 0; overflow: hidden; }
.print-photos.static > *:hover { border-color: var(--line); box-shadow: none; }
.print-examples { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 20px 20px; margin-bottom: 10px; }

/* Regeloverzicht */
table { border-collapse: collapse; }
.price-detail { container-type: inline-size; margin-bottom: 12px; }
.breakdown { width: 100%; font-size: .88rem; border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.breakdown thead th { background: var(--brand); color: var(--brand-ink); font-size: .76rem; font-weight: 600; padding: 9px 12px; text-align: right; white-space: nowrap; }
.breakdown thead th:first-child { text-align: left; }
.breakdown tbody th, .breakdown td { border-top: 1px solid var(--line); padding: 10px 12px; vertical-align: top; font-weight: 400; text-align: left; }
.breakdown td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.breakdown .group th { background: var(--bg); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-block: 5px; }
.breakdown .sum-cell { font-weight: 700; }
.breakdown .qty-cell { color: var(--muted); }
.breakdown strong { display: block; font-weight: 600; line-height: 1.35; }
.breakdown small { display: block; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.breakdown .sub th { padding-left: 30px; }
.breakdown .sub strong { font-weight: 400; }
.breakdown .sub th, .breakdown .sub td { border-top-style: dashed; }
.what { display: flex; gap: 10px; align-items: flex-start; }
.trash { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--muted); cursor: pointer; }
.trash:hover { color: var(--danger); border-color: var(--danger); }
.print-thumb { flex: none; width: 42px; height: 42px; min-height: 0; object-fit: contain; background: var(--image-bg); border: 1px solid var(--line); border-radius: 8px; }
.per-piece { margin: 10px 0 0; padding: 10px 14px; background: var(--brand-soft); border-radius: 12px; font-size: .86rem; }
.per-piece div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.per-piece dt, .per-piece dd { margin: 0; }
.per-piece dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.per-piece .sum { border-top: 1px solid rgb(21 94 99 / .25); margin-top: 5px; padding-top: 7px; font-weight: 700; font-size: .95rem; color: var(--brand); }
/* In smalle kolommen komt de omschrijving boven de bedragen */
@container (max-width: 470px) {
    .breakdown, .breakdown tbody, .breakdown tbody th { display: block; }
    .breakdown thead { display: none; }
    .breakdown tr { display: grid; grid-template-columns: auto 1fr auto; column-gap: 8px; }
    .breakdown tbody th { grid-column: 1 / -1; padding-bottom: 2px; }
    .breakdown td { border: 0 !important; padding-top: 0; }
    .breakdown .unit-cell { text-align: left; color: var(--muted); }
    .breakdown .group th { padding-block: 5px; }
}
.totals { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; margin: 14px 0 16px; align-items: baseline; }
.totals dt, .totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 800; font-size: 1.35rem; color: var(--brand); }
.totals dt:not(.grand), .totals dd:not(.grand) { color: var(--muted); font-size: .9rem; }

/* Winkelwagen en afrekenen */
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.cart-line { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.cart-line header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.cart-line header img, .cart-line header .noimg { width: 72px; height: 72px; flex: none; object-fit: contain; background: var(--image-bg); }
.cart-line header strong { white-space: nowrap; font-size: 1.1rem; }
.cart-line h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.05rem; }
.cart-line h2 a { text-decoration: none; }
.line-actions { display: flex; gap: 18px; font-size: .9rem; }
.summary { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 16px; }
.summary h2 { margin-top: 0; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.checkout { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 24px 24px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields label, .settings label:not(.check), .login label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .88rem; }
.fields small { font-weight: 400; color: var(--muted); }
.wide-field { grid-column: 1 / -1; }
.confirmation { max-width: 760px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 28px 28px; }

/* Beheer */
.top-row > nav .main-nav { height: auto; }
.login, .settings { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.login { margin: 48px auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.settings .btn { align-self: flex-start; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; }
.stat strong { font-size: 1.8rem; color: var(--brand); }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar input { width: min(420px, 100%); }
.scroll { overflow-x: auto; }
.data { width: 100%; background: var(--card); font-size: .9rem; }
.data th, .data td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.data thead th { background: var(--brand-soft); }

.toast { position: fixed; bottom: 24px; left: 50%; translate: -50% 20px; background: var(--ink); color: var(--bg); padding: 11px 22px; border-radius: 99px; opacity: 0; pointer-events: none; transition: .2s; z-index: 40; box-shadow: var(--shadow-up); }
.toast.show { opacity: 1; translate: -50% 0; }

/* Favorieten en labels */
.fav { display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--card); border-radius: 99px; width: 36px; height: 36px; padding: 0; cursor: pointer; color: var(--muted); }
.fav svg { fill: none; }
.fav:hover { color: var(--danger); }
.fav[aria-pressed=true] { color: var(--danger); }
.fav[aria-pressed=true] svg { fill: currentColor; }
.card .fav { position: absolute; top: 10px; right: 10px; box-shadow: var(--shadow); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 5px; }
.badges em { font-style: normal; font-size: .7rem; font-weight: 700; border-radius: 99px; padding: 2px 9px; }
.badge-new { background: var(--accent); color: var(--accent-ink); }
.badge-eco { background: var(--ok-soft); color: var(--ok-ink); }

/* Kop */
.topbar { background: var(--topbar); color: var(--deep-muted); font-size: .78rem; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 34px; }
.topbar #topbar-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar a { color: var(--deep-ink); margin-left: 18px; text-decoration: none; }
.topbar .langs { background: none; padding: 0; gap: 0; }
.topbar .langs button { color: var(--deep-muted); padding: 3px 7px; font-size: .74rem; }
.topbar .langs button[aria-pressed=true] { background: rgb(255 255 255 / .16); color: var(--deep-ink); box-shadow: none; }
.icon-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink); transition: background .15s; }
.icon-link:hover { background: var(--brand-soft); color: var(--brand); }
.icon-link .badge { position: absolute; top: 2px; right: 0; margin: 0; padding: 0 5px; min-width: 18px; line-height: 18px; text-align: center; font-style: normal; font-size: .68rem; font-weight: 700; }
.icon-link.signed-in::after { content: ""; position: absolute; right: 7px; bottom: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); border: 2px solid var(--card); }
.account-menu { position: relative; }
.drop { position: absolute; z-index: 35; top: 100%; right: -40px; padding-top: 8px; visibility: hidden; opacity: 0; translate: 0 -4px; transition: .15s; }
.drop:empty { display: none; }
.account-menu:hover .drop, .account-menu:focus-within .drop { visibility: visible; opacity: 1; translate: 0 0; }
.drop > div { width: 250px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); padding: 6px; }
.drop p { margin: 0; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }
.drop a, .drop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .9rem; cursor: pointer; }
.drop a:hover, .drop button:hover { background: var(--brand-soft); color: var(--brand); }

/* Home */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.on-dark { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .35); color: var(--deep-ink); }
.usps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; margin: 18px 0 0; padding: 0; }
.usps li { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px 14px 20px; border-left: 4px solid var(--accent); line-height: 1.45; }
.usps span { color: var(--muted); font-size: .86rem; }
.occasions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.occasion { display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; border-radius: 18px; padding: 20px 22px; text-decoration: none; color: var(--deep-ink); box-shadow: var(--shadow); transition: translate .2s, box-shadow .2s; }
.occasion:hover { translate: 0 -2px; box-shadow: var(--shadow-up); }
.occasion strong { font-size: 1.25rem; }
.occasion i { font-style: normal; font-size: 2rem; line-height: 1; margin-bottom: auto; }
.occasion span { opacity: .85; }
.occasion em { font-style: normal; font-weight: 700; margin-top: 10px; color: var(--accent); }
.tone-0 { background: var(--tone-a); }
.tone-1 { background: var(--tone-b); }
.tone-2 { background: var(--tone-c); }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.how li { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.how strong { display: block; margin-top: 10px; }
.how p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.brand-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.brand-wall a { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 74px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); padding: 8px; line-height: 1.35; }
.brand-wall a:hover { color: var(--brand); box-shadow: var(--shadow-up); }
.brand-wall small { color: var(--muted); font-size: .74rem; }
.faq details { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 8px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.faq p { margin: 0 0 14px; color: var(--muted); }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; background: var(--hero); color: var(--deep-ink); border-radius: 22px; padding: 30px 34px; }
.cta h2 { margin: 0 0 4px; }
.cta p { margin: 0; opacity: .85; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Productpagina: voorraad, levering, herkomst */
.stock-line { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: .88rem; font-weight: 600; }
.stock-line:empty { display: none; }
.stock-line::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.stock-line.ok::before { background: var(--ok); }
.stock-line.out { color: var(--danger); }
.stock-line.out::before { background: var(--danger); }
.stock-line.unknown { color: var(--muted); font-weight: 400; }
.qty small { display: block; text-align: center; font-size: .68rem; padding: 0 3px 4px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qty small:empty { display: none; }
.qty small.ok { color: var(--ok-ink); }
.qty small.out, .qty small.short { color: var(--danger); font-weight: 600; }
.title-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.eco-badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; }
.eco-badges:empty { display: none; }
.eco-badges li { background: var(--ok-soft); color: var(--ok-ink); border-radius: 99px; padding: 3px 12px; font-size: .78rem; font-weight: 600; }
.delivery-field { display: flex; flex-direction: column; gap: 5px; max-width: 260px; font-weight: 600; font-size: .88rem; }
.quote-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.quote-actions .btn { flex: 1; }
.info-cards { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; margin-top: 40px; align-items: start; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 22px 20px; margin-bottom: 16px; }
.info-cards .panel { margin: 0; }
.info-cards .spec-list { columns: 2 280px; box-shadow: none; padding: 0; }
.info-cards .spec-list.single { columns: 1; }
.green { border-top: 4px solid var(--ok); }
.print-head { display: none; }
.line-meta { margin: 0 0 8px; font-size: .88rem; color: var(--muted); }
.line-meta:empty { display: none; }
.summary .btn.wide { margin-bottom: 8px; }
.type-switch { margin-bottom: 16px; }
.mini-lines small { display: block; color: var(--muted); }
.center { text-align: center; }

/* Zoekhulp: banner */
.finder-banner { display: flex; align-items: center; gap: 22px; margin-top: 18px; padding: 22px 28px; border-radius: 20px; text-decoration: none; color: var(--banner-ink); background: var(--banner); box-shadow: var(--shadow); transition: box-shadow .2s, translate .2s; }
.finder-banner:hover { box-shadow: var(--shadow-up); translate: 0 -2px; }
.finder-copy { flex: 1; display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.finder-copy strong { font-size: 1.25rem; }
.finder-banner .btn { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); white-space: nowrap; }
.finder-art { position: relative; display: block; width: 74px; height: 62px; flex: none; }
.finder-art i { position: absolute; font-style: normal; line-height: 1; }
.finder-art i:nth-child(1) { font-size: 2.7rem; left: 2px; bottom: 0; rotate: -8deg; }
.finder-art i:nth-child(2) { font-size: 1.8rem; right: 2px; top: 0; rotate: 12deg; }
.finder-art i:nth-child(3) { font-size: 1.15rem; right: 6px; bottom: 2px; }
.sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.finder-banner.in-sidebar { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding: 20px; }
.finder-banner.in-sidebar .finder-copy strong { font-size: 1.05rem; }
.finder-banner.in-sidebar .finder-copy span { font-size: .88rem; }
.finder-banner.in-sidebar .btn { align-self: stretch; }
.finder-banner.above-list { display: none; }

/* Zoekhulp: stappenplan */
.finder-hero { display: flex; align-items: center; gap: 22px; padding: 24px 30px; border-radius: 22px; background: var(--banner); color: var(--banner-ink); margin-bottom: 18px; }
.finder-hero h1 { margin: 0; }
.finder-hero p { margin: 4px 0 0; }
.finder { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; max-width: 940px; margin-inline: auto; }
.wizard-tabs { display: flex; list-style: none; margin: 0; padding: 8px; gap: 8px; background: var(--brand-soft); }
.wizard-tabs li { flex: 1; min-width: 0; }
.wizard-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 100%; border: 0; background: none; border-radius: 14px; padding: 11px 8px; cursor: pointer; font-weight: 700; color: var(--muted); line-height: 1.25; }
.wizard-tabs button span { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--card); color: var(--brand); font-size: .82rem; }
.wizard-tabs button[aria-selected=true] { background: var(--card); color: var(--brand); box-shadow: var(--shadow); }
.wizard-tabs button[aria-selected=true] span { background: var(--accent); color: var(--accent-ink); }
.wizard-tabs button.passed span { background: var(--brand); color: var(--brand-ink); }
.wizard-page { padding: 6px 30px 14px; animation: step-in .25s ease; }
.wizard-page h2 { margin: 18px 0 14px; }
@keyframes step-in { from { opacity: 0; translate: 14px 0; } }
@media (prefers-reduced-motion: reduce) { .wizard-page { animation: none; } }
.tile-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile-choice { position: relative; cursor: pointer; }
.tile-choice input, .pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-choice > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; height: 100%; min-height: 118px; padding: 14px 10px; border: 2px solid var(--line); border-radius: 18px; line-height: 1.3; transition: .15s; }
.tile-choice i { font-style: normal; font-size: 2.2rem; line-height: 1; }
.tile-choice:hover > span { border-color: var(--accent); translate: 0 -2px; }
.tile-choice input:checked + span { border-color: var(--accent); background: var(--warm-soft); box-shadow: 0 6px 18px rgb(255 180 84 / .3); }
.tile-choice input:focus-visible + span, .pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.finder-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.finder-row label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .86rem; min-width: 0; }
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.pill { cursor: pointer; }
.pill span, .quick button { display: inline-block; border: 2px solid var(--line); background: var(--card); border-radius: 99px; padding: 9px 18px; font-weight: 600; cursor: pointer; transition: .15s; }
.pill:hover span, .quick button:hover { border-color: var(--accent); }
.pill input:checked + span, .quick button[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.quick input:not([type=checkbox]) { width: 150px; border-radius: 99px; padding-block: 10px; }
.divider { width: 1px; height: 28px; background: var(--line); margin-inline: 6px; }
.wizard-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 16px 30px 22px; border-top: 1px solid var(--line); }
.wizard-foot .back { margin-right: auto; }
.finder-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 940px; margin: 0 auto 14px; }
.finder-summary .chip:hover { border-color: var(--accent); background: var(--warm-soft); }
.finder-summary .chip small { color: var(--brand); }
.finder { scroll-margin-top: 12px; }
.pill small { opacity: .65; font-weight: 400; margin-left: 2px; }
.pill.none span { opacity: .45; cursor: not-allowed; }
.advice-empty { text-align: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.advice-empty p { margin: 4px 0; }
.hint-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.advice-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; scroll-margin-top: 12px; }
.advice-item { display: flex; flex-direction: column; min-width: 0; }
.advice-item .card { flex: 1; border-radius: var(--radius) var(--radius) 0 0; translate: none; }
.estimate { display: flex; flex-direction: column; gap: 2px; background: var(--brand-soft); border-radius: 0 0 var(--radius) var(--radius); padding: 12px 15px; text-decoration: none; color: var(--ink); line-height: 1.4; font-size: .86rem; }
.estimate strong { font-size: 1.2rem; color: var(--brand); }
.estimate small { color: var(--muted); }
.estimate em { font-style: normal; font-weight: 700; color: var(--brand); margin-top: 4px; }

/* Account */
.auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; align-items: start; max-width: 880px; }
.auth .panel, .profile-form, .password-form { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.auth label, .password-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .88rem; }
.list-title .logout { margin-left: auto; }

/* Filters en beheer van eigenschappen */
.value-search { width: 100%; margin-bottom: 8px; font-size: .88rem; }
.toolbar.value-search { width: auto; font-size: inherit; }
.toggle-values { margin-top: 8px; }
.wrap-toolbar { flex-wrap: wrap; }
.props small { display: block; color: var(--muted); font-size: .74rem; }
.position-input { width: 80px; }
.mini-switch { padding: 0; }
.detail-row > td { background: var(--bg); }
.names { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 8px; }
.names label, .value-list form label { display: flex; flex-direction: column; font-size: .72rem; font-weight: 700; }
.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li { display: flex; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.value-list form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; flex: 1; }

/* Offerte printen: alleen de prijsopbouw */
@media print {
    body { background: var(--card); }
    .top, .foot, .buybar, .toast, .tabs, .tab-body, .info-cards, .crumbs, .thumbs, .step:not(.summary-step), .summary-step .btn, .quote-actions, .line-actions, .trash, .actions, .summary .btn, .summary .link, .title-actions, .fav { display: none !important; }
    .pdp, .two-col { display: block; }
    .pdp-media { position: static; max-width: 260px; }
    .main-image { box-shadow: none; padding: 0; }
    .step, .summary, .cart-line, .confirmation { box-shadow: none; border: 0; padding: 0; }
    .print-head { display: block; margin-bottom: 12px; }
    .breakdown thead th { color: #000; background: #eee; }
}
@media (max-width: 700px) { .topbar #topbar-text { visibility: hidden; } .topbar-contact { display: none; } }
@media (max-width: 900px) {
    .info-cards { grid-template-columns: minmax(0, 1fr); }
    .sidebar { display: contents; }
    .finder-banner.in-sidebar { display: none; }
    .finder-banner.above-list { display: flex; margin: 0 0 16px; padding: 14px 16px; gap: 12px; }
}
@media (max-width: 600px) {
    .finder-banner { flex-wrap: wrap; }
    .finder-banner .finder-art { width: 54px; scale: .8; }
    .finder-banner .btn { width: 100%; }
    .above-list .finder-copy span, .above-list .finder-art { display: none; }
    .finder-hero { padding: 18px; }
    .finder-hero .finder-art { display: none; }
    .wizard-tabs button { flex-direction: column; gap: 4px; font-size: .76rem; }
    .wizard-page { padding-inline: 16px; }
    .wizard-foot { flex-wrap: wrap; padding-inline: 16px; }
    .wizard-foot .skip { order: 3; width: 100%; }
    .tile-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .listing, .pdp, .two-col { grid-template-columns: minmax(0, 1fr); }
    .pdp { gap: 20px; }
    .pdp-media, .summary { position: static; }
    .main-image { max-height: 480px; padding: 16px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
    .main-nav { visibility: hidden; }
    .top-row .main-nav { visibility: visible; flex-wrap: wrap; }

    /* Filters als uitschuifpaneel */
    .open-filters { display: inline-flex; }
    .filters { position: fixed; inset: 0; z-index: 30; background: rgb(10 30 34 / .45); visibility: hidden; opacity: 0; transition: .2s; }
    /* Direct zichtbaar bij openen, zodat de focus erin geplaatst kan worden */
    .filters { transition: opacity .2s, visibility 0s .2s; }
    .filters.open { visibility: visible; opacity: 1; transition: opacity .2s; }
    .filters-panel { position: absolute; inset: 0 auto 0 0; width: min(340px, 90%); overflow-y: auto; overscroll-behavior: contain; border-radius: 0; padding: 0 20px; translate: -100% 0; transition: translate .2s; }
    .filters.open .filters-panel { translate: 0 0; }
    .filters-panel > header, .filters-panel > footer { display: flex; position: sticky; background: var(--card); z-index: 1; }
    .filters-panel > header { top: 0; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
    .filters-panel > header button { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; }
    .filters-panel > footer { bottom: 0; padding: 14px 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
    .wrap { width: min(1280px, 100% - 28px); }
    .search { order: 3; flex-basis: 100%; min-width: 0; }
    .suggest-item em { display: none; }
    .top-row { gap: 12px; padding-block: 10px; }
    .fields { grid-template-columns: 1fr; }
    .step { padding: 16px; }
    .pdp-title h1 { font-size: 1.5rem; }
    .variant-list { grid-template-columns: minmax(0, 1fr); }
    .sort-label span { display: none; }
    .card-body { padding: 10px 11px 12px; }
    .card-foot > small { display: none; }
    .buybar .wrap { gap: 12px; flex-wrap: wrap; }
    .buybar .btn { width: 100%; padding-block: 10px; }
    .spec-list { padding-inline: 16px; }
}
