/*
Theme Name: Goedkopeuren Webshop
Version: 3.0.0
Description: A custom WordPress theme for the Goedkopeuren.nl webshop
Author: Goedkopeuren.nl
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: warmstroom
*/

/* ============================================
   BRAND COLORS - issue #27: warm groen palet
   (variabelenamen behouden; alleen hermapt)
   ============================================ */
:root {
  /* Primary brand colors */
  --hjornesten-slate: #2F4A38;
  --nordic-white: #FAF8F3;
  --elskov-warm-sand: #E8DFCF;
  --fjord-blue: #3F6B4E;
  --pine-green: #52796F;
  --copper-ember: #C0762C;
  
  /* Semantic color mapping */
  --primary: var(--hjornesten-slate);
  --primary-light: var(--fjord-blue);
  --secondary: var(--nordic-white);
  --text: var(--hjornesten-slate);
  --text-light: var(--nordic-white);
  --background: var(--nordic-white);
  --accent: var(--copper-ember);
  --accent-secondary: var(--pine-green);
  --warm-accent: var(--elskov-warm-sand);
  
  /* Status colors */
  --success: var(--pine-green);
  --warning: #f56e28;
  --danger: #d63638;
  
  /* Layout */
  --container-max: 1400px;
  --content-max: 68rem;
  --gutter: 1.5rem;
  --gutter-sm: 1rem;
  --gutter-lg: 2rem;
  --border-radius: 4px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

/* WP global styles (theme.json-layout) geven body per paginatype een
   wisselende margin/padding (page: 0 20px 48px + padding 24px; woocommerce:
   0) — daardoor versprong de hele site (en het header-logo) per pagina.
   !important is hier bewust: dit moet élke per-template global-style override. */
html body {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3.5vw, 1.75rem); }
h4 { font-size: 1.5rem; }

p {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1rem;
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin: 0 0 1em 0;
  padding-left: 2em;
}

li {
  margin-bottom: 0.5em;
}

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

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Eén gedeelde breedte voor de hele site (issue #57): .site-container is de
   enige max-width; header, footer en content gebruiken daarbinnen dezelfde
   .container-maten, dus logo/icoon en contentranden staan op elke pagina
   op identieke x-positie. */
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

.main-content {
  flex: 1;
  padding: var(--gutter-lg) 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background-color: var(--primary);
  color: var(--text-light);
  padding: var(--gutter) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* twee rijen (issue #57): rij 1 = logo + price-curve + cart, rij 2 = menu
     (order staat op de onderliggende regels) */
  gap: 0.75rem 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter);
}

/* Price curve in de header (issue #57): zelfde grafiek als op de homepage,
   op de eerste rij naast het logo (boven het menu) */
.header-price-curve {
  order: 2;
  flex-shrink: 0;
}

.header-price-curve .price-curve {
  display: block;
  height: 64px;
  width: auto;
  max-width: none;
  margin: 0;
}

@media (max-width: 768px) {
  .site-header {
    padding: var(--gutter-sm) 0;
  }

  .header-price-curve {
    display: none;
  }
}

.site-branding {
  order: 1;
  flex: 1;
  min-width: 0;
}

.site-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
  line-height: 1.2;
}

.site-title a {
  color: var(--text-light);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0.25rem 0 0 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
  order: 4;
  width: 100%;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.main-navigation li {
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
  color: var(--accent);
}

.main-navigation .current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
}

/* ============================================
   CART IN HEADER
   ============================================ */
.header-cart {
  order: 3;
  margin-left: auto;
  display: flex;
  align-items: center;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem;
}

.cart-link:hover {
  color: var(--accent);
  cursor: pointer;
}

.cart-link svg {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  /* --accent-secondary (pine green) geeft 6.44:1 contrast met --nordic-white,
     boven de 4.5:1 die WCAG AA voor deze kleine tekst vereist. */
  background-color: var(--accent-secondary);
  color: var(--text-light);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  transform: translate(50%, -50%);
}

.cart-count:empty {
  display: none;
}

