/* kool-theme.css (bestandsnaam blijft kool-filters.css om alle bestaande
 * <link>-tags in elke winkel ongewijzigd te laten werken)
 *
 * Compleet nieuw, netwerkbreed winkelontwerp — richting "Heldere
 * vergelijker" (koel petrolblauw, precies, techniek-vertrouwd) met de
 * warme oranjerode kleur uit richting "Voordeelmarkt" bewust alleen op
 * prijzen en de bestelknop, zodat het koopje-gevoel blijft zonder dat de
 * rest van de site schreeuwerig wordt. Vervangt het oude 2017-thema
 * (css/style.css, dat nu nergens meer geladen wordt) volledig: dit ene
 * bestand levert alle basisopmaak (typografie, container/grid-layout,
 * header, footer) én de eerder toegevoegde filterpaneel/productgrid-
 * onderdelen. Eén bestand op de hub, dus één plek om het ontwerp voor
 * alle ~28 winkels tegelijk aan te passen.
 */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Source+Sans+3:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
    --bg: #F2F6F7;
    --surface: #FFFFFF;
    --surface-2: #E9F1F2;
    --ink: #14202B;
    --ink-soft: #5B6E74;
    --ink-faint: #8CA0A5;
    --line: #DCE7E9;
    --line-strong: #C3D5D8;

    --accent: #0E7C86;
    --accent-strong: #0B5E66;
    --accent-wash: #E3F1F2;

    --price: #C23F1B;
    --price-strong: #A6330F;
    --price-wash: #FBEAE3;

    --success-bg: #DCFCE7;
    --success-ink: #166534;
    --error-bg: #FEE2E2;
    --error-ink: #991B1B;

    --radius-lg: 12px;
    --radius: 8px;
    --radius-sm: 6px;
    --radius-pill: 100px;

    --shadow-card: 0 1px 2px rgba(20, 32, 43, .05), 0 6px 18px rgba(20, 32, 43, .06);
    --shadow-pop: 0 4px 14px rgba(20, 32, 43, .16);

    --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- Reset & basis ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
ul { margin: 0; padding: 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1.2; }
#content h1 { font-size: 1.7rem; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
#content h2 { font-size: 1.15rem; margin: 22px 0 10px; }
#content > .container_12 > .wrapper > article p,
.kool-product-description p,
#content .p1, #content .p2 {
    color: var(--ink-soft);
    max-width: 700px;
}
.p2 { font-size: 1.02rem; margin: 0 0 8px; }
.p1 { font-size: .95rem; }

/* ---------- Layout-primitieven (vervangen het oude grid_*-systeem) ----------
 * .wrapper wordt hergebruikt op heel veel plekken puur als (voorheen)
 * clearfix-container zonder eigen opmaak — dat blijft een gewone <div>.
 * Alleen de twee specifieke combinaties die vroeger op float/breedte
 * leunden (header: grid_7 + grid_5, content: grid_cl + grid_cr) krijgen
 * hier een echte layout, gekozen op hun kind-elementen zodat de PHP-
 * templates zelf niet aangepast hoeven te worden. */
.container_12 { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.clear { clear: both; height: 0; overflow: hidden; }

.wrapper:has(> .grid_7) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
    padding: 14px 0;
}
.grid_7, .grid_5 { flex: 0 0 auto; }

