/*
Theme Name: RefurbishedHub
Theme URI: https://refurbishedmacbooks.nl
Author: Luwo Marketing
Author URI: https://luwomarketing.nl
Description: Thema voor RefurbishedHub, een onafhankelijk vergelijkings- en affiliateplatform voor refurbished electronica (refurbishedmacbooks.nl / refurbishedmobieltjes.nl). Bevat de volledige site-styling, header, footer en de interactieve functies (zoeken, vergelijkingslijst, donkere modus).
Version: 1.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: refurbishedhub
*/


/* ==========================================================================
   RefurbishedHub — Design System
   Goede tech. Tweede leven.
   ========================================================================== */

:root {
  --navy-900: #101c28;
  --navy-800: #16283a; /* primary brand dark */
  --navy-700: #1e3447;
  --navy-600: #2a4358;
  --navy-100: #e7ebef;
  --green-600: #3f9142;
  --green-500: #4cab4f; /* primary brand green */
  --green-400: #6bc06e;
  --green-100: #e7f5e8;
  --amber-500: #e2a63b;
  --red-500: #d0483f;
  --grey-50: #f7f8fa;
  --grey-100: #eef0f3;
  --grey-200: #e2e5ea;
  --grey-300: #cbd0d8;
  --grey-500: #7c8894;
  --grey-700: #4b5763;
  --grey-900: #232b32;
  --white: #ffffff;
  --red-600: #c0392b;

  /* Semantische tokens (bovenop de kleurnamen hierboven) — deze wisselen mee met dark mode,
     de kleurnamen hierboven (--navy-800, --white, enz.) blijven zelf altijd hetzelfde. */
  --surface: var(--white);              /* pagina-/kaartachtergrond */
  --text-strong: var(--navy-800);       /* nadruk-tekst (productnamen, prijzen, navigatielinks) */
  --on-dark-muted: #c3cbd3;             /* gedempte tekst op permanent donkere vlakken (header-balk, footer, hero) — verandert niet mee met het thema, want die vlakken zijn zelf ook altijd donker */

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(16, 28, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 28, 40, 0.10);
  --shadow-lg: 0 20px 48px rgba(16, 28, 40, 0.16);
  --container: 1180px;
  color-scheme: light;
}

/* ---------------- Dark mode ----------------
   Alleen de "papier"-tokens wisselen (achtergrond/kaarten/randen/tekst); de merkkleuren
   (navy/groen) en alles wat al vast donker is (header-balk, footer, hero) blijven gelijk. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #171f2a;
  --grey-50: #11161d;
  --grey-100: #232d3a;
  --grey-200: #2c3744;
  --grey-300: #3c4855;
  --grey-500: #8b96a1;
  --grey-700: #c7cfd6;
  --grey-900: #eef1f4;
  --text-strong: #dbe4ea;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #171f2a;
    --grey-50: #11161d;
    --grey-100: #232d3a;
    --grey-200: #2c3744;
    --grey-300: #3c4855;
    --grey-500: #8b96a1;
    --grey-700: #c7cfd6;
    --grey-900: #eef1f4;
    --text-strong: #dbe4ea;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grey-900);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--grey-700); }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

section { padding: 64px 0; }
@media (max-width: 780px) { section { padding: 40px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--green-600); margin-bottom: 10px;
}
.section-head { max-width: 640px; margin: 0 0 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head p { font-size: 17px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--text-strong); color: var(--text-strong); }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------------- Top utility bar ---------------- */
.utility-bar {
  background: var(--navy-900); color: var(--on-dark-muted); font-size: 13px;
}
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.utility-bar ul { display: flex; gap: 18px; flex-wrap: wrap; }
.utility-bar li { display: flex; align-items: center; gap: 6px; }
.utility-bar a:hover { color: var(--green-400); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--surface);
  border-bottom: 1px solid var(--grey-200);
}
.site-header .container { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; max-width: 1280px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand-word { font-weight: 800; font-size: 19px; color: var(--text-strong); }
.brand-word span { color: var(--green-500); }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.main-nav > ul { display: flex; align-items: stretch; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a, .nav-toggle-btn {
  display: flex; align-items: center; gap: 6px; padding: 12px 9px; font-weight: 600; font-size: 14.5px;
  color: var(--text-strong); border-radius: var(--radius-sm); background: none; border: none; white-space: nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.open > a { background: var(--grey-100); color: var(--green-600); }
.chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .15s; }
.main-nav li.open .chev { transform: rotate(-135deg); margin-top: 3px; }

.mega {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 560px;
  background: var(--surface); border: 1px solid var(--grey-200); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 20px; display: none; z-index: 50;
}
.main-nav li.open .mega { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 22px; }
.mega a { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: var(--radius-sm); font-weight: 600; color: var(--text-strong); font-size: 14.5px; }
.mega a:hover { background: var(--green-100); color: var(--green-600); }
.mega .mega-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--green-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--green-600); }
.mega-foot { grid-column: 1 / -1; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--grey-200); font-size: 13.5px; color: var(--grey-500); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.header-search { display: flex; align-items: center; background: var(--grey-100); border-radius: 999px; padding: 9px 12px; gap: 8px; min-width: 160px; }
.header-search input { border: none; background: none; outline: none; font-size: 14px; width: 100%; color: var(--grey-900); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grey-100); color: var(--text-strong); flex-shrink: 0; }
.mobile-menu-btn { display: none; }

