/* =========================================================
   Qlimatix — Product category / archive chrome
   Self-contained: tokens + pill button + all category-page
   chrome. The below-grid editorial body is styled by adv.css
   (the Adviescentrum blocks); this file does NOT restyle it.
   Ported from the "Luchtontvochtiger Badkamer" prototype.
   ========================================================= */

:root {
  --navy: #01273f;
  --navy-2: #052e4a;
  --navy-darker: #001a2b;
  --orange: #e77935;
  --orange-hover: #d96b27;
  --light-blue: #cfdae6;
  --light-blue-2: #dfe6ef;
  --text: #0e2a3f;
  --muted: #5e6f7c;
  --muted-2: #6f7e8c;
  --border: #e7eaee;
  --border-soft: #eef1f4;
  --star: #f5b400;
}

.cat-page { font-family: 'Onest', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); }
.cat-page a { text-decoration: none; color: inherit; }
.cat-page img { max-width: 100%; }

/* ---------- Base reset (ported from the prototype's homepage.css) ----------
   The live theme has no site-wide reset, so each page stylesheet carries its
   own. Scoped to the .cat-page wrapper so the shared header/footer keep their
   current box model. Fixes three regressions vs. the prototype:
   - box-sizing: border-box -> top-3 cards (flex-basis + padding + border) stop
     overflowing, so all three fit on one row again.
   - bare-button reset      -> "Lees meer" (and the reset/clear buttons) lose the
     native browser border + padding that showed up as a box.
   - solid-CTA text colour  -> `.cat-page a { color: inherit }` above would
     otherwise out-specify `.btn-pill`/`.pcard__cart` and render dark text. */
