/*
 * Grooming Guys — herbruikbare onderdelen
 * Onderdelen die op meerdere pagina's voorkomen. Later in WordPress: template-parts/components/.
 */

/* ---------- Header (sticky, met optionele leesvoortgang eronder) ---------- */

.site-header-bar {
  position: sticky;
  z-index: 50;
  top: 0;
  background: var(--paper);
}

.site-header {
  position: relative;
  z-index: 2;
  width: min(calc(100% - var(--gutter) * 2), var(--max-width));
  min-height: var(--header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 620px) auto;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  width: max-content;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* Grote zoekbalk in de header: verstuurt naar /artikelen?q=… */
.header-search {
  height: 46px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-2) 0 var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--muted);
  transition: border-color .2s ease, background .2s ease;
}

.header-search:focus-within {
  border-color: var(--coal);
  background: var(--paper);
  color: var(--coal);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--coal);
  font-size: 14px;
}

.header-search input::placeholder {
  color: var(--muted);
}

.header-search input::-webkit-search-cancel-button {
  display: none;
}

.header-search kbd {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
}

.header-search:focus-within kbd {
  display: none;
}

/* Menuknop: hamburger die bij openen een kruis wordt */
.menu-toggle {
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  border: 1px solid var(--coal);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--coal);
  color: var(--paper);
}

.menu-toggle__icon {
  position: relative;
  width: 18px;
  height: 12px;
}

.menu-toggle__icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}

.menu-toggle__icon i:nth-child(1) { top: 0; }
.menu-toggle__icon i:nth-child(2) { top: 5px; }
.menu-toggle__icon i:nth-child(3) { top: 10px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ---------- Megamenu ---------- */

.mega-menu {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: var(--header-height);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 30px 60px rgba(36, 34, 36, .14);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .3s ease, visibility 0s linear .3s;
}

.mega-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .3s ease, visibility 0s;
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  padding: var(--space-8) 0 var(--space-8);
}

.mega-panel__label {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mega-menu__cats ul {
  border-top: 1px solid var(--line);
}

.mega-menu__cats button {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  transition: color .2s ease, padding .25s ease;
}

.mega-menu__cats button > span {
  display: grid;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.mega-menu__cats button small {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
}

.mega-menu__cats button em {
  font-size: 11px;
  font-style: normal;
}

.mega-menu__cats button svg {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}

.mega-menu__cats button:hover,
.mega-menu__cats button.is-active {
  color: var(--coal);
}

.mega-menu__cats button.is-active {
  padding-left: var(--space-3);
}

.mega-menu__cats button.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--coal);
}

.mega-menu__cats button.is-active svg {
  opacity: 1;
  transform: translateX(0);
}

.mega-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .95fr);
  gap: clamp(var(--space-6), 3.5vw, var(--space-12));
  animation: mega-panel-in .3s ease;
}

.mega-panel[hidden] {
  display: none;
}

@keyframes mega-panel-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.mega-panel__title {
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
}

.mega-topics {
  display: grid;
  gap: 2px;
  margin-bottom: var(--space-5);
}

.mega-topics a {
  display: inline-block;
  padding: var(--space-1) 0;
  font-size: 15px;
  background: linear-gradient(currentColor, currentColor) 0 90% / 0 1px no-repeat;
  transition: background-size .3s ease;
}

.mega-topics a:hover {
  background-size: 100% 1px;
}

.mega-mini {
  border-top: 1px solid var(--line);
}

.mega-mini a {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}

.mega-mini__thumb {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--coal);
}

.mega-mini__thumb img {
  filter: saturate(.8);
  transform: scale(1.06);
  transition: transform .5s ease;
}

.mega-mini a:hover .mega-mini__thumb img {
  transform: scale(1);
}

.mega-mini strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.mega-mini small {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: 11px;
}

.mega-feature {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--coal);
  color: var(--paper);
}

.mega-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36, 34, 36, .85), rgba(36, 34, 36, .1) 60%);
}

.mega-feature img {
  filter: saturate(.8);
  transition: transform .7s ease;
}

.mega-feature:hover img {
  transform: scale(1.04);
}