@media (max-width: 1300px) {
  .main-nav, .site-header .header-search { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}
@media (max-width: 480px) {
  .site-header .container { gap: 12px; }
  .brand-word { display: none; }
}

/* Mobile nav drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.mobile-drawer.open { display: block; }
.mobile-drawer .backdrop { position: absolute; inset: 0; background: rgba(16,20,26,.5); }
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(88vw, 360px);
  background: var(--surface); padding: 20px; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.mobile-drawer .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-drawer .header-search { width: 100%; min-width: 0; }
.mobile-drawer .search-wrap { margin-bottom: 18px; }
.mobile-drawer nav ul { display: flex; flex-direction: column; }
.mobile-drawer nav a, .mobile-drawer nav summary { padding: 13px 4px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--grey-100); color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mobile-drawer nav summary::-webkit-details-marker { display: none; }
.mobile-drawer nav details ul { padding-left: 12px; }
.mobile-drawer nav details a { font-weight: 500; font-size: 14.5px; padding: 10px 4px; }

/* ---------------- Breadcrumbs ---------------- */
.breadcrumbs { background: var(--grey-50); border-bottom: 1px solid var(--grey-100); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 0; font-size: 13.5px; color: var(--grey-500); }
.breadcrumbs a { color: var(--grey-700); font-weight: 600; }
.breadcrumbs a:hover { color: var(--green-600); }
.breadcrumbs li::after { content: '/'; margin-left: 6px; color: var(--grey-300); }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs li[aria-current] { color: var(--grey-900); font-weight: 600; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; background: linear-gradient(135deg, var(--navy-800), var(--navy-900) 70%);
  color: var(--white); overflow: hidden; padding: 56px 0 64px;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px;
  border-radius: 50%; border: 60px solid rgba(76,171,79,.14);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-copy .badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: 16px; }
.hero h1 em { color: var(--green-400); font-style: normal; }
.hero-copy p.lead { font-size: 18px; color: var(--on-dark-muted); max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; font-size: 13.5px; color: var(--on-dark-muted); }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-visual { position: relative; }
.hero-panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 26px; backdrop-filter: blur(6px);
}
.hero-panel .grid-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-card { background: rgba(255,255,255,.08); border-radius: var(--radius-md); padding: 14px; }
.mini-card .mc-icon { color: var(--green-400); margin-bottom: 8px; }
.mini-card strong { display: block; font-size: 14.5px; }
.mini-card span { font-size: 12.5px; color: var(--on-dark-muted); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ---------------- Trust bar ---------------- */
.trust-bar { background: var(--green-100); border-bottom: 1px solid var(--grey-100); }
.trust-bar ul { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; padding: 12px 0; font-size: 13.5px; font-weight: 700; color: var(--green-600); }
.trust-bar li { display: flex; align-items: center; gap: 7px; }

/* ---------------- Category tiles ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card {
  border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 26px 20px; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; background: var(--surface);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-400); }
.cat-card .ci { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 16px; background: var(--navy-800); color: var(--green-400); display: flex; align-items: center; justify-content: center; }
.cat-card h3 { font-size: 17px; margin-bottom: 4px; }
.cat-card p { font-size: 13.5px; margin: 0; color: var(--grey-500); }

/* ---------------- Product cards ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.product-card {
  border: 1px solid var(--grey-200); border-radius: var(--radius-md); overflow: hidden; background: var(--surface);
  display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-media {
  aspect-ratio: 1.15/1; display: flex; align-items: center; justify-content: center; position: relative;
  background: linear-gradient(150deg, var(--grey-50), var(--grey-100));
}
.product-media svg { width: 56%; height: 56%; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .fav-btn { position: absolute; top: 10px; right: 10px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.badge-green { background: var(--green-100); color: var(--green-600); }
.badge-amber { background: #fbf0dc; color: #92671b; }
.badge-navy { background: var(--navy-100); color: var(--navy-700); }
.badge-pos { position: absolute; top: 10px; left: 10px; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-500); }
.product-name { font-size: 15.5px; font-weight: 700; color: var(--text-strong); line-height: 1.3; min-height: 2.6em; }
.product-name a:hover { color: var(--green-600); }
.stars { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--grey-500); }
.stars .star-icons { color: var(--amber-500); letter-spacing: 1px; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-now { font-size: 20px; font-weight: 800; color: var(--text-strong); }
.price-was { font-size: 13.5px; color: var(--grey-500); text-decoration: line-through; }
.product-foot { padding: 0 16px 16px; }

/* Grade pill */
.grade { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--grey-700); }
.grade-dot { width: 8px; height: 8px; border-radius: 50%; }
.grade-uitstekend .grade-dot { background: var(--green-500); }
.grade-heelgoed .grade-dot { background: #6ea8d8; }
.grade-redelijk .grade-dot { background: var(--amber-500); }
/* .fi ("Conditie uitgelegd" cards) keeps a fixed light-green backdrop in both themes,
   so the grade label inside it must keep a fixed dark text color too, otherwise dark
   mode's light-on-dark text color swap makes it unreadable against that fixed-light box. */
.feature-card .fi .grade { color: var(--navy-800); }

/* .fi-plain: used on the "De drie condities" page (productconditie) where the little
   square backdrop behind each grade label isn't wanted. No fixed background, so the
   grade text just uses the normal theme-aware color instead of the .fi override above. */
.feature-card .fi.fi-plain { background: transparent; width: auto; height: auto; border-radius: 0; margin-bottom: 10px; }
.feature-card .fi.fi-plain .grade { color: var(--grey-700); }

/* ---------------- Filters (category page) ---------------- */
.cat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--grey-200); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--grey-300); font-size: 13.5px; font-weight: 600; color: var(--grey-700); background: var(--surface); }
.chip.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.results-count { font-size: 13.5px; color: var(--grey-500); }

