/*
Theme Name: Draagbaar Stopcontact
Theme URI: https://draagbaarstopcontact.nl/
Author: Gabriella
Description: Lichtgewicht affiliate-thema voor Draagbaar Stopcontact. Toont producten uit de bol.com-productfeed (Content Egg / Affiliate Egg) met affiliatelinks. Werkt met WooCommerce (externe producten) én zonder WooCommerce.
Version: 1.11.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: draagbaarstopcontact
Tags: e-commerce, blog, custom-menu, custom-logo, featured-images
*/

/* ============ Design tokens ============ */
:root {
  --groen: #1f9d55;        /* lush green: brand, links */
  --groen-donker: #146c3a;
  --groen-licht: #e6f6ec;
  --lila: #8e6bd8;         /* lilac: accents, banner */
  --lila-licht: #f1ebfc;
  --oranje: #ffa62b;       /* yellow/orange: buttons, highlights */
  --oranje-licht: #fff3dc;
  --tekst: #1d2420;
  --grijs: #6b7570;
  --lijn: #e7ebe8;
  --wit: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--tekst);
  background-color: #fafbfa;
  line-height: 1.5;
}

a { color: var(--groen-donker); }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ USP bar ============ */
.usp-bar {
  background-color: var(--groen-licht);
  font-size: 13px;
  color: var(--groen-donker);
}

.usp-bar .wrap {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* ============ Header ============ */
.site-header {
  background-color: var(--wit);
  border-bottom: 1px solid var(--lijn);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tekst);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
}

.logo-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--groen);
  color: var(--wit);
  font-size: 22px;
}

.logo small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--grijs);
}

.search {
  flex: 1;
  display: flex;
  border: 1px solid var(--lijn);
  border-radius: 999px;
  background-color: #f4f6f5;
  overflow: hidden;
}

.search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  padding: 12px 18px;
  font-size: 15px;
}

.search select {
  max-width: 150px;
  border: none;
  border-left: 1px solid var(--lijn);
  background: none;
  padding: 0 12px;
  color: var(--grijs);
}

.search button {
  flex: 0 0 auto;
  border: none;
  background-color: var(--groen);
  color: var(--wit);
  padding: 0 20px;
  font-size: 16px;
  cursor: pointer;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.header-links a { text-decoration: none; color: var(--tekst); }

.badge {
  background-color: var(--oranje);
  color: var(--tekst);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  margin-left: 4px;
}

/* category navigation */
.cat-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  list-style: none;
  margin: 0;
  padding: 12px 0 14px 0;
}

.cat-nav a {
  text-decoration: none;
  color: var(--tekst);
  font-size: 14px;
  font-weight: 600;
}

.cat-nav a:hover,
.cat-nav a.actief { color: var(--groen); }

/* ============ Hero ============ */
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 32px 0;
  padding: 48px;
  border-radius: 24px;
  background-color: var(--lila-licht);
}

.hero-text { flex: 3; }

.hero-text .eyebrow {
  color: var(--lila);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 8px 0 16px 0;
}

.hero p { color: var(--grijs); max-width: 520px; }

.hero-visual {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 240px;
  border-radius: 20px;
  background-color: var(--oranje);
  font-size: 110px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background-color: var(--oranje);
  color: var(--tekst);
  font-weight: 700;
  text-decoration: none;
}

.btn:hover { background-color: #ff9300; }

.btn-zacht {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background-color: var(--oranje-licht);
  color: #b26a00;
  font-weight: 600;
  text-decoration: none;
}

.btn-zacht:hover { background-color: var(--oranje); color: var(--tekst); }

/* ============ Sections ============ */
.section { margin: 48px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section h2 { font-size: 24px; margin: 0 0 18px 0; }

/* category tiles */
.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tile {
  flex: 1 1 calc(25% - 14px); /* 4 per row */
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  background-color: var(--wit);
  text-decoration: none;
  color: var(--tekst);
  font-weight: 600;
}

.tile:hover { border-color: var(--groen); }

.tile span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--groen-licht);
  font-size: 20px;
}

