/* ==========================================================================
   theme-2026.css: stijl 3 (redesign 2026)
   Wordt in header.php ná style.css, catalog.css en de inline stijlen geladen
   en overschrijft die. Nieuwe onderdelen krijgen het voorvoegsel k3-, omdat
   klassen als .hero, .note, .btn, .field, .grid en .list op de site al iets
   anders betekenen.
   ========================================================================== */

/* ---------- Lettertypen (SIL Open Font License, zie fonts/OFL-*.txt) ----------
   Per lettertype een Latijn- en een uitgebreid-Latijnbestand; de browser haalt
   alleen het deel op dat een pagina nodig heeft. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --olive: #36412c;      /* kop, hero, actieve knoppen */
  --olive-deep: #29321f; /* hulpbalk, inkoopblok */
  --night: #1f2618;      /* voet */
  --paper: #f8f7f3;      /* paginagrond */
  --card: #ffffff;
  --ink: #23261f;        /* tekst */
  --muted: #666b5f;      /* secundaire tekst */
  --line: #e3e1d8;       /* randen */
  --field: #d9d6cb;      /* randen van velden en knoppen */
  --terra: #b04f2b;      /* zoek- en bestelknop, accenten */
  --terra-deep: #933f1f; /* hover van terra */
  --cream: #f3efe3;      /* tekst op olijf */
  --gold: #d9cfa6;       /* labels op olijf */
  --tint: #eef0e6;       /* tags, hover */

  --serif: 'DM Serif Display', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --k3-max: 1200px;
  --k3-gutter: 20px;
  --k3-radius-card: 10px;
  --k3-radius-field: 8px;
  --k3-shadow-card: 0 16px 30px -20px rgba(30, 35, 25, .5);
}

/* ---------- Basis ---------- */
/* Stond vroeger in de inline-stijl van header.php; o.a. de bedankpagina's en
   uitgebreid_zoeken.php rekenen hierop. */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
}

/* style.css zet Cinzel/Cormorant direct op deze elementen; hier erven ze weer
   het lettertype van hun omgeving. Klassen met een eigen lettertype blijven
   voorgaan tot ze in hun eigen fase worden omgezet. */
a, button, p, input, textarea, select, select option, .content, .description {
  font-family: inherit;
}

.k3-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

/* ---------- Bouwstenen (in gebruik vanaf fase 3) ---------- */

/* Paginabreedte met zijmarge, ook naast de notch van een telefoon */
.k3-wrap {
  max-width: var(--k3-max);
  margin-inline: auto;
  padding-left: max(var(--k3-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--k3-gutter), env(safe-area-inset-right, 0px));
}