/* ---------------- Layout helpers ---------------- */
.two-col { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------------- Cards: features / USP ---------------- */
.feature-card { padding: 24px; border-radius: var(--radius-md); background: var(--grey-50); border: 1px solid var(--grey-100); }
.feature-card .fi { width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; margin: 0; }

/* ---------------- Steps (how it works) ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-800); color: var(--green-400); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h4 { font-size: 15.5px; margin-bottom: 5px; }
.step p { font-size: 13.5px; margin: 0; }

/* ---------------- Case studies ---------------- */
.case-card { border: 1px solid var(--grey-200); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.case-media { padding: 26px; background: var(--navy-800); color: var(--white); }
.case-media .cat-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green-400); margin-bottom: 10px; }
.case-media h3 { font-size: 19px; margin-bottom: 0; }
.case-stats { display: flex; gap: 18px; padding: 18px 26px; background: var(--navy-700); }
.case-stats .stat strong { display: block; font-size: 20px; color: var(--green-400); }
.case-stats .stat span { font-size: 11.5px; color: var(--on-dark-muted); }
.case-body { padding: 22px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.case-quote { font-size: 14.5px; font-style: italic; color: var(--grey-700); border-left: 3px solid var(--green-500); padding-left: 14px; margin: 14px 0; }
.case-person { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 13.5px; }
.case-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }

/* ---------------- Reviews ---------------- */
.review-card { border: 1px solid var(--grey-200); border-radius: var(--radius-md); padding: 20px; background: var(--surface); }
.review-card .stars { margin-bottom: 10px; }
.review-card p { font-size: 14.5px; color: var(--grey-900); }
.review-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grey-500); margin-top: 12px; }
.review-meta strong { color: var(--grey-900); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--green-600); font-weight: 700; }
.rating-summary { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: var(--green-100); border-radius: var(--radius-md); margin-bottom: 26px; flex-wrap: wrap; }
.rating-summary .score { font-size: 38px; font-weight: 800; color: var(--navy-800); }

/* ---------------- FAQ ---------------- */
.faq-list { border-top: 1px solid var(--grey-200); }
.faq-item { border-bottom: 1px solid var(--grey-200); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; color: var(--text-strong); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--grey-300); position: relative; flex-shrink: 0; }
.faq-item .plus::before, .faq-item .plus::after { content: ''; position: absolute; background: var(--text-strong); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-item .plus::before { width: 10px; height: 2px; }
.faq-item .plus::after { width: 2px; height: 10px; }
.faq-item[open] .plus::after { display: none; }
.faq-item[open] summary { color: var(--green-600); }
.faq-item .faq-a { padding: 0 4px 18px; font-size: 14.5px; color: var(--grey-700); max-width: 720px; }

/* ---------------- Contact / forms ---------------- */
.form-card { border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--text-strong); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--grey-300); border-radius: var(--radius-sm);
  font-size: 14.5px; font-family: inherit; outline: none; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-500); }