/* product cards */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.card {
  flex: 1 1 190px;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  background-color: var(--wit);
}

.card-img {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  border-radius: 10px;
  background-color: #f4f6f5;
  font-size: 64px;
}

.shop-label {
  margin-top: 12px;
  font-size: 12px;
  color: var(--grijs);
}

.card h3 {
  font-size: 15px;
  margin: 4px 0 10px 0;
  flex: 1; /* pushes price + button to the bottom */
}

.price {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.label-dag {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: var(--lila-licht);
  color: var(--lila);
  font-size: 12px;
  font-weight: 700;
}

/* article teaser */
.teaser {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px;
  border-radius: 24px;
  background-color: var(--groen);
  color: var(--wit);
}

.teaser h2 { color: var(--wit); }
.teaser p { opacity: 0.9; }
.teaser .teaser-num { font-size: 96px; font-weight: 800; color: var(--oranje); }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--lijn);
  padding: 14px 0;
}

.faq summary { font-weight: 600; cursor: pointer; }

/* ============ Category page ============ */
.breadcrumb { font-size: 13px; margin: 20px 0 0 0; color: var(--grijs); }
.breadcrumb a { text-decoration: none; }

.cat-banner {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 16px 0 32px 0;
  padding: 36px 40px;
  border-radius: 20px;
  background-color: var(--lila);
  color: var(--wit);
}

.cat-banner div:first-child { flex: 1; }
.cat-banner h1 { margin: 0 0 8px 0; }
.cat-banner .hero-visual { flex: 0 0 180px; height: 150px; font-size: 80px; }

.listing {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.filters {
  flex: 0 0 240px;
  padding: 20px;
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  background-color: var(--wit);
  font-size: 14px;
}

.filters h4 {
  margin: 0 0 10px 0;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grijs);
}

.filters label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.filters .group { margin-bottom: 20px; }

.results { flex: 1; }

/* keep cards the same width, also in the last row */
.results .card { flex: 0 1 calc(25% - 14px); }

input[type="range"],
input[type="checkbox"] { accent-color: var(--groen); }

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--grijs);
}

/* ============ Article page ============ */
.article {
  max-width: 780px;
  margin: 0 auto;
}

.article h1 { font-size: 38px; line-height: 1.15; margin: 20px 0 8px 0; }

.meta { font-size: 13px; color: var(--grijs); }

.disclosure-box {
  margin: 20px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--oranje);
  border-radius: 8px;
  background-color: var(--oranje-licht);
  font-size: 13px;
}

.rank {
  display: flex;
  gap: 20px;
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  background-color: var(--wit);
}

.rank-num {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--groen);
  color: var(--wit);
  font-size: 22px;
  font-weight: 800;
}

.rank:first-of-type .rank-num { background-color: var(--oranje); color: var(--tekst); }

.rank-body { flex: 1; }
.rank-body h3 { margin: 0 0 6px 0; }

