/*
Theme Name: Verhaal & Verbeelding
Theme URI: https://verhaal-verbeelding.nl
Author: Maresa van Milligen
Description: Op maat gemaakt thema voor Dark; langs wijsheden en werelden.
Version: 3.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: verhaal-en-verbeelding
*/

:root {
  /* Kleuren */
  --nacht:      #17211C;
  --mos:        #2C4A3B;
  --perkament:  #F3EEE4;
  --goud:       #C9A227;
  --inkt:       #22261F;
  --steen:      #6B6F68;
  --sage:       #C5C7BF;

  /* Typografie */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --tekst-h1: clamp(2.75rem, 7vw, 5rem);
  --tekst-h2: clamp(1.75rem, 4vw, 2.75rem);
  --tekst-h3: 1.25rem;
  --tekst-body: 1.125rem;
  --tekst-klein: 0.9375rem;
  --tekst-eyebrow: 0.75rem;
  --tekst-citaat: clamp(1.5rem, 3.2vw, 2.25rem);

  --regelafstand-body: 1.75;
  --regelafstand-kop: 1.1;
  --letterspacing-eyebrow: 0.14em;
  --kolom-max-tekens: 68ch;

  /* Ruimte (8px-basis) */
  --ruimte-1: 0.5rem;
  --ruimte-2: 1rem;
  --ruimte-3: 1.5rem;
  --ruimte-4: 2rem;
  --ruimte-5: 2.5rem;
  --ruimte-6: 3rem;
  --ruimte-7: 4rem;
  --ruimte-8: 5rem;

  --sectie-gap: clamp(5rem, 10vw, 9rem);

  /* Layout */
  --breedte-max: 1140px;
  --kolom-max: 680px;

  /* Overig */
  --radius: 2px;
  --duur-kort: 200ms;
  --duur-medium: 400ms;
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Basis =====
   box-sizing hieronder is bewust globaal: onze componenten combineren
   width:100% met padding en breken zonder border-box. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--tekst-body);
  line-height: var(--regelafstand-body);
  color: var(--inkt);
  background-color: var(--perkament);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* :where() geeft deze reset specificiteit 0, zodat elke component-class
   (bv. .item__titel, .bestel__titel) 'm zonder moeite kan overschrijven. */
:where(.section) :where(h1, h2, h3) {
  font-family: var(--font-display);
  line-height: var(--regelafstand-kop);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}

:where(.section) :where(p) {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--regelafstand-body);
  max-width: var(--kolom-max-tekens);
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--breedte-max);
  margin-inline: auto;
  padding-inline: var(--ruimte-4);
}

.kolom {
  max-width: var(--kolom-max);
}

.kolom--gecentreerd {
  max-width: var(--kolom-max);
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--tekst-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--letterspacing-eyebrow);
  color: var(--goud);
  margin-bottom: var(--ruimte-2);
}

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

a.visueel-verborgen:focus {
  position: fixed;
  top: var(--ruimte-2);
  left: var(--ruimte-2);
  width: auto;
  height: auto;
  padding: var(--ruimte-2) var(--ruimte-3);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: var(--perkament);
  color: var(--inkt);
  z-index: 1000;
}

/* Focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--goud);
  outline-offset: 3px;
}

/* Scroll-reveal hulpklassen (assets/js/interactie.js voegt/verwijdert enkel classes) */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duur-medium) var(--easing-spring),
              transform var(--duur-medium) var(--easing-spring);
}

.reveal.is-zichtbaar {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Topbalk ===== */
.topbalk {
  display: block;
  background-color: var(--nacht);
  color: var(--goud);
  text-align: center;
  font-size: var(--tekst-klein);
  line-height: 1.4;
  padding: var(--ruimte-1) var(--ruimte-2);
  text-decoration: none;
}

.topbalk:hover {
  text-decoration: underline;
}

/* ===== Header =====
   Compacter dan de vorige versie: kleiner logo op desktop, minder padding,
   kleinere tussenruimte tussen menu-items, en niets breekt meer lelijk af. */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  background-color: transparent;
  transition: background-color var(--duur-kort) ease, box-shadow var(--duur-kort) ease;
}