.mega-feature strong {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.mega-feature .article-label {
  z-index: 1;
}

.mega-back {
  display: none;
}

.mega-menu__footer {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) 0 var(--space-6);
  border-top: 1px solid var(--line);
}

.mega-menu__footer .mega-panel__label {
  margin: 0;
}

.mega-menu__footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-size: 13px;
}

.mega-menu__footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mega-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(36, 34, 36, .35);
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.mega-backdrop.is-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity .3s ease, visibility 0s;
}

html.menu-open {
  overflow: hidden;
}

.reading-progress {
  height: 2px;
  background: var(--line);
}

.reading-progress span {
  display: block;
  height: 100%;
  background: var(--coal);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: var(--space-16) 0 var(--space-6);
  background: var(--coal);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-16);
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.footer-grid > div:first-child p {
  max-width: 250px;
  margin: var(--space-4) 0 0;
  color: var(--on-dark-muted);
  font-size: 11px;
  line-height: 1.6;
}

.footer-grid a:not(.brand) {
  color: #bbb8b5;
  font-size: 11px;
}

.footer-grid a:hover {
  color: var(--paper);
}

.footer-label {
  margin-bottom: var(--space-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-16);
  padding-top: var(--space-5);
  border-top: 1px solid #484548;
  color: #817e80;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Artikelkaart ---------- */

.article-card {
  min-width: 0;
}

.article-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--coal);
}

.article-media img {
  filter: saturate(.8) contrast(1.02);
  transform: scale(1.04);
  transition: transform .7s ease;
}

.article-card:hover .article-media img {
  transform: scale(1);
}

.article-label {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--coal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.article-content {
  padding: var(--space-4) 2px 0;
}

.article-content .eyebrow {
  margin-bottom: var(--space-2);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -.035em;
}

.article-content h3 a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease;
}

.article-card:hover .article-content h3 a {
  background-size: 100% 1px;
}

.article-meta {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 11px;
}

.article-intro {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Variant voor grids (categorie, archief): liggende foto. */
.article-card--grid .article-media {
  aspect-ratio: 4 / 3;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10) var(--space-4);
}

/* ---------- Artikelslider (native scroll-snap, loopt door tot de schermrand) ---------- */

.articles-section {
  padding-block: var(--section-large);
  overflow: hidden;
}

.articles-section__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-6);
}