.rank-side {
  flex: 0 0 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.pros {
  margin: 8px 0 0 0;
  padding-left: 18px;
  color: var(--grijs);
  font-size: 14px;
}

/* ============ Footer ============ */
.site-footer {
  margin-top: 64px;
  padding: 40px 0 24px 0;
  background-color: var(--tekst);
  color: #cfd6d2;
  font-size: 14px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-cols div { flex: 1 1 200px; }
.site-footer h4 { color: var(--wit); margin: 0 0 10px 0; }
.site-footer a { color: #cfd6d2; text-decoration: none; display: block; margin-bottom: 4px; }
.site-footer a:hover { color: var(--oranje); }

.footer-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #39423d;
  font-size: 12px;
  color: #9aa49f;
}

/* ============ Small screens ============ */
@media (max-width: 760px) {
  .usp-bar .wrap { flex-direction: column; gap: 2px; align-items: center; }
  .header-top { flex-wrap: wrap; gap: 14px; }
  .search { flex: 1 1 100%; order: 3; }
  .search select { display: none; }
  .header-links { flex-wrap: wrap; gap: 12px; font-size: 14px; }
  .cat-nav ul { flex-wrap: nowrap; overflow-x: auto; }
  .cat-nav a { white-space: nowrap; }
  .hero, .cat-banner, .teaser { flex-direction: column; padding: 28px; align-items: flex-start; }
  .hero h1 { font-size: 32px; }
  .hero-visual { width: 100%; height: 160px; }
  .tile { flex: 1 1 calc(50% - 14px); }
  .card,
  .results .card { flex: 1 1 calc(50% - 18px); }
  .listing { flex-direction: column; }
  .filters { flex: none; width: 100%; }
  .rank { flex-wrap: wrap; }
  .rank-side { flex: 1 1 100%; text-align: left; }
}

/* ============ Blog ============ */
.banner-groen { background-color: var(--groen); }

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pill {
  padding: 6px 16px;
  border: 1px solid var(--lijn);
  border-radius: 999px;
  background-color: var(--wit);
  color: var(--tekst);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pill.actief,
.pill:hover { background-color: var(--lila); border-color: var(--lila); color: var(--wit); }

.post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.post-card {
  flex: 0 1 calc(33.333% - 15px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  background-color: var(--wit);
  overflow: hidden;
}

.post-img {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 170px;
  background-color: var(--oranje-licht);
  font-size: 64px;
  text-decoration: none;
}

.post-card:nth-child(3n+2) .post-img { background-color: var(--lila-licht); }
.post-card:nth-child(3n) .post-img { background-color: var(--groen-licht); }

.post-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.post-body h2 { font-size: 19px; margin: 6px 0 8px 0; }
.post-body h2 a { color: var(--tekst); text-decoration: none; }
.post-body p { color: var(--grijs); margin: 0 0 12px 0; flex: 1; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--grijs);
}

.post-meta .label-dag { margin: 0; }

/* more specific than .post-body p, so the meta line keeps its own size */
.post-body .post-meta { flex: none; margin: 0; }

.lees-meer { font-weight: 700; text-decoration: none; }

.post-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 240px;
  margin: 20px 0;
  border-radius: 20px;
  background-color: var(--lila-licht);
  font-size: 90px;
}

.lead { font-size: 19px; }

.toc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background-color: var(--groen-licht);
}

.toc a { text-decoration: none; }

.tip {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--lila);
  border-radius: 8px;
  background-color: var(--lila-licht);
}

.related {
  margin-top: 40px;
  padding: 28px;
  border-radius: 20px;
  background-color: var(--oranje-licht);
}

.related h3 { margin-top: 0; }

/* ============ About ============ */
.about-cols {
  display: flex;
  gap: 40px;
}

.about-cols div { flex: 1; }

.values {
  display: flex;
  gap: 18px;
}

.value {
  flex: 1;
  padding: 22px;
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  background-color: var(--wit);
}

.value span { font-size: 32px; }
.value h3 { margin: 8px 0 6px 0; }
.value p { margin: 0; color: var(--grijs); }

/* ============ Contact ============ */
.page-title { font-size: 38px; margin: 20px 0 4px 0; }

.contact-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-top: 28px;
}

.contact-form {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  background-color: var(--wit);
}

.form-row { display: flex; gap: 16px; }
.form-row label { flex: 1; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 11px 14px;
  border: 1px solid var(--lijn);
  border-radius: 10px;
  background-color: #f8faf9;
  font: inherit;
  font-weight: 400;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--lila); border-color: var(--lila); }

.contact-form .check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  color: var(--grijs);
}

.contact-form .btn { align-self: flex-start; border: none; font-size: 15px; cursor: pointer; }

.contact-info {
  flex: 1;
  padding: 24px;
  border-radius: var(--radius);
  background-color: var(--groen-licht);
}

.contact-info h2 { margin-top: 0; font-size: 20px; }