.wrapper:has(> .grid_cl),
.wrapper:has(> .grid_cl_full) {
    display: grid;
    gap: 32px;
    padding: 28px 0 40px;
    align-items: start;
}
.wrapper:has(> .grid_cl) { grid-template-columns: 240px 1fr; }
.wrapper:has(> .grid_cl_full) { grid-template-columns: 1fr; }
@media (max-width: 860px) {
    .wrapper:has(> .grid_cl) { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Header ---------- */
header { background: var(--surface); border-bottom: 1px solid var(--line); }
.kool-header-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.kool-header-nav nav .menu { display: flex; gap: 22px; list-style: none; }
.kool-header-nav nav .menu a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .86rem;
    color: var(--ink-soft);
    letter-spacing: .01em;
}
.kool-header-nav nav .menu a:hover,
.kool-header-nav nav .menu a.active { color: var(--accent-strong); text-decoration: none; }

.logo a {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -.01em;
    color: var(--ink);
}
.box-levering { text-align: right; }
.box-levering .fa-truck { color: var(--accent); margin-right: 6px; }
.box-levering .text { font-size: .82rem; color: var(--ink-soft); }
.box-levering .notificatie {
    font-size: .74rem;
    color: var(--ink-faint);
}
.box-levering .notificatie a { color: var(--accent-strong); }
.aligncenter { text-align: right; margin-top: 2px; }

/* Knoppen: "andere webwinkels" + uitgelichte gerelateerde winkels */
.button-webshops {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .78rem;
    color: var(--accent-strong);
    background: var(--accent-wash);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    white-space: nowrap;
}
.button-webshops:hover { background: var(--accent); color: #fff; text-decoration: none; }
.kool-header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kool-featured-shops { display: flex; flex-wrap: wrap; gap: 8px; }
.kool-featured-shop-link { float: none !important; margin: 0 !important; white-space: nowrap; }

.kool-othershops { position: relative; float: none; }
.kool-othershops-toggle { float: none !important; margin: 0 !important; }
.kool-othershops-arrow { font-size: 10px; }
.kool-othershops-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 30;
    margin: 4px 0 0;
    padding: 6px 0;
    min-width: 220px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-pop);
}
.kool-othershops-list::before { content: ''; position: absolute; top: -4px; left: 0; right: 0; height: 4px; }
.kool-othershops:hover .kool-othershops-list,
.kool-othershops:focus-within .kool-othershops-list,
.kool-othershops.kool-open .kool-othershops-list { display: block; }
.kool-othershops-list li { margin: 0; padding: 0; }
.kool-othershops-list a {
    display: block;
    padding: 7px 16px;
    font-size: .82rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.kool-othershops-list a:hover { background: var(--accent-wash); color: var(--accent-strong); }

/* ---------- Sidebar (filterpaneel) ---------- */
.box-sidebar-first-top,
.box-sidebar-first-bot {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.box-sidebar-first-top { padding: 14px 16px 4px; margin-bottom: 12px; }
.h-sidebar {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
}
.list-sidebar { list-style: none; }

#kool-filters { padding: 10px 12px 6px; }
.kool-filter-group { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.kool-filter-group:last-of-type { border-bottom: none; margin-bottom: 6px; }

.h-sidebar-small {
    font-family: var(--font-display);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-soft);
    margin: 0 0 10px;
    font-weight: 700;
}

.kool-checkbox-list { list-style: none; margin: 0; padding: 0; }
.kool-checkbox-list li { border-top: 1px solid var(--line); }
.kool-checkbox-list li:first-child { border-top: none; }
.kool-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 6px 2px;
    font-size: .87rem;
    color: var(--ink);
    cursor: pointer;
}
.kool-checkbox-list label:hover { color: var(--accent-strong); }
.kool-checkbox-list input[type=checkbox] {
    width: 15px; height: 15px; margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.kool-filters-reset {
    display: block;
    margin-bottom: 12px;
    font-size: .76rem;
    color: var(--ink-faint);
    text-decoration: none;
}
.kool-filters-reset:hover { color: var(--accent-strong); text-decoration: underline; }
.kool-filters-reset[hidden] { display: none; }

/* Prijsschuifbalk: twee overlappende range-inputs op één track */
.kool-price-labels {
    display: flex;
    justify-content: space-between;
    font: 700 .92rem/1.3 var(--font-mono);
    color: var(--price);
    margin-bottom: 10px;
}
.kool-price-track { position: relative; height: 28px; }
.kool-price-track::before {
    content: '';
    position: absolute; top: 50%; left: 0; right: 0;
    height: 4px; margin-top: -2px;
    background: var(--line-strong);
    border-radius: 2px;
}
.kool-price-track input[type=range] {
    position: absolute; top: 0; left: 0; width: 100%; margin: 0; height: 28px;
    background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none;
}
.kool-price-track input[type=range]::-webkit-slider-runnable-track { -webkit-appearance: none; background: transparent; }
.kool-price-track input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent); cursor: pointer; margin-top: 6px;
    border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(20,32,43,.25);
}
.kool-price-track input[type=range]::-moz-range-track { background: transparent; border: none; }
.kool-price-track input[type=range]::-moz-range-thumb {
    pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent); cursor: pointer; border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(20,32,43,.25);
}

