/* Productpagina (woocommerce/single-product.php). Bouwt voort op de .pdp-stijlen uit ep.css (concept). */

.ep-meldingen:empty { display: none; }
.ep-meldingen .woocommerce-message, .ep-meldingen .woocommerce-error, .ep-meldingen .woocommerce-info { list-style: none; margin: 18px 0 0; padding: 14px 18px; border-radius: var(--r-s); background: var(--vel); border-left: 4px solid var(--limoen); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.ep-meldingen .woocommerce-error { border-left-color: #b3261e; }
.ep-meldingen .button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--pil); background: var(--inkt); color: #fff; text-decoration: none; font-weight: 650; order: 2; }

.pdp-hoofdbeeld img { height: auto; max-height: 100%; }
.pdp-hoofdbeeld.is-categorie img { mix-blend-mode: normal; padding: 0; object-fit: cover; height: 100%; }
.pdp-fotonoot { position: absolute; left: 12px; bottom: 12px; font-size: 12px; background: rgba(255, 255, 255, .9); color: var(--stil); padding: 3px 10px; border-radius: var(--pil); }
.pdp-hoofdbeeld .pk-rol--groot { transform: scale(1.6); }
.pdp-intro p { margin: 0 0 8px; }

/* Keuzeknoppen (vervangen de keuzelijsten van WooCommerce zodra JavaScript draait) */
button.optie { appearance: none; border: 0; background: none; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.optie span { min-width: 92px; }
.optie small { display: block; font-size: 12.5px; color: var(--stil); }
.optie--klein span { min-width: 70px; text-align: center; justify-items: center; }
.optie[aria-pressed="true"] span { border-color: var(--inkt); background: var(--inkt); color: #d8d4cf; }
.optie[aria-pressed="true"] strong, .optie[aria-pressed="true"] small { color: #fff; }
.optie:focus-visible span { outline: 3px solid var(--inkt); outline-offset: 2px; }
.optie.is-gedimd span { opacity: .4; border-style: dashed; }
.optie.is-gedimd:hover span { border-color: var(--lijn-sterk); }

/* Het echte formulier van WooCommerce */
.koop .variations_form { margin: 0; }
.koop table.variations { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.koop table.variations th, .koop table.variations td { display: block; text-align: left; padding: 0; }
.koop table.variations th { font-weight: 650; color: var(--inkt); margin: 10px 0 6px; }
.koop table.variations select { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-s); background: #fff; font: inherit; color: var(--inkt); }
.koop .reset_variations { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--stil); }
.ep-js .koop table.variations, .ep-js .koop .reset_variations, .ep-js .koop .woocommerce-variation-price { display: none !important; }
.koop .woocommerce-variation-description p { margin: 0 0 10px; font-size: 14px; color: var(--stil); }
.koop .woocommerce-variation-availability .stock { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--blad); }
.koop .woocommerce-variation-availability .out-of-stock { color: #9a2b12; }
.koop .woocommerce-variation-availability:empty, .koop .woocommerce-variation-description:empty { display: none; }
.koop-prijs small { font-size: 15px; font-weight: 500; color: var(--stil); }
.koop-prijs .woocommerce-Price-amount, .koop-prijs bdi { font: inherit; }
.koop-prijs del { font-size: 20px; color: var(--stil); margin-right: 6px; }
.koop-prijs ins { text-decoration: none; }
.koop-rij { align-items: stretch; }
.koop-rij .single_add_to_cart_button { flex: 1; min-height: 52px; border: 0; }
.koop-rij .single_add_to_cart_button.disabled, .koop-rij .single_add_to_cart_button.wc-variation-selection-needed { opacity: .55; cursor: not-allowed; }
.aantal { align-items: center; min-height: 52px; }
.aantal button { height: 44px; color: var(--inkt); }
.aantal .quantity { display: flex; }
.aantal .quantity input.qty { width: 52px; min-height: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; color: var(--inkt); background: none; -moz-appearance: textfield; }
.aantal .quantity input.qty::-webkit-inner-spin-button, .aantal .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.koop-sku .sku { color: var(--inkt); font-weight: 650; }

/* Tabbladen: een rustige leeskolom, geen twee kolommen */
.pdp-paneel { display: block; }
.pdp-paneel[hidden] { display: none; }
.pdp-leeskolom { max-width: 70ch; font-size: 17px; line-height: 1.7; color: var(--tekst); }
.pdp-leeskolom > *:first-child { margin-top: 0; }
.pdp-leeskolom h2, .pdp-leeskolom h3 { font-size: 21px; line-height: 1.3; color: var(--inkt); margin: 34px 0 10px; }
.pdp-leeskolom p { margin: 0 0 16px; }
.pdp-leeskolom ul, .pdp-leeskolom ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
.pdp-leeskolom li { position: relative; padding-left: 26px; margin: 0 0 8px; }
.pdp-leeskolom li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 3px; border-radius: 2px; background: var(--limoen-diep); }
.pdp-tabelrol { overflow-x: auto; max-width: 100%; }
.spec--formaten { max-width: 980px; min-width: 620px; }
.spec--formaten td, .spec--formaten th { font-size: 15.5px; padding-right: 18px; white-space: nowrap; }
.spec--formaten tbody th small { display: block; font-weight: 400; color: var(--stil); font-size: 13px; }
.spec--formaten .r { text-align: right; padding-right: 0; }
.spec--formaten .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: -.01em; }
.spec--formaten tr.is-uit { color: var(--stil); }
.spec--formaten small { color: var(--stil); }
.pdp-noot { margin-top: 12px !important; font-size: 14px; color: var(--stil); }

/* Vaste balk onderaan op mobiel */
.pdp-balk { display: none; }
@media (max-width: 900px) {
  .pdp-balk:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 12px; align-items: center; justify-content: space-between; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--lijn); box-shadow: 0 -6px 20px rgba(31, 26, 23, .08); transform: translateY(110%); transition: transform .25s ease; }
  .pdp-balk.is-zichtbaar { transform: none; }
  .pdp-balk-tekst { display: grid; min-width: 0; line-height: 1.25; }
  .pdp-balk-tekst strong { font-size: 18px; color: var(--inkt); }
  .pdp-balk-tekst span { font-size: 13px; color: var(--stil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-balk .knop { min-height: 48px; padding: 0 18px; flex: none; }
  .optie span { min-height: 48px; min-width: 0; padding: 6px 12px; }
  .kiezer-opties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kiezer-opties .optie--klein { min-width: 0; }
  .koop { padding: 18px; }
  .koop-rij { flex-wrap: wrap; }
  .koop-rij .single_add_to_cart_button { flex: 1 1 100%; }
  .aantal { flex: 1 1 100%; justify-content: space-between; }
  .pdp-leeskolom { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pdp-balk { transition: none; } }
.pdp-tabs .toep-tabs button { min-height: 46px; }
.koop-prijs strong { color: var(--inkt); font-size: 32px; font-weight: 700; }
.koop-prijs strong .woocommerce-Price-amount, .koop-prijs strong bdi, .koop-prijs strong .woocommerce-Price-currencySymbol { color: inherit; font-size: inherit; font-weight: inherit; }
.koop-prijs strong small { font-size: 15px; font-weight: 500; color: var(--stil); }
.koop-verzend { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0 !important; font-size: 14px; color: var(--tekst); }
.koop-verzend .ic { color: var(--blad); flex: none; margin-top: 2px; }
.koop-verzend strong { display: block; color: var(--inkt); }
.koop-verzend small { display: block; font-size: 13px; color: var(--stil); }