/* Klein label in hoofdletters */
.k3-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Knoppen. Basis + één variant per gebruik. */
.k3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--k3-radius-field);
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.k3-btn svg { width: 18px; height: 18px; flex: none; }
.k3-btn-terra { background: var(--terra); color: #fff; }               /* zoeken, bestellen */
.k3-btn-terra:hover { background: var(--terra-deep); }
.k3-btn-olive { background: var(--olive); color: var(--cream); }       /* primair op licht */
.k3-btn-olive:hover { background: var(--olive-deep); }
.k3-btn-outline { background: var(--card); color: var(--ink); border-color: #cfccc1; } /* secundair op licht */
.k3-btn-outline:hover { border-color: var(--olive); }
.k3-btn-light { background: var(--cream); color: var(--olive-deep); }  /* primair op olijf */
.k3-btn-light:hover { background: #fff; }
.k3-btn-line { border-color: rgba(243, 239, 227, .55); color: var(--cream); } /* secundair op olijf */
.k3-btn-line:hover { background: rgba(243, 239, 227, .08); }

/* Veld met klein label erboven, zoals in de zoekkaart */
.k3-field {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--field);
  border-radius: var(--k3-radius-field);
  background: var(--card);
}
.k3-field:focus-within {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(54, 65, 44, .14);
}
.k3-field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.k3-field input,
.k3-field select {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px; /* niet kleiner: anders zoomt iOS in bij focus */
  color: var(--ink);
}

/* Losse invoervelden en keuzelijsten (formulieren, sortering) */
.k3-input {
  padding: 9px 12px;
  border: 1px solid var(--field);
  border-radius: var(--k3-radius-field);
  background: var(--card);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
}
.k3-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(54, 65, 44, .14);
  outline: none;
}

/* Kenmerk-labels in kaarten (taal, druk). Alleen gegevens die al in de database staan. */
.k3-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.k3-tag {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--tint);
  color: var(--olive);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Druk kan lang zijn ("First edition, limited to …"): mag dan afbreken */
.k3-tag-ed { max-width: 100%; background: #f6e8e1; color: var(--terra); white-space: normal; overflow-wrap: anywhere; }

/* Kaart als vlak */
.k3-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
}

/* ==========================================================================
   Kop (header.php)
   ========================================================================== */

/* Sommige pagina's geven body een eigen lettertype (bv. body.sell-page);
   kop, menu, zoekpaneel en voet zetten het daarom zelf. */
.k3-util, .k3-mast, .k3-cats,
.slide-menu, .mobile-search-panel, .k3-foot {
  font-family: var(--sans);
}

/* Hulpbalk */
.k3-util {
  background: var(--olive-deep);
  color: rgba(243, 239, 227, .8);
  font-size: 13.5px;
  line-height: 1.5;
}
.k3-util-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding-block: 7px;
}
.k3-util-r {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.k3-util a { color: inherit; text-decoration: none; }
.k3-util a:hover { color: #fff; }
.k3-langs { display: flex; gap: 2px; }
.k3-langs a {
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
}
.k3-langs a[aria-current] { background: rgba(243, 239, 227, .16); color: #fff; }

/* Hoofdbalk */
.k3-mast {
  background: var(--olive);
  color: var(--cream);
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.k3-mast-in {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  padding-block: 16px;
}
.k3-brand {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}
.k3-brand-name {
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.02;
  letter-spacing: .005em;
}
.k3-brand-sub {
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.k3-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.k3-nav a {
  padding: 8px 13px;
  border-radius: 6px;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}
.k3-nav a:hover { background: rgba(243, 239, 227, .1); }
.k3-nav a.active { background: rgba(243, 239, 227, .14); }

.k3-mast-tools { display: flex; align-items: center; gap: 8px; }
.k3-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px 7px 12px;
  border: 1px solid rgba(243, 239, 227, .45);
  border-radius: 7px;
  color: var(--cream);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.k3-cart:hover { background: rgba(243, 239, 227, .1); }
.k3-cart svg { width: 18px; height: 18px; flex: none; }
.k3-cart-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--terra);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Bestaande mobiele knoppen (#hamburger, #mobileSearchToggle): alleen op smalle schermen */
.k3-mast .hamburger,
.k3-mast .mobile-search-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(243, 239, 227, .45);
  border-radius: 7px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.k3-mast .hamburger { flex-direction: column; gap: 4px; padding: 0 11px; }
.k3-mast .hamburger span { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
.k3-mast .mobile-search-button svg { width: 18px; height: 18px; }
.k3-mast .hamburger:hover,
.k3-mast .mobile-search-button:hover { background: rgba(243, 239, 227, .1); }

/* Onderwerpenbalk; scrolt horizontaal als hij niet past */
.k3-cats { background: var(--card); border-bottom: 1px solid var(--line); }
.k3-cats-in {
  display: flex;
  gap: 6px 26px;
  overflow-x: auto;
  padding-block: 12px;
  white-space: nowrap;
  scrollbar-width: none;
}
.k3-cats-in::-webkit-scrollbar { display: none; }
.k3-cats-in > :first-child { margin-left: auto; }
.k3-cats-in > :last-child { margin-right: auto; }
.k3-cats a { color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.k3-cats a:hover { color: var(--terra); }
.k3-cats .k3-cats-all { color: var(--terra); font-weight: 600; }


/* Slidemenu (bestaand: #slideMenu, #navOverlay, #slideMenuClose) */
.nav-overlay,
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 16, .5);
}
.nav-overlay { z-index: 1490; }
.search-overlay { z-index: 1590; }
.nav-overlay.active,
.search-overlay.active { display: block; }

.slide-menu {
  position: fixed;
  top: 0;
  left: -300px;
  z-index: 1500;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background: var(--olive);
  box-shadow: 4px 0 20px rgba(0, 0, 0, .28);
  transition: left .28s ease;
}
.slide-menu.active { left: 0; }
.slide-menu-inner { padding: 64px 0 26px; }
.slide-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(243, 239, 227, .35);
  border-radius: 7px;
  background: transparent;
  color: var(--cream);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.slide-menu a {
  display: block;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(243, 239, 227, .1);
  color: var(--cream);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.slide-menu a:hover { background: rgba(243, 239, 227, .08); }
.slide-menu a.active { background: rgba(243, 239, 227, .14); }
.slide-menu-language-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 18px 8px;
}
.slide-menu-language-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: rgba(243, 239, 227, .08);
  font-size: 13px;
  font-weight: 600;
}
.slide-menu-language-row img { display: block; width: 18px; border-radius: 2px; }

/* Mobiel zoekpaneel (bestaand: #mobileSearchPanel, #searchOverlay) */
.mobile-search-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1600;
  width: min(92vw, 520px);
  padding: 16px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  transform: translate(-50%, -50%);
}
.mobile-search-panel .sidebar-search-form { display: flex; gap: 8px; }
.mobile-search-panel .sidebar-search-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--field);
  border-radius: var(--k3-radius-field);
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
}
.mobile-search-panel .sidebar-search-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(54, 65, 44, .14);
  outline: none;
}
.mobile-search-panel .sidebar-search-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: var(--k3-radius-field);
  background: var(--terra);
  cursor: pointer;
}
.mobile-search-panel .sidebar-search-button:hover { background: var(--terra-deep); }
.mobile-search-panel .sidebar-search-button svg { width: 20px; height: 20px; color: #fff; }

/* Breekpunten gemeten met Duitse menuteksten en een gevulde winkelwagen */
@media (max-width: 1100px) {
  .k3-cart-label { display: none; }
}
@media (max-width: 960px) {
  .k3-nav { display: none; }
  .k3-mast .hamburger,
  .k3-mast .mobile-search-button { display: inline-flex; }
  /* Onder de kop staat dan al een zoekkaart; het zoekpaneel blijft via "Zoeken" in het menu bereikbaar */
  .k3-mast-band .mobile-search-button { display: none; }
  /* Zoals de oude groene balk: menu en zoeken blijven bovenaan in beeld */
  .k3-mast { position: sticky; top: 0; z-index: 1300; }
}
@media (max-width: 640px) {
  .k3-util-note,
  .k3-since { display: none; }
  .k3-util-in { justify-content: flex-end; }
  .k3-mast-in { gap: 8px; padding-block: 12px; }
  .k3-brand-name { font-size: 23px; }
  .k3-brand-sub { font-size: 10.5px; letter-spacing: .14em; }
}
@media (max-width: 480px) {
  .slide-menu { left: -90vw; width: 86vw; }
  .k3-util .k3-mail { display: none; } /* staat ook in de voet; zo past de hulpbalk op één regel */
}

/* ==========================================================================
   Voet (footer.php)
   ========================================================================== */
.k3-foot {
  margin-top: 64px;
  background: var(--night);
  color: rgba(243, 239, 227, .78);
  font-size: 15px;
  line-height: 1.55;
}
.k3-foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  padding-block: 52px 32px;
}
.k3-foot-h {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.k3-foot ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.k3-foot a { color: inherit; text-decoration: none; }
.k3-foot a:hover { color: #fff; }
.k3-foot-brand {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.k3-foot-brand img { display: block; width: 64px; height: auto; border-radius: 2px; }
.k3-foot-name {
  display: block;
  margin-bottom: 6px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
}
.k3-foot-brand p { margin: 0; font-size: 14px; }
.k3-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.k3-badges a {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}
.k3-badges img { display: block; max-width: 100%; max-height: 48px; width: auto; height: auto; }
.k3-social a { display: inline-flex; align-items: center; gap: 8px; }
.k3-social img { display: block; width: 18px; height: 18px; }
.k3-pay {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-bottom: 28px;
}
.k3-pay-label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.k3-pay-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.k3-pay-logos span {
  display: grid;
  place-items: center;
  height: 40px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #fff;
}
.k3-pay-logos img { display: block; width: auto; height: 28px; }
.k3-foot-bottom { border-top: 1px solid rgba(243, 239, 227, .12); }
.k3-foot-bottom .k3-wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-block: 16px;
  color: rgba(243, 239, 227, .6);
  font-size: 13.5px;
}
.k3-foot-langs { display: flex; gap: 10px; }
.k3-foot-langs a[aria-current] { color: var(--cream); font-weight: 600; }

@media (max-width: 980px) {
  .k3-foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .k3-foot-in { grid-template-columns: minmax(0, 1fr); }
  /* ruimte voor de chatknop rechtsonder */
  .k3-foot-bottom .k3-wrap { padding-bottom: 80px; }
}

/* ==========================================================================
   Overzicht: homepage, zoekresultaten, onderwerppagina (fase 4)
   Alles onder .k3-catalog (op <main>), zodat catalog.css gericht wordt
   overschreven en de detailpagina (zelfde kaartklassen) ongemoeid blijft.
   ========================================================================== */
.k3-catalog { display: block; padding: 0; font-family: var(--sans); }

/* ---------- Hero (homepage) ---------- */
.k3-hero {
  position: relative;
  overflow: hidden;
  background: var(--olive);
  color: var(--cream);
}
/* Alleen op smalle schermen: de foto gedimd als achtergrond */
.k3-hero-photo {
  display: none;
  position: absolute;
  inset: 0;
  background: url("../img/boekenruggen.jpg") 42% 50% / cover no-repeat;
}
.k3-hero-photo::after { content: ""; position: absolute; inset: 0; }
.k3-hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 32px;
  min-height: 560px;
}
/* De tekst ligt altijd boven de foto */
.k3-hero-text {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-block: 56px 112px;
}
.k3-hero .k3-eyebrow { color: var(--gold); }
.k3-hero h1 {
  margin: 14px 0 18px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}
.k3-count { color: var(--gold); font-variant-numeric: lining-nums; }
.k3-hero p {
  max-width: 34em;
  margin: 0 0 26px;
  color: rgba(243, 239, 227, .88);
  font-size: 17px;
}
.k3-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Op brede schermen hangt de foto aan de rechterkolom, zodat de scherpe
   leren banden altijd naast de boekenlegger staan. */
.k3-hero-mark { position: relative; min-height: 360px; container-type: inline-size; }
.k3-hero-mark::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -90px;
  right: max(-200px, min(-20px, calc((1200px - 100vw) / 2 - 20px)));
  background:
    linear-gradient(90deg, var(--olive) 0, rgba(54, 65, 44, .82) 40px, rgba(54, 65, 44, .42) 110px, rgba(54, 65, 44, .02) 210px, rgba(36, 44, 28, .22) 84%, var(--olive) 100%),
    url("../img/boekenruggen.jpg") -189px 50% / auto 115% no-repeat;
}
/* Boekenlegger: steekt als bladwijzer in de pagina; de onderkant verdwijnt achter de zoekkaart */
.k3-bm {
  position: absolute;
  top: 44px;
  right: 5%;
  display: block;
  height: min(calc((100% - 100px) * 1.06), 265cqi);
  transform-origin: 50% 100%;
  transform: rotate(2.2deg);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)) drop-shadow(0 26px 30px rgba(0, 0, 0, .42));
  animation: k3-insteken 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.k3-bm::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  background:
    linear-gradient(90deg, rgba(92, 70, 30, .16) 0%, rgba(92, 70, 30, 0) 18%, rgba(92, 70, 30, 0) 72%, rgba(92, 70, 30, .2) 100%),
    linear-gradient(180deg, rgba(40, 30, 10, 0) 80%, rgba(40, 30, 10, .22) 100%);
}
.k3-bookmark {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  filter: sepia(.22) saturate(.9) brightness(.97);
}
@keyframes k3-insteken {
  from { transform: translateY(-34px) rotate(2.2deg); }
  to   { transform: rotate(2.2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .k3-bm { animation: none; }
}

/* Compacte kop: bij zoeken, filters of pagina > 1 */
.k3-hero-compact .k3-hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.k3-hero-compact .k3-hero-text { padding-block: 34px 90px; }
.k3-hero-compact h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); }