.article-track {
  --shell-gutter: max(var(--gutter), calc((100vw - var(--max-width)) / 2));
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding: 0 var(--shell-gutter) var(--space-1);
  scroll-padding-inline: var(--shell-gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.article-track::-webkit-scrollbar {
  display: none;
}

.article-track .article-card {
  flex: 0 0 clamp(260px, 26vw, 330px);
  scroll-snap-align: start;
}

.article-progress {
  position: relative;
  height: 1px;
  margin-top: var(--space-10);
  background: var(--line);
}

.article-progress span {
  position: absolute;
  inset: 0;
  background: var(--coal);
  transform: scaleX(.12);
  transform-origin: left;
  transition: transform .2s ease;
}

/* ---------- Ronde pijlknoppen ---------- */

.carousel-controls {
  display: flex;
  gap: var(--space-2);
}

.carousel-controls button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.carousel-controls button:disabled {
  opacity: .35;
  cursor: default;
}

/* ---------- Scrollrij (horizontale rij met pijlen eronder) ---------- */

.scroll-row__track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.scroll-row__track::-webkit-scrollbar {
  display: none;
}

.scroll-row__track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.scroll-row__controls {
  margin-top: var(--space-4);
}

/* ---------- Productfoto-uitsnede ---------- */
/* Placeholder: zet een product van de plankfoto midden in het vak.
   --crop-x/--crop-y = middelpunt van het product (0–1), --crop-size = zoom. Vervalt met echte productfoto's. */

.crop {
  --crop-size: 300cqw;
  --crop-x: .27;
  --crop-y: .29;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  background: var(--warm);
}

.crop img {
  position: absolute;
  width: var(--crop-size);
  height: var(--crop-size);
  max-width: none;
  left: calc(50% - var(--crop-size) * var(--crop-x));
  top: calc(50% - var(--crop-size) * var(--crop-y));
  object-fit: cover;
  transition: transform .6s ease;
}

/* ---------- Mediakader (WordPress: foto uit de mediabibliotheek) ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--warm);
}

.media-frame img {
  transition: transform .6s ease;
}

/* Productfoto's zijn meestal vrijstaande packshots: passend tonen op wit. */
.media-frame--product {
  background: var(--paper);
}

.media-frame--product img {
  padding: var(--space-4);
  object-fit: contain;
}

/* ---------- Winkelkaart (product met prijs en knop) ---------- */

.shop-card {
  width: calc(25% - 9px);
  min-width: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.shop-card__visual {
  aspect-ratio: 4 / 3;
}

.shop-card:hover .shop-card__visual img {
  transform: scale(1.05);
}

.shop-card__label {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.shop-card__body {
  padding: var(--space-3);
}

.shop-card__brand {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shop-card h3 {
  margin: 3px 0 var(--space-1);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--brown);
  font-size: 12px;
}

.rating em {
  color: var(--muted);
  font-style: normal;
}

.shop-card__shop {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  border-top: 1px solid var(--line);
}

.shop-card__price {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.shop-card__price small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.shop-card__price strong {
  font-size: 16px;
}

.shop-card__more {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 11px;
}

.shop-card__more a {
  color: var(--coal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}

.shop-card__more a:hover {
  text-decoration-color: currentColor;
}

/* ---------- Prijsvergelijking (1 tot 3 winkels, laagste prijs bovenaan) ---------- */

.shop-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.shop-list__shop {
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
  gap: var(--space-2);
  font-weight: 700;
}

.shop-list__shop em {
  padding: 3px var(--space-2);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--brown);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.shop-list__row strong {
  font-size: 15px;
}

.shop-list__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-width: 92px;
  min-height: 34px;
  padding: 0 var(--space-3);
  border: 1px solid var(--coal);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}

.shop-list__row.is-best .shop-list__cta,
.shop-list__row:hover .shop-list__cta {
  background: var(--coal);
  color: var(--paper);
}

.shop-list__note {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 650px) {
  .shop-list__row { gap: var(--space-3); }
  .shop-list__shop { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .shop-list__cta { min-width: 0; }
}

/* ---------- Productplank met hotspots ---------- */

.shelf-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(var(--space-12), 8vw, var(--space-32));
  align-items: center;
  padding-block: var(--section-compact) var(--section-large);
}

.shelf-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--warm);
}

.shelf-visual img {
  filter: saturate(.85);
}

.hotspot {
  position: absolute;
  z-index: 4;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--brown);
  box-shadow: 0 0 0 5px rgba(244, 244, 244, .35), 0 6px 16px rgba(36, 34, 36, .25);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.hotspot:hover {
  transform: scale(1.12);
}

.hotspot.is-active {
  background: var(--coal);
  box-shadow: 0 0 0 7px rgba(244, 244, 244, .5), 0 6px 16px rgba(36, 34, 36, .3);
  transform: scale(1.2);
}

.hotspot.is-active::after {
  content: '';
  position: absolute;
  inset: -9px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  animation: dot-pulse 1.6s ease-out infinite;
}

.shelf-copy > p {
  max-width: 470px;
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.shelf-selection {
  margin: var(--space-6) 0 var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.shelf-selection > span {
  color: var(--brown);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.shelf-selection h3 {
  margin: var(--space-2) 0 var(--space-1);
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -.03em;
}

.shelf-selection p {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: 12px;
}

.shelf-selection a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  font-weight: 700;
}

.shelf-list li {
  border-top: 1px solid var(--line);
}

.shelf-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  text-align: left;
  font-size: 12px;
}

.shelf-list button span {
  color: var(--muted);
}

.shelf-list button.is-active {
  color: var(--brown);
  font-weight: 700;
}

@keyframes dot-pulse {
  from { opacity: .8; transform: scale(.6); }
  to { opacity: 0; transform: scale(1.8); }
}

/* ---------- Pagina-intro met zoekveld (categorie, archief) ---------- */

.page-intro {
  width: min(calc(100% - var(--gutter) * 2), var(--max-width));
  margin-inline: auto;
  padding-block: var(--section-compact) var(--space-12);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-16);
  align-items: end;
}

.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 94px);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.065em;
}

.page-intro h1 span {
  color: var(--olive);
}

.page-intro__text {
  max-width: max(40%, 380px);
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.search-field {
  height: 52px;
  padding: 0 var(--space-2) 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  scroll-margin-top: 120px;
  transition: border-color .2s ease;
}

.search-field:focus-within {
  border-color: var(--coal);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--coal);
  font-size: 15px;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-field__clear {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--white);
}

/* ---------- Filterbalk met chips ---------- */

.filter-bar {
  padding: var(--space-1) max(var(--gutter), calc((100vw - var(--max-width)) / 2));
  border-block: 1px solid var(--line);
}

.filter-bar__row {
  padding: var(--space-2) 0;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.filter-bar__row + .filter-bar__row {
  border-top: 1px solid var(--line);
}

.filter-bar__label {
  flex: 0 0 76px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.filter-bar__meta {
  margin-left: auto;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-5);
  color: var(--muted);
  font-size: 12px;
}

.chips {
  min-width: 0;
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.chips button {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  white-space: nowrap;
  font-size: 12px;
  transition: border-color .2s ease;
}

.chips button:hover {
  border-color: var(--coal);
}

.chips button.is-active {
  border-color: var(--coal);
  background: var(--coal);
  color: var(--paper);
}

.sort-select {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sort-select select {
  height: 34px;
  padding: 0 var(--space-6) 0 var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23242224' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-size: 12px;
  appearance: none;
  cursor: pointer;
}

.active-filters {
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--muted);
  font-size: 14px;
}

.active-filters strong {
  color: var(--coal);
  font-weight: 600;
}

.active-filters button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Paginering ---------- */

.pagination {
  margin-top: var(--space-16);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
}

.pagination button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 12px;
  transition: border-color .2s ease;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--coal);
}

.pagination button:disabled {
  opacity: .35;
  cursor: default;
}

.pagination button.is-current {
  border-color: var(--coal);
  background: var(--coal);
  color: var(--paper);
}

/* ---------- Lege toestand ---------- */

.empty-state {
  padding: var(--space-12) 0 0;
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.empty-state > p {
  margin: var(--space-3) 0 var(--space-6);
  color: var(--muted);
}

.empty-state__label {
  display: block;
  margin: var(--space-16) 0 var(--space-6);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.empty-state .card-grid {
  text-align: left;
}

/* ---------- Lopende tekst (later: wysiwyg-velden in WordPress) ---------- */
/* Smallere leesbreedte (~70 tekens) dan de widgets, zodat lange artikelen prettig lezen. */

.prose {
  max-width: 680px;
}

.prose p {
  margin: 0 0 var(--space-5);
  color: var(--brown);
}

.prose h2 {
  margin: 0 0 var(--space-4);
}

.prose h3 {
  margin: var(--space-10) 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.prose ul {
  margin: 0 0 var(--space-6);
}

.prose li {
  position: relative;
  margin-bottom: var(--space-2);
  padding-left: var(--space-6);
  color: var(--brown);
}

.prose li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .8em;
  width: 10px;
  height: 1px;
  background: var(--coal);
}

.prose strong {
  color: var(--coal);
  font-weight: 600;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--olive);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}

.prose a:hover {
  text-decoration-color: var(--coal);
}

.prose blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-1) 0 var(--space-1) var(--space-6);
  border-left: 2px solid var(--coal);
}

