/* ==========================================================================
   Producten: overzicht, single product en variabele producten
   ========================================================================== */

/* Algemeen */
form.cart:not(.product-variabel-product form.cart) {
  display: flex;
}
.quantity {
  display: flex !important;
}
/* Overzicht */
article.product img {
  object-fit: contain !important;
}
.product-grid a.w-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: initial;
}
.w-filter-item-value-amount {
  display: none;
}
/* Single */
#product-hoofd-details .wpb_column:first-child {
  padding-bottom: 1.5rem;
}
#product-hoofd-details .flex-control-nav img {
  background-color: #fff;
}
.woocommerce-product-gallery__image {
  display: flex !important;
  justify-content: center;
  align-items: center;
  aspect-ratio: 3 / 2;
  background: var(--color-content-bg-alt);
}
.woocommerce-product-gallery__image > img {
  aspect-ratio: 3/2;
  object-fit: contain;
}
.woocommerce-product-gallery .flex-control-thumbs {
  justify-content: flex-start;
}
.woocommerce-product-gallery .flex-control-thumbs img {
  aspect-ratio: 1;
  object-fit: contain;
  border: solid 2px #e4ddd5;
}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  border: solid 2px var(--color-content-primary);
}
.woocommerce-product-attributes-item--attribute_pa_maat {
  display: none !important;
}
/* Variabel */
.woocommerce-variation-add-to-cart {
  display: flex;
}

/* Product detail redesign - PDF page 9. Scoped to the product hero. */
#product-hoofd-details {
  --zappaz-taupe: #ab9780;
  --zappaz-ink: #51463d;
  --zappaz-line: #c9bcae;
  padding: clamp(40px, 6vw, 100px) clamp(24px, 8vw, 120px) 48px !important;
  color: var(--zappaz-ink);
}
#product-hoofd-details > .l-section-h {
  margin-inline: auto;
}
#product-hoofd-details > .l-section-h > .g-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  margin: 0;
}
#product-hoofd-details > .l-section-h > .g-cols > .wpb_column {
  width: auto;
  min-width: 0;
  padding: 0;
}
#product-hoofd-details
  > .l-section-h
  > .g-cols
  > .wpb_column
  > .vc_column-inner {
  padding: 0;
  width: 100%;
}
#product-hoofd-details
  .wpb_column:nth-child(2)
  > .vc_column-inner
  > .wpb_wrapper
  > .w-separator:first-child {
  display: none;
}
#product-hoofd-details .g-breadcrumbs {
  font-size: 12px;
  line-height: 1.6;
  color: #75695e;
}
#product-hoofd-details .post_title {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
  font-weight: 500;
  color: var(--zappaz-ink);
}
#product-hoofd-details .product_field.price {
  font-size: 24px !important;
  line-height: 1.3;
  font-weight: 500;
  color: var(--zappaz-ink);
}
#product-hoofd-details .w-separator.with_line {
  color: var(--zappaz-line);
}
#product-hoofd-details .w-separator-h {
  border-color: var(--zappaz-line);
}
#product-hoofd-details .woocommerce-product-gallery__image {
  aspect-ratio: 1;
  background: #f7f5f2;
}
#product-hoofd-details .woocommerce-product-gallery__image > a {
  display: block;
  width: 100%;
}
#product-hoofd-details .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
#product-hoofd-details .us-thumbs-wrapper {
  position: relative;
  margin-top: 12px;
}
#product-hoofd-details .flex-control-thumbs {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
#product-hoofd-details .flex-control-thumbs li {
  width: calc((100% - 24px) / 3) !important;
  height: auto !important;
  flex: 0 0 calc((100% - 24px) / 3) !important;
}
#product-hoofd-details .flex-control-thumbs img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid transparent;
  background: #f7f5f2;
  opacity: 1;
}
#product-hoofd-details .flex-control-thumbs img.flex-active {
  border-color: var(--zappaz-taupe);
}
#product-hoofd-details form.cart {
  display: block;
  width: 100%;
}
#product-hoofd-details .variations {
  width: 100%;
}
#product-hoofd-details .variations th.label {
  font-size: 14px;
  line-height: 1.6;
  padding-bottom: 10px;
}
#product-hoofd-details .variations td.value {
  padding-bottom: 20px;
}
#product-hoofd-details .woo-selected-variation-item-name {
  font-weight: 400;
}
#product-hoofd-details .variable-items-wrapper {
  gap: 8px;
}
#product-hoofd-details .variable-item.button-variable-item {
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 50% !important;
  border: 1px solid var(--zappaz-taupe);
  box-shadow: none;
  background: white;
  color: #75695e;
  font-size: 14px;
}
#product-hoofd-details .variable-item.button-variable-item.selected {
  background: var(--zappaz-taupe);
  color: white;
  box-shadow: none;
}
#product-hoofd-details .variable-item.color-variable-item,
#product-hoofd-details .variable-item-span-color {
  border-radius: 50% !important;
}
#product-hoofd-details .variable-item.color-variable-item {
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 3px;
  box-shadow: none;
  border: 1px solid transparent;
}
#product-hoofd-details .variable-item.color-variable-item.selected {
  border-color: var(--zappaz-taupe);
}
/* Fallback only for an unconfigured Taupe swatch; configured term colors win. */
#product-hoofd-details .color-variable-item-taupe .variable-item-span-color {
  background-color: #a99a89;
}
#product-hoofd-details .variable-item:focus-visible,
#product-hoofd-details button:focus-visible {
  outline: 2px solid var(--zappaz-ink);
  outline-offset: 4px;
}
#product-hoofd-details .single_variation_wrap {
  width: 100%;
}
#product-hoofd-details .woocommerce-variation-add-to-cart {
  display: flex;
  gap: 12px;
  width: 100%;
}
#product-hoofd-details .hide_qty .quantity {
  display: none !important;
}
#product-hoofd-details .single_add_to_cart_button.button.alt {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 46px;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 0;
  background: var(--zappaz-taupe) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
  box-shadow: none;
}
#product-hoofd-details
  .single_add_to_cart_button.button.alt:not(.disabled):hover {
  background: #8b7864 !important;
}
#product-hoofd-details .single_add_to_cart_button.disabled {
  opacity: 0.6;
}
#product-hoofd-details .single_add_to_cart_button::before {
  content: "";
  position: static;
  inset: auto;
  border: 0;
  border-radius: 0;
  opacity: 1;
  transform: none;
  flex-shrink: 0;
  display: inline-block;
  width: 16px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 7h14l1 14H4L5 7zm3 0V5a4 4 0 018 0v2' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 7h14l1 14H4L5 7zm3 0V5a4 4 0 018 0v2' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
