
/* Container */
.gpf-filter-group {
  padding: 10px 0;
}

/* Header: titel + pijl */
.gpf-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 11px;
  border-bottom: 1px solid #cccccc;
}

/* Pijltje */
.gpf-toggle-icon {
  transition: transform 0.3s ease;
}

/* Draai pijltje als niet collapsed */
.gpf-filter-group:not(.collapsed) .gpf-toggle-icon {
  transform: rotate(225deg) !important;
}

/* Inhoud verbergen indien collapsed */
.gpf-filter-group.collapsed .gpf-options {
  display: none;
}

/* Zoeken input */
.gpf-searchbox input {
  width: 100%;
  padding: 6px 10px !important;
  margin: 10px 0;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
}

/* Checkboxen netjes */
.gpf-options label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

/* Meer knop */
.gpf-show-more {
  background: none;
  border: none;
  color: #193568;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 0;
}

.gpf-show-more:hover {
  text-decoration: underline;
}

/* Mobiele knoppen onderaan */
.gpf-mobile-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gpf-submit,
.gpf-reset {
  padding: 8px 14px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.gpf-submit {
  background-color: #193568;
  color: white;
}

.gpf-reset {
  background-color: #f1f1f1;
  color: #333;
  text-decoration: none;
}


/* Verberg zoekbalk als groep is collapsed */
.gpf-filter-group.collapsed .gpf-searchbox {
  display: none;
}


@media (max-width: 1024px) {
  .gpf-mobile-toggle {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #193568;
    color: white;
    border: none;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .gpf-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 1000;
    padding: 30px;
    overflow-y: auto;
  }

  .gpf-mobile-overlay.open {
    display: block;
    z-index: 99999;
    width: 100% !important;
  }

  .gpf-close-overlay {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
  }
}

@media (min-width: 1025px) {
  .gpf-mobile-toggle,
  .gpf-mobile-overlay {
    display: none !important;
  }
}


@media (min-width: 1025px) {
  .gpf-apply-button {
    display: none !important;
  }
}


@media (min-width: 1025px) {
  .gpf-apply-button,
  .gpf-reset-button {
    display: none !important;
  }
}

div#active-filters button {
    margin-right: 6px;
}


/*loader css */
.gpf-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #333;
}

.gpf-loader .spinner {
    position: absolute;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

body.elementor-editor-active .gpf-loader {
    display: none !important;
}

.gpf-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  margin-bottom: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  /*font-weight: 400;*/
}

.gpf-options label:hover {
  background-color: #f9f9f9;
  border-color: #ccc;
}

.gpf-options input[type="checkbox"] {
  accent-color: #183568; /* WordPress blue; change if you like */
  width: 21px;
  height: 21px;
  cursor: pointer;
}

.gpf-options .gpf-count {
  font-size: 9px;
  color: #000;
}

.gpf-options label[style*="display: none"] {
  display: none !important;
}
span.gpf-toggle-icon {
  width: 12px;
  height: 12px;
  border-bottom: 2px solid black;
  border-right: 2px solid black;
  transform: rotate(45deg) !important;
  margin: 10px;
}

.gpf-group-header h4{
  font-size: 16px !important;
  font-weight: 400 !important;
}

.custom-cart-form,.grouped_pro {
  display: flex;
  gap: 10px;
  align-items: center;
}

.custom-cart-form .qty {
  width: 60px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 5px;
}

.qty-btn {
  background: #f2f2f2;
  border: none;
  width: 32px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

.qty {
  width: 50px;
  text-align: center;
  border: none;
  height: 38px;
}

.quantity-wrapper button.qty-btn {
  color: #000000;
  border: none !important;
}
.quantity-wrapper button.qty-btn:hover, .quantity-wrapper button.qty-btn:focus{
  background-color: #ffffff;
}

.custom-cart-form button.alt, a.button {
  background-color: #47cfac !important;
  color: #ffffff !important;
}
.custom-cart-form button.alt i, a.button i {
  margin-left: 5px;
}

/* Simpel product: prijs links, "Bekijk Product"-knop rechts ernaast */
.price-action-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.price-action-row .price {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}
.price-action-row .price .sc-price-wrapper {
  margin: 0;
}
/* wpautop laat een leeg <p> achter in .price; thema-marge weghalen */
.price-action-row .price p:empty {
  margin: 0;
  display: none;
}
.price-action-row .add_cartcus {
  flex: 0 0 auto;
  margin: 0;
}
a.button.bekijk-product {
  display: inline-block;
  white-space: nowrap;
  text-align: center;
  padding: 10px 10px;
  font-weight: 700;
  border-radius: 8px;
  line-height: 1.2;
  height: auto;
}

/* "Keuze uit X producten"-knop (grouped) zelfde padding */
#custom-product-listing .grouped_pro a {
  padding: 10px 10px;
  height: auto;
}