.response-promise { display: flex; gap: 12px; align-items: flex-start; background: var(--green-100); border-radius: var(--radius-md); padding: 16px 18px; margin-top: 16px; }
.response-promise .rp-icon { color: var(--green-600); flex-shrink: 0; }
.response-promise strong { display: block; color: var(--navy-800); font-size: 14.5px; }
.response-promise span { font-size: 13px; color: var(--navy-600); }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--grey-200); height: 340px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.location-card { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--grey-200); border-radius: var(--radius-md); margin-top: 16px; }
.location-card > div { min-width: 0; }
.location-card .li { width: 40px; height: 40px; border-radius: 10px; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------------- Team ---------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; }
.team-card h4 { font-size: 15.5px; margin-bottom: 2px; }
.team-card span { font-size: 13px; color: var(--grey-500); }

/* ---------------- Product detail ---------------- */
.pd-gallery { position: sticky; top: 96px; }
.pd-media-main { aspect-ratio: 1/1; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--grey-50), var(--grey-100)); display: flex; align-items: center; justify-content: center; border: 1px solid var(--grey-200); }
.pd-media-main svg { width: 46%; height: 46%; }
.pd-media-main img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs .thumb { width: 62px; height: 62px; border-radius: 10px; border: 1.5px solid var(--grey-200); display: flex; align-items: center; justify-content: center; background: var(--grey-50); }
.pd-thumbs .thumb svg { width: 60%; height: 60%; }
.pd-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.pd-sub { color: var(--grey-500); font-size: 14.5px; margin-bottom: 14px; }
.pd-price-block { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.pd-price-block .now { font-size: 34px; font-weight: 800; color: var(--text-strong); }
.pd-price-block .was { font-size: 16px; color: var(--grey-500); text-decoration: line-through; }
.pd-save { display: inline-block; margin-left: 4px; }
.grade-explainer { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--grey-50); border: 1px solid var(--grey-200); margin: 16px 0 20px; font-size: 13.5px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.spec-table tr { border-bottom: 1px solid var(--grey-100); }
.spec-table td { padding: 11px 4px; font-size: 14px; }
.spec-table td:first-child { color: var(--grey-500); width: 42%; }
.spec-table td:last-child { font-weight: 600; color: var(--grey-900); }
.aff-disclosure { font-size: 12px; color: var(--grey-500); margin-top: 10px; display: flex; gap: 6px; align-items: flex-start; }
.trust-mini { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.trust-mini li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--grey-700); }
.trust-mini svg { color: var(--green-600); flex-shrink: 0; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--grey-200); margin: 40px 0 22px; }
.tab-btn { padding: 12px 18px; font-weight: 700; font-size: 14.5px; color: var(--grey-500); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; }
.tab-btn.active, .tab-btn[aria-selected="true"] { color: var(--text-strong); border-bottom-color: var(--green-500); }

/* ---------------- Related products / internal links ---------------- */
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a { padding: 9px 16px; border: 1.5px solid var(--grey-200); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-strong); }
.related-links a:hover { border-color: var(--green-500); color: var(--green-600); }

/* ---------------- CTA band ---------------- */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-900)); color: var(--white); border-radius: var(--radius-lg); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: 24px; margin-bottom: 6px; }
.cta-band p { color: var(--on-dark-muted); margin: 0; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid > * { min-width: 0; }
.footer-col a { overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { color: var(--grey-500); font-size: 13.5px; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--green-500); }
.footer-col h5 { color: var(--white); font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--on-dark-muted); }
.footer-col a:hover { color: var(--green-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 12.5px; color: var(--grey-500); flex-wrap: wrap; gap: 14px; }
.footer-bottom .legal-links { display: flex; gap: 18px; }
.builder-credit { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--grey-400, #9aa4ad); }
.builder-credit strong { color: var(--on-dark-muted); font-weight: 700; }
.builder-credit:hover strong { color: var(--green-400); }
.builder-logo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: var(--green-500); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: -0.02em; }
.aff-note { background: rgba(255,255,255,.05); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 12px; color: var(--grey-500); margin: 30px 0; }

/* ---------------- Sticky mobile CTA ---------------- */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150; background: var(--surface); border-top: 1px solid var(--grey-200); box-shadow: 0 -6px 20px rgba(16,28,40,.12); padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.sticky-cta-inner { display: flex; align-items: center; gap: 12px; }
.sticky-cta-info { flex: 1; min-width: 0; }
.sticky-cta-info strong { display: block; font-size: 14px; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta-info span { font-size: 12.5px; color: var(--grey-500); }
.sticky-cta .btn { flex-shrink: 0; padding: 12px 20px; }
@media (max-width: 780px) {
  .sticky-cta.show { display: block; }
  body.has-sticky-cta { padding-bottom: 76px; }
}

/* ---------------- Misc pages ---------------- */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.error-page .code { font-size: clamp(70px, 14vw, 130px); font-weight: 800; color: var(--text-strong); line-height: 1; }
.error-page .code span { color: var(--green-500); }
.error-page h1 { font-size: 24px; margin: 10px 0 8px; }
.error-page p { max-width: 440px; margin: 0 auto 26px; }
.error-search { max-width: 420px; margin: 0 auto 26px; display: flex; gap: 8px; }
.error-search input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1.5px solid var(--grey-300); font-size: 14.5px; }
.error-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 400px) {
  .error-search { flex-direction: column; }
  .error-search .btn { width: 100%; }
}