.header--scrolled {
  position: fixed;
  background-color: var(--perkament);
  box-shadow: 0 1px 0 rgba(34, 38, 31, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ruimte-3);
  padding-block: var(--ruimte-2);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__beeld {
  display: block;
  height: 4.5rem;
  width: auto;
  max-height: 100%;
}

@media (min-width: 900px) {
  .logo__beeld {
    height: 6rem;
  }
}

.nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: var(--ruimte-5);
  min-width: 0;
}

.nav__lijst {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--ruimte-2) var(--ruimte-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__lijst li {
  margin: 0;
}

.nav__link {
  display: inline-block;
  font-size: var(--tekst-klein);
  font-weight: 500;
  color: var(--perkament);
  text-decoration: none;
  position: relative;
  padding-block: var(--ruimte-1);
}

.header--scrolled .nav__link {
  color: var(--inkt);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background-color: var(--goud);
  transition: right var(--duur-kort) ease;
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  right: 0;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--ruimte-1);
  z-index: 200;
}

.nav-toggle__streep {
  width: 22px;
  height: 2px;
  background-color: var(--perkament);
  transition: background-color var(--duur-kort) ease;
}

.header--scrolled .nav-toggle__streep {
  background-color: var(--inkt);
}

.header__acties {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--ruimte-3);
}

.header__acties .button {
  display: none;
}

/* Mobiel uitschuifmenu */
@media (max-width: 899px) {
  .nav__lijst {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background-color: var(--nacht);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    gap: var(--ruimte-5);
    padding: var(--ruimte-6);
    transform: translateX(100%);
    transition: transform var(--duur-medium) var(--easing-spring);
  }

  .nav__lijst .nav__link {
    color: var(--perkament);
    font-size: 1.125rem;
  }

  .nav--open .nav__lijst {
    display: flex;
    transform: translateX(0);
  }
}

@media (min-width: 900px) {
  .nav__lijst {
    display: flex;
    position: static;
    height: auto;
    width: auto;
    background-color: transparent;
    flex-direction: row;
    padding: 0;
    transform: none;
    transition: none;
  }

  .nav-toggle {
    display: none;
  }

  .header__acties .button {
    display: inline-flex;
  }
}

/* ===== Secties ===== */
.section {
  padding-block: var(--sectie-gap);
  position: relative;
  scroll-margin-top: 6rem;
}

.section--light {
  background-color: var(--perkament);
  color: var(--inkt);
}

.section--dark {
  background-color: var(--nacht);
  color: var(--perkament);
}

.section--dark .steen-tekst,
.section__meta {
  color: var(--steen);
}

/* ===== Knoppen ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-1);
  padding: var(--ruimte-2) var(--ruimte-4);
  font-family: var(--font-body);
  font-size: var(--tekst-klein);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--duur-kort) ease, color var(--duur-kort) ease, border-color var(--duur-kort) ease;
}

.button--vol {
  background-color: var(--mos);
  color: var(--perkament);
}

.button--vol:hover {
  background-color: #23392e;
}

.button--vol:active {
  background-color: #1c2e25;
}

.button--omlijnd {
  border-color: currentColor;
  color: inherit;
}

.button--omlijnd:hover {
  background-color: rgba(243, 238, 228, 0.08);
}

.button--goud {
  background-color: var(--goud);
  color: var(--nacht);
}

.button--goud:hover {
  background-color: #dab233;
}

.button--goud:active {
  background-color: #b6911f;
}

.section--light .button--omlijnd:hover {
  background-color: rgba(34, 38, 31, 0.06);
}

/* ===== Hero =====
   url() hieronder is bewust relatief: die verwijst naar assets/img/ in
   deze zelfde themamap, dus geen media-URL nodig. */
.hero {
  padding-top: calc(var(--sectie-gap) + var(--ruimte-8));
  padding-bottom: var(--sectie-gap);
  background-image: linear-gradient(rgba(23, 33, 28, 0.55), rgba(23, 33, 28, 0.55)), url("assets/img/bomen-eifel.webp");
  background-size: cover;
  background-position: center;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero__inhoud {
  max-width: 640px;
  text-align: left;
}

.hero__titel {
  margin-bottom: var(--ruimte-4);
}

.hero__titel-logo {
  display: block;
  height: clamp(3.75rem, 9vw, 6.25rem);
  width: auto;
}

.hero__titel-sub {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  margin-top: var(--ruimte-1);
}

.hero__lead {
  font-size: 1.1875rem;
  max-width: 52ch;
  margin-bottom: var(--ruimte-5);
  color: var(--perkament);
}

.hero__acties {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ruimte-3);
}

