/* Elayne compare: shopping layout. Per-site --accent/--deal set inline. */
:root {
    --ink: #14171a;
    --ink-soft: #454c53;
    --muted: #6c757d;
    --bg: #f4f5f7;
    --surface: #fff;
    --line: #e2e5e9;
    --link: var(--accent-ink);
    --soft: var(--accent-soft);
    --field: #fff;
    --offer-best: #f6fbf8;
    --spec-head: #fafbfc;
    --draft-bg: #fff4d6;
    --draft-line: #f0d58a;
    color-scheme: light dark;
    --radius: 12px;
    --wrap: 82rem;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 .4rem; }
h2 { font-size: 1.35rem; margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: .5rem 1rem; z-index: 20; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo-icon { width: 30px; height: 30px; fill: var(--accent); }
.search { flex: 1; display: flex; max-width: 40rem; }
.search input { flex: 1; min-width: 0; font: inherit; padding: .6rem .9rem; border: 2px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: var(--bg); }
.search input:focus { outline: none; border-color: var(--accent); background: var(--field); }
.search button { border: 0; background: var(--accent); color: #fff; padding: 0 1.1rem; border-radius: 0 999px 999px 0; cursor: pointer; }
.search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.catbar { border-top: 1px solid var(--line); }
.catbar-inner { display: flex; gap: 1.4rem; overflow-x: auto; }
.catbar a { padding: .55rem 0; font-weight: 600; font-size: .95rem; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.catbar a:hover { color: var(--accent); }

/* Hero + blocks */
.hero { background: linear-gradient(180deg, var(--soft), var(--bg)); }
.hero-inner { padding-top: 2.6rem; padding-bottom: 2.2rem; }
.hero h1 { max-width: 34rem; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 40rem; }
.block { padding-top: 1.4rem; padding-bottom: 1.4rem; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.block-head a { font-weight: 600; font-size: .95rem; }
.btn { display: inline-block; text-align: center; background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 999px; padding: .5rem 1.1rem; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--link); }
.btn-ghost:hover { background: var(--soft); color: var(--link); }
.btn-lg { padding: .75rem 1.5rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

.size-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .75rem; }
.size-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.size-tile:hover { border-color: var(--accent); }
.size { font-size: 1.7rem; font-weight: 800; }
.size-meta { font-size: .85rem; color: var(--muted); }

/* Product grid + card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1rem; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .15s, border-color .15s; }
.pcard:hover { border-color: transparent; box-shadow: 0 6px 22px rgba(20, 23, 26, .12); }
.pcard-link { display: flex; flex-direction: column; height: 100%; padding: .9rem; color: var(--ink); text-decoration: none; }
.pcard-img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #fff; margin-bottom: .7rem; }
.pcard-img img { max-height: 100%; object-fit: contain; }
.placeholder { width: 70%; fill: none; stroke: #c3c9cf; stroke-width: 3; }
.badge { display: inline-block; font-size: .8rem; font-weight: 800; padding: .15rem .5rem; border-radius: 6px; }
.badge-deal { background: var(--deal); color: #fff; }
.pcard-img .badge { position: absolute; top: 0; left: 0; }
.pcard-title { font-size: .98rem; font-weight: 600; margin: 0 0 .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-specs { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.pcard-specs li { font-size: .78rem; background: var(--bg); border-radius: 5px; padding: .1rem .45rem; color: var(--ink-soft); }
.pcard-price { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; }
.price { font-size: 1.3rem; font-weight: 800; }
.was { color: var(--muted); font-size: .9rem; }
.pcard-shops { margin: .1rem 0 0; font-size: .85rem; color: var(--muted); }

/* Listing */
.crumbs { font-size: .85rem; color: var(--muted); padding: 1rem 0 .2rem; }
.crumbs a { color: var(--muted); }
.listing-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.listing { display: grid; grid-template-columns: 15.5rem 1fr; gap: 1.5rem; align-items: start; padding-bottom: 2rem; }
.filter-toggle { display: none; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1rem 1rem; position: sticky; top: 7.5rem; max-height: calc(100vh - 8.5rem); overflow-y: auto; }
.facet { border: 0; border-bottom: 1px solid var(--line); padding: .8rem 0; margin: 0; }
.facet legend { font-weight: 700; padding: 0; margin-bottom: .4rem; float: left; width: 100%; }
.opt { display: flex; align-items: center; gap: .5rem; padding: .18rem 0; cursor: pointer; font-size: .95rem; clear: both; }
.opt input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.opt .count { margin-left: auto; color: var(--muted); font-size: .8rem; }
.opt-empty { color: #adb5bd; }
.price-range { display: flex; align-items: center; gap: .4rem; clear: both; }
.price-range input { width: 100%; font: inherit; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 8px; }
.apply { width: 100%; margin-top: 1rem; }
.js .apply { display: none; }
.reset { display: block; text-align: center; margin-top: .7rem; font-size: .9rem; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { background: var(--soft); color: var(--link); border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; font-weight: 600; }
.sort { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.sort select { font: inherit; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); }
.empty { background: var(--surface); padding: 2rem; border-radius: var(--radius); text-align: center; }
.pagination { display: flex; gap: .3rem; justify-content: center; margin: 2rem 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .4rem .8rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .disabled { color: #adb5bd; }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: .5rem; }
.gallery-main { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: .5rem; margin-top: .8rem; overflow-x: auto; }
.thumbs button { width: 4.5rem; height: 3.4rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: .2rem; cursor: pointer; flex: none; }
.thumbs button[aria-current] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.brand { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0 0 .2rem; }
.keyspecs { list-style: none; padding: 0; margin: .6rem 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.keyspecs li { background: var(--bg); border-radius: 6px; padding: .2rem .6rem; font-size: .9rem; }
.best { border: 2px solid var(--soft); background: linear-gradient(180deg, var(--soft), var(--surface) 70%); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.best-label { margin: 0; font-weight: 600; color: var(--ink-soft); }
.best-price { font-size: 2.2rem; font-weight: 800; margin: .1rem 0; display: flex; align-items: center; gap: .6rem; }
.best .btn-block { margin: .9rem 0 .6rem; }
.offers { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.offer { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr auto; gap: 1rem; align-items: center; padding: .9rem 1.1rem; border-top: 1px solid var(--line); }
.offer:first-child { border-top: 0; }
.offer-best { background: var(--offer-best); }
.offer-best .offer-shop::after { content: "Laagste prijs"; line-height: 1.4; font-size: .72rem; font-weight: 800; color: #fff; background: var(--deal); border-radius: 5px; padding: .1rem .4rem; vertical-align: 2px; white-space: nowrap; }
.offer-shop { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; } /* chip moves under the name instead of splitting it */
.offer-delivery { color: var(--ink-soft); font-size: .92rem; }
.offer-price { font-weight: 800; font-size: 1.15rem; display: flex; flex-direction: column; }
.offer-price small { font-weight: 400; font-size: .78rem; color: var(--muted); }
.offer-out { opacity: .55; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.chart svg { width: 100%; height: 170px; display: block; }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: .6rem 1rem; border-top: 1px solid var(--line); }
.specs tr:first-child th, .specs tr:first-child td { border-top: 0; }
.specs th { width: 40%; font-weight: 600; color: var(--ink-soft); background: var(--spec-head); }
/* Long Dutch labels (Verversingssnelheid) must wrap instead of pushing the table past 360px. */
.specs { table-layout: fixed; }
.specs th, .specs td { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 26rem) { .specs th, .specs td { padding: .55rem .7rem; } }

.prose { max-width: 46rem; }
/* Buying guides */
.guide h2 { margin-top: 1.8rem; }
.guide table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.guide th, .guide td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.guide-date { color: var(--ink-soft); font-size: .9rem; margin-top: -.4rem; }
.guide-cta { margin-top: 2rem; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .8rem; }
.guide-list a { display: block; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; }
.guide-list a:hover { border-color: var(--accent); }
.guide-list strong { display: block; color: var(--link); margin-bottom: .25rem; }
.guide-list span { color: var(--ink-soft); font-size: .93rem; }
.draft { background: var(--draft-bg); border: 1px solid var(--draft-line); padding: .6rem 1rem; border-radius: 8px; }

/* Footer */
.footer { background: #14171a; color: #c1c7cd; margin-top: 2.5rem; font-size: .92rem; }
.footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 2rem; padding-top: 2rem; padding-bottom: 2rem; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: .3rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.fineprint { grid-column: 1 / -1; margin: 0; font-size: .83rem; }

@media (max-width: 860px) {
    .topbar-inner { flex-wrap: wrap; gap: .6rem; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .listing { grid-template-columns: 1fr; }
    .filter-toggle { display: inline-block; justify-self: start; }
    .filters { display: none; position: static; max-height: none; }
    .filters.open { display: block; }
    .js .apply { display: block; }
    .pdp { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
    .offer { grid-template-columns: 1fr auto; }
    .offer-delivery { grid-column: 1; grid-row: 2; }
    .offer-price { grid-column: 2; grid-row: 1; text-align: right; }
    .offer .btn { grid-column: 2; grid-row: 2; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .pcard-link { padding: .6rem; }
    .price { font-size: 1.1rem; }
}

/* Seasonal deals (pakjesavond, kerst): banner on every page, hero on /deals. Own pictograms. */
:root { --season: #b4232c; --season-soft: #fdeceb; --season-ink: #8e1b22; }
.season-kerst { --season: #1f6b45; --season-soft: #e7f3ec; --season-ink: #17533a; }
.season-banner { background: var(--season-soft); border-bottom: 1px solid color-mix(in srgb, var(--season) 25%, transparent); }
.season-inner { display: flex; align-items: center; gap: .9rem; padding-top: .7rem; padding-bottom: .7rem; }
.season-inner p { margin: 0; flex: 1; color: var(--ink); }
.season-inner strong { color: var(--season-ink); }
.season-inner .btn { background: transparent; color: var(--season-ink); border-color: var(--season-ink); white-space: nowrap; }
.season-inner .btn:hover { background: var(--season-ink); border-color: var(--season-ink); color: var(--surface); }
.season-icon { width: 2.4rem; height: 2.4rem; flex: none; color: var(--season); background: var(--surface); border-radius: 10px; padding: .3rem; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--season) 30%, transparent); }
.deals-hero.season-pakjesavond, .deals-hero.season-kerst { background: linear-gradient(180deg, var(--season-soft), var(--bg)); }
.deals-hero-inner { display: flex; align-items: flex-start; gap: 1.1rem; }
.deals-hero .season-icon { width: 3.6rem; height: 3.6rem; padding: .45rem; border-radius: 14px; }
.deals-block .block-head h2 { color: var(--ink); }
.was-avg { color: var(--muted); font-size: .85rem; }
.deals-how { margin-top: 2.2rem; max-width: 46rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.deals-how h2 { font-size: 1.15rem; }
@media (max-width: 40rem) {
    .season-inner { flex-wrap: wrap; gap: .6rem .8rem; }
    .season-inner p { flex-basis: calc(100% - 3.4rem); font-size: .95rem; }
    .season-inner .btn { margin-left: 3.2rem; padding: .4rem 1rem; font-size: .9rem; }
    .deals-hero .season-icon { width: 2.8rem; height: 2.8rem; }
}

/* Dark mode (design rule 8): same roles, own steps. The per-site accent stays; links, soft fills and fields switch. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ink: #e9ecef; --ink-soft: #c3c9cf; --muted: #9aa3ab; --bg: #121518; --surface: #1b1f23; --line: #2e343a;
        --link: color-mix(in srgb, var(--accent) 45%, #fff);
        --soft: color-mix(in srgb, var(--accent) 22%, #121518);
        --field: #22272c; --offer-best: #17251e; --spec-head: #20252a; --draft-bg: #3a3214; --draft-line: #6b5a1c;
        --season: #e0565e; --season-soft: #2c1a1c; --season-ink: #ffb3b7;
    }
    :root:not([data-theme="light"]) .season-kerst { --season: #4fae7c; --season-soft: #15281e; --season-ink: #a8e2c3; }
    :root:not([data-theme="light"]) .btn { color: #fff; }
    :root:not([data-theme="light"]) .season-inner .btn { color: var(--season-ink); }
    :root:not([data-theme="light"]) .season-inner .btn:hover { color: var(--bg); }
}
/* Deal cards: price and "gemiddeld" each stay on one line. */
.pcard-price { flex-wrap: wrap; row-gap: 0; }
.pcard-price .price, .was-avg, .was { white-space: nowrap; }
.was-avg { flex-basis: 100%; }
/* Long tile values ("Handmatig", "Elektrisch") must fit two columns at 360. */
.size { font-size: clamp(1.2rem, 5.5vw, 1.7rem); }
.badge-avg { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.badge-avg { white-space: nowrap; }
@media (max-width: 26rem) { .pcard-img .badge-avg { font-size: .7rem; padding: .1rem .35rem; } }
.keyspecs li { display: inline-flex; align-items: center; gap: .35rem; }
.keyspecs .spec-icon { width: 1.15rem; height: 1.15rem; }
/* Photo credit stays readable over light parts of the hero photo. */
.hero-credit { margin: 0; padding: .1rem .45rem; border-radius: 4px; background: rgb(0 0 0 / .55); }
/* Narrow screens: a long credit wraps, so keep room for it below the hero button. */
@media (max-width: 40rem) { .hero.hero--photo .hero-inner { padding-bottom: 4.25rem; } .hero.hero--photo .hero-credit { left: 12px; } }

/* Tiles with words (Elektrisch, Duowagen) instead of sizes: smaller type, never split a word. */
.size-tiles--text { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.size-tiles--text .size { font-size: 1.35rem; overflow-wrap: normal; word-break: normal; line-height: 1.2; }
@media (max-width: 26rem) { .size-tiles--text { grid-template-columns: repeat(2, minmax(0, 1fr)); } .size-tiles--text .size { font-size: 1.1rem; } }
.nowrap { white-space: nowrap; }