.thankyou-page { min-height: 55vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.thankyou-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.thankyou-page h1 { font-size: 28px; margin-bottom: 10px; }
.thankyou-page p { max-width: 480px; margin: 0 auto 10px; }
.thankyou-steps { max-width: 480px; margin: 26px auto; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.thankyou-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.thankyou-steps .tn { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-800); color: var(--green-400); font-weight: 800; font-size: 12.5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.legal-page h2 { font-size: 19px; margin-top: 36px; }
.legal-page p, .legal-page li { font-size: 14.5px; color: var(--grey-700); }
.legal-page ul { list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.legal-updated { font-size: 13px; color: var(--grey-500); margin-bottom: 30px; }

.seo-copy { display: flex; flex-direction: column; gap: 14px; }
.seo-copy p { font-size: 14.5px; line-height: 1.7; color: var(--grey-700); }
.seo-copy a { color: var(--green-600); font-weight: 600; }

/* Blog */
.blog-card { border: 1px solid var(--grey-200); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-400); }
.blog-card-media { padding: 22px 24px; background: var(--navy-800); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.blog-card-media .bi { width: 26px; height: 26px; color: var(--green-400); flex-shrink: 0; }
.blog-card .cat-tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green-400); }
.blog-card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-card-body h3 { font-size: 17.5px; line-height: 1.35; }
.blog-card-body h3 a { color: var(--text-strong); }
.blog-card-body h3 a:hover { color: var(--green-600); }
.blog-card-body p { font-size: 13.5px; color: var(--grey-600); line-height: 1.55; flex: 1; }
.blog-meta { font-size: 12px; color: var(--grey-500); display: flex; gap: 8px; align-items: center; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-body { display: flex; flex-direction: column; gap: 16px; }
.blog-body p { font-size: 15.5px; line-height: 1.75; color: var(--grey-700); }
.blog-body h2 { font-size: 21px; margin-top: 14px; color: var(--text-strong); }
.blog-body h3 { font-size: 17.5px; margin-top: 6px; color: var(--text-strong); }
.blog-body ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; line-height: 1.6; color: var(--grey-700); }
.blog-body a { color: var(--green-600); font-weight: 600; }
.blog-post-head { max-width: 760px; }
.blog-post-head .blog-meta { margin: 10px 0 4px; }

/* Vergelijkingslijst (compare) */
.compare-link { position: relative; }
.compare-badge { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--green-500); color: var(--white); font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; }
.mobile-drawer .compare-badge { position: static; margin-left: 8px; }
.product-card { position: relative; }
.compare-toggle { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; align-items: center; gap: 5px; padding: 6px 10px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid var(--grey-200); color: var(--navy-800); font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm); }
.compare-toggle svg { width: 15px; height: 15px; }
.compare-toggle span { display: none; }
.compare-toggle:hover, .compare-toggle.active { background: var(--green-500); border-color: var(--green-500); color: var(--white); }
.compare-toggle.active span { display: inline; }
@media (min-width: 640px) { .compare-toggle span { display: inline; } }