/* Op smalle schermen wordt de topbalk + header hoger dan de vaste sectie-gap-formule aanhoudt */
@media (max-width: 639px) {
  .hero,
  .pagina-intro {
    padding-top: 15rem;
  }
}

/* ===== Pagina-intro (interne pagina's) ===== */
.pagina-intro {
  padding-top: calc(var(--sectie-gap) + var(--ruimte-8));
  padding-bottom: var(--ruimte-7);
}

.pagina-intro__lead {
  max-width: 56ch;
  margin-top: var(--ruimte-3);
  color: var(--perkament);
}

/* ===== Feiten-rij ===== */
.feiten {
  padding-block: var(--ruimte-7);
  background-color: var(--sage);
}

.feiten__lijst {
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.feiten__item {
  text-align: center;
  padding-block: var(--ruimte-2);
  font-size: var(--tekst-klein);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  .feiten__lijst {
    flex-direction: row;
    justify-content: center;
  }

  .feiten__item {
    flex: 1;
    padding-inline: var(--ruimte-4);
    border-left: 1px solid rgba(34, 38, 31, 0.15);
  }

  .feiten__item:first-child {
    border-left: none;
  }
}

/* ===== Verhaal-tekst ===== */
.verhaal__tekst > p {
  margin-bottom: var(--ruimte-3);
}

.link-pijl {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-1);
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  margin-top: var(--ruimte-2);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.link-pijl:hover {
  color: var(--goud);
}

/* ===== Item / productcomponent ===== */
.item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ruimte-6);
  justify-items: center;
}

.item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ruimte-4);
  max-width: 640px;
  width: 100%;
}

.item__cover {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
}

/* Fotogalerij binnen .item: hoofdfoto + miniaturen om te wisselen.
   Werkt nu met 1 miniatuur, klaar om er meer bij te zetten (assets/js/interactie.js). */
.item__galerij {
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-2);
}

.item__miniaturen {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ruimte-2);
  padding-inline: var(--ruimte-2);
}

.item__miniatuur {
  width: 3.5rem;
  aspect-ratio: 2 / 3;
  padding: 2px;
  background-color: var(--sage);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--duur-kort) ease;
}

.item__miniatuur img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item__miniatuur:hover {
  border-color: rgba(34, 38, 31, 0.25);
}

.item__miniatuur.is-actief {
  border-color: var(--goud);
}

.item__titel {
  margin-bottom: var(--ruimte-2);
}

.item__omschrijving {
  color: var(--inkt);
  margin-bottom: var(--ruimte-3);
}

.item__prijs {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--ruimte-3);
}

.item__meta {
  display: block;
  margin-top: var(--ruimte-2);
  font-size: var(--tekst-klein);
  color: var(--steen);
}

@media (min-width: 640px) {
  .item {
    grid-template-columns: minmax(200px, 280px) 1fr;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .item-grid[data-aantal="1"] {
    grid-template-columns: 1fr;
  }

  .item-grid:not([data-aantal="1"]) {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* ===== Bestellen ===== */
.bestel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ruimte-6);
}

.bestel__galerij img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.bestel__titel {
  margin-bottom: var(--ruimte-2);
}

.bestel__omschrijving {
  margin-bottom: var(--ruimte-4);
}

.bestel__kenmerken {
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-1);
  font-size: var(--tekst-klein);
  color: var(--steen);
  list-style: none;
  margin: 0 0 var(--ruimte-4);
  padding: 0;
}

.bestel__prijs {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: var(--ruimte-4);
}

.bestel__meta {
  display: block;
  margin-top: var(--ruimte-2);
  font-size: var(--tekst-klein);
  color: var(--steen);
}

.bestel__info {
  margin-top: var(--ruimte-8);
  padding-top: var(--ruimte-6);
  border-top: 1px solid rgba(34, 38, 31, 0.15);
}

.bestel__info-titel {
  margin-bottom: var(--ruimte-3);
}

.bestel__info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ruimte-4);
}