.kool-banner {
    margin-top: 14px; padding: 5px; text-align: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.kool-banner img { display: inline-block; max-width: 100%; border-radius: 4px; }
.kool-banner-footer { margin: 24px auto; max-width: 960px; }

/* ---------- Productgrid ---------- */
#kool-product-grid[aria-busy="true"] { opacity: .5; transition: opacity .15s; }

.kool-grid-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: .82rem; color: var(--ink-soft);
}
.kool-grid-sort select {
    margin-left: 6px; padding: 5px 8px; font-size: .82rem; font-family: var(--font-body);
    color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--surface);
}

.kool-pagination {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); clear: both;
}
.kool-page-status { font-size: .82rem; color: var(--ink-soft); font-family: var(--font-mono); }
.kool-page-btn {
    padding: 7px 14px; font: 600 .82rem/1.2 var(--font-display);
    color: var(--ink); background: var(--surface);
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer;
}
.kool-page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); }
.kool-page-btn:disabled { opacity: .4; cursor: default; }

/* Grid van kaarten i.p.v. het oude float-systeem */
.kool-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.kool-grid-items .grid_product { width: auto; }
.kool-grid-items .box-product {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: border-color .15s, box-shadow .15s;
}
.kool-grid-items .box-product:hover { border-color: var(--line-strong); box-shadow: 0 2px 4px rgba(20,32,43,.06), 0 10px 22px rgba(20,32,43,.09); }

.kool-grid-items .kool-card-title { text-align: center; margin-bottom: 10px; }
.kool-grid-items .kool-card-title .h-product,
.h-product { margin: 0; font-family: var(--font-body); font-size: .84rem; font-weight: 600; }
.kool-grid-items .kool-card-title .h-product a,
.h-product a { color: var(--ink); }
.kool-grid-items .maxheight { min-height: 2.5em; display: flex; align-items: center; justify-content: center; }

.kool-grid-items .kool-card-divider { border-top: 1px solid var(--line); margin: 0 0 10px; }

.kool-grid-items figure.img-product-float {
    height: 190px; width: 100%; margin: 0 0 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: var(--surface-2); border-radius: var(--radius-sm);
}
.kool-grid-items figure.img-product-float a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.kool-grid-items .img-product-style { width: auto; height: auto; max-width: 88%; max-height: 88%; }

.kool-grid-items .kool-card-footer { text-align: center; margin-top: auto; }
.prijs, .kool-grid-items .kool-card-price {
    display: block; float: none; text-align: center;
    font-family: var(--font-mono); font-weight: 700; font-size: 1.25rem;
    color: var(--price); margin: 2px 0 10px;
}
.button-product, .kool-grid-items .kool-card-button {
    display: block; float: none; width: 100%; box-sizing: border-box; text-align: center;
    padding: 9px 0; font-family: var(--font-display); font-weight: 600; font-size: .82rem;
    color: #fff; background: var(--price); border-radius: var(--radius-sm);
}
.button-product:hover, .kool-grid-items .kool-card-button:hover { background: var(--price-strong); text-decoration: none; }