.cat-page *, .cat-page *::before, .cat-page *::after { box-sizing: border-box; }
.cat-hero__toggle, .pgrid__reset, .cmpbar__clear { -webkit-appearance: none; appearance: none; border: 0; padding: 0; }
.cat-page a.btn-pill, .cat-page a.pcard__cart, .cat-page a.cat-hero__khbtn { color: #fff; }

/* ---------- Pill button (shared component) ---------- */
.btn-pill { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 4px 28px 4px 4px; background: var(--orange); color: #fff; border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: 0.005em; box-shadow: 0 8px 18px -8px rgba(231,121,53,0.55); transition: background .15s, transform .15s; }
.btn-pill:hover { background: var(--orange-hover); }
.btn-pill__arrow { width: 48px; height: 48px; border-radius: 999px; background: #fff; display: grid; place-items: center; color: var(--text); flex-shrink: 0; }
.btn-pill__arrow svg { display: block; }
.btn-pill--lg { height: 60px; padding: 4px 32px 4px 4px; font-size: 15px; }
.btn-pill--lg .btn-pill__arrow { width: 52px; height: 52px; }
.btn-pill--sm { height: 42px; padding: 4px 22px 4px 4px; font-size: 13px; }
.btn-pill--sm .btn-pill__arrow { width: 36px; height: 36px; }

/* ============ CATEGORY HERO ============ */
.cat-hero { padding: 26px 0 40px; }
.cat-crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 26px; flex-wrap: wrap; }
.cat-crumb a { color: var(--muted); transition: color .15s; }
.cat-crumb a:hover { color: var(--text); }
.cat-crumb__sep { color: #c2ccd4; }
.cat-crumb__cur { color: var(--text); }
.cat-hero__grid { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.cat-hero__grid--solo { grid-template-columns: 1fr; }
.cat-hero__title { font-size: 52px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 600; color: var(--navy); margin: 0 0 20px; }
/* Intro + the "Lees meer" extra text share one type style so the expanded copy
   reads identically to the intro (same size, muted colour, line-height, width). */
.cat-hero__intro,
.cat-hero__more { color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 620px; }
.cat-hero__intro p,
.cat-hero__more p { margin: 0 0 12px; }
.cat-hero__intro p:last-child,
.cat-hero__more p:last-child { margin-bottom: 0; }
.cat-hero__more { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.cat-hero.is-open .cat-hero__more { max-height: 420px; }
.cat-hero__more p:first-child { margin-top: 14px; }
.cat-hero__toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--navy); background: none; cursor: pointer; }
.cat-hero__toggle svg { transition: transform .3s; }
.cat-hero.is-open .cat-hero__toggle svg { transform: rotate(180deg); }
.cat-hero__aside { background: var(--light-blue-2); border-radius: 22px; padding: 30px 30px 32px; }
.cat-hero__aside h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; color: var(--navy); margin: 0 0 8px; }
.cat-hero__aside p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 20px; }

/* Mobile keuzehulp: an orange pill integrated into the hero that replaces the
   desktop aside card ≤980px (the aside is hidden + this is shown — see RESPONSIVE).
   Hidden on desktop. */
.cat-hero__khbtn { display: none; }

/* ============ SHOP LAYOUT ============ */
.shop { padding: 8px 0 40px; }
/* Keuzehulp landing (no below-grid sections): clear the footer's floating news
   band (translateY(-150px)) so it never overlaps the product grid. */
.cat-page--kh .shop { padding-bottom: 200px; }
@media (max-width: 700px) { .cat-page--kh .shop { padding-bottom: 170px; } }
/* Normal category page (kennisbank/merken footer sections present): clear the
   same floating news band (translateY(-150px)) so it can't overlap the last
   section's cards. The --kh landing already clears it on .shop above. */
.cat-page:not(.cat-page--kh) { padding-bottom: 160px; }
.shop__grid { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 40px; align-items: start; }
.shop__main--full { grid-column: 1 / -1; }

/* Filter sidebar */
.filters__head { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: var(--navy); padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.fgroup { border-bottom: 1px solid var(--border-soft); }
.fgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; font-size: 15px; font-weight: 600; color: var(--text); }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary svg { color: var(--muted-2); transition: transform .25s; flex-shrink: 0; }
.fgroup[open] > summary svg { transform: rotate(180deg); }
.fgroup__body { padding: 0 2px 18px; display: flex; flex-direction: column; gap: 11px; }
.fopt { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--muted); cursor: pointer; }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt__box { width: 19px; height: 19px; border-radius: 5px; border: 1.5px solid #c4ced8; flex-shrink: 0; display: grid; place-items: center; color: #fff; transition: background .15s, border-color .15s; }
.fopt__box svg { opacity: 0; }
.fopt input:checked + .fopt__box { background: var(--navy); border-color: var(--navy); }
.fopt input:checked + .fopt__box svg { opacity: 1; }
.fopt:hover { color: var(--text); }

/* Facet controls: toggles + stepped sliders (assets/facet-controls.js drives the
   hidden checkbox backbone; these are the visible controls). */
.fgroup__backbone { display: none; }

/* Boolean toggle — a flat switch row (no collapse, no "alleen met" wording) */
.fgroup--toggle { padding: 0 2px; }
.ftoggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; color: var(--text); padding: 14px 0; -webkit-user-select: none; user-select: none; }
.ftoggle__label { font-weight: 600; font-size: 15px; }
.ftoggle__switch { position: relative; flex-shrink: 0; width: 40px; height: 23px; border-radius: 999px; background: #cfd8e0; transition: background .18s ease; }
.ftoggle__knob { position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(1,39,63,.25); transition: transform .18s ease; }
.ftoggle.is-on .ftoggle__switch { background: var(--navy); }
.ftoggle.is-on .ftoggle__knob { transform: translateX(17px); }
.ftoggle:focus-visible { outline: none; }
.ftoggle:focus-visible .ftoggle__switch { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Stepped slider (range / kamergrootte / minimaal X) */
.fslider { padding: 4px 4px 2px; }
.fslider__readout { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 15px; }
.fslider__track { position: relative; height: 4px; border-radius: 999px; background: rgba(1,39,63,.12); margin: 0 9px; touch-action: none; }
.fslider__fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 999px; background: var(--navy); }
.fslider__thumb { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); box-shadow: 0 1px 4px rgba(1,39,63,.25); transform: translate(-50%, -50%); cursor: grab; padding: 0; touch-action: none; -webkit-appearance: none; appearance: none; }
.fslider__thumb:hover, .fslider__thumb.is-drag { border-color: var(--orange); }
.fslider__thumb.is-drag { cursor: grabbing; }
.fslider__thumb:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fslider__scale { display: flex; justify-content: space-between; margin-top: 9px; }
.fslider__tick { font-size: 10.5px; color: var(--muted-2); }
.fslider__tick:not(:first-child):not(:last-child) { display: none; } /* endpoints only; the readout shows the current pick */
.fslider__tick:last-child { text-align: right; }