.compare-empty { text-align: center; padding: 60px 20px; color: var(--grey-600); }
.compare-empty svg { width: 48px; height: 48px; color: var(--grey-500); margin-bottom: 14px; }
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--grey-200); font-size: 13.5px; vertical-align: top; }
.compare-table th { background: var(--grey-50); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-500); white-space: nowrap; }
.compare-table td:first-child, .compare-table th:first-child { position: sticky; left: 0; background: var(--surface); font-weight: 700; }
.compare-table th:first-child { background: var(--grey-50); }
.compare-col-head { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.compare-col-head .ci { width: 34px; height: 34px; }
.compare-remove { align-self: flex-start; background: none; color: var(--grey-500); font-size: 12px; font-weight: 700; text-decoration: underline; }
.compare-remove:hover { color: var(--red-600, #c0392b); }

.compare-toggle-pd { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.compare-toggle-pd svg { width: 18px; height: 18px; }
.compare-toggle-pd.active { background: var(--green-50, #eafaf1); border-color: var(--green-500); color: var(--green-600); }

/* Toast (succes-/foutmeldingen) */
.rh-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 999; max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 999px; background: var(--navy-900, #14213d); color: var(--white); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,.2)); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; text-align: center; }
.rh-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.rh-toast-error { background: var(--red-600, #c0392b); }

.compare-note { display: flex; gap: 10px; align-items: flex-start; background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: var(--radius-md); padding: 16px 18px; font-size: 13.5px; color: var(--grey-700); }

/* ---------------- Advertenties (Awin-banners) ---------------- */
.awin-banner { display: block; text-decoration: none; }
.awin-banner img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm, 6px); }

/* Vaste zijbalk-banner: alleen zichtbaar in de marge naast de content op erg brede schermen,
   zodat hij nooit over de content of het menu heen valt en nooit voor mobiele overflow zorgt. */
.ad-rail { display: none; }
@media (min-width: 1560px) {
  .ad-rail {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    position: fixed; top: 50%; transform: translateY(-50%);
    left: calc(50% + var(--container) / 2 + 24px);
    width: 160px; max-height: 90vh; overflow: hidden; z-index: 40;
  }
}
/* [hidden] moet expliciet, anders wint de flex-regel hierboven van de
   browserstandaard zodra data-ad-rail-close 'm dichtklikt (zelfde les als
   bij .faq-chat-panel eerder in dit project). */
.ad-rail[hidden] { display: none !important; }
.ad-rail-close {
  position: absolute; top: -10px; right: -10px;
  width: 22px; height: 22px; border-radius: 999px; border: 1px solid var(--grey-200);
  background: var(--white); color: var(--grey-500); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm); padding: 0;
}
.ad-rail-close:hover { color: var(--text-strong); border-color: var(--grey-300); }
.ad-rail-close svg { width: 12px; height: 12px; }

/* Advertentiestrook (twee banners naast elkaar) — komt via page()/pageShell() automatisch
   'tussendoor' op elke pagina terecht, net na de eerste sectie. */
.ad-strip-section { padding: 28px 0; }
.ad-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.ad-card { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 320px; }
.ad-card-label, .ad-rail-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-500); }

/* ---------------- Icon size overrides (small inline contexts) ---------------- */
.badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.utility-bar svg, .hero-trust svg, .trust-bar svg { width: 16px; height: 16px; flex-shrink: 0; }
.aff-disclosure svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.thankyou-icon svg { width: 42px; height: 42px; }
.compare-note svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--green-600); }
.icon-btn svg { width: 19px; height: 19px; }
.footer-social svg { width: 17px; height: 17px; }
.header-search svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--grey-500); }
.chev-icon { width: 10px; height: 10px; }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green-500); color: #fff; padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ==========================================================================
   Scroll progress bar
   ========================================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--green-500); z-index: 260; transition: width .12s linear; }
@media (prefers-reduced-motion: reduce) { .scroll-progress { transition: none; } }

/* ==========================================================================
   Theme toggle
   ========================================================================== */
.theme-toggle { position: relative; }
.theme-toggle svg { transition: transform .35s ease, opacity .2s ease; }
.theme-toggle:hover svg { transform: rotate(14deg); }

/* ==========================================================================
   Header search + live results dropdown
   ========================================================================== */
.search-wrap { position: relative; }
.search-results {
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--grey-200); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); z-index: 120; max-height: 70vh; overflow-y: auto; padding: 6px;
}
.search-results a.sr-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: var(--radius-sm);
  color: var(--text-strong);
}
.search-results a.sr-item:hover, .search-results a.sr-item.active { background: var(--grey-100); }
.sr-item-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sr-item-body { min-width: 0; }
.sr-item-title { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-item-meta { display: block; font-size: 12px; color: var(--grey-500); }
.sr-empty, .sr-loading { padding: 18px 12px; text-align: center; font-size: 13.5px; color: var(--grey-500); }
.error-search { margin: 24px 0; }
.error-search .search-wrap { max-width: 460px; margin: 0 auto; }
.error-search .header-search { width: 100%; min-width: 0; padding: 12px 16px; }
.error-search .search-results, .mobile-drawer .search-results { left: 0; right: 0; width: auto; text-align: left; }

/* ==========================================================================
   Back-to-top + floating contact button
   ========================================================================== */
.back-to-top, .floating-contact {
  position: fixed; right: 20px; z-index: 140; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, bottom .2s ease;
}
.floating-contact { bottom: 24px; background: var(--green-500); color: var(--white); }
.floating-contact:hover { background: var(--green-600); transform: translateY(-2px); }
.back-to-top {
  bottom: 88px; background: var(--surface); color: var(--text-strong); border: 1px solid var(--grey-200);
  opacity: 0; visibility: hidden; transform: translateY(10px);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--grey-100); transform: translateY(-2px); }