/* ---------- Zoekkaart ---------- */
.k3-search { position: relative; z-index: 3; margin-top: -58px; }
.k3-search-card {
  padding: 14px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 -8px 16px -10px rgba(0, 0, 0, .45), 0 18px 40px -20px rgba(30, 35, 25, .5), 0 0 0 1px rgba(0, 0, 0, .05);
}
/* Zoekveld · Taal · Periode · Zoek, zoals in het ontwerp */
.k3-catalog .k3-search-form {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin: 0;
}
.k3-search-buttons { display: flex; gap: 10px; }
.k3-search-go { padding-inline: 28px; font-size: 16px; font-weight: 700; }
.k3-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 14.5px;
}
.k3-quick a { color: var(--ink); text-decoration-color: var(--field); text-underline-offset: 3px; }
.k3-quick a:hover { color: var(--terra); }

/* Filterblok (inc-filter-block.php): velden Taal en Periode die openklappen,
   met daarin de bestaande pills, "meer"-knop en jaarvelden */
.k3-catalog .k3-dropdown {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 0;               /* catalog.css geeft .filter-toggle een rand en volle breedte */
  grid-column: auto;
}
.k3-dropdown-kop {
  position: relative;
  display: grid;
  gap: 1px;
  height: 100%;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--field);
  border-radius: var(--k3-radius-field);
  background: var(--card);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.k3-dropdown-kop::-webkit-details-marker { display: none; }