/* Smalle kaarten (tablet + mobiel = 2-koloms grid, ≤1023px): prijs en knop
   passen niet naast elkaar en zouden overlappen → netjes stapelen met de prijs
   boven en de knop over volle breedte eronder, links uitgelijnd met de prijs. */
@media (max-width: 1023px) {
  .price-action-row {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
  }
  .price-action-row .price {
    flex: 0 0 auto;
    text-align: left;
  }
  .price-action-row .add_cartcus {
    width: 100%;
  }
  a.button.bekijk-product {
    display: block;
    width: 100%;
    white-space: normal;
  }
}
.active-filter-tag span {
  padding-right: 10px;
  color: #333333;
  font-weight: 800;
}

span.active-filter-tag {
    margin-right: 8px;
    border: 1px solid #E7E7EE;
    border-radius: 23px;
    padding: 7px 15px;
    cursor: pointer;
    margin-bottom: 10px;
    display: inline-flex;
    background-color: #F5F9FE;
}

.jet-wishlist-button__plane-normal, .jet-wishlist-button__plane-added, 
.jet-compare-button__plane-normal, .jet-compare-button__plane-added {
  background-color: #ffffff !important;
}
span.jet-compare-button__label {
  font-size: 11px !important;
}

.container_cu {
  display: contents;
}
.ajax-pagination {
  display: inline-block;
  height: 34px !important;
  width: 100%;
  position: absolute;
  bottom: -54px;
  margin-top: 5px;
  padding: 37px 0;
  margin: auto 0;
  text-align: center;
  z-index: 9999;
}
.ajax-pagination {
    display: none;
}
a.ajax-page-link, a.ajax-page-link-filter {
  padding: 10px;
  border: 1px solid;
  margin-right: 4px;
}
.elementor-element.elementor-element-9e35219.elementor-widget.elementor-widget-woocommerce-archive-description,
.term-description {
  margin-top: 40px;
}
a.ajax-page-link.current, a.ajax-page-link-filter.current {
  background-color: #77b3ce;
}
span.gpf-show-more {
  padding-left: 12px;
  text-decoration: none !important;
  font-weight: 400;
}
/*div#custom-compare-list {
    position: fixed;
    bottom: 0;
    right: 20px;
    z-index: 9999999;
    box-shadow: 0 8px 24px #969ea633;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    width: 330px;
}*/
span.comparef-toggle-icon {
  width: 12px;
  height: 12px;
  border-bottom: 2px solid black;
  border-right: 2px solid black;
  transform: rotate(225deg) !important;
  margin: 10px;
  display: inline-block;
  float: right;
}
#custom-compare-list:not(.open_compare) .comparef-toggle-icon {
  transform: rotate(45deg) !important;
}
.footer_compare {
  cursor: pointer;
  font-weight: 700;
  padding-bottom: 20px;
}
.compere_list_p{
  display: none;
}
.compere_list_p.show_compare {
  display: block;
}
.compare_btns {
  margin-top: 20px;
}
a.compare_button {
    border: 2px solid;
    padding: 6px 15px;
    background-color: #47cfac;
    color: #fff !important;
    border-radius: 6px;
}

.productloop {
    display: block;
    max-height: 200px;
    overflow-y: scroll;
}
h4.custtitlef {
    font-size: 12px;
    word-wrap: break-word !important;
    width: 220px;
    margin-top: 0px;
}
img.imagdata {
    width: 60px;
    height: 60px;
}
.innerloop {
    display: flex;
    /* margin: 11px; */
    gap: 10px;
    border-bottom: 1px solid #ddd;
    padding: 24px 0;
}

/* ============================================================
   Grouped-filter kaart: 2 kleine opschoningen na het toevoegen
   van de review-sterren + losse titel-link.
   ============================================================ */

/* 1. Titel is nu een echte link (h2 > a). Geef 'm weer de
      oorspronkelijke titelkleur (#224284) i.p.v. de linkkleur,
      en geen onderstreping. */
.woocommerce #custom-product-listing h2.woocommerce-loop-product__title a,
.custom-product-listing h2.woocommerce-loop-product__title a {
    color: inherit;
    text-decoration: none;
}

/* 2. Leeg vak tussen SKU en de USP-lijst. Dit is het lege <p> dat
      wpautop om de (verborgen) diagnostische output van [product_usp]
      heen zet. Het staat altijd direct na .sku-wrap; de zichtbare
      USP's zitten in een aparte .product-usp div en blijven staan. */
.custom-product-listing .sku-wrap + p,
#custom-product-listing .sku-wrap + p {
    display: none;
}

/* 3. Compactere kaart: alle losse standaard-marges tussen de blokken
      (afbeelding, titel, sku-wrap, USP, prijs/knop, hartje, levertijd)
      weghalen en vervangen door één kleine, uniforme tussenruimte.
      --gpf-card-gap is de enige knop om de dichtheid te regelen. */