body.has-sticky-cta .floating-contact { bottom: 86px; }
body.has-sticky-cta .back-to-top { bottom: 150px; }
@media (max-width: 640px) {
  .back-to-top, .floating-contact { width: 46px; height: 46px; right: 16px; }
  .floating-contact { bottom: 20px; }
  .back-to-top { bottom: 80px; }
  body.has-sticky-cta .floating-contact { bottom: 82px; }
  body.has-sticky-cta .back-to-top { bottom: 144px; }
}
@media (prefers-reduced-motion: reduce) { .back-to-top, .floating-contact { transition: none; } }

/* ==========================================================================
   FAQ-chat (gratis, client-side vraag-widget)
   ========================================================================== */
.faq-chat-btn {
  position: fixed; right: 20px; bottom: 152px; z-index: 140; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  background: var(--navy-800); color: var(--white); border: none; cursor: pointer; padding: 0;
  transition: opacity .25s ease, transform .25s ease, bottom .2s ease, background .15s ease;
}
.faq-chat-btn:hover { background: var(--navy-700); transform: translateY(-2px); }
.faq-chat-btn.is-open { background: var(--navy-700); }
body.has-sticky-cta .faq-chat-btn { bottom: 214px; }
.faq-chat-panel {
  position: fixed; right: 20px; bottom: 214px; z-index: 200; width: 360px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 180px); background: var(--surface); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
}
.faq-chat-panel[hidden] { display: none; }
body.has-sticky-cta .faq-chat-panel { bottom: 276px; }
.faq-chat-head {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  background: var(--navy-800); color: var(--white); font-weight: 700; font-size: 14.5px; flex-shrink: 0;
}
.faq-chat-close { background: none; border: none; color: var(--white); cursor: pointer; display: flex; padding: 2px; opacity: .85; }
.faq-chat-close:hover { opacity: 1; }
.faq-chat-close svg { width: 18px; height: 18px; }
.faq-chat-messages { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.faq-chat-msg { max-width: 88%; font-size: 13.5px; line-height: 1.55; }
.faq-chat-msg p { margin: 0; }
.faq-chat-msg-bot { align-self: flex-start; background: var(--grey-100); color: var(--text-strong); padding: 10px 12px; border-radius: 12px 12px 12px 4px; }
.faq-chat-msg-user { align-self: flex-end; background: var(--green-500); color: var(--white); padding: 10px 12px; border-radius: 12px 12px 4px 12px; }
.faq-chat-source { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--green-600); }
.faq-chat-links { margin: 8px 0 0; padding: 0 0 0 18px; }
.faq-chat-links li { margin-bottom: 4px; }
.faq-chat-links a { font-weight: 600; }
.faq-chat-contact { margin-top: 10px !important; padding-top: 8px; border-top: 1px solid var(--grey-200); font-size: 13px; color: var(--grey-500); }
.faq-chat-contact a { color: var(--green-600); font-weight: 700; }
.faq-chat-loading { color: var(--grey-500); font-style: italic; }
.faq-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--grey-200); flex-shrink: 0; }
.faq-chat-input { flex: 1 1 auto; min-width: 0; padding: 10px 12px; border: 1px solid var(--grey-200); border-radius: 999px; font-size: 13.5px; background: var(--surface); color: var(--text-strong); }
.faq-chat-input:focus { outline: 2px solid var(--green-500); outline-offset: 1px; }
.faq-chat-send { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--green-500); color: var(--white); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.faq-chat-send:hover { background: var(--green-600); }
.faq-chat-send svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .faq-chat-btn { width: 46px; height: 46px; right: 16px; bottom: 140px; }
  body.has-sticky-cta .faq-chat-btn { bottom: 204px; }
  .faq-chat-panel { right: 16px; bottom: 196px; width: calc(100vw - 32px); height: min(480px, calc(100vh - 160px)); }
  body.has-sticky-cta .faq-chat-panel { bottom: 260px; }
}
@media (prefers-reduced-motion: reduce) { .faq-chat-btn { transition: none; } }

/* ==========================================================================
   Cookiebanner
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 280; max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 20px 22px; transform: translateY(140%); transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.cookie-banner-head .cb-icon { color: var(--green-600); flex-shrink: 0; margin-top: 2px; }
.cookie-banner-head h2 { font-size: 16px; margin: 0; color: var(--text-strong); }
.cookie-banner p { font-size: 13.5px; line-height: 1.6; color: var(--grey-700); margin: 0 0 14px; }
.cookie-banner p a { color: var(--green-600); font-weight: 600; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner-actions .btn { flex: 1 1 auto; text-align: center; padding: 11px 14px; font-size: 13.5px; }
.cookie-prefs { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grey-200); }
.cookie-prefs.show { display: block; }
.cookie-pref-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.cookie-pref-row strong { display: block; font-size: 13.5px; color: var(--text-strong); }
.cookie-pref-row span { font-size: 12px; color: var(--grey-500); }
.cookie-switch { position: relative; flex-shrink: 0; width: 42px; height: 24px; border-radius: 999px; background: var(--grey-300); border: none; cursor: pointer; }
.cookie-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .18s ease; }
.cookie-switch[aria-checked="true"] { background: var(--green-500); }
.cookie-switch[aria-checked="true"]::after { transform: translateX(18px); }
.cookie-switch[disabled] { opacity: .6; cursor: not-allowed; }
@media (max-width: 480px) { .cookie-banner-actions .btn { flex: 1 1 100%; } }

/* ==========================================================================
   Kopieerknop
   ========================================================================== */