.bestel__info-grid h3 {
  font-family: var(--font-body);
  font-size: var(--tekst-klein);
  text-transform: uppercase;
  letter-spacing: var(--letterspacing-eyebrow);
  color: var(--mos);
  margin-bottom: var(--ruimte-1);
  font-weight: 600;
}

@media (min-width: 640px) {
  .bestel__grid {
    grid-template-columns: minmax(240px, 380px) 1fr;
    align-items: start;
  }
}

/* ===== Citaat ===== */
.citaat {
  text-align: center;
}

.citaat__tekst {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--tekst-citaat);
  line-height: 1.4;
  max-width: 840px;
  margin-inline: auto;
}

/* ===== Over Maresa ===== */
.over__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ruimte-5);
  align-items: center;
}

.over__media {
  background-color: var(--sage);
}

.over__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.over__inhoud p {
  margin-bottom: var(--ruimte-3);
}

@media (min-width: 900px) {
  .over__grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--ruimte-7);
  }
}

/* ===== Nieuwsbrief ===== */
.nieuwsbrief {
  text-align: center;
}

.nieuwsbrief__inhoud {
  max-width: 480px;
  margin-inline: auto;
}

.nieuwsbrief__uitleg {
  margin-block: var(--ruimte-3) var(--ruimte-4);
  opacity: 0.85;
}

.nieuwsbrief .form--gestapeld {
  align-items: center;
  margin-inline: auto;
}

.nieuwsbrief .form__veld {
  width: 100%;
}

.nieuwsbrief .form__label {
  text-align: center;
}

.nieuwsbrief .form__knop {
  align-self: center;
}

.form__rij {
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-2);
}

.form__label {
  text-align: left;
  font-size: var(--tekst-klein);
  font-weight: 500;
}

.form__input {
  width: 100%;
  padding: var(--ruimte-2) var(--ruimte-3);
  background-color: transparent;
  border: 1px solid rgba(243, 238, 228, 0.35);
  color: var(--perkament);
  border-radius: var(--radius);
  font-size: var(--tekst-body);
}

.form__input::placeholder {
  color: rgba(243, 238, 228, 0.5);
}

.form__knop {
  margin-top: var(--ruimte-1);
}

@media (min-width: 640px) {
  .form__rij {
    flex-direction: row;
    align-items: flex-end;
  }

  .form__veld {
    flex: 1;
  }
}

.form--licht .form__input {
  border-color: rgba(34, 38, 31, 0.25);
  color: var(--inkt);
}

.form--licht .form__input::placeholder {
  color: var(--steen);
}

.form--gestapeld {
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-3);
  max-width: var(--kolom-max);
}

.form--gestapeld .form__rij {
  flex-direction: column;
  align-items: stretch;
}

.form--gestapeld .form__label {
  margin-bottom: var(--ruimte-1);
}

.contact__direct {
  margin-top: var(--ruimte-4);
  color: var(--steen);
}

textarea.form__input {
  min-height: 9rem;
  resize: vertical;
  font-family: var(--font-body);
}

/* ===== Slot-CTA ===== */
.slot-cta {
  text-align: center;
}

.slot-cta__titel {
  margin-bottom: var(--ruimte-4);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--nacht);
  color: var(--perkament);
  padding-block: var(--ruimte-7) var(--ruimte-5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ruimte-5);
  margin-bottom: var(--ruimte-6);
}

.footer__kolom-titel {
  font-family: var(--font-body);
  font-size: var(--tekst-klein);
  text-transform: uppercase;
  letter-spacing: var(--letterspacing-eyebrow);
  color: var(--goud);
  margin-bottom: var(--ruimte-3);
  font-weight: 500;
}