/* disclosure at the bottom of every page */
.site-footer { margin-top: 24px; }

@media (max-width: 760px) {
  .post-card { flex: 1 1 100%; }
  .about-cols, .values, .contact-layout, .form-row { flex-direction: column; }
  .contact-layout { align-items: stretch; }
}

/* =====================================================================
   WordPress additions (everything below is new compared to the mockup)
   ===================================================================== */

/* accessibility */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  width: auto; height: auto; clip: auto;
  padding: 10px 16px; border-radius: 8px;
  background: var(--wit); color: var(--tekst);
}

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

/* custom logo from the Customizer */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 48px; width: auto; }

/* menus output by wp_nav_menu() */
.header-links ul,
.site-footer ul { list-style: none; margin: 0; padding: 0; }
/* the category bar keeps the mockup's own spacing (.cat-nav ul above) */
.header-links ul { display: flex; align-items: center; gap: 16px; }
.cat-nav .current-menu-item > a,
.cat-nav .current-menu-ancestor > a,
.header-links .current-menu-item > a { color: var(--groen); }

/* product cards with real images */
.card-img { overflow: hidden; text-decoration: none; }
.card-img img { width: 100%; height: 100%; object-fit: contain; background: var(--wit); }
.card h3 a { color: var(--tekst); text-decoration: none; }
.card h3 a:hover { color: var(--groen-donker); }
.price del { font-size: 14px; font-weight: 400; color: var(--grijs); margin-right: 6px; }
.price ins { text-decoration: none; }
.stock-note { font-size: 13px; color: var(--groen-donker); margin: 0 0 10px 0; }
.stock-note.is-out { color: #b3261e; }

/* listing extras */
.filters ul { list-style: none; margin: 0; padding: 0; }
.filters li { display: flex; justify-content: space-between; margin-bottom: 6px; }
.filters li a { text-decoration: none; color: var(--tekst); }
.filters li a.actief, .filters li a:hover { color: var(--groen); font-weight: 600; }
.filters input[type="range"] { width: 100%; }
.filters .btn { border: none; cursor: pointer; font-size: 14px; padding: 8px 16px; }
.results-bar select { margin-left: 6px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--lijn); }
.no-results { padding: 32px; border-radius: var(--radius); background: var(--wit); border: 1px solid var(--lijn); }

/* pagination */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 32px 0; }
.page-numbers {
  display: inline-block; min-width: 40px; padding: 8px 12px;
  border: 1px solid var(--lijn); border-radius: 999px;
  background: var(--wit); text-align: center; text-decoration: none; color: var(--tekst);
}
.page-numbers.current, .page-numbers:hover { background: var(--groen); border-color: var(--groen); color: var(--wit); }

/* single product */
.product-single {
  display: flex; gap: 40px; align-items: flex-start;
  margin: 20px 0 32px 0; padding: 32px;
  border: 1px solid var(--lijn); border-radius: 24px; background: var(--wit);
}
.product-gallery {
  flex: 1; display: flex; justify-content: center; align-items: center;
  min-height: 320px; border-radius: 16px; background: #f4f6f5; font-size: 120px; overflow: hidden;
}
.product-gallery img { max-height: 460px; width: auto; object-fit: contain; }
.product-summary { flex: 1; }
.product-summary h1 { font-size: 30px; line-height: 1.2; margin: 4px 0 16px 0; }
.product-summary .price { font-size: 30px; }
.product-summary .btn { font-size: 17px; padding: 14px 28px; }
.product-summary .excerpt { color: var(--grijs); }
.product-description { max-width: 780px; }
.cat-text { max-width: 780px; margin: 48px 0 16px; }