.copy-field { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.copy-field a { overflow-wrap: anywhere; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grey-100); color: var(--grey-700); flex-shrink: 0; }
.copy-btn:hover { background: var(--green-100); color: var(--green-600); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.copied { background: var(--green-500); color: var(--white); }

/* ==========================================================================
   Bevestigingsmodal
   ========================================================================== */
.rh-modal-overlay {
  position: fixed; inset: 0; background: rgba(10,16,22,.55); z-index: 400; display: flex;
  align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.rh-modal-overlay.show { opacity: 1; pointer-events: auto; }
.rh-modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px; max-width: 420px; width: 100%; transform: translateY(12px); transition: transform .18s ease; }
.rh-modal-overlay.show .rh-modal { transform: translateY(0); }
.rh-modal-icon { width: 44px; height: 44px; border-radius: 50%; background: #fdecea; color: var(--red-600); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.rh-modal h2 { font-size: 18px; margin: 0 0 8px; color: var(--text-strong); }
.rh-modal p { font-size: 14px; color: var(--grey-700); line-height: 1.6; margin: 0 0 20px; }
.rh-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.rh-modal-actions .btn { padding: 11px 18px; font-size: 13.5px; }

/* ==========================================================================
   Formulier-foutstatus (per veld)
   ========================================================================== */
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-600); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--red-600); margin-top: 6px; }
.field-error svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ==========================================================================
   Subtiele laadstatus (affiliate-/CTA-knoppen)
   ========================================================================== */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: currentColor; color: var(--white);
  animation: rh-spin .7s linear infinite;
}
.btn-outline.is-loading::after, .btn-dark.is-loading::after { color: var(--text-strong); border: 2px solid var(--grey-300); border-top-color: var(--navy-800); }
@keyframes rh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::after { animation-duration: 1.4s; } }

/* ==========================================================================
   Aanvullende hover states (audit)
   ========================================================================== */
.blog-card, .case-card, .review-card { transition: box-shadow .2s ease, transform .2s ease; }
.blog-card:hover, .case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.footer-col a, .footer-brand a { transition: color .15s ease; }
.footer-col a:hover { color: var(--green-400); }
.legal-links a:hover, .builder-credit:hover { color: var(--green-400); }
.chip { transition: background .15s ease, color .15s ease, border-color .15s ease; cursor: pointer; }
.icon-btn { transition: background .15s ease, color .15s ease; }
.icon-btn:hover { background: var(--grey-200); }
.faq-item summary { cursor: pointer; transition: color .15s ease; }
.faq-item summary:hover { color: var(--green-600); }
.product-card { transition: box-shadow .2s ease; }
.product-card:hover { box-shadow: var(--shadow-md); }
.tab-btn { transition: color .15s ease, border-color .15s ease; }

/* ==========================================================================
   Print stylesheet
   ========================================================================== */
@media print {
  .site-header, .utility-bar, .mobile-drawer, .ad-rail, .ad-strip-section, .sticky-cta,
  .back-to-top, .floating-contact, .faq-chat-btn, .faq-chat-panel, .cookie-banner, .rh-toast, .rh-modal-overlay,
  .scroll-progress, .site-footer .footer-social, .skip-link, .search-results,
  .compare-toggle, .compare-badge, .mobile-menu-btn, .theme-toggle, .copy-btn,
  form, button, .btn { display: none !important; }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]:not([href*="refurbishedhub.nl"])::after { content: " (" attr(href) ")"; font-size: 11px; color: #444; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .container { max-width: 100% !important; padding: 0 !important; }
  main { padding-top: 0 !important; }
  .ad-card, .ad-side, .mega { display: none !important; }
  h1, h2, h3 { color: #000 !important; page-break-after: avoid; }
  .product-card, .blog-card, .case-card { break-inside: avoid; box-shadow: none !important; border: 1px solid #ccc !important; }
  .site-footer { background: none !important; color: #000 !important; border-top: 1px solid #ccc; padding: 12px 0 !important; }
  .footer-grid, .footer-social, .builder-credit, .footer-bottom .legal-links { display: none !important; }
  .aff-note { color: #000 !important; font-size: 10.5pt; }
}