.footer__lijst {
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__lijst a {
  text-decoration: none;
}

.footer__lijst a:hover {
  color: var(--goud);
}

.footer__lijn {
  border: none;
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  margin-bottom: var(--ruimte-3);
}

.footer__onder {
  font-size: var(--tekst-klein);
  color: var(--steen);
  margin: 0;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Vrije tekst uit de gewone editor (bv. Privacyverklaring, Algemene voorwaarden):
   :where(.section) p/h1-h3 hierboven staat op margin:0, dus zonder dit plakt
   alles zonder witruimte aan elkaar. */
.pagina-inhoud > p,
.pagina-inhoud > ul,
.pagina-inhoud > ol,
.pagina-inhoud > blockquote,
.pagina-inhoud > table,
.pagina-inhoud > figure {
  margin-bottom: var(--ruimte-3) !important;
}

.pagina-inhoud > h2 {
  margin-top: var(--ruimte-6) !important;
  margin-bottom: var(--ruimte-2) !important;
}

.pagina-inhoud > h3 {
  margin-top: var(--ruimte-4) !important;
  margin-bottom: var(--ruimte-2) !important;
}

.pagina-inhoud > ul,
.pagina-inhoud > ol {
  padding-left: 1.25em;
}

.pagina-inhoud > ul {
  list-style: disc;
}

.pagina-inhoud > ol {
  list-style: decimal;
}

.pagina-inhoud a {
  text-decoration: underline;
}

/* ===== WooCommerce =====
   Herstijlt winkelwagen, kassa, mijn account en shop/productpagina's naar
   onze eigen kleuren/typografie in plaats van WooCommerce's eigen blauw-grijze look. */
.woocommerce-pagina {
  max-width: var(--breedte-max);
}

.woocommerce {
  font-family: var(--font-body);
}

.woocommerce h2,
.woocommerce h3 {
  font-family: var(--font-display);
  color: var(--inkt);
}

/* Meldingen (leeg winkelwagentje, "toegevoegd aan winkelwagen", fouten)
   WooCommerce's eigen woocommerce.css zet zelf !important op achtergrond-
   en randkleur van deze klassen, dus dat doen wij hier ook overal. */
.woocommerce-info,
.woocommerce-message,
.woocommerce-noreviews,
.woocommerce-error,
p.cart-empty,
.woocommerce-form-login-toggle,
.woocommerce-form-coupon-toggle {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: var(--ruimte-2) !important;
  list-style: none !important;
  margin: 0 0 var(--ruimte-4) !important;
  padding: var(--ruimte-3) var(--ruimte-4) !important;
  background-color: var(--sage) !important;
  background: var(--sage) !important;
  border: none !important;
  border-top: none !important;
  border-left: 3px solid var(--mos) !important;
  border-radius: var(--radius) !important;
  color: var(--inkt) !important;
  font-family: var(--font-body) !important;
}

.woocommerce-error {
  border-left-color: #a33 !important;
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before,
p.cart-empty::before {
  display: none !important;
}

/* Knoppen: WooCommerce gebruikt ook .button, dus we overschrijven bewust met
   !important — anders wint woocommerce.css bij gelijke specificiteit. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--ruimte-1) !important;
  padding: var(--ruimte-2) var(--ruimte-4) !important;
  font-family: var(--font-body) !important;
  font-size: var(--tekst-klein) !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  text-transform: none !important;
  background-color: var(--mos) !important;
  background: var(--mos) !important;
  color: var(--perkament) !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color var(--duur-kort) ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: #23392e !important;
  background: #23392e !important;
  color: var(--perkament) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #order_review input#place_order {
  background-color: var(--goud) !important;
  background: var(--goud) !important;
  color: var(--nacht) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #order_review input#place_order:hover {
  background-color: #dab233 !important;
  background: #dab233 !important;
}

/* Winkelwagen- en kassatabellen */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse !important;
  margin-bottom: var(--ruimte-5);
  border: none !important;
  background: transparent !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: var(--ruimte-2) !important;
  border: none !important;
  border-bottom: 1px solid rgba(34, 38, 31, 0.12) !important;
  text-align: left;
  background: transparent !important;
}

.woocommerce table.shop_table th {
  font-family: var(--font-body) !important;
  font-size: var(--tekst-klein) !important;
  text-transform: uppercase;
  letter-spacing: var(--letterspacing-eyebrow);
  color: var(--steen) !important;
  font-weight: 500 !important;
}

.woocommerce table.shop_table td.product-name a {
  color: var(--inkt) !important;
  font-weight: 500;
  text-decoration: none;
}

.woocommerce .cart_totals,
.woocommerce-checkout-review-order {
  background-color: var(--sage) !important;
  padding: var(--ruimte-4);
  border-radius: var(--radius);
}

.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td,
.woocommerce-checkout-review-order table.shop_table th,
.woocommerce-checkout-review-order table.shop_table td {
  border-bottom-color: rgba(34, 38, 31, 0.2) !important;
}

.woocommerce .cart_totals h2 {
  margin-bottom: var(--ruimte-3);
}

/* Formuliervelden: kassa, inloggen, mijn account */
.woocommerce form .form-row label,
.woocommerce-account .woocommerce-MyAccount-content label {
  font-size: var(--tekst-klein);
  font-weight: 500;
  color: var(--inkt);
}

.woocommerce form .input-text,
.woocommerce form select,
.woocommerce form textarea,
.woocommerce .quantity .qty {
  width: 100%;
  padding: var(--ruimte-2) var(--ruimte-3) !important;
  background-color: #fff !important;
  border: 1px solid rgba(34, 38, 31, 0.25) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-size: var(--tekst-body);
  color: var(--inkt);
  box-shadow: none !important;
}

.woocommerce .quantity .qty {
  width: 4.5rem;
  padding: var(--ruimte-1) var(--ruimte-2) !important;
}

/* Shop-grid en productpagina (indien gebruikt) */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--ruimte-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product {
  text-align: left;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.woocommerce ul.products li.product img {
  background-color: var(--sage);
  margin-bottom: var(--ruimte-2);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--inkt);
}

.woocommerce ul.products li.product .price {
  font-family: var(--font-display);
  color: var(--inkt);
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--inkt);
}

/* ===== WooCommerce Cart/Checkout-blokken =====
   Sinds enkele WooCommerce-versies zijn Winkelwagen en Kassa standaard
   Gutenberg-blokken (.wc-block-...) in plaats van de klassieke shortcode-
   opmaak hierboven (.woocommerce table.shop_table enz.). Beide staan hier
   los van elkaar zodat het thema werkt ongeacht welke variant actief is. */
.wc-block-cart,
.wc-block-checkout,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  font-family: var(--font-body);
  color: var(--inkt);
}