.footer-navigation {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-navigation li {
  margin: 0;
  padding: 0;
}

.footer-navigation a {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-navigation a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Mobile navigation */
.menu-toggle {
  order: 5;
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .main-navigation {
    width: 100%;
    margin-top: 1rem;
  }
  
  .main-navigation ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: var(--gutter-lg) 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter);
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* HA-trademark-disclaimer (tekst moet compleet blijven, zie HA-trademarkbeleid):
   kleiner en minder prominent dan de footer-tekst — gaat op in het groene vlak */
.ha-disclaimer {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(250, 248, 243, 0.6);
  max-width: var(--content-max);
  margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn,
.button,
input[type="submit"],
input[type="button"],
button,
.wp-block-button__link {
  background-color: var(--primary);
  color: var(--text-light);
  border: 2px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.wp-block-button__link:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-light);
}

.btn-primary,
.button.primary {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-primary:hover,
.button.primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary,
.button.secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover,
.button.secondary:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

/* ============================================
   CARDS AND CONTENT BLOCKS
   ============================================ */
.card {
  background: var(--text-light);
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-excerpt {
  color: #666;
  font-size: 0.9rem;
}

/* ============================================
   TECHNICAL TEXT
   ============================================ */
code,
pre,
.technical {
  font-family: JetBrains Mono, 'Courier New', monospace;
  background-color: var(--warm-accent);
  color: var(--primary);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  border-radius: var(--border-radius);
  background-color: var(--warm-accent);
  color: var(--primary);
}

code {
  background-color: var(--warm-accent);
  color: var(--primary);
}

/* ============================================
   FORMS
   ============================================ */
form {
  margin-bottom: 1.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(90, 125, 144, 0.2);
}

/* Search form */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input[type="search"] {
  flex: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: var(--content-max);
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero .btn {
  background-color: var(--accent);
  border-color: var(--accent);
}

.hero .btn:hover {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #666;
  font-size: 1.1rem;
}

/* Main content area padding (geen eigen max-width meer: vult .site-container) */
.main-content {
  flex: 1;
  padding: var(--gutter-lg) 0;
  width: 100%;
}

/* Article and page content: zelfde breedte als .container */
article,
.page,
.post,
.search-result {
  margin-bottom: var(--gutter-lg);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ARTICLE AND POST STYLES
   ============================================ */
article,
.page,
.post {
  margin-bottom: 3rem;
  padding: 0 var(--gutter);
}

/* Content wrapper: zelfde breedte als .container (padding zit al op het article) */
.entry-content,
.post-content,
.page-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
  font-size: 1rem;
  line-height: 1.8;
}

/* WordPress content blocks within entry content */
.entry-content .wp-block,
.post-content .wp-block,
.page-content .wp-block {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Better paragraph spacing */
.entry-content p,
.post-content p,
.page-content p {
  margin-bottom: 1.25em;
}

.entry-content p:last-child,
.post-content p:last-child,
.page-content p:last-child {
  margin-bottom: 0;
}



.post-header,
.page-header {
  margin-bottom: var(--gutter-lg);
  border-bottom: 1px solid #eee;
  padding-bottom: var(--gutter);
  text-align: center;
}

.post-title,
.page-title {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
}

.post-meta a {
  color: var(--primary-light);
}

.post-meta a:hover {
  color: var(--accent);
}

.post-excerpt {
  margin-bottom: 1.5rem;
  color: #666;
}

/* Featured image */
.post-thumbnail {
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce {
  color: var(--text);
}

.woocommerce .button {
  background-color: var(--primary-light);
  color: var(--text-light);
  border-color: var(--primary-light);
}

.woocommerce .button:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-light);
}

.woocommerce .button.checkout {
  background-color: var(--accent);
  border-color: var(--accent);
}

.woocommerce .button.checkout:hover {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.woocommerce-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
}

.woocommerce ul.products li.product {
  background: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

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

.woocommerce ul.products li.product a img {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.woocommerce ul.products li.product .price {
  color: var(--accent);
  font-weight: 600;
  margin: 1rem 0;
}

.woocommerce ul.products li.product h3 {
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}

.woocommerce ul.products li.product .button {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  width: 100%;
  margin-top: 1rem;
}

.woocommerce .woocommerce-breadcrumb {
  background: none;
  padding: 1rem 0;
  color: #666;
  border: none;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--primary-light);
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--accent);
}

/* Product page */
.woocommerce div.product {
  margin-bottom: 3rem;
}

.woocommerce div.product .woocommerce-product-gallery {
  margin-bottom: 2rem;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
  margin-top: 1rem;
}

.woocommerce div.product .summary {
  padding-left: 2rem;
}

.woocommerce div.product .summary h1 {
  font-size: 2rem;
  color: var(--primary);
}

.woocommerce div.product .summary .price {
  font-size: 1.5rem;
  color: var(--accent);
  margin: 1rem 0;
}

.woocommerce div.product .summary .button {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  padding: 1rem 2rem;
  font-size: 1rem;
}

.woocommerce div.product .woocommerce-tabs {
  margin-top: 2rem;
}

/* Tab-bar (issue #57): de WC-default <ul class="tabs"> rendert zonder
   WooCommerce-CSS als bullets; dit maakt er een horizontale tab-bar van */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid var(--warm-accent);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  color: var(--text);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--accent);
  background-color: var(--warm-accent);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  background-color: var(--warm-accent);
  color: var(--primary);
  border-color: var(--warm-accent);
}

.woocommerce div.product .woocommerce-tabs .panel {
  padding: 1.5rem 0 0;
}

/* Cart and checkout */
.woocommerce-cart,
.woocommerce-checkout {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.woocommerce-cart table.cart,
.woocommerce-checkout table.cart {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td,
.woocommerce-checkout table.cart th,
.woocommerce-checkout table.cart td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.woocommerce-cart table.cart th {
  background-color: var(--warm-accent);
  font-weight: 600;
}

.woocommerce-cart .cart-totals,
.woocommerce-checkout .cart-totals {
  background: var(--warm-accent);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.woocommerce-cart .cart-totals h2,
.woocommerce-checkout .cart-totals h2 {
  margin-top: 0;
}

.woocommerce-cart .cart-totals table th,
.woocommerce-checkout .cart-totals table th {
  width: 50%;
  border: none;
  padding: 0.5rem 0;
}

.woocommerce-cart .cart-totals table td,
.woocommerce-checkout .cart-totals table td {
  border: none;
  padding: 0.5rem 0;
  text-align: right;
}

/* ============================================
   ERROR PAGES
   ============================================ */
.error-404 {
  text-align: center;
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404-content {
  text-align: center;
  max-width: 600px;
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.error-404 h2 {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.error-404 p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.error-404-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-results,
.no-results {
  padding: 3rem 0;
}

.search-header,
.no-results-header {
  margin-bottom: 2rem;
  text-align: center;
}

.search-title,
.no-results-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.search-query {
  color: var(--primary-light);
}

.search-results-count {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.search-form input[type="search"] {
  flex: 1;
  border: 2px solid #ddd;
  border-radius: var(--border-radius);
}

.search-submit {
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-submit:hover {
  background-color: var(--accent);
}

/* Hero section improvements */
.hero-title {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* Featured products section */
.featured-products {
  background-color: var(--secondary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-placeholder {
  width: 100%;
  height: 200px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card a {
  text-decoration: none;
  color: inherit;
}

.product-title {
  padding: 1rem 1rem 0;
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.product-price {
  padding: 0 1rem 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
}

.product-actions {
  padding: 0 1rem 1rem;
}

.product-actions .button {
  width: 100%;
}

/* Posts grid layout */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card,
.search-result {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.post-card:hover,
.search-result:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.post-card-header,
.search-result-header {
  padding: 1.5rem;
}

.post-card-title,
.search-result-title {
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
}

.post-card-title a,
.search-result-title a {
  color: var(--primary);
  text-decoration: none;
}

.post-card-title a:hover,
.search-result-title a:hover {
  color: var(--accent);
}

.post-card-meta,
.search-result-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.post-card-excerpt,
.search-result-excerpt {
  padding: 0 1.5rem 1.5rem;
  color: #666;
  font-size: 0.95rem;
}

.post-card-footer,
.search-result-footer {
  padding: 0 1.5rem 1.5rem;
}

/* Archive pages */
.archive-header {
  background-color: var(--warm-accent);
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.archive-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.archive-description {
  font-size: 1.1rem;
  color: var(--primary-light);
}

.archive-content {
  padding: 2rem 0;
}

/* Single post/page */
.post-header,
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.post-title,
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--primary);
  margin: 0 auto 1rem;
  text-align: center;
}

.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.post-meta a {
  color: var(--primary-light);
  text-decoration: none;
}

.post-meta a:hover {
  color: var(--accent);
}

.post-excerpt,
.page-excerpt {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
}

.post-navigation {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.previous-post,
.next-post {
  flex: 1;
}

.previous-post a,
.next-post a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
}

.previous-post a:hover,
.next-post a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Post tags */
.post-tags {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.post-tags span {
  margin-right: 0.5rem;
  color: #666;
}

.post-tags a {
  display: inline-block;
  background-color: var(--warm-accent);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-tags a:hover {
  background-color: var(--primary-light);
  color: var(--text-light);
}

/* ============================================
   WOOCOMMERCE SPECIFIC STYLES
   ============================================ */
.woocommerce-shop,
.woocommerce-product,
.woocommerce-content {
  padding: 2rem 0;
}

.shop-header {
  margin-bottom: 2rem;
}

.shop-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.shop-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.shop-content {
  padding: 1rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.related-products {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #eee;
}

.related-products-title {
  font-size: 2rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
}

/* WooCommerce breadcrumb */
.woocommerce-breadcrumb {
  background: none;
  padding: 1rem 0;
  color: #666;
  border: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.woocommerce-breadcrumb a {
  color: var(--primary-light);
  text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.woocommerce-breadcrumb span {
  color: #999;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS FOR NEW ELEMENTS
   ============================================ */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .posts-grid,
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .error-404 h1 {
    font-size: 4rem;
  }
  
  .error-404 h2 {
    font-size: 1.5rem;
  }
  
  .search-title,
  .no-results-title {
    font-size: 2rem;
  }
  
  .posts-grid,
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .search-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-form input[type="search"] {
    width: 100%;
  }
  
  .posts-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .error-404-actions {
    flex-direction: column;
  }
  
  .error-404 h1 {
    font-size: 3rem;
  }
  
  .header-container {
    padding: 0 var(--gutter-sm);
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.back-to-top:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Screen reader only class */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-results {
  margin-bottom: 2rem;
}

.search-results h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.search-results article {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.search-results article h2 {
  font-size: 1.25rem;
}

.search-results article h2 a {
  color: var(--primary-light);
}

.search-results article h2 a:hover {
  color: var(--accent);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.bg-primary { background-color: var(--primary); color: var(--text-light); }
.bg-secondary { background-color: var(--secondary); color: var(--text); }
.bg-accent { background-color: var(--accent); color: var(--text-light); }
.bg-warm { background-color: var(--warm-accent); }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-light { color: var(--text-light); }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   Standard breakpoints: Mobile (<768px), Tablet (768-1024px), Desktop (1024-1200px), Large Desktop (>1200px)
   ============================================ */
@media (max-width: 1200px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  
  .woocommerce div.product .summary {
    padding-left: 0;
    margin-top: 2rem;
  }
  
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 1024px) {
  /* Tablet landscape - slightly smaller headlines */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Tablet portrait / Mobile landscape */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .header-container {
    flex-direction: column;
  }
  
  .main-navigation {
    width: 100%;
    margin-top: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .woocommerce div.product .woocommerce-product-gallery {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  /* Mobile portrait */
  .main-navigation ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn, .button {
    padding: 0.75rem 1rem;
  }
  
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
  
  .products-grid,
  .product-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   WORDPRESS BLOCKS SUPPORT
   ============================================ */
/* Main content container - ensure it's properly constrained */
.main-content {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

/* WordPress block containers - constrain width for readability */
.wp-block,
.wp-block-paragraph,
.wp-block-heading,
.wp-block-list,
.wp-block-column {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* WordPress layout constrained containers */
.is-layout-constrained {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* Alignments */
.alignwide {
  max-width: var(--container-max);
  margin-left: -10vw;
  margin-right: -10vw;
}

.alignfull {
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Cover block */
.wp-block-cover {
  position: relative;
  padding: 4rem 0;
}

.wp-block-cover__inner-container {
  padding: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Columns */
.wp-block-columns {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.wp-block-columns .wp-block-column {
  flex: 1;
}

/* Buttons */
.wp-block-button {
  margin-bottom: 1rem;
}

/* Separator */
.wp-block-separator {
  border: none;
  height: 1px;
  background-color: #eee;
  margin: 2rem 0;
}

/* Spacer */
.wp-block-spacer {
  clear: both;
}

/* Group */
.wp-block-group {
  padding: 1rem 0;
}

/* Media & Text */
.wp-block-media-text {
  align-items: center;
  gap: 2rem;
}

.wp-block-media-text img {
  flex-shrink: 0;
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .main-navigation,
  .footer-navigation,
  .btn,
  .button {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}

/* ============================================
   HOMEPAGE LANDING (issue #27)
   ============================================ */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero .btn-hero-ghost {
  background: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
}

.hero .btn-hero-ghost:hover {
  background: var(--text-light);
  color: var(--primary);
  text-decoration: none;
}

.price-curve {
  max-width: 640px;
  margin: 0 auto;
  display: block;
}

.section-alt {
  background-color: var(--warm-accent);
}

.step-grid,
.feature-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.step-card,
.feature-card,
.why-card {
  background: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  transition: var(--transition);
}

.step-card:hover,
.feature-card:hover,
.why-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.step-card {
  position: relative;
  padding-top: 2.25rem;
}

.step-number {
  position: absolute;
  top: -1.1rem;
  left: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--box-shadow);
}

.step-card h3,
.feature-card h3,
.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-card p,
.feature-card p,
.why-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.boiler-tips {
  max-width: 48rem;
  margin: 0 auto;
}

.boiler-tips ul {
  margin: 0;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.home-product {
  background: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition);
}

.home-product:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.home-product h3 {
  font-size: 1.15rem;
  margin: 0;
}

.home-product p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  flex: 1;
}

.home-product .badge {
  align-self: flex-start;
  background-color: var(--accent);
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--border-radius);
}

.home-product .badge-soon {
  background-color: var(--warm-accent);
  color: var(--primary);
}

.home-product .more {
  font-weight: 600;
  color: var(--primary-light);
}

.home-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  text-align: center;
}

.home-cta h2 {
  color: var(--text-light);
}

.home-cta p {
  max-width: 44rem;
  margin: 0 auto 2rem;
  color: var(--text-light);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .step-grid, .feature-grid, .why-grid, .home-product-grid {
    grid-template-columns: 1fr;
  }

  .home-product-grid {
    gap: 1.25rem;
  }
}

/* ============================================
   VERGELIJKINGSTABEL (issue #34)
   ============================================ */
.compare-wrap {
  max-width: 56rem;
  margin: 0 auto;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.compare-table thead th {
  background-color: var(--primary);
  color: var(--text-light);
  text-align: left;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
}

.compare-table tbody td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  text-align: left;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--primary);
}

.compare-table tbody tr:nth-child(even) {
  background-color: rgba(232, 223, 207, 0.35);
}

.compare-table .compare-recommended {
  background-color: var(--accent);
  color: var(--text-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--border-radius);
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ============================================
   KPI-BEWIJS (issue #53)
   ============================================ */
.kpi-figure {
  margin: 1.25rem auto 0;
  max-width: 720px;
}

.kpi-figure img {
  width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 0.5rem;
}

.kpi-more {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}