#product-hoofd-details .us_custom_1b04de86 {
  background: #f7f5f2;
  border-radius: 0;
  padding: 24px;
  gap: 12px;
  font-size: 13px;
  line-height: 1.7;
}
#product-hoofd-details .us_custom_1b04de86 .w-text.icon_atleft i.fa-check {
  color: #20b66a !important;
  font-size: 19px;
}
#product-hoofd-details .us_custom_1b04de86 .w-text {
  margin: 0;
}
#product-hoofd-details .us_custom_1b04de86 .w-text:nth-child(2) {
  order: -2;
}
#product-hoofd-details .us_custom_1b04de86 .w-text:nth-child(3) {
  order: -1;
}
#product-hoofd-details .w-tabs-section {
  border-color: var(--zappaz-line);
}
#product-hoofd-details .w-tabs-section-header {
  padding: 18px 0;
  color: #75695e;
  font-size: 14px;
}
#product-hoofd-details .w-tabs-section-control {
  color: var(--zappaz-taupe);
}
#product-hoofd-details .w-tabs-section-content-h {
  padding: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
}
@media (max-width: 900px) {
  #product-hoofd-details {
    padding: 36px 24px !important;
  }
  #product-hoofd-details > .l-section-h > .g-cols {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  #product-hoofd-details {
    padding: 24px 20px 36px !important;
  }
  #product-hoofd-details > .l-section-h > .g-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  /* Subimages (thumbnails) vervangen door een swipebare carousel met peek-
     effect (klein randje van de volgende foto zichtbaar) en kleine dots i.p.v.
     3 losse duimnagels per rij - PDF "website mobiel". De hoofdafbeelding blijft
     gewoon de bestaande FlexSlider (native swipe/drag werkt al), we maken 'm
     alleen smaller zodat de volgende slide half zichtbaar is. De duimnagel-lijst
     (.flex-control-thumbs) blijft functioneel intact (klik/actieve status via
     FlexSlider zelf) maar wordt visueel omgetoverd tot dots: de foto in elke
     li wordt onzichtbaar gemaakt (opacity: 0, blijft klikbaar), en de li zelf
     krijgt de bolvorm + kleur. */
  #product-hoofd-details .flex-viewport {
    overflow: visible !important;
    width: 94%;
  }
  #product-hoofd-details .flex-control-thumbs {
    justify-content: left;
    gap: 8px;
    overflow: visible;
  }
  #product-hoofd-details .flex-control-thumbs li {
    width: 8px !important;
    height: 8px !important;
    flex: 0 0 8px !important;
    border-radius: 50%;
    background: var(--zappaz-line);
    overflow: hidden;
  }
  #product-hoofd-details .flex-control-thumbs img {
    opacity: 0;
    width: 100% !important;
    height: 100% !important;
  }
  #product-hoofd-details .flex-control-thumbs li:has(img.flex-active) {
    background: var(--zappaz-taupe);
  }
  #product-hoofd-details .post_title {
    font-size: 24px;
  }
  #product-hoofd-details .product_field.price {
    font-size: 22px;
  }
  #product-hoofd-details .variable-item.button-variable-item {
    width: 44px;
    height: 44px;
  }
  #product-hoofd-details .us_custom_1b04de86 {
    padding: 20px;
  }
}