.wc-block-cart h2,
.wc-block-checkout h2,
.wc-block-components-panel__title,
.wc-block-cart__totals-title {
  font-family: var(--font-display) !important;
  color: var(--inkt) !important;
}

/* Meldingen (bv. "je winkelwagen is momenteel leeg") */
.wc-block-components-notice-banner {
  background-color: var(--sage) !important;
  border: none !important;
  border-left: 3px solid var(--mos) !important;
  border-radius: var(--radius) !important;
  color: var(--inkt) !important;
  padding: var(--ruimte-3) var(--ruimte-4) !important;
}

.wc-block-components-notice-banner.is-error {
  border-left-color: #a33 !important;
}

.wc-block-components-notice-banner__icon,
.wc-block-components-notice-banner svg {
  fill: var(--mos) !important;
}

/* Knoppen */
.wc-block-components-button,
.wc-block-cart__submit-button,
a.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  font-family: var(--font-body) !important;
  font-size: var(--tekst-klein) !important;
  font-weight: 500 !important;
  text-transform: none !important;
  background-color: var(--mos) !important;
  color: var(--perkament) !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  padding-block: var(--ruimte-2) !important;
}

.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background-color: #23392e !important;
  color: var(--perkament) !important;
}

.wc-block-components-button.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background-color: var(--goud) !important;
  color: var(--nacht) !important;
}

.wc-block-components-button.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background-color: #dab233 !important;
}

/* Totalen-kader */
.wc-block-components-totals-wrapper,
.wc-block-components-totals-item,
.wc-block-cart__totals {
  border-color: rgba(34, 38, 31, 0.12) !important;
}

.wc-block-cart .wc-block-cart__totals-title,
.wc-block-components-shipping-calculator {
  background-color: var(--sage);
}

/* Formuliervelden (kassa: naam, adres, e-mail, etc.) */
.wc-block-components-text-input input,
.wc-block-components-address-form input,
.wc-block-components-radio-control input,
.wc-block-components-combobox input,
select.wc-block-components-country-input,
.wc-block-components-quantity-selector__input {
  font-family: var(--font-body) !important;
  border-radius: var(--radius) !important;
  border-color: rgba(34, 38, 31, 0.25) !important;
}

.wc-block-components-text-input label {
  font-family: var(--font-body) !important;
}