/* Toolbar */
.shop__toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.shop__count { font-size: 14px; color: var(--muted); }
.shop__count b { color: var(--text); font-weight: 600; }
.shop__sort { display: flex; align-items: center; gap: 10px; }
.shop__sort label { font-size: 14px; color: var(--muted); }
.shop__sort select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--text); background: #fff; border: 1.5px solid var(--border); border-radius: 999px; padding: 11px 42px 11px 18px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6f7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 15px; }
.shop__sort select:focus { outline: none; border-color: var(--navy); }

/* Secondary nav (chips) */
.subnav { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.subnav__label { font-size: 14px; color: var(--muted); flex-shrink: 0; }
.subnav__track { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; flex: 1; }
.subnav__track::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--navy); background: #f6f9fb; }
.chip svg { flex-shrink: 0; }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Top-3 band */
.toppicks { position: relative; overflow: hidden; background: var(--light-blue-2); border: 1px solid var(--light-blue); border-radius: 22px; padding: 27px 28px 32px; margin-bottom: 30px; }
.toppicks::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--orange); }
.toppicks__head { margin: 2px 2px 26px; }
.toppicks__eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--orange); margin-bottom: 9px; }
.toppicks__eyebrow svg { width: 15px; height: 15px; color: var(--orange); }
.toppicks__title { display: block; font-size: 25px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; line-height: 1.15; }
.toppicks__sub { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.toppicks__sub b { color: var(--navy); font-weight: 700; }
.toppicks__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.toppicks__grid .pcard { flex: 0 1 calc((100% - 44px) / 3); min-width: 220px; background: #fff; }
.toppicks--compact { padding: 18px 20px 28px; margin-bottom: 22px; }
.toppicks--compact::before { height: 2px; opacity: .55; }
.toppicks--compact .toppicks__head { margin: 0 2px 18px; }
.toppicks--compact .toppicks__title { font-size: 19px; }
.toppicks--compact .toppicks__sub { font-size: 13px; margin-top: 5px; }
.toppicks--compact .toppicks__grid { gap: 16px; }

/* Product grid + card */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pcard { position: relative; background: #fff; border: 1px solid var(--border-soft); border-radius: 18px; padding: 16px 16px 18px; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .2s; }
.pcard.is-hidden { display: none; }
.pcard:hover { box-shadow: 0 24px 40px -28px rgba(8,38,65,0.28); border-color: #e0e6ed; transform: translateY(-2px); }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; min-height: 26px; }
.pcard__ship { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #2f8a55; background: #e7f4ec; padding: 5px 11px 5px 9px; border-radius: 999px; }
/* Out of stock / backorder: amber pill instead of the in-stock green. */
.pcard__ship:has(.qx-ship-txt--out) { color: #b5641f; background: #fcefe0; }
.pcard__ship svg { flex-shrink: 0; }
.pcard__sale { display: inline-flex; align-items: center; gap: 5px; background: #e8473b; color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.pcard__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; height: 28px; padding: 0 15px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; color: #fff; z-index: 5; box-shadow: 0 9px 20px -9px rgba(8,38,65,.55); }
.pcard__badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.pcard__badge--price { background: var(--navy); }
.pcard__badge--rec { background: var(--orange); box-shadow: 0 10px 22px -8px rgba(231,121,53,.6); }
.pcard__badge--premium { background: var(--star); color: #fff; }
.pcard--featured { border-color: var(--orange); box-shadow: 0 0 0 1.5px var(--orange), 0 18px 34px -26px rgba(231,121,53,.45); }
.pcard--featured:hover { border-color: var(--orange); box-shadow: 0 0 0 1.5px var(--orange), 0 24px 40px -28px rgba(8,38,65,0.28); }
.pcard__media { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 14px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border-soft); }
.pcard__media img { max-height: 100%; max-width: 78%; object-fit: contain; }
.pcard__rating { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pcard__rating--empty { visibility: hidden; } /* 0 reviews: hide the stars but keep the space so card titles/prices stay aligned (matches home.css) */
.pcard__stars { display: flex; gap: 1px; color: var(--star); }
.pcard__stars--muted { color: #d6dde3; }
.pcard__rcount { font-size: 12px; color: var(--muted); }
.pcard__name { font-size: 16.5px; font-weight: 600; color: var(--navy); line-height: 1.3; letter-spacing: -0.01em; margin: 8px 0 10px; min-height: 43px; }
.pcard__name a { color: inherit; }
.pcard__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pcard__old { font-size: 14px; color: #9aa6b0; text-decoration: line-through; }
.pcard__now { font-size: 23px; font-weight: 700; color: var(--navy); letter-spacing: -0.015em; }
.pcard__specs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pcard__specs li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.pcard__specs li::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--orange); flex-shrink: 0; margin-top: 7px; }
.pcard__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.pcard__cart { width: 100%; height: 48px; background: var(--orange); color: #fff; border-radius: 11px; font-size: 14.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: background .15s; }
.pcard__cart:hover { background: var(--orange-hover); }
.pcard__compare { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--muted); cursor: pointer; transition: color .15s; }
.pcard__compare:hover { color: var(--navy); }
.pcard__compare.is-active { color: var(--orange); font-weight: 600; }
.pcard__compare.is-active svg { color: var(--orange); }

/* Guide card (in grid) */
.guide-card { border-radius: 18px; padding: 26px 24px 24px; background: var(--navy); color: #fff; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--navy); box-sizing: border-box; overflow: hidden; }
.guide-card.is-hidden { display: none; }
.guide-card__tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,0.14); padding: 5px 11px; border-radius: 999px; }
.guide-card__title { margin: 0; font-size: 23px; font-weight: 600; color: #fff; line-height: 1.15; letter-spacing: -0.01em; }
.guide-card__body { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.55; }
.guide-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guide-card__list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.92); }
.guide-card__list svg { color: var(--orange); flex-shrink: 0; }
.guide-card__cta { margin-top: auto; width: 100%; height: 48px; background: var(--orange); color: #fff; border-radius: 11px; font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: background .15s; }
.guide-card__cta:hover { background: var(--orange-hover); }
/* When the card spans >1 column (fills the rest of the last row), lay it out as a
   compact banner — content left, normal-width pill — instead of a tall stack with
   a full-width button. JS adds .guide-card--wide (see cat.js placeGuide). */
.guide-card--wide { gap: 12px; padding: 26px 30px; }
.guide-card--wide .guide-card__body { max-width: 70ch; }
.guide-card--wide .guide-card__list { flex-direction: row; flex-wrap: wrap; gap: 8px 26px; }
.guide-card--wide .guide-card__cta { width: auto; height: 46px; margin-top: 2px; padding: 0 26px; align-self: flex-start; }

.pgrid__empty { grid-column: 1 / -1; margin: 30px 0; font-size: 15px; color: var(--muted); text-align: center; }
.pgrid__reset { color: var(--orange); font-weight: 600; cursor: pointer; background: none; }

/* ============ BELOW-GRID BODY LAYOUT (blocks + aichat) ============ */
.cat-seo { padding: 48px 0 8px; }
.cat-seo__layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 48px; align-items: start; }
.cat-seo__layout--solo { grid-template-columns: minmax(0, 1fr); }
.cat-seo__main { min-width: 0; }
.cat-seo__main .adv-article { max-width: none; }
/* 30% sticky inhoudsopgave column (TOC, with Dr. Dry stacked below it when
   enabled) — mirrors the adviespagina sidebar, scrolls along on scroll. */
.cat-seo__aside { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Dr. Dry assistant aside */
.aichat { position: sticky; top: 28px; border-radius: 22px; padding: 26px 26px 28px; background: radial-gradient(120% 90% at 0% 0%, #eef4fb 0%, rgba(238,244,251,0) 55%), radial-gradient(120% 90% at 100% 100%, #fbeee7 0%, rgba(251,238,231,0) 55%), #f4f7fb; border: 1px solid #e3eaf2; }
.aichat__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.aichat__id { display: flex; align-items: center; gap: 12px; }
.aichat__avatar { width: 50px; height: 50px; border-radius: 999px; overflow: hidden; flex-shrink: 0; background: linear-gradient(160deg,#dfeaf6,#cdddee); }
.aichat__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aichat__name { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.aichat__role { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.aichat__role::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #34b35a; }
.aichat__lead { font-size: 14.5px; line-height: 1.55; color: var(--text); margin: 0 0 18px; }
.aichat__suggs { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.aichat__sugg { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid #d8e0e9; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--navy); cursor: pointer; transition: border-color .15s, background .15s; }
.aichat__sugg:hover { border-color: var(--navy); background: #f7fafc; }
.aichat__sugg svg { display: block; color: var(--orange); flex-shrink: 0; }
.aichat__input { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #d8e0e9; border-radius: 12px; padding: 13px 14px; }
.aichat__input input { flex: 1; border: none; outline: none; background: none; font-size: 14.5px; color: var(--text); font-family: inherit; }
.aichat__input input::placeholder { color: #9aa9b6; }
.aichat__send { width: 28px; height: 28px; display: grid; place-items: center; color: #b3bfca; cursor: pointer; }
.aichat__disclaim { font-size: 12.5px; color: #98a4ae; margin: 14px 2px 0; line-height: 1.5; }
.aichat.is-chatting .aichat__lead, .aichat.is-chatting .aichat__suggs { display: none; }
.aichat__thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.aichat__msg { display: flex; gap: 9px; max-width: 92%; }
.aichat__msg--user { align-self: flex-end; }
.aichat__msg--bot { align-self: flex-start; }
.aichat__msg-av { width: 32px; height: 32px; border-radius: 999px; overflow: hidden; flex-shrink: 0; background: linear-gradient(160deg,#dfeaf6,#cdddee); }
.aichat__msg-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aichat__bubble { padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.aichat__msg--user .aichat__bubble { background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.aichat__msg--bot .aichat__bubble { background: #fff; border: 1px solid #d8e0e9; color: var(--text); border-bottom-left-radius: 5px; }
.aichat__bubble strong { font-weight: 700; color: var(--navy); }
.aichat__msg--user .aichat__bubble strong { color: #fff; }
.aichat__typing { display: inline-flex; gap: 5px; align-items: center; }
.aichat__typing span { width: 7px; height: 7px; border-radius: 999px; background: #b3c1cf; display: block; animation: aichatBlink 1.2s infinite ease-in-out; }
.aichat__typing span:nth-child(2){ animation-delay: .2s; }
.aichat__typing span:nth-child(3){ animation-delay: .4s; }
@keyframes aichatBlink { 0%,80%,100%{ opacity:.3; transform: translateY(0); } 40%{ opacity:1; transform: translateY(-2px); } }

/* ============ KENNISBANK (blog cards) ============ */
.blog { padding: 56px 0 8px; }
.blog__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.blog__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--orange); letter-spacing: 0.02em; margin-bottom: 14px; }
.blog__eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.blog__title { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; color: var(--navy); margin: 0; max-width: 620px; }
.blog__all { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: 14.5px; font-weight: 600; color: var(--navy); transition: gap .15s; }
.blog__all:hover { gap: 16px; }
.blog__all .blog__allarrow { width: 40px; height: 40px; border-radius: 999px; background: var(--navy); color: #fff; display: grid; place-items: center; transition: background .15s; }
.blog__all:hover .blog__allarrow { background: var(--orange); }
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-soft); border-radius: 20px; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(8,38,65,0.4); border-color: var(--border); }
.blog-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--light-blue); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__tag { position: absolute; top: 14px; left: 14px; font-size: 11.5px; font-weight: 600; color: var(--navy); background: rgba(255,255,255,0.94); padding: 6px 13px; border-radius: 999px; }
.blog-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.blog-card__meta { font-size: 12.5px; color: var(--muted); margin-bottom: 11px; display: flex; align-items: center; gap: 9px; }
.blog-card__meta span { width: 3px; height: 3px; border-radius: 999px; background: var(--muted-2); }
.blog-card__title { font-size: 18.5px; font-weight: 600; color: var(--navy); line-height: 1.28; letter-spacing: -0.015em; margin: 0 0 11px; }
.blog-card__excerpt { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; }
.blog-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--navy); }
.blog-card__more .blog-card__arrow { width: 30px; height: 30px; border-radius: 999px; background: var(--light-blue); color: var(--navy); display: grid; place-items: center; transition: background .15s, color .15s, transform .15s; }
.blog-card:hover .blog-card__arrow { background: var(--orange); color: #fff; transform: translate(2px, -2px); }

/* Kennisbank cards become a swipeable slider on tablet + mobile — same
   behaviour as the homepage blog row (assets/home.css), so the category page
   stays in line with the rest of the site. Desktop keeps the grid. */
@media (max-width: 980px) {
  .cat-blog .blog__grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 6px;
    /* bleed to the right gutter so the next card peeks past the edge */
    margin-right: calc(-1 * clamp(20px, 4vw, 40px));
    padding-right: clamp(20px, 4vw, 40px);
  }
  .cat-blog .blog__grid::-webkit-scrollbar { display: none; }
  .cat-blog .blog__grid .blog-card {
    flex: 0 0 clamp(258px, 78%, 332px);
    scroll-snap-align: start;
  }
}

/* Scrollbar-style navigation under the kennisbank slider (JS-built, cat.js).
   Hidden on desktop; shown only where the grid becomes a slider. */
.slider-nav { display: none; }
@media (max-width: 980px) {
  .slider-nav { display: block; margin-top: 20px; padding-top: 2px; }
  .slider-nav__track {
    position: relative;
    height: 4px;
    border-radius: 999px;
    background: rgba(14, 42, 63, 0.12);
    cursor: pointer;
    touch-action: none;
  }
  .slider-nav__thumb {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--navy, #01273f);
    transition: background .15s ease;
  }
  .slider-nav__track:hover .slider-nav__thumb,
  .slider-nav__thumb.is-drag { background: var(--orange, #e77935); }
}

/* ============ MERKENBAND ============ */
.brandstrip { padding: 40px 0 8px; }
.brandstrip__panel { position: relative; overflow: hidden; border-radius: 26px; padding: 42px 48px 44px; background: radial-gradient(900px 480px at 86% -12%, rgba(231,121,53,0.16), transparent 60%), linear-gradient(140deg, #0e3a5b 0%, #02233a 56%, #001a2b 100%); }
.brandstrip__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.brandstrip__eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--orange); margin-bottom: 9px; }
.brandstrip__title { font-size: 30px; color: #fff; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
.brandstrip__sub { display: block; margin-top: 9px; font-size: 14.5px; color: rgba(255,255,255,0.72); }
.brandstrip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.brandcard { display: grid; place-items: center; height: 112px; padding: 18px 22px; border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; background: rgba(255,255,255,0.04); transition: border-color .18s, background .18s, transform .18s; }
.brandcard:hover { border-color: rgba(255,255,255,0.42); background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.brandcard img { max-width: 80%; max-height: 40px; object-fit: contain; opacity: .92; transition: opacity .18s; }
.brandcard:hover img { opacity: 1; }
.brandcard__name { color: #fff; font-weight: 600; font-size: 15px; opacity: .9; }

/* The compare tray (.cmpbar / .cmpitem) now lives in assets/compare-tray.css —
   one shared, homepage-identical style. It's enqueued after cat.css on product
   archives (see inc/assets.php), so don't redeclare it here. */

/* ============ RESPONSIVE ============
 * Ported from the prototype's responsive layer (Luchtontvochtiger Badkamer.html).
 * Key fixes vs the old thin version: every grid uses minmax(0,1fr) so cards can
 * shrink (no horizontal overflow at tablet widths); the filter sidebar becomes a
 * collapsible panel (toggled by cat.js); the hero single-columns + top-aligns;
 * and the desktop keuzehulp card is swapped for the inline .kh-strip. */

/* ---- Below-grid SEO/Dr. Dry layout + Inhoudsopgave (theme-specific) ---- */
@media (max-width: 980px) {
  /* Even the TOC's top/bottom breathing room: the product grid above adds ~40px
     of bottom padding, so trim the section top and match the row gap below. */
  .cat-seo { padding-top: 8px; }
  .cat-seo__layout { grid-template-columns: 1fr; gap: 40px; }
  .cat-seo__aside { position: static; order: -1; }
  .aichat { position: static; }

  /* Inhoudsopgave: a lifted white card with orange number chips (was a flat grey box). */
  .cat-seo__aside .adv-toc { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 28px -20px rgba(16,41,61,.32); padding: 20px 16px 22px; }
  .cat-seo__aside .adv-toc h4 { color: var(--navy); font-size: 12px; margin-bottom: 14px; }
  .cat-seo__aside .adv-toc a { padding: 9px 10px; gap: 11px; align-items: center; }
  .cat-seo__aside .adv-toc a::before { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #fcece0; color: var(--orange); font-size: 11.5px; }
  .cat-seo__aside .adv-toc a:hover { background: #f1f4f7; color: var(--navy); }
  .cat-seo__aside .adv-toc a:hover::before { background: var(--orange); color: #fff; }
}

/* ---- Category hero ---- */
@media (max-width: 980px) {
  .cat-hero { padding: 22px 0 32px; }
  .cat-hero__grid { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .cat-hero__title { font-size: 42px; }
  .cat-hero__intro, .cat-hero__more { max-width: none; }
  /* Swap the desktop keuzehulp card for an orange pill in the hero. */
  .cat-hero__aside { display: none; }
  .cat-hero__khbtn {
    display: flex; width: fit-content; align-items: center; gap: 11px;
    margin-top: 22px; padding: 11px 13px 11px 22px;
    background: var(--orange); color: #fff; font-size: 15px; font-weight: 600;
    border-radius: 999px; text-decoration: none;
    box-shadow: 0 10px 22px rgba(231,121,53,.30);
    transition: background .15s ease, box-shadow .15s ease;
  }
  .cat-hero__khbtn:hover { background: var(--orange-hover); }
  .cat-hero__khbtn-arr { width: 27px; height: 27px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; flex: none; }
  .cat-hero__khbtn-arr svg { width: 14px; height: 14px; }
}
@media (max-width: 560px) {
  .cat-hero__title { font-size: 32px; margin-bottom: 16px; }
}

/* ---- Shop: sidebar + grid → single column + collapsible filter panel ---- */
@media (max-width: 980px) {
  .shop__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .filters { border: 1px solid var(--border); border-radius: 16px; padding: 0 18px; margin-bottom: 24px; background: #fff; }
  .filters__head {
    cursor: pointer; margin-bottom: 0; border-bottom: none;
    padding: 17px 2px; justify-content: flex-start;
  }
  .filters__head::after {
    content: ""; width: 18px; height: 18px; margin-left: auto; flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6f7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .25s ease;
  }
  .filters.is-open .filters__head { border-bottom: 1px solid var(--border-soft); }
  .filters.is-open .filters__head::after { transform: rotate(180deg); }
  .filters .fgroup { display: none; }
  .filters.is-open .fgroup { display: block; }
  .filters.is-open .fgroup:last-child { border-bottom: none; }

  /* Verfijn subnav: label on top, chips scroll under it. */
  .subnav { flex-direction: column; align-items: stretch; gap: 10px; }
  .subnav__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
  .subnav__track { flex: 0 0 auto; }

  /* Drop any JS-set span on the guide card (it targets the 3-col desktop grid). */
  .guide-card { grid-column: auto !important; }
}

/* ---- Product + secondary grids (minmax(0,1fr) prevents card overflow) ---- */
@media (max-width: 1080px) {
  .pgrid, .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .brandstrip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toppicks__grid .pcard { flex: 1 1 calc((100% - 22px) / 2); }
  .brandstrip__panel { padding: 32px 24px 34px; }
  .blog__title, .blog__head { gap: 16px; }
}
@media (max-width: 560px) {
  .pgrid, .blog__grid, .brandstrip__grid { grid-template-columns: minmax(0, 1fr); }
  .guide-card { grid-column: auto !important; }
}
@media (max-width: 480px) {
  .toppicks__grid .pcard { flex: 1 1 100%; min-width: 0; }
  .toppicks__grid, .toppicks--compact .toppicks__grid { gap: 26px; }
}