.k3-dropdown-kop::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}
.k3-dropdown[open] > .k3-dropdown-kop { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(54, 65, 44, .14); }
.k3-dropdown[open] > .k3-dropdown-kop::after { margin-top: -2px; transform: rotate(-135deg); }
.k3-dropdown-label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.k3-dropdown-waarde {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.k3-dropdown-paneel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: min(520px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
  background: var(--card);
  box-shadow: 0 18px 40px -16px rgba(30, 35, 25, .45);
}
.k3-dropdown-periode .k3-dropdown-paneel { left: auto; right: 0; }
.k3-dropdown-leeg { margin: 0; color: var(--muted); }
.k3-catalog .filter-lijst-inline { gap: 6px; }
.k3-catalog .filter-pill {
  position: relative;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--field);
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
}
.k3-catalog .filter-pill:hover { border-color: var(--olive); color: var(--ink); }
/* Vakje onzichtbaar maar wel met het toetsenbord bereikbaar (was display: none) */
.k3-catalog .filter-pill input[type="checkbox"] {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.k3-catalog .filter-pill:has(input:focus-visible) { outline: 2px solid var(--terra); outline-offset: 2px; }
.k3-catalog .filter-pill:has(input:checked) { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.k3-catalog .filter-pill-cnt { color: var(--muted); font-size: 12.5px; font-style: normal; font-variant-numeric: tabular-nums; }
.k3-catalog .filter-pill:has(input:checked) .filter-pill-cnt { color: rgba(243, 239, 227, .75); }
.k3-catalog .filter-meer-btn,
.k3-catalog .filter-details-kop {
  color: var(--terra);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.k3-catalog .filter-meer-btn:hover,
.k3-catalog .filter-details-kop:hover { color: var(--terra-deep); }
.k3-catalog .filter-details { border-top-color: var(--line); }
.k3-catalog .filter-jaar-label { color: var(--muted); font-family: var(--sans); font-size: 13px; }
.k3-catalog .filter-jaar-input {
  height: 36px;
  border: 1px solid var(--field);
  border-radius: 7px;
  background: var(--card);
  font-family: var(--sans);
  font-size: 15px;
}
.k3-catalog .filter-jaar-input:focus { border-color: var(--olive); outline: none; box-shadow: 0 0 0 3px rgba(54, 65, 44, .14); }
.k3-catalog .filter-jaar-btn {
  height: 36px;
  border: 1px solid var(--olive);
  border-radius: 7px;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.k3-catalog .filter-jaar-btn:hover { background: var(--olive-deep); }
.k3-catalog .filter-jaar-wis:hover { color: var(--terra); }

/* ---------- Secties ---------- */
.k3-section { padding-block: 64px; }
.k3-results { padding-top: 44px; }
.k3-white { background: var(--card); border-block: 1px solid var(--line); }
.k3-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 22px;
}
.k3-sec-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}
.k3-sec-head p { margin: 6px 0 0; color: var(--muted); }
.k3-link-btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: 8px 14px;
  border: 1px solid #cfccc1;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.k3-link-btn:hover { border-color: var(--olive); }

/* ---------- Werkbalk: aantal, sortering, weergave ---------- */
.k3-catalog .toolbar {
  flex-direction: row;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 20px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.k3-catalog .toolbar-left { gap: 2px; }
.k3-catalog .result-count {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}
.k3-catalog .result-count b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.k3-catalog .result-query { color: var(--muted); font-size: 14px; font-style: normal; }
.k3-catalog .toolbar-right { width: auto; gap: 10px 16px; justify-content: flex-start; }
.k3-catalog .sort-wrap,
.k3-catalog .view-wrap { width: auto; gap: 8px; }
.k3-catalog .toolbar-label {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.k3-catalog .toolbar select {
  height: auto;
  min-width: 0;
  padding: 7px 34px 7px 10px;
  border: 1px solid var(--field);
  border-radius: 7px;
  background-color: var(--card);
  background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}
.k3-catalog .toolbar select:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(54, 65, 44, .14); }
.k3-catalog .view-toggle {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--field);
  border-radius: 8px;
  background: var(--card);
  box-shadow: none;
}
.k3-catalog .view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: auto;
  padding: 8px 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}
.k3-catalog .view-toggle button + button { border-left: 1px solid var(--field); }
.k3-catalog .view-toggle button:hover { background: var(--tint); color: var(--ink); }
.k3-catalog .view-toggle button[aria-pressed="true"] { background: var(--olive); color: var(--cream); box-shadow: none; }
.k3-catalog .view-toggle button:focus { box-shadow: none; }
.k3-catalog .view-toggle svg { width: 16px; height: 16px; flex: none; }

/* Actieve filters als chips */
.k3-catalog .filter-chips { margin: -6px 0 18px; }
.k3-catalog .chip {
  padding: 5px 12px;
  border: 1px solid var(--field);
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
}
.k3-catalog .chip:hover { border-color: var(--terra); color: var(--terra); }
.k3-catalog .chip-wis { border-color: transparent; background: transparent; color: var(--terra); font-weight: 600; }

/* ---------- Raster ---------- */
.k3-catalog .grid-container {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  justify-content: stretch;
}
.k3-catalog .grid-container .book-card { max-width: none; }
.k3-catalog .book-card {
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
  background: var(--card);
  box-shadow: none;
  transition: box-shadow .2s, transform .2s;
}
.k3-catalog .book-card::before { content: none; }
.k3-catalog .book-card:hover { border-color: var(--line); box-shadow: var(--k3-shadow-card); transform: translateY(-2px); }
.k3-catalog .grid .cover-wrap {
  aspect-ratio: 1 / 1;
  padding: 5%;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.k3-catalog .image-count-badge {
  background: rgba(35, 38, 31, .75);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.k3-catalog .cover-hover-cta {
  background: var(--terra);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.k3-catalog .card-body { gap: 5px; padding: 14px 16px 16px; }
.k3-catalog .title {
  margin: 3px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.15;
}
.k3-catalog .grid .title { min-height: 0; -webkit-line-clamp: 3; }
.k3-catalog .author,
.k3-catalog .meta,
.k3-catalog .note { font-family: var(--sans) !important; }
.k3-catalog .author { margin: 0; color: var(--ink); font-size: 14.5px; font-style: normal; font-weight: 500; }
.k3-catalog .meta { margin: 0; color: var(--muted); font-size: 13.5px; }
.k3-catalog .description { margin: 0; color: var(--muted); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
.k3-catalog .grid .description { min-height: 0; margin-top: 4px; -webkit-line-clamp: 3; }
.k3-catalog .card-footer { margin-top: auto; padding-top: 12px; border-top: 0; align-items: baseline; }
.k3-catalog .price {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.k3-catalog .booknumber,
.k3-catalog .isbn { color: var(--muted); font-size: 12.5px; font-style: normal; font-variant-numeric: tabular-nums; }
.k3-catalog .k3-tags { margin-bottom: 1px; }

/* ---------- Lijst ---------- */
.k3-catalog .list.active { display: grid; gap: 12px; max-width: none; }
.k3-catalog .book-row {
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
  background: var(--card);
  box-shadow: none;
  transition: box-shadow .2s;
}
.k3-catalog .book-row:hover { border-color: var(--line); box-shadow: 0 14px 28px -20px rgba(30, 35, 25, .5); transform: none; }
.k3-catalog .book-row a {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 14px 18px 14px 14px;
}
.k3-catalog .book-row .book-thumb .cover-wrap {
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #fff;
}
.k3-catalog .book-row .book-thumb img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.k3-catalog .row-body { gap: 4px; padding: 0; }
.k3-catalog .list .title { margin: 3px 0 0; font-size: 20px; }
.k3-catalog .list .author { margin: 0; font-size: 14.5px; }
.k3-catalog .list .meta { margin: 0; font-size: 13.5px; }
.k3-catalog .list .description {
  display: -webkit-box;
  max-width: 72ch;
  margin-top: 6px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.k3-catalog .note {
  max-width: 72ch;
  margin-top: 8px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  font-style: italic;
}
.k3-catalog .row-footer {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 120px;
  margin: 0;
  padding-top: 2px;
  text-align: right;
}
.k3-catalog .row-left,
.k3-catalog .row-right { align-items: flex-end; gap: 6px; }
.k3-catalog .row-cta {
  opacity: 1;
  transform: none;
  color: var(--terra);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.k3-catalog .book-row:hover .row-cta { color: var(--terra-deep); }

/* ---------- Tabel ---------- */
.k3-catalog .table-view.active { max-width: none; }
.k3-catalog .table-scroll {
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
  background: var(--card);
  box-shadow: none;
}
.k3-catalog .book-table { min-width: 760px; table-layout: auto; font-family: var(--sans); font-size: 15px; }
.k3-catalog .book-table thead th {
  padding: 11px 14px;
  border-bottom: 0;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.k3-catalog .book-table tbody td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--ink);
  line-height: 1.4;
  vertical-align: top;
}
.k3-catalog .book-table tbody tr:nth-child(even) { background: #fbfaf7; }
.k3-catalog .book-table tbody tr:hover { background: var(--tint); }
.k3-catalog .book-table .col-title { white-space: normal; }
.k3-catalog .book-table .col-title a {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.25;
  white-space: normal;
}
.k3-catalog .book-table tbody tr:hover .col-title a { color: var(--terra); }
.k3-catalog .book-table .col-author { width: auto; min-width: 160px; color: var(--muted); font-style: normal; white-space: normal; }
.k3-catalog .book-table .col-year,
.k3-catalog .book-table .col-lang,
.k3-catalog .book-table .col-booknr { width: auto; color: var(--muted); font-style: normal; font-variant-numeric: tabular-nums; }
.k3-catalog .book-table .col-price { width: auto; color: var(--ink); font-family: var(--sans); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.k3-catalog .book-table thead .col-price,
.k3-catalog .book-table thead .col-year,
.k3-catalog .book-table thead .col-lang,
.k3-catalog .book-table thead .col-booknr,
.k3-catalog .book-table thead .col-author { color: var(--cream); }

/* ---------- Lege toestand en paginering ---------- */
.k3-catalog .empty-state {
  padding: 56px 22px;
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
  background: var(--card);
  box-shadow: none;
}
.k3-catalog .empty-state::before { content: none; }
.k3-catalog .empty-state h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.k3-catalog .empty-state p { font-style: normal; }
.k3-catalog .btn {
  height: auto;
  padding: 10px 18px;
  border: 1px solid #cfccc1;
  border-radius: 8px;
  background: var(--card);
  box-shadow: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.k3-catalog .btn:hover { border-color: var(--olive); box-shadow: none; color: var(--ink); transform: none; }
.k3-catalog .aff-blok strong { font-family: var(--sans); font-size: 15px; letter-spacing: 0; }

.k3-catalog .pagination-block {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
}
.k3-catalog .page-status { order: -1; color: var(--muted); font-family: var(--sans); font-size: 14.5px; letter-spacing: 0; }
.k3-catalog .pagination a,
.k3-catalog .pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border: 1px solid var(--field);
  border-radius: 8px;
  background: var(--card);
  box-shadow: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.k3-catalog .pagination a:hover { border-color: var(--olive); box-shadow: none; color: var(--ink); transform: none; }
.k3-catalog .pagination .current { border-color: var(--olive); background: var(--olive); color: var(--cream); }
.k3-catalog .page-arrow { font-size: 18px !important; }

/* ---------- Uitgelicht ---------- */
.k3-feats { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
.k3-feats-een { grid-template-columns: minmax(0, 1fr); }
.k3-feat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.k3-feat:hover { border-color: #cfccc1; }
.k3-feat-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  padding: 14px;
  background: #fff;
}
.k3-feat-img img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.k3-feat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line);
}
.k3-feat-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.k3-feat-author { font-size: 14.5px; font-weight: 500; }
.k3-feat-pub { color: var(--muted); font-size: 13.5px; }
.k3-feat-desc { max-width: 60ch; margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.k3-feat-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}
.k3-feat-price { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.k3-more { color: var(--terra); font-size: 15px; font-weight: 600; }

/* ---------- Blader op onderwerp ---------- */
.k3-spec-label { margin: 0 0 12px; color: var(--muted); }
.k3-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}
.k3-spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 9px;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.1;
  text-decoration: none;
}
.k3-spec span { color: var(--gold); font-family: var(--sans); font-size: 14px; }
.k3-spec:hover { background: var(--olive-deep); }
.k3-all-subjects { margin: 0; padding: 0; list-style: none; columns: 5 160px; column-gap: 28px; }
.k3-all-subjects li { padding: 5px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.k3-all-subjects a { color: var(--ink); text-decoration: none; }
.k3-all-subjects a:hover { color: var(--terra); }

/* ---------- Over ons ---------- */
.k3-about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
.k3-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--k3-radius-card);
}
.k3-about .k3-eyebrow { color: var(--terra); }
.k3-about h2 {
  margin: 10px 0 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}
.k3-about p { max-width: 62ch; margin: 0 0 14px; }
.k3-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}
.k3-facts div { display: grid; gap: 2px; }
.k3-facts dt { font-family: var(--serif); font-size: 26px; line-height: 1.05; font-variant-numeric: lining-nums; }
.k3-facts dd { margin: 0; color: var(--muted); font-size: 13.5px; }
.k3-history { margin-top: 48px; }
.k3-history h3 {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.k3-history-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
}
.k3-history figure { margin: 0; }
.k3-history img { display: block; width: 100%; height: 230px; object-fit: cover; border-radius: 8px; }
.k3-history figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Boeken verkopen ---------- */
.k3-sell { background: var(--olive-deep); color: var(--cream); }
.k3-sell-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-block: 64px;
}
.k3-sell .k3-eyebrow { color: var(--gold); }
.k3-sell h2 {
  margin: 10px 0 16px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}
.k3-sell p { max-width: 54ch; margin: 0 0 14px; color: rgba(243, 239, 227, .86); }
.k3-contact-lines { display: grid; gap: 4px; margin: 20px 0 22px; font-size: 15.5px; }
.k3-contact-lines b {
  display: inline-block;
  min-width: 90px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.k3-contact-lines a { color: inherit; }
.k3-sell-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.k3-steps {
  align-self: start;
  padding: 24px 26px;
  border: 1px solid rgba(243, 239, 227, .14);
  border-radius: 12px;
  background: rgba(243, 239, 227, .06);
}
.k3-steps h3 { margin: 0 0 14px; color: var(--cream); font-family: var(--serif); font-size: 24px; font-weight: 400; }
.k3-steps ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: k3-stap; }
.k3-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: rgba(243, 239, 227, .9);
  counter-increment: k3-stap;
}
.k3-steps li::before {
  content: counter(k3-stap);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--olive-deep);
  font-size: 14px;
  font-weight: 700;
}
.k3-steps .k3-steps-note { margin: 16px 0 0; color: rgba(243, 239, 227, .7); font-size: 14px; }
/* Het donkere inkoopblok sluit direct aan op de voet */
body:has(.k3-sell) .k3-foot { margin-top: 0; }

/* ---------- Smallere schermen ---------- */
@media (max-width: 980px) {
  .k3-catalog .grid-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k3-feats { grid-template-columns: minmax(0, 1fr); }
  .k3-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* catalog.css zet hier de werkbalk onder elkaar en de lijst in één kolom */
  .k3-catalog .toolbar { flex-direction: row; align-items: center; }
  .k3-catalog .toolbar-right { width: auto; justify-content: flex-start; }
  .k3-catalog .book-row a { grid-template-columns: 132px minmax(0, 1fr) auto; }
  .k3-catalog .book-row .book-thumb .cover-wrap { min-height: 0; border: 0; }
}
@media (max-width: 860px) {
  .k3-about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .k3-portrait { max-width: 360px; }
  .k3-sell-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 700px) {
  /* catalog.css verbergt hier jaar en taal; de tabel scrolt nu zelf horizontaal */
  .k3-catalog .book-table .col-year,
  .k3-catalog .book-table .col-lang { display: table-cell; }
  .k3-catalog .book-table thead th,
  .k3-catalog .book-table tbody td { padding: 10px 12px; font-size: 14.5px; }
  .k3-catalog .sort-wrap,
  .k3-catalog .view-wrap { width: auto; }
  .k3-catalog .toolbar select { width: 100%; }
}
@media (max-width: 640px) {
  /* Hero: foto gedimd als achtergrond, boekenlegger klein naast de kop */
  .k3-hero-photo { display: block; opacity: .5; }
  .k3-hero-photo::after { background: rgba(54, 65, 44, .75); }
  .k3-hero-mark::before { display: none; }
  .k3-hero-in { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; min-height: 0; }
  .k3-hero-compact .k3-hero-in { grid-template-columns: minmax(0, 1fr); }
  .k3-hero-text { padding-block: 30px 92px; }
  .k3-hero p { font-size: 16px; }
  .k3-hero-mark { min-height: 0; }
  .k3-bm { position: relative; top: auto; right: auto; height: auto; margin-top: 30px; transform: rotate(2deg); animation: none; }
  .k3-bookmark { width: 100%; height: auto; }

  .k3-search-buttons .k3-btn { flex: 1; }

  .k3-catalog .toolbar { flex-direction: column; align-items: stretch; }
  .k3-catalog .toolbar-right { justify-content: space-between; flex-wrap: nowrap; }
  .k3-catalog .sort-wrap { flex: 1; min-width: 0; }
  .k3-catalog .sort-wrap form { flex: 1; min-width: 0; }

  /* Lijst: kleinere foto, geen beschrijving, prijs en nummer onder de tekst */
  .k3-catalog .book-row a { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .k3-catalog .book-row .book-thumb { grid-row: 1 / span 2; }
  .k3-catalog .row-footer {
    display: flex;
    flex-wrap: wrap;
    grid-column: 2;
    justify-content: flex-start;
    align-items: baseline;
    gap: 4px 12px;
    min-width: 0;
    text-align: left;
  }
  .k3-catalog .row-left,
  .k3-catalog .row-right { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .k3-catalog .list .description { display: none; }
  .k3-catalog .list .title { font-size: 18px; }

  .k3-catalog .pagination-block { justify-content: center; }
  .k3-catalog .page-status { width: 100%; text-align: center; }

  .k3-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k3-history-grid { grid-template-columns: 1fr 1fr; }
  .k3-history figure:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .k3-history img { height: 170px; }
  .k3-section { padding-block: 48px; }
}
@media (max-width: 520px) {
  .k3-catalog .view-toggle span { display: none; }
  .k3-catalog .view-toggle button { padding: 9px 12px; }
  .k3-catalog .grid-container { gap: 12px; }
  .k3-catalog .card-body { padding: 12px; }
  .k3-catalog .title { font-size: 17px; }
  .k3-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .k3-spec { min-width: 0; padding: 14px 12px; font-size: 17px; hyphens: auto; overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  /* Sortering op een eigen regel, zodat de keuze niet wordt afgekapt */
  .k3-catalog .toolbar-right { flex-wrap: wrap; }
  .k3-catalog .sort-wrap { flex: 1 1 100%; }
}

/* Zoekkaart op smallere schermen: zoekveld en knop over de volle breedte, Taal en Periode naast elkaar */
@media (max-width: 860px) {
  .k3-catalog .k3-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k3-catalog .k3-field-q,
  .k3-catalog .k3-search-buttons { grid-column: 1 / -1; }
}
.k3-hero-compact p { margin: 8px 0 0; font-size: 16px; }
.k3-catalog .back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}
.k3-catalog .back-link:hover { color: #fff; }

/* Jaarvelden in het Periode-veld naast elkaar (catalog.css zet ze op mobiel onder elkaar) */
.k3-dropdown-paneel .filter-jaar { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }

/* ==========================================================================
   Detailpagina (fase 5)
   ========================================================================== */
.k3-detail { display: block; font-family: var(--sans); }

/* Kruimelpad met terugknop */
.k3-crumbs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 10px;
}
.k3-breadcrumb { min-width: 0; }
.k3-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.k3-breadcrumb li { min-width: 0; }
.k3-breadcrumb li + li::before { content: "›"; margin-right: 8px; color: #b9b6aa; }
.k3-breadcrumb a { color: var(--muted); text-decoration: none; }
.k3-breadcrumb a:hover { color: var(--terra); }
.k3-breadcrumb [aria-current] {
  display: inline-block;
  max-width: 48ch;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* Knoppen (bestaande .knopje-klassen) */
.k3-detail .knopje {
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--k3-radius-field);
  box-shadow: none;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}
.k3-detail .knopje:hover { box-shadow: none; transform: none; }
.k3-detail .knop-bestellen { border-color: var(--terra); background: var(--terra); color: #fff; }
.k3-detail .knop-bestellen:hover { border-color: var(--terra-deep); background: var(--terra-deep); }
.k3-detail .knop-info { border-color: #cfccc1; background: var(--card); color: var(--ink); }
.k3-detail .knop-info:hover { border-color: var(--olive); color: var(--ink); }
.k3-detail .knop-terug {
  flex: none;
  min-height: 0;
  padding: 7px 14px;
  border-color: #cfccc1;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.k3-detail .knop-terug:hover { border-color: var(--olive); background: var(--card); color: var(--ink); }
/* detail.php maakt op smalle schermen alle .knopje 100% breed; de terugknop houdt zijn eigen breedte */
.k3-detail .k3-crumbs .knop-terug { width: auto; }
.k3-crumbs .k3-breadcrumb { flex: 1; }

/* Foto's links, gegevens rechts */
.k3-detail .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  max-width: var(--k3-max);
  padding: 8px max(var(--k3-gutter), env(safe-area-inset-right, 0px)) 0 max(var(--k3-gutter), env(safe-area-inset-left, 0px));
}
.k3-detail .images {
  position: sticky;
  top: 20px;
  gap: 12px;
  max-width: none;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
  background: var(--card);
  box-shadow: none;
}
.k3-detail .images > a { padding: 0; border: 0; border-radius: 6px; background: #fff; }
.k3-detail .images > a img { max-height: 560px; object-fit: contain; border-radius: 0; }
.k3-detail .images .thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}
.k3-detail .images .thumbnails a {
  flex: none;
  max-width: none;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.k3-detail .images .thumbnails a:hover { border-color: var(--olive); }
.k3-detail .images .thumbnails img { width: 100%; height: 72px; object-fit: contain; border-radius: 0; }
.k3-detail .stockfoto-tekst { margin: 0; color: var(--muted); font-size: 13px; }

.k3-detail .details {
  padding: 6px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.k3-detail .boeknummer {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.k3-detail .details h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}
.k3-detail .details h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
}
.k3-detail .details p,
.k3-detail .details p:nth-of-type(1) { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.k3-detail .details p.boeknummer { margin-bottom: 10px; font-size: 12px; }
.k3-detail .details p strong { color: var(--ink); font-family: var(--sans); font-size: inherit; font-weight: 600; letter-spacing: 0; }
.k3-detail .prijs {
  margin: 22px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.k3-detail .actieblokken { gap: 10px; margin: 0; padding: 0; border: 0; }

/* Volledige beschrijving op leesbreedte */
.k3-detail-tekst { padding-top: 36px; }
.k3-beschrijving { max-width: 65ch; margin: 0; color: var(--ink); font-size: 17px; line-height: 1.65; }
.k3-detail .noot {
  font-family: var(--sans) !important; /* style.css zet .noot met !important op Cormorant */
  max-width: 65ch;
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--card);
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}

/* Meer van … en Zojuist bekeken: rasterstijl van het overzicht */
.k3-detail-extra .extra-blokken { gap: 44px; padding-top: 52px; }
.k3-detail-extra .detail-blok-kop {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.k3-catalog .extra-blokken .cover-wrap { aspect-ratio: 1 / 1; padding: 5%; border-bottom: 1px solid var(--line); }
.k3-catalog .extra-blokken .title,
.k3-catalog .extra-blokken .description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.k3-catalog .extra-blokken .description { margin-top: 4px; }
.k3-detail-extra .detail-blok-meer {
  margin-top: 16px;
  padding: 8px 14px;
  border: 1px solid #cfccc1;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.k3-detail-extra .detail-blok-meer:hover { border-color: var(--olive); color: var(--ink); }
.lb-data .lb-caption,
.lb-data .lb-number { font-family: var(--sans); }

/* Boek verkocht of niet gevonden */
.k3-detail-weg .container { display: flex; justify-content: center; padding-block: 56px 0; }
.k3-detail-weg .details {
  width: 100%;
  max-width: 640px;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
  background: var(--card);
  text-align: center;
}
.k3-detail-weg .verkocht-label {
  padding: 4px 12px;
  border: 0;
  border-radius: 4px;
  background: #f6e8e1;
  color: var(--terra);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.k3-detail-weg .details p { color: var(--muted); font-size: 16px; }
.k3-detail-weg .actieblokken { justify-content: center; padding-top: 20px; border-top: 1px solid var(--line); }
.k3-detail-weg .aff-blok { align-items: center; text-align: center; }
.k3-detail-weg .aff-blok strong { font-family: var(--sans); font-size: 15px; letter-spacing: 0; }

@media (max-width: 860px) {
  .k3-detail .container { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .k3-detail .images { position: static; }
}
@media (max-width: 640px) {
  .k3-crumbs { padding-top: 14px; }
  .k3-breadcrumb [aria-current] { max-width: 22ch; }
  .k3-beschrijving { font-size: 16px; }
  .k3-detail .prijs { font-size: 26px; }
}

/* Paginakop zonder overlappende kaart (Catalogi, Over ons, Contact, Verkopen …) */
.k3-pagehead .k3-hero-text { padding-block: 36px 40px; }
.k3-pagehead p { max-width: 62ch; }

/* style.css geeft elke <main> max-width 1400px en padding 1em; de nieuwe pagina's lopen schermbreed */
.k3-catalog,
.k3-detail,
.k3-page { max-width: none; margin: 0; padding: 0; }
.k3-hero { font-family: var(--sans); }

/* ==========================================================================
   Inhoudspagina's: Over ons, Boeken verkopen, Contact (fase 5)
   ========================================================================== */
body:has(.k3-page) { background: var(--paper); font-family: var(--sans); }
.k3-page { display: block; font-family: var(--sans); }
.k3-page .page-wrap,
.k3-page .contact-page { padding-top: 36px; padding-bottom: 0; }

/* Panelen en kaarten */
.k3-page .panel,
.k3-page .card {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
  background: var(--card);
  box-shadow: none;
}
.k3-page .panel::before,
.k3-page .card::before { content: none; }
.k3-page .panel h2,
.k3-page .card h2,
.k3-page .popup-content h2 {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
}
.k3-page .panel p,
.k3-page .panel li,
.k3-page .card p,
.k3-page .faq-list p {
  max-width: 65ch;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
.k3-page .panel strong,
.k3-page .card strong { font-family: var(--sans); letter-spacing: 0; }
.k3-page a { color: var(--terra); }
.k3-page .smallnote,
.k3-page .small-note { color: var(--muted); font-size: 14px; font-style: normal; }

/* Foto's: afgerond, bijschrift in grijs */
.k3-page figure img,
.k3-page .gallery-card img,
.k3-page .portrait-wrap img { border: 0; border-radius: var(--k3-radius-card); box-shadow: none; }
.k3-page figcaption { color: var(--muted); font-family: var(--sans); font-size: 14px; font-style: normal; }
.k3-page .family-card,
.k3-page .gallery-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.k3-page .gallery-card:hover { transform: none; box-shadow: none; }

/* Knoppen (.btn / .btn-secondary) zoals .k3-btn */
.k3-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: auto;
  padding: 10px 18px;
  border: 1px solid var(--terra);
  border-radius: var(--k3-radius-field);
  background: var(--terra);
  box-shadow: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}
.k3-page .btn:hover { border-color: var(--terra-deep); background: var(--terra-deep); color: #fff; transform: none; box-shadow: none; }
.k3-page .btn-secondary { border-color: #cfccc1; background: var(--card); color: var(--ink); }
.k3-page .btn-secondary:hover { border-color: var(--olive); background: var(--card); color: var(--ink); }

/* Feitenblok (Over ons) en inkoopblok (Verkopen) */
.k3-page .cta-box {
  padding: 24px 26px;
  border: 0;
  border-radius: var(--k3-radius-card);
  background: var(--olive);
  box-shadow: none;
  color: var(--cream);
}
.k3-page .cta-box p { margin: 0 0 6px; color: rgba(243, 239, 227, .88); font-family: var(--sans); font-size: 15px; }
.k3-page .cta-box p:first-child strong { color: var(--cream); font-family: var(--serif); font-size: 20px; font-weight: 400; }

/* Contactgegevens */
.k3-page .contact-text strong,
.k3-page .contact-details p strong {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.k3-page .contact-illustration { border-color: var(--line); border-radius: var(--k3-radius-card); }

/* Formulieren: dezelfde veldstijl als de zoekkaart; velden zelf ongewijzigd */
.k3-page label,
.k3-page label.field {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.k3-page input[type="text"],
.k3-page input[type="email"],
.k3-page input[type="number"],
.k3-page input[type="tel"],
.k3-page select,
.k3-page textarea {
  border: 1px solid var(--field);
  border-radius: var(--k3-radius-field);
  background: var(--card);
  box-shadow: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}
.k3-page input[type="text"]:focus,
.k3-page input[type="email"]:focus,
.k3-page input[type="number"]:focus,
.k3-page input[type="tel"]:focus,
.k3-page select:focus,
.k3-page textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(54, 65, 44, .14);
  outline: none;
}
.k3-page input[type="submit"],
.popup-overlay input[type="submit"] {
  min-height: 48px;
  border: 0;
  border-radius: var(--k3-radius-field);
  background: var(--terra);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.k3-page input[type="submit"]:hover,
.popup-overlay input[type="submit"]:hover { background: var(--terra-deep); }
.k3-page .captcha-wrap img { border-radius: 6px; }
.k3-page .boekvermelding {
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
  background: var(--tint);
}
.k3-page .boekvermelding p { color: var(--ink); font-family: var(--sans); font-size: 15px; }
.k3-page .boekvermelding-thumb { border-radius: 6px; }
.k3-page .flash-ok,
.k3-page .flash-err { border-radius: var(--k3-radius-field); font-family: var(--sans); font-size: 15px; }

/* Veelgestelde vragen */
.k3-page .faq-list article { border-bottom-color: var(--line); }
.k3-page .faq-list h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

/* Herroepingspopup (staat buiten <main>) */
.popup-overlay .popup-content {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-family: var(--sans);
}
.popup-overlay .popup-content h2 { color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: 0; text-transform: none; }
.popup-overlay .popup-content p,
.popup-overlay .return-form label,
.popup-overlay .checkbox-row label { font-family: var(--sans); }
.popup-overlay .return-form input[type="text"],
.popup-overlay .return-form input[type="email"],
.popup-overlay .return-form textarea {
  border: 1px solid var(--field);
  border-radius: var(--k3-radius-field);
  background: var(--card);
  font-family: var(--sans);
  font-size: 16px;
}
.popup-overlay .popup-close {
  border: 1px solid #cfccc1;
  border-radius: var(--k3-radius-field);
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
}
.popup-overlay .popup-close:hover { border-color: var(--olive); }

/* Galerij Over ons: drie gelijke kolommen, zoals "Beelden uit onze geschiedenis" op de homepage */
.k3-page .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.k3-page .gallery-card img { display: block; width: 100%; height: 240px; object-fit: cover; }
.k3-page .btnrow { margin-bottom: 14px; }
@media (max-width: 640px) {
  .k3-page .gallery-grid { grid-template-columns: 1fr 1fr; }
  .k3-page .gallery-card:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .k3-page .gallery-card img { height: 170px; }
  .k3-page .panel,
  .k3-page .card { padding: 22px 18px; }
}
/* Over ons: de eigen grids van de pagina mogen smaller worden dan hun inhoud (anders te breed op mobiel) */
.k3-page .about-grid { grid-template-columns: minmax(0, 1fr); }
.k3-page .portrait-wrap img,
.k3-page .family-card img { max-width: 100%; height: auto; }
@media (max-width: 900px) {
  .k3-page .intro-card,
  .k3-page .story-grid,
  .k3-page .contactbox { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Zoekkaart op elke pagina, zoals op de homepage
   ========================================================================== */
/* Smalle olijfgroene band voor pagina's zonder eigen paginakop (detail, winkelwagen …) */
.k3-zoekband { height: 78px; background: var(--olive); }

/* Kaart op pagina's zonder boekenlijst (inc-zoekkaart.php): zoekveld · Taal · Periode · Zoeken.
   Werkt ook zonder catalog.css (Over ons, Contact …). */
.k3-search-form-overal {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin: 0;
}
@media (max-width: 860px) {
  .k3-search-form-overal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k3-search-form-overal .k3-field-q,
  .k3-search-form-overal .k3-search-buttons { grid-column: 1 / -1; }
}
.k3-dropdown { position: relative; min-width: 0; }
.k3-dropdown-paneel .filter-lijst-inline { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.k3-dropdown-paneel .filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--field);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none; /* .k3-page label zet labels in hoofdletters */
  user-select: none;
  white-space: nowrap;
}
.k3-dropdown-paneel .filter-pill:hover { border-color: var(--olive); }
.k3-dropdown-paneel .filter-pill input[type="checkbox"] {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.k3-dropdown-paneel .filter-pill:has(input:focus-visible) { outline: 2px solid var(--terra); outline-offset: 2px; }
.k3-dropdown-paneel .filter-pill:has(input:checked) { border-color: var(--olive); background: var(--olive); color: var(--cream); }

/* Zoek- en onderwerppagina: zoekveld en filters zijn aparte formulieren in één rij */
.k3-search-split > form { display: contents; }

/* ==========================================================================
   Uitgebreid zoeken (uitgebreid_zoeken.php): lichte restyling, markup ongewijzigd
   ========================================================================== */
.k3-uitgebreid {
  max-width: var(--k3-max);
  margin: 0 auto;
  padding: 32px max(var(--k3-gutter), env(safe-area-inset-right, 0px)) 0 max(var(--k3-gutter), env(safe-area-inset-left, 0px));
  font-family: var(--sans);
}
.k3-uitgebreid h1 { color: var(--ink); font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); font-weight: 400; line-height: 1.05; }
.k3-uitgebreid .bovenbalk { flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.k3-uitgebreid .filters {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
  background: var(--card);
}
.k3-uitgebreid .filters label {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.k3-uitgebreid select {
  border: 1px solid var(--field);
  border-radius: var(--k3-radius-field);
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}
.k3-uitgebreid select:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(54, 65, 44, .14); outline: none; }
.k3-uitgebreid .btn {
  padding: 10px 18px;
  border: 1px solid #cfccc1;
  border-radius: var(--k3-radius-field);
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.k3-uitgebreid button.btn { border-color: var(--terra); background: var(--terra); color: #fff; cursor: pointer; }
.k3-uitgebreid button.btn:hover { border-color: var(--terra-deep); background: var(--terra-deep); }
.k3-uitgebreid .boek-kaart > a {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--k3-radius-card);
  background: var(--card);
  color: var(--ink);
  transition: box-shadow .2s;
}
.k3-uitgebreid .boek-kaart > a:hover { box-shadow: var(--k3-shadow-card); }
.k3-uitgebreid .img-container { background: #fff; }
.k3-uitgebreid .titel { margin-top: 10px; font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.15; }
.k3-uitgebreid .auteur { margin-top: 4px; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.k3-uitgebreid .beschrijving { color: var(--muted); font-size: 14px; }
.k3-uitgebreid .prijs { margin-top: 10px; font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--ink); }
.k3-uitgebreid .boeknummer { color: var(--muted); font-size: 12.5px; font-style: normal; }
.k3-uitgebreid .image-count-badge { border-radius: 999px; background: rgba(35, 38, 31, .75); font-family: var(--sans); font-size: 12px; }
@media (max-width: 640px) {
  .k3-uitgebreid .filters .group,
  .k3-uitgebreid .filters select { min-width: 0; width: 100%; }
  .k3-uitgebreid .filters .actions { margin-left: 0; }
}
/* style.css zet .bovenbalk, .pagination en (met !important) .boek-kaart op Cormorant */
.k3-uitgebreid .bovenbalk,
.k3-uitgebreid .pagination,
.k3-uitgebreid .pagination a { font-family: var(--sans); }
.k3-uitgebreid .bovenbalk h1 { font-family: var(--serif); }
.k3-uitgebreid .boek-kaart,
.k3-uitgebreid .boek-kaart .auteur,
.k3-uitgebreid .boek-kaart .prijs,
.k3-uitgebreid .boek-kaart .boeknummer,
.k3-uitgebreid .boek-kaart .beschrijving { font-family: var(--sans) !important; }
.k3-uitgebreid .boek-kaart .titel { font-family: var(--serif) !important; font-weight: 400; }
.k3-uitgebreid .filters .row { align-items: flex-start; }
.k3-uitgebreid .filters .actions { align-self: flex-end; }
.k3-uitgebreid select#sortSelect { min-height: 0; height: 46px; }

/* ==========================================================================
   Chatwidget (chat_widget.php): lichte restyling, werking ongewijzigd.
   De widget zet zijn stijl met id-selectors in zijn eigen <style>; "body #…"
   is net sterker, zodat chat_widget.php zelf niet hoeft te veranderen.
   ========================================================================== */
body #kerss-chat-root { font-family: var(--sans); }
body #kerss-chat-launcher {
  background: var(--olive);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
body #kerss-chat-launcher:hover { background: var(--olive-deep); }
body #kerss-chat-panel { border-color: var(--line); border-radius: 12px; background: var(--card); }
body #kerss-chat-header { background: var(--olive); color: var(--cream); }
body #kerss-chat-header .kerss-chat-title { font-family: var(--serif); font-size: 18px; font-weight: 400; }
body #kerss-chat-messages,
body #kerss-chat-suggesties { background: var(--paper); }
body .kerss-chat-msg.van-klant { background: var(--olive); color: var(--cream); }
body .kerss-chat-msg.van-bot { border-color: var(--line); color: var(--ink); }
body .kerss-chat-suggestie { border-color: var(--field); color: var(--ink); font-family: var(--sans); }
body .kerss-chat-suggestie:hover { background: var(--tint); }
body #kerss-chat-form { border-top-color: var(--line); }
body #kerss-chat-input { border-color: var(--field); border-radius: var(--k3-radius-field); font-family: var(--sans); }
body #kerss-chat-input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(54, 65, 44, .14); outline: none; }
body #kerss-chat-send { border-radius: var(--k3-radius-field); background: var(--terra); }
body #kerss-chat-send:hover { background: var(--terra-deep); }
body #kerss-chat-avg { color: var(--muted); }

/* ==========================================================================
   Risicopagina's (fase 6): winkelwagen, afrekenen, bedank- en betaalpagina's.
   Alleen kleuren, letters, velden en knoppen. De pagina's gebruiken in hun
   eigen CSS variabelen (--bg, --surface, --border, --text, --accent-dark …);
   die krijgen hier de nieuwe waarden, zodat hun opmaak vanzelf meegaat.
   ========================================================================== */
body:has(.k3-risk) {
  --bg: var(--paper);
  --bg-texture: none;
  --surface: var(--card);
  --surface-warm: #fbfaf7;
  --surface-mid: var(--tint);
  --border: var(--line);
  --border-strong: var(--field);
  --border-accent: var(--olive);
  --text: var(--ink);
  --text-soft: var(--ink);
  --muted-soft: var(--muted);
  --accent: var(--terra);
  --accent-dark: var(--terra);
  --accent-gold: var(--olive);
  --radius: 10px;
  --radius-sm: 8px;
  --shadow-card: none;
  --shadow-hover: 0 14px 28px -20px rgba(30, 35, 25, .5);
  --shadow-inset: none;
  background: var(--paper);
  font-family: var(--sans);
}
/* De pagina's zetten Cinzel/Cormorant op veel losse elementen; alleen het lettertype wordt hier geforceerd */
.k3-risk,
.k3-risk *,
body:has(.k3-risk) #captcha-overlay,
body:has(.k3-risk) #captcha-overlay * { font-family: var(--sans) !important; }
body .k3-risk h1,
body .k3-risk h2 {
  color: var(--ink);
  font-family: var(--serif) !important;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
body .k3-risk h3 { color: var(--ink); font-weight: 600; letter-spacing: 0; text-transform: none; }

/* Hoofdknoppen in terra: Bestellen (winkelwagen), Afrekenen, captcha, terug naar de winkel */
body .k3-risk .actieknoppen a:last-child,
body .k3-risk .submit-knop,
body:has(.k3-risk) #captcha-bevestig,
body .k3-risk .terugknop,
body .k3-risk .status-button {
  border-color: var(--terra);
  background: var(--terra);
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}
body .k3-risk .actieknoppen a:last-child:hover,
body .k3-risk .submit-knop:hover,
body:has(.k3-risk) #captcha-bevestig:hover,
body .k3-risk .terugknop:hover,
body .k3-risk .status-button:hover { border-color: var(--terra-deep); background: var(--terra-deep); color: #fff; }
/* Kortingscode toepassen: olijf */
body .k3-risk .apply-button-small { border-color: var(--olive); background: var(--olive); color: var(--cream); letter-spacing: 0; }
body .k3-risk .apply-button-small:hover { border-color: var(--olive-deep); background: var(--olive-deep); }
/* Overige knoppen in de winkelwagen: wit met rand */
body .k3-risk .actieknoppen a { letter-spacing: 0; text-transform: none; }
body .k3-risk .actieknoppen .leegmaken:hover { border-color: var(--terra); background: var(--card); color: var(--terra); }

/* Velden */
body .k3-risk input[type="text"],
body .k3-risk input[type="email"],
body .k3-risk input[type="tel"],
body .k3-risk select,
body .k3-risk textarea { border-radius: var(--k3-radius-field); color: var(--ink); font-size: 16px; }
body .k3-risk input:focus,
body .k3-risk select:focus,
body .k3-risk textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(54, 65, 44, .14); outline: none; }
body:has(.k3-risk) #captcha-overlay { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
body:has(.k3-risk) #captcha-input {
  padding: 9px 12px;
  border: 1px solid var(--field);
  border-radius: var(--k3-radius-field);
  font-size: 16px;
}
body:has(.k3-risk) #captcha-input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(54, 65, 44, .14); outline: none; }