.prose blockquote p {
  margin: 0 0 var(--space-3);
  color: var(--coal);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.prose blockquote cite {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

/* De editor zet de bronvermelding in een eigen alinea: die alinea niet als citaat opmaken. */
.prose blockquote p:has(> cite:only-child) {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.72;
  letter-spacing: 0;
}

/* Tabellen: scrollen horizontaal op smalle schermen in plaats van de pagina te verbreden. */
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 var(--space-6);
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  -webkit-overflow-scrolling: touch;
}

.prose th,
.prose td {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  color: var(--brown);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--coal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  border-bottom-color: var(--coal);
}

.prose td:first-child {
  color: var(--coal);
  font-weight: 500;
  white-space: nowrap;
}

.prose > :last-child {
  margin-bottom: 0;
}

/* ---------- Formulieren (later: WPForms, met deze opmaak) ---------- */

.form-field {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-field label {
  font-size: 13px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--coal);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field select {
  padding-right: var(--space-8);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23242224' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  cursor: pointer;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--olive);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--coal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 34, 36, .08);
}

.form-field [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-soft);
}

.form-field__hint {
  color: var(--muted);
  font-size: 12px;
}

.form-field__error {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--error);
  font-size: 12px;
  font-weight: 600;
}

.form-field__error::before {
  content: '!';
  width: 16px;
  height: 16px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--error);
  color: var(--paper);
  font-size: 10px;
}