/* post cards & articles with real images */
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-hero { overflow: hidden; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-hero.has-image { height: auto; max-height: 420px; }

/* content written in the block editor */
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 32px; }
.entry-content img { border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; background: var(--wit); }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--lijn); text-align: left; }
.entry-content blockquote { margin: 20px 0; padding: 12px 20px; border-left: 4px solid var(--groen); background: var(--groen-licht); border-radius: 8px; }
.entry-content .wp-block-details { border-bottom: 1px solid var(--lijn); padding: 14px 0; }
.entry-content .wp-block-details summary { font-weight: 600; cursor: pointer; }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--oranje); color: var(--tekst); font-weight: 700; }

/* block styles registered in functions.php (same look as .tip / .disclosure-box) */
.is-style-tip {
  margin: 16px 0; padding: 14px 18px;
  border-left: 4px solid var(--lila); border-radius: 8px; background-color: var(--lila-licht);
}
.is-style-disclosure {
  margin: 20px 0; padding: 12px 16px;
  border-left: 4px solid var(--oranje); border-radius: 8px; background-color: var(--oranje-licht); font-size: 13px;
}

/* block patterns re-use the mockup classes */
.hero-visual { margin: 0; }
.value-icon { font-size: 32px; margin: 0; }
/* Classic themes wrap every group block in .wp-block-group__inner-container. Let the
   wrapper "disappear" so .hero, .about-cols, .values etc. lay out their blocks exactly
   like the mockup's flex rows. */
.entry-content .wp-block-group > .wp-block-group__inner-container { display: contents; }
.entry-content .hero { margin: 32px 0; }
.rank-num.is-first { background-color: var(--oranje); color: var(--tekst); }
.rank:first-of-type .rank-num:not(.is-first) { background-color: var(--groen); color: var(--wit); }
.rank-side .btn-zacht { margin-top: 10px; }

/* contact page: style form plugins (Contact Form 7, WPForms, …) like the mockup */
.contact-form p { margin: 0; }
.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contact-form select,
.contact-form textarea { width: 100%; }
.contact-form input[type="submit"],
.contact-form button[type="submit"] {
  align-self: flex-start; padding: 12px 22px; border: none; border-radius: 999px;
  background-color: var(--oranje); color: var(--tekst); font-weight: 700; font-size: 15px; cursor: pointer;
}
.contact-info .widget { margin-bottom: 16px; }

/* comments */
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px; margin-bottom: 12px; border: 1px solid var(--lijn); border-radius: var(--radius); background: var(--wit); }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--grijs); }

@media (max-width: 760px) {
  .product-single { flex-direction: column; padding: 20px; }
  .product-gallery { width: 100%; min-height: 220px; }
  .header-links ul { flex-wrap: wrap; gap: 12px; }
}

/* Top 5 titles look like the mockup (link without underline) */
.rank-body h3 a { color: var(--tekst); text-decoration: none; }
.rank-body h3 a:hover { color: var(--groen-donker); }

/* comment form fields fit on small screens */
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%; max-width: 100%;
  padding: 10px 12px; border: 1px solid var(--lijn); border-radius: 10px; font: inherit;
}
.comment-form input[type="submit"] {
  padding: 12px 22px; border: none; border-radius: 999px;
  background-color: var(--oranje); color: var(--tekst); font-weight: 700; cursor: pointer;
}

/* =====================================================================
   1.1.0: closer to the mockup
   ===================================================================== */