/* ---------- Productpagina ---------- */
.kool-product-title { text-align: left; margin-top: 10px; }
.kool-product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 26px;
}
.kool-product-top { display: flex; flex-wrap: wrap; gap: 32px; }
.kool-product-image {
    flex: 0 0 300px; height: 280px; display: flex; align-items: center; justify-content: center;
    background: var(--surface-2); border-radius: var(--radius);
}
.kool-product-image img { width: auto; height: auto; max-width: 88%; max-height: 88%; }
.kool-product-buybox { flex: 1 1 300px; display: flex; flex-direction: column; }
.kool-product-price {
    font-family: var(--font-mono); font-weight: 700; font-size: 2rem;
    color: var(--price); text-align: center; margin-bottom: 16px;
}
.button-bestel, .kool-product-cta {
    display: block; float: none; width: 100%; box-sizing: border-box; text-align: center;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    color: #fff; background: var(--price); border: none; border-radius: var(--radius-sm);
    padding: 13px 0; margin: 0 0 20px; cursor: pointer;
}
.button-bestel:hover, .kool-product-cta:hover { background: var(--price-strong); text-decoration: none; }

.kool-product-bullets { list-style: disc; margin: 0 0 18px; padding-left: 20px; font-size: .87rem; line-height: 1.6; color: var(--ink-soft); }
.kool-product-bullets li { margin-bottom: 6px; }

.kool-product-description { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.kool-product-description h2 { font-size: 1.05rem; margin-bottom: 12px; }
.kool-product-description p { font-size: .9rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 14px; max-width: none; }
.kool-product-description p:last-child { margin-bottom: 0; }

/* ---------- Volledige-breedte pagina's (contact/disclaimer/privacy/sitemap) ---------- */
.grid_cl_full > .wrapper {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 30px 34px;
    max-width: 760px;
}
.list-sitemap { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 6px; }
.list-sitemap li { font-size: .9rem; }
.list-sitemap a { color: var(--accent-strong); }

/* ---------- Contactformulier ---------- */
.kool-contact-form { max-width: 480px; margin-top: 20px; display: flex; flex-direction: column; }
.kool-contact-form label { font-family: var(--font-display); font-weight: 600; font-size: .84rem; margin: 14px 0 5px; color: var(--ink); }
.kool-contact-form input[type="text"],
.kool-contact-form input[type="email"],
.kool-contact-form textarea {
    width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    font-size: .9rem; font-family: inherit; color: var(--ink); background: var(--surface); box-sizing: border-box;
}
.kool-contact-form input:focus, .kool-contact-form textarea:focus { border-color: var(--accent); }
.kool-contact-form textarea { resize: vertical; }
.kool-contact-submit { margin-top: 18px; align-self: flex-start; border: none; cursor: pointer; padding: 11px 28px; width: auto; }
.kool-contact-honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kool-contact-success { background: var(--success-bg); color: var(--success-ink); padding: 14px 18px; border-radius: var(--radius-sm); margin-top: 16px; }
.kool-contact-error { background: var(--error-bg); color: var(--error-ink); padding: 12px 18px; border-radius: var(--radius-sm); margin-top: 16px; }
.kool-contact-error ul { margin: 0; padding-left: 20px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #C7D6D9; margin-top: 40px; }
footer .container_12 { padding-top: 22px; padding-bottom: 22px; }
.footer-text-left, .footer-text-right { font-size: .78rem; margin: 0 0 4px; color: #A9BCC0; }
.footer-text-left a { color: #E3F1F2; }
.footer-text-left span { margin-left: 8px; color: #7C9296; }
.footer-text-right a { color: #E3F1F2; }

@media (max-width: 640px) {
    .container_12 { padding: 0 16px; }
    .kool-product-top { flex-direction: column; }
    .kool-product-image { flex-basis: auto; width: 100%; }
    .grid_cl_full > .wrapper { padding: 22px 20px; }
}