.form-field .form-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: var(--space-2);
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--coal);
}

.form-check a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Spam-honeypot: onzichtbaar voor bezoekers en schermlezers, wel aanwezig voor bots. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-summary {
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--error-soft);
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
}

.form-success {
  text-align: left;
}

.form-success:focus {
  outline: none;
}

.form-success__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-5);
  border-radius: 50%;
  background: var(--coal);
  color: var(--paper);
}

.form-success h2 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.form-success p {
  margin: var(--space-3) 0 var(--space-5);
  color: var(--muted);
}

/* ---------- Kleine labels ---------- */

.badge {
  flex: 0 0 auto;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip-list li {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

/* ---------- Responsief ---------- */

@media (max-width: 1000px) {
  .shelf-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .mega-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }

  .mega-feature {
    display: none;
  }

  .page-intro {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .search-field {
    max-width: 560px;
  }

  .filter-bar__row {
    flex-wrap: wrap;
  }

  .filter-bar__meta {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  /* Mobiel: zoekbalk op een eigen rij, menu over het hele scherm met doorklikken per categorie */
  .site-header {
    grid-template-columns: 1fr auto;
    gap: var(--space-2) var(--space-4);
    padding: var(--space-3) 0;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 44px;
  }

  .header-search kbd {
    display: none;
  }

  .menu-toggle {
    height: 40px;
    padding: 0 var(--space-3);
  }

  .mega-menu {
    top: 100%;
    height: calc(100dvh - var(--mobile-header-offset, 124px));
    max-height: none;
  }

  .mega-menu__inner {
    grid-template-columns: 1fr;
    padding: var(--space-5) 0;
  }

  .mega-menu__panels {
    display: none;
  }

  .mega-menu.is-drilled .mega-menu__cats {
    display: none;
  }

  .mega-menu.is-drilled .mega-menu__panels {
    display: block;
  }

  .mega-panel {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .mega-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 13px;
    font-weight: 700;
  }

  .mega-menu__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .article-track .article-card {
    flex-basis: 78vw;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .page-intro {
    padding: var(--space-10) 0 var(--space-8);
  }

  .page-intro h1 {
    font-size: 52px;
  }

  .filter-bar__label {
    flex-basis: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .active-filters {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
  }

  .shop-card {
    width: 78vw;
    min-width: 0;
  }
}

/* Mobiel: zoals "Van kop tot kin". Titel en intro boven de foto, de kaart van het
   aangetikte nummer direct onder de foto; de lijst met nummers is dan overbodig. */
@media (max-width: 760px) {
  .shelf-section {
    gap: 0;
    padding-top: var(--section-compact);
  }

  .shelf-copy {
    display: contents;
  }

  .shelf-copy > h2,
  .shelf-copy > .shelf-heading {
    order: 1;
  }

  .shelf-copy > p {
    order: 2;
  }

  .shelf-visual {
    order: 3;
    margin-top: var(--space-8);
  }

  .shelf-selection {
    order: 4;
    margin: var(--space-4) 0 0;
  }

  .shelf-list {
    display: none;
  }

  .hotspot {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
  }
}