/* built-in contact form messages */
.form-message { margin: 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.form-message.is-ok { background: var(--groen-licht); color: var(--groen-donker); }
.form-message.is-error { background: #fde8e7; color: #b3261e; }
.contact-intro { max-width: 780px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* pattern sections keep the mockup's heading spacing (.section h2) */
.entry-content .section h2 { margin-top: 0; }

/* category sidebar: filters + featured product */
.listing-side { flex: 0 0 240px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.listing-side .filters { flex: none; }
.side-featured {
  padding: 16px;
  border-radius: var(--radius);
  background-color: var(--lila-licht);
}
.side-featured h4 {
  margin: 0 0 12px 0;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lila);
}
.side-featured .card { flex: none; }
@media (max-width: 760px) {
  .listing-side { flex: none; width: 100%; }
  .side-featured .card { max-width: 320px; }
}

/* brand filter */
.brand-filter label { align-items: center; gap: 8px; cursor: pointer; }
.brand-filter label > span:first-child { display: flex; align-items: center; gap: 8px; }
.brand-filter label > span:last-child { color: var(--grijs); }
.filter-reset { display: inline-block; margin-top: 6px; font-size: 13px; text-decoration: none; }

/* ============ Cookie banner (inc/tracking.php) ============ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background-color: var(--wit);
  border-top: 3px solid var(--groen);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  font-size: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: flex; align-items: center; gap: 16px 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.cookie-banner__text { flex: 1 1 320px; margin: 0; }
.cookie-banner__buttons { display: flex; gap: 10px; }
.cookie-banner button { border: none; cursor: pointer; font: inherit; font-weight: 700; padding: 10px 20px; }
.cookie-banner .btn-zacht { display: inline-block; border-radius: 999px; }
.site-footer .footer-note a.cookie-settings-link { display: inline; margin: 0; }

/* ============ Header images (inc/header-images.php) ============ */
.hero-visual.has-image { padding: 0; overflow: hidden; background-color: transparent; font-size: 0; }
.hero-visual.has-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ============ Reviews (inc/reviews.php) ============ */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  background-color: var(--wit);
}
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.review-avatar.is-initial {
  display: flex; align-items: center; justify-content: center;
  background-color: var(--lila-licht); color: var(--lila); font-weight: 700; font-size: 22px;
}
.review-name { margin: 0; font-weight: 700; }
.review-place { margin: 0; font-size: 13px; color: var(--grijs); }
.review-text p { margin: 0 0 8px 0; }
.review-text p:last-child { margin-bottom: 0; }
.review-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.review-photo img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.review-photo:hover img { outline: 2px solid var(--oranje); }
.review-product { margin: auto 0 0 0; font-size: 14px; font-weight: 600; }
.review-product a { text-decoration: none; }
.stars { position: relative; display: inline-block; align-self: flex-start; color: #d9dedb; font-size: 18px; letter-spacing: 2px; line-height: 1; }
.stars-on { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--oranje); }
.reviews-avg { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--grijs); font-size: 14px; }
.lightbox { padding: 0; border: 0; border-radius: var(--radius); max-width: 92vw; max-height: 90vh; background: transparent; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.75); }
.lightbox img { display: block; max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: var(--wit); font-size: 22px; cursor: pointer;
}

/* ============ FAQ fields (inc/page-sections.php) ============ */
.faq-answer { padding: 8px 0 0 0; }
.faq-answer p { margin: 0 0 8px 0; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============ Review carousel (more than 3 reviews; phones: 2+) ============ */
.review-carousel .review-grid { scrollbar-width: none; }
.review-carousel .review-grid::-webkit-scrollbar { display: none; }
.review-carousel.is-carousel .review-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.review-carousel.is-carousel .review { scroll-snap-align: start; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.carousel-nav[hidden] { display: none; }
.carousel-btn {
  width: 40px; height: 40px; border: 1px solid var(--lijn); border-radius: 50%;
  background: var(--wit); color: var(--tekst); font-size: 22px; line-height: 1; cursor: pointer;
}
.carousel-btn:hover:not(:disabled) { border-color: var(--oranje); background: var(--oranje-licht); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--lijn); cursor: pointer; }
.carousel-dot.is-active { background: var(--oranje); }
@media (max-width: 900px) {
  .review-carousel.is-carousel .review-grid { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 760px) {
  .review-carousel.is-carousel-mobile .review-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }
  .review-carousel.is-carousel-mobile .review { scroll-snap-align: start; }
}

/* ============ No single product alone on the last row (js/theme.js) ============ */
.products .card.is-orphan { display: none; }
/* Before the script runs: in the 2-column phone layout an odd last card is hidden right away. */
@media (max-width: 760px) {
  .products[data-no-orphan] > .card:last-child:nth-child(odd):not(:first-child) { display: none; }
}