#custom-product-listing .product-item {
    --gpf-card-gap: 6px;     /* tussenruimte tussen de blokken */
}
#custom-product-listing .product-item > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
#custom-product-listing .product-item > * + * {
    margin-top: var(--gpf-card-gap) !important;
}
/* USP-lijst: geen extra boven/onder-marge (linker-inspring voor de
   vinkjes blijft staan). */
#custom-product-listing .product-item .product-usp ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 4. Scheidingslijntje voor grouped producten. Die hebben geen SKU, dus
      geen .product-sku met z'n border-bottom; dit dunne lijntje vervangt
      dat zodat grouped-kaarten dezelfde nette streep houden. */
#custom-product-listing .product-item .gpf-sku-divider {
    border-bottom: 1px solid #ECECEC;
    margin-bottom: 4px !important;   /* paar px ruimte onder het lijntje */
}

/* 5. Zo compact mogelijk: spacing-zware blokken inkorten.

   a) De 62px min-height. Staat op .add_cartcus, .compare-button én
      .add_levertijd, en is in meerdere theme-bestanden gedefinieerd
      (css/7.css + css/custom.css) -> daarom hier met !important overschreven.
      Dit is de grote witruimte rond de knop en onder de 'Bekijk Product'. */
#custom-product-listing .product-item .add_cartcus,
#custom-product-listing .product-item .compare-button {
    min-height: 0 !important;   /* knop-container compact, was 62px */
}
/* Levertijd-blok: vaste hoogte zodat single en grouped (en alle kaarten)
   even hoog zijn en netjes uitlijnen. 49.19px = de 'goede' (grouped) hoogte.
   Inhoud verticaal gecentreerd zodat de tekst niet tegen de bovenkant plakt
   met een leeg gat onderaan. */
#custom-product-listing .product-item .add_levertijd {
    min-height: 49.19px !important;
    line-height: 1.2;           /* levertijd-tekst strakker */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#custom-product-listing .product-item .add_levertijd > * {
    margin: 0 !important;       /* geen extra ruimte tussen levertijd-regel en 'Op voorraad' */
}
#custom-product-listing .product-sku {
    padding-bottom: 8px !important;
    margin-bottom: 0 !important;
}
/* Single product: de SKU-lijn zit genest in .sku-wrap, waardoor de marge
   eronder wegvalt (margin-collapse) en de inhoud strak tegen de lijn plakt.
   Padding op .sku-wrap collapset niet -> gegarandeerde ruimte onder de lijn,
   gelijk aan de grouped-divider. */
#custom-product-listing .sku-wrap {
    padding-bottom: 4px;
}

/* b) Afbeeldingen: de vaste 20px padding onder de foto weg (theme:
      'padding: 0 0 20px 0' -> ruimte tussen afbeelding en titel).

   c) Beeldvlak liggend (~4:3) i.p.v. vierkant. De bronfoto's hebben
      verschillende verhoudingen (één staand 645×1000, de rest liggend
      796×581); in een vierkant vult de staande foto de volle hoogte en
      oogt 'uitvergroot'. In een liggend vak vullen alle producten ongeveer
      dezelfde HOOGTE -> ze ogen even groot, zonder bijsnijden.
      Verhouding regelbaar via --gpf-img-ratio. */
#custom-product-listing .product-item {
    --gpf-img-ratio: 4 / 3;
}
#custom-product-listing ul.custom-product-listing.products.grid a img,
#custom-product-listing .product-item .gpf-image-link img {
    aspect-ratio: var(--gpf-img-ratio) !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    padding-bottom: 0 !important;
}

/* ============================================================
   Prijsfilter (min–max slider)
   ============================================================ */
.gpf-price-options { padding: 10px 4px 14px; }
.gpf-price-display { font-size: 13px; color: #333; margin-bottom: 12px; font-weight: 600; }
.gpf-price-slider { position: relative; height: 26px; }
.gpf-price-track { position: absolute; top: 11px; left: 0; right: 0; height: 4px; background: #e3e3e3; border-radius: 2px; }
.gpf-price-fill  { position: absolute; top: 11px; height: 4px; background: #46CFAC; border-radius: 2px; }
.gpf-price-input {
  position: absolute; top: 5px; left: 0; width: 100%; height: 16px; margin: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.gpf-price-input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: #46CFAC; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer;
}
.gpf-price-input::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: #46CFAC; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer;
}
.gpf-price-input::-webkit-slider-runnable-track { background: none; border: none; }
.gpf-price-input::-moz-range-track { background: none; border: none; }
.gpf-price-apply {
  margin-top: 14px; background: #46CFAC; color: #fff; border: none; border-radius: 6px;
  padding: 7px 16px; font-weight: 700; cursor: pointer; font-size: 13px;
}
.gpf-price-apply:hover { filter: brightness(0.95); }