/* Productaccordeon: alleen een scheidingslijn tussen de onderdelen. */
#product-hoofd-details .w-tabs-sections > .w-tabs-section {
  border-top: 0;
  border-bottom: 0;
}
#product-hoofd-details .w-tabs-sections > .w-tabs-section + .w-tabs-section {
  border-top: 1px solid var(--zappaz-line, #c9bcae);
}

.custom-carousal-product-page .owl-carousel.owl-loaded > *:not(.owl-playpause) {
  width: 100% !important;
}

.custom-carousal-product-page .owl-nav {
  color: var(--color-content-primary);
  top: 40px !important;
}

/* Mobile product hero - mobile PDF, page 3 (22 September 2026). */
@media (max-width: 767px) {
  /* The existing mobile breadcrumb row sits immediately above the gallery. */
  body.single-product #page-content > .section-no-extra-padding:has(.g-breadcrumbs) {
    padding: 12px 20px 8px !important;
  }
  body.single-product .section-no-extra-padding .g-breadcrumbs {
    font-size: 12px; line-height: 1.5; color: #75695e;
  }
  body.single-product .section-no-extra-padding .g-breadcrumbs-separator { margin-inline: 4px; }
  #product-hoofd-details { padding: 0 20px 32px !important; }
  #product-hoofd-details > .l-section-h > .g-cols { gap: 8px; }
  #product-hoofd-details > .l-section-h > .g-cols > .wpb_column { margin: 0; }
  #product-hoofd-details .product_gallery { width: calc(100% + 20px); overflow: hidden; }
  #product-hoofd-details .flex-viewport { width: calc(100% - 32px); overflow: visible !important; }
  #product-hoofd-details .woocommerce-product-gallery__image {
    border-right: 10px solid #fff; box-sizing: border-box; background: #f7f5f2;
  }
  #product-hoofd-details .us-thumbs-wrapper { margin-top: 2px; }
  #product-hoofd-details .flex-control-thumbs { gap: 0; padding: 0; height: 24px; }
  #product-hoofd-details .flex-control-thumbs li {
    width: 20px !important; height: 24px !important; flex: 0 0 20px !important;
    border-radius: 0; background: radial-gradient(circle, #d7cfc4 3px, transparent 3.5px);
  }
  #product-hoofd-details .flex-control-thumbs li:has(img.flex-active) {
    background: radial-gradient(circle, var(--zappaz-taupe) 3px, transparent 3.5px);
  }
  #product-hoofd-details .flex-control-thumbs img { border: 0; }
  #product-hoofd-details .us-thumbs-nav { display: none; }
  #product-hoofd-details .g-breadcrumbs + .w-separator { display: none; }
  #product-hoofd-details .post_title { font-size: 20px !important; line-height: 1.35; font-weight: 500; }
  #product-hoofd-details .post_title + .w-separator { height: 4px; }
  #product-hoofd-details .product_field.price { font-size: 21px !important; font-weight: 500; line-height: 1.4; }
  #product-hoofd-details .w-separator.with_line { height: 1px; margin: 20px 0 16px; }
  #product-hoofd-details .w-separator.with_line .w-separator-h { height: 1px; }
  #product-hoofd-details .variations th.label { font-size: 12px; line-height: 1.6; padding-bottom: 6px; }
  #product-hoofd-details .variations td.value { padding-bottom: 16px; }
  #product-hoofd-details .variable-items-wrapper { gap: 8px; }
  #product-hoofd-details .variable-item.button-variable-item { width: 36px; height: 36px; font-size: 13px; }
  #product-hoofd-details .variable-item.color-variable-item { width: 26px; height: 26px; }
  #product-hoofd-details .single_add_to_cart_button.button.alt { min-height: 44px; padding: 10px 16px; font-size: 15px; }
  #product-hoofd-details .us_custom_1b04de86 {
    width: calc(100% + 40px); max-width: none; margin-inline: -20px;
    padding: 28px 24px; gap: 12px; font-size: 12px; line-height: 1.65;
  }
  #product-hoofd-details .us_custom_1b04de86 .w-text { font-size: 12px !important; line-height: 1.65; }
  #product-hoofd-details .us_custom_1b04de86 .w-text-h { display: flex; align-items: baseline; gap: 10px; }
  #product-hoofd-details .us_custom_1b04de86 .w-text-h i { margin: 0; flex: 0 0 18px; }
  #product-hoofd-details .us_custom_1b04de86 .w-text-value { flex: 1; min-width: 0; }
  #product-hoofd-details .w-tabs-section-header { background: transparent; padding: 16px 0; min-height: 52px; font-size: 13px; }
  #product-hoofd-details .w-tabs-section-content { padding: 0; }
  #product-hoofd-details .w-tabs-section-content-h { font-size: 13px; }
}

/* De pasvormzin na "Kies je maat: " mag niet vetgedrukt zijn zoals de rest
   van het label - zie yooker_pasvorm_zin_niet_vet() in inc/woocommerce.php,
   die dit stuk tekst in een eigen span zet. */
#product-hoofd-details .yooker-pasvorm-zin {
  font-weight: normal;
}
