/* Online meubelcatalogus. --brand en --accent komen uit de huisstijl van het merk. Rustig, veel wit, grote foto's. */
:root { --ink: #1d1a1c; --muted: #6e676c; --line: #e8e3e6; --soft: #f6f4f2; --card: #fff; --radius: 14px; color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 650; }
h2 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.01em; margin: 48px 0 18px; font-weight: 600; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--accent); font-weight: 600; margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 20px; }
.small, .muted { color: var(--muted); font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); background: var(--brand); }
.btn.big { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, #fff); outline-offset: 2px; }

/* Kop */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { flex: none; text-decoration: none; }
.logo { max-height: 44px; max-width: 200px; width: auto; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--brand); }
.search { flex: 1; display: flex; max-width: 560px; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; height: 44px; font: inherit; font-size: 15px; outline: none; }
.search button { border: 0; background: transparent; padding: 0 16px; cursor: pointer; color: var(--muted); }
.sel-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.sel-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }
.cats { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; padding-top: 2px; padding-bottom: 12px; }
.cats a { text-decoration: none; color: var(--muted); font-size: 14.5px; white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.cats a:hover { color: var(--ink); border-color: var(--brand); }
@media (max-width: 720px) { .top-in { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; gap: 12px; } .search { order: 3; flex-basis: 100%; max-width: none; } .sel-link span { display: none; } .sel-link { margin-left: auto; } }

/* Home */
.hero { background: var(--soft); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-img { aspect-ratio: 4 / 3; background: #fff; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.hero-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; gap: 28px; } }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.tiles a { display: block; text-decoration: none; }
.tiles .ph { aspect-ratio: 1; background: var(--soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; transition: transform .2s; }
.tiles .ph img { width: 100%; height: 100%; object-fit: contain; padding: 18px; mix-blend-mode: multiply; }
.tiles a:hover .ph { transform: translateY(-3px); }
.tiles span { display: block; font-weight: 600; font-size: 17px; }
.tiles small { color: var(--muted); }
.band { background: var(--brand); color: #fff; margin-top: 64px; }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; opacity: .85; max-width: 620px; }
.band .btn.primary { background: #fff; color: var(--brand); border-color: #fff; }

/* Productkaarten */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 20px; }
.card a { display: block; text-decoration: none; }
.card .ph { aspect-ratio: 1; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 16px; mix-blend-mode: multiply; transition: transform .25s; }
.card a:hover .ph img { transform: scale(1.04); }
.ci { display: block; padding: 10px 2px 0; }
.cn { display: block; font-weight: 550; line-height: 1.35; }
.cs { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.noimg { aspect-ratio: 1; background: linear-gradient(135deg, var(--soft), #ece8e4); }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; } .card .ph img { padding: 8px; } }

/* Overzicht met filters */
.crumbs { font-size: 13.5px; color: var(--muted); margin: 22px 0 14px; }
.crumbs a { color: var(--muted); }
.lhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sort label { font-size: 14px; color: var(--muted); }
.sort select, .filters select { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-left: 6px; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 24px; }
.subcats a { text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.subcats a:hover { border-color: var(--ink); }
.subcats span { color: var(--muted); margin-left: 4px; }
.listing { display: grid; grid-template-columns: 230px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; font-size: 14.5px; padding-right: 4px; }
.fhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.fhead a { font-size: 13px; color: var(--muted); }
.filters fieldset { border: 0; border-top: 1px solid var(--line); padding: 14px 0 10px; margin: 0; }
.filters legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.filters label span { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.filters input { accent-color: var(--brand); width: 16px; height: 16px; }
.count { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.pager { display: flex; justify-content: center; gap: 22px; align-items: center; margin: 40px 0 10px; font-size: 15px; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
@media (max-width: 860px) {
  .listing { grid-template-columns: 1fr; gap: 12px; }
  .filters { position: static; max-height: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
  .fhead { grid-column: 1 / -1; }
}

/* Productpagina */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.gallery { position: sticky; top: 140px; }
.gmain { aspect-ratio: 1; background: var(--soft); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.gmain img { width: 100%; height: 100%; object-fit: contain; padding: 28px; mix-blend-mode: multiply; }
.gthumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gthumbs button { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--soft); cursor: pointer; overflow: hidden; }
.gthumbs button.on { border-color: var(--brand); }
.gthumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.pinfo h1 { font-size: clamp(26px, 3vw, 36px); }
.sku { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.desc { color: #3a3438; margin-bottom: 22px; }
.addsel { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin-bottom: 18px; }
.variants { border: 0; padding: 0; margin: 0 0 16px; }
.variants legend { font-weight: 600; margin-bottom: 8px; font-size: 14.5px; }
.vopt { display: inline-block; margin: 0 6px 8px 0; cursor: pointer; }
.vopt input { position: absolute; opacity: 0; }
.vopt span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.vopt input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); font-weight: 600; }
.vopt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, #fff); }
.qty { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qty label { font-weight: 600; font-size: 14.5px; }
.qty input { width: 90px; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.added { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 8%, #fff); font-size: 14.5px; }
.specs { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; margin: 0; font-size: 14.5px; }
.specs dt, .specs dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { color: var(--muted); padding-right: 12px; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 24px; } .gallery { position: static; } }

/* Selectie en aanvraag */
.sel-list { margin: 10px 0 30px; }
.sitem { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sitem .ph { width: 84px; height: 84px; background: var(--soft); border-radius: 10px; overflow: hidden; }
.sitem .ph img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.sitem h3 { margin: 0; font-size: 16px; }
.sitem h3 a { text-decoration: none; }
.sitem .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.sitem select, .sitem input { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; }
.sitem input[type=number] { width: 80px; }
.sitem input.note { flex: 1 1 220px; }
.sitem .rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: underline; }
@media (max-width: 560px) { .sitem { grid-template-columns: 64px 1fr; } .sitem .ph { width: 64px; height: 64px; } .sitem .rm { grid-column: 2; justify-self: start; } }
.req { background: var(--soft); border-radius: var(--radius); padding: 28px; }
.req h2 { margin-top: 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.fgrid label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid input, .fgrid textarea { font: inherit; font-weight: 400; font-size: 15px; border: 1px solid #d9d2d6; border-radius: 10px; padding: 11px 13px; background: #fff; width: 100%; }
.fgrid .bad { border-color: #b42318; background: #fff8f7; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } .req { padding: 20px 16px; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 8px; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.err { color: #b42318; min-height: 20px; font-size: 14.5px; }
.thanks { background: color-mix(in srgb, var(--brand) 7%, #fff); border-radius: var(--radius); padding: 30px; }
.thanks h2 { margin-top: 0; }

/* Voet */
.foot { margin-top: 80px; border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: 14.5px; color: var(--muted); }
.foot-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 20px; }
.foot b { color: var(--ink); }
.foot a { color: var(--muted); }
.home .foot { margin-top: 0; }

/* Filters: op de computer altijd open, op de telefoon inklapbaar */
.fwrap > summary { display: none; }
@media (max-width: 860px) {
  .fwrap > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-weight: 600; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; width: max-content; }
  .fwrap > summary::-webkit-details-marker { display: none; }
  .fwrap > summary b { background: var(--brand); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; }
  .fwrap[open] > summary { margin-bottom: 10px; }
}
@media (min-width: 861px) { .fwrap { position: sticky; top: 140px; } .fwrap .filters { position: static; } }
/* Grid-kolommen mogen smaller worden dan hun inhoud (fotorij scrollt binnen de kolom) */
.product > *, .listing > *, .hero-in > * { min-width: 0; }
