/* =============================================
   WPBeter Productpagina's
   ============================================= */

/* ---- Showroom pil ---- */
.wpbp-showroom-pill {
    display: inline-block;
    background: #DFEBEE;
    color: #007186;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    line-height: 1.4;
}

/* Loop (related products op productpagina) */
.wpbp-normering-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #033741 !important;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.4;
    pointer-events: none;
    z-index: 1;
}

.related.products li.product,
.up-sells li.product {
    position: relative;
}

.related.products li.product a.woocommerce-LoopProduct-link,
.up-sells li.product a.woocommerce-LoopProduct-link {
    position: static;
}

.related.products li.product .wpbp-normering-badge,
.up-sells li.product .wpbp-normering-badge {
    right: 12px;
    border-radius: 4px;
}

.wpbp-showroom-pill-row {
    text-align: left;
    padding-top: 12px;
    padding-left: 16px;
}

/* Productpagina: overlay linksboven op de galerij */
.wpbp-showroom-pill--overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

/* ---- Ruimte onder header ---- */
body.single-product .content-area {
    margin-top: 1rem;
}

/* Kadence voegt via woocommerce_before_main_content een eigen breadcrumb toe — verbergen */
body.single-product .kadence-breadcrumbs {
    display: none !important;
}

/* ---- Breadcrumb ---- */
.wpbp-breadcrumb,
.wpbp-breadcrumb .rank-math-breadcrumb,
.wpbp-breadcrumb .rank-math-breadcrumb p,
.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 1rem;
    font-size: .85rem;
    color: #666;
}

/* Scrollbaar bij lange breadcrumb trail + fade rechts */
.wpbp-breadcrumb {
    position: relative;
    overflow: hidden;
}

.wpbp-breadcrumb .rank-math-breadcrumb p,
.wpbp-breadcrumb .woocommerce-breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-right: 50px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 0;
    margin-bottom: 0;
}

.wpbp-breadcrumb .rank-math-breadcrumb p::-webkit-scrollbar,
.wpbp-breadcrumb .woocommerce-breadcrumb::-webkit-scrollbar {
    display: none;
}

.wpbp-breadcrumb::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(to right, transparent, #fff);
    pointer-events: none;
    transition: opacity 0.2s;
}

.wpbp-breadcrumb.is-scrolled-end::after {
    opacity: 0;
}

.wpbp-breadcrumb .woocommerce-breadcrumb a,
.wpbp-breadcrumb .rank-math-breadcrumb a {
    color: #007186 !important;
    text-decoration: none;
}

.wpbp-breadcrumb .woocommerce-breadcrumb a:hover,
.wpbp-breadcrumb .rank-math-breadcrumb a:hover {
    text-decoration: underline;
}

.wpbp-breadcrumb .rank-math-breadcrumb .separator {
    font-size: 0;
}

.wpbp-breadcrumb .rank-math-breadcrumb .separator::before {
    content: "›";
    font-size: .85rem;
    color: #666;
    margin: 0 10px;
}

/* ---- Knoppen ---- */
.wpbp-product .button,
.wpbp-product input[type="button"],
.wpbp-product input[type="submit"],
.wpbp-advice-btn {
    border-radius: 7px !important;
}

.wpbp-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

.wpbp-product-gallery {
    position: sticky;
    top: 2rem;
    min-width: 0;
}

/* ---- Productgalerij ---- */

/* Vaste hoogte 390px — container-keten */
.woocommerce-product-gallery .flex-viewport {
    height: 390px !important;
    overflow: hidden !important;
    border-radius: 6px;
}

.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    border-radius: 6px;
    overflow: hidden;
}

.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery ul.slides,
.woocommerce-product-gallery .woocommerce-product-gallery__image {
    height: 390px !important;
    display: block !important;
}

/* Anchor: flex-center + overflow hidden (knipt te brede afbeeldingen bij) */
.woocommerce-product-gallery .woocommerce-product-gallery__image a {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    overflow: hidden !important;
    height: 390px !important;
    padding: 12px 0 !important;
    box-sizing: border-box !important;
}

/* img vult de content-box van a (na padding = 366px), object-fit contain zorgt voor geen bijsnijden */
.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    background: #fff;
}

/* Centreer de gehele galerij horizontaal in de linkerkolom */
.wpbp-product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wpbp-product-summary {
    min-width: 0;
}

/* Zorg dat de WooCommerce gallery zelf de volledige breedte pakt — !important overschrijft WooCommerce inline style */
.wpbp-product-gallery .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Verberg standaard Flexslider navigatiepijlen op de hoofdafbeelding */
.woocommerce-product-gallery .flex-prev,
.woocommerce-product-gallery .flex-next {
    display: none !important;
}

/* Vergrootglas-knop: transparant over volledige afbeelding — klik overal opent lightbox */
.woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 390px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    opacity: 0 !important;
    z-index: 9 !important;
    cursor: zoom-in !important;
}

@media (max-width: 767px) {
    .woocommerce-product-gallery__trigger {
        height: 250px !important;
    }
}

/* Thumbnail strip */
ol.flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px;
    justify-content: flex-start !important;
    margin: 1rem 0 0 !important;
    padding: 3px 0 3px 3px !important;
    list-style: none !important;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    max-width: none !important;
    width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

ol.flex-control-thumbs li {
    flex: 0 0 85px !important;
    width: 85px !important;
    height: 85px !important;
    margin: 0 !important;
    float: none !important;
    outline: 1px solid #ddd;
    padding: 7px !important;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    transition: outline-color 0.15s;
    position: relative;
}

ol.flex-control-thumbs li:hover {
    outline: 1px solid #bbb;
}

ol.flex-control-thumbs li:has(img.flex-active) {
    outline: 2px solid var(--global-palette2);
}

ol.flex-control-thumbs li img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain !important;
    border-radius: 4px;
    opacity: 1 !important;
    border: none !important;
}

/* +N overlay op de 6e thumbnail */
.wpbp-thumb-more {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    letter-spacing: 0.01em;
}


/* Thumbnail strip — mobiel: max 5, gelijke breedte via grid */
@media (max-width: 767px) {
    ol.flex-control-thumbs {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6px !important;
        padding-right: 3px !important;
    }

    ol.flex-control-thumbs li {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 !important;
        padding: 5px !important;
    }
}

/* ---- Sterren beoordeling ---- */
.woocommerce .woocommerce-product-rating .star-rating {
    margin: 5px 4px 0 0 !important;
    float: left;
}

/* ---- Prijsweergave ---- */
.woocommerce div.product span.price,
.woocommerce div.product p.price {
    font-size: 1.25rem !important;
}

.wpbp-product .price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0 !important;
    padding: 0 !important;
}

.wpbp-product p.price {
    margin: 1rem 0 1.5rem !important;
}

.wpbp-price-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
}

.wpbp-price-row .woocommerce-Price-amount {
    font-weight: 700;
}

.wpbp-tax-label,
.wpbp-price-incl {
    font-size: 0.82rem;
    color: #666;
    font-weight: 400;
}

/* ---- Artikelnummer (SKU) ---- */
.wpbp-sku {
    font-size: 0.82rem;
    color: #666;
    margin: 0.15rem 0 0.6rem;
}
.wpbp-sku .wpbp-sku-label {
    font-weight: 600;
}

/* ---- Betaalmethoden ---- */
.wpbp-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
}


/* ---- Adviesblok ---- */
.wpbp-advice-block {
    margin-top: 2.25rem;
    border: 0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    background: var(--global-palette8);
}

.wpbp-advice-inner {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
}

.wpbp-advice-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e5e5;
}

.wpbp-advice-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpbp-advice-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.wpbp-advice-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.wpbp-advice-sub {
    font-size: 0.82rem;
    color: #666;
    margin: 0 !important;
    padding: 0 !important;
}

.wpbp-advice-actions {
    display: flex;
    gap: 0.5rem;
}

.wpbp-advice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 1rem;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.wpbp-advice-btn:hover {
    border-color: #007186;
    color: #007186;
}

.wpbp-advice-whatsapp {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.wpbp-advice-whatsapp:hover {
    border-color: #007186;
    color: #007186;
}

/* ---- Levertijd ---- */
.wpbp-levertijd {
    font-size: 0.9rem;
    color: #008501;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* ---- Variatie-selectie foutmelding ---- */
.wpbp-variation-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #dc2626;
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.75rem;
    transition: opacity 0.3s;
}

.wpbp-variation-error--hide {
    opacity: 0;
}

/* ---- Artikelnummer verbergen ---- */
.wpbp-product .sku_wrapper {
    display: none !important;
}

/* ---- Cart form margin reset ---- */
.woocommerce div.product form.cart {
    margin-bottom: 0 !important;
}

/* ---- Add-to-cart formulier layout — enkelvoudig product ---- */
.wpbp-product-summary .cart:not(.variations_form) {
    display: flex !important;
    align-items: stretch !important;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0 !important;
    margin-left: 0 !important;
}

/* Clearfix pseudo-elements van Kadence worden flex-items — verwijderen */
.wpbp-product-summary .cart::before,
.wpbp-product-summary .cart::after,
.wpbp-product-summary .woocommerce-variation-add-to-cart::before,
.wpbp-product-summary .woocommerce-variation-add-to-cart::after {
    display: none !important;
}

/* Variabel product: form gestapeld */
.wpbp-product-summary .variations_form.cart {
    display: block !important;
}

/* Variabele producten: variatie-opties boven de prijs tonen */
.product-type-variable .wpbp-product-summary {
    display: flex;
    flex-direction: column;
}
.product-type-variable .wpbp-product-summary form.variations_form {
    display: contents !important;
}
.product-type-variable .wpbp-product-summary p.price { margin: 0.5rem 0 0.75rem !important; }
.product-type-variable .wpbp-product-summary h1.product_title           { order: 1; }
.product-type-variable .wpbp-product-summary .woocommerce-product-rating { order: 2; }
.product-type-variable .wpbp-product-summary table.variations            { order: 3; }
.product-type-variable .wpbp-product-summary a.reset_variations          { order: 3; }
.product-type-variable .wpbp-product-summary p.price                    { order: 4; }
.product-type-variable .wpbp-product-summary .wpbp-levertijd             { order: 5; }
.product-type-variable .wpbp-product-summary .single_variation_wrap      { order: 6; }
.product-type-variable .wpbp-product-summary .wpbp-offerte-btn           { order: 7; }
.product-type-variable .wpbp-product-summary .woocommerce-product-details__short-description { order: 8; }
.product-type-variable .wpbp-product-summary .product_meta               { order: 9; }
.product-type-variable .wpbp-product-summary .wpbp-payment-icons         { order: 10; }
.product-type-variable .wpbp-product-summary .wpbp-advice-block          { order: 11; }
.product-type-variable .wpbp-product-summary .wpbp-sku                   { order: 4; }

/* Variabele producten: extra ruimte tussen USP-lijst en betaaliconen weghalen.
   Flex-items kennen geen margin-collapse, dus lege/standaard marges stapelen op. */
.product-type-variable .wpbp-product-summary .product_meta { margin: 0 !important; }
.product-type-variable .wpbp-product-summary .woocommerce-product-details__short-description,
.product-type-variable .wpbp-product-summary .woocommerce-product-details__short-description > *:last-child {
    margin-bottom: 0 !important;
}

/* Variabel product: quantity + knop naast elkaar */
.wpbp-product-summary .woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: stretch !important;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0 !important;
}

.wpbp-product-summary .woocommerce-variation-add-to-cart .quantity,
.wpbp-product-summary .woocommerce-variation-add-to-cart .quantity.spinners-added,
.wpbp-product-summary .cart:not(.variations_form) .quantity,
.wpbp-product-summary .cart:not(.variations_form) .quantity.spinners-added {
    flex-shrink: 0;
    width: auto !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
    float: none !important;
    display: flex !important;
    align-items: stretch !important;
    align-self: stretch;
}

.wpbp-product-summary .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.wpbp-product-summary .cart:not(.variations_form) .single_add_to_cart_button {
    flex: 1 !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    height: 46px !important;
}

/* ---- Quantity stepper ---- */
.wpbp-qty-stepper {
    display: flex;
    align-items: stretch;
    align-self: stretch;
}

.wpbp-qty-btn {
    width: 40px;
    padding: 0 !important;
    border: 1px solid #ddd;
    background-color: #fff !important;
    background-image: none !important;
    color: #007186 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
    flex-shrink: 0;
    box-sizing: border-box !important;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.wpbp-qty-btn.wpbp-qty-minus {
    border-radius: 4px 0 0 4px;
    border-right: none !important;
}

.wpbp-qty-btn.wpbp-qty-plus {
    border-radius: 0 4px 4px 0;
    border-left: none !important;
}

.wpbp-qty-btn svg {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    pointer-events: none;
    flex-shrink: 0;
}

.wpbp-qty-btn svg path {
    fill: #007186 !important;
}

.wpbp-qty-btn:hover {
    background-color: #f2f7fc !important;
    background-image: none !important;
    border-color: #ddd !important;
    color: #007186 !important;
}

.wpbp-qty-btn:focus,
.wpbp-qty-btn:focus-visible,
.wpbp-qty-btn:focus-within,
.wpbp-qty-btn:active {
    outline: none !important;
    background-color: #fff !important;
    background-image: none !important;
    border-color: #ddd !important;
    box-shadow: none !important;
    color: #007186 !important;
}

.wpbp-qty-value {
    width: 48px !important;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: #fff;
    color: #1a1a1a;
    -moz-appearance: textfield;
    box-shadow: none !important;
    outline: none;
    height: 46px !important;
}

.wpbp-qty-value::-webkit-inner-spin-button,
.wpbp-qty-value::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wpbp-qty-value:hover {
    border-color: #bbb !important;
}

.wpbp-qty-value:focus {
    outline: none;
    border-color: #007186 !important;
    box-shadow: none !important;
}

/* ---- Brochure-knop ---- */
.wpbp-brochure-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--global-palette8);
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    margin-bottom: 1.5rem;
}

.wpbp-brochure-btn:hover {
    background: #e8e8e8;
    border-color: #bbb;
    color: #1a1a1a;
}

/* ---- Productvideo ---- */
.wpbp-product-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 1.5rem;
    border-radius: 8px;
}

.wpbp-product-video iframe,
.wpbp-video-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.wpbp-video-facade {
    cursor: pointer;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.wpbp-video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpbp-video-play {
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s;
    box-shadow: none !important;
}

.wpbp-video-play:hover {
    transform: scale(1.1);
    background: none !important;
}

/* ---- Variatie radio cards ---- */
.variations {
    width: 100%;
    border: none !important;
    margin-bottom: 1rem;
}

.variations tr {
    display: block;
    margin-bottom: 1rem;
}

.variations td.label {
    display: block;
    padding: 0 0 0.5rem !important;
}

.variations td.label label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #444;
}

.variations td.value {
    display: block;
    padding: 0 !important;
}

.wpbp-variation-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.wpbp-variation-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
    background: #fff;
}


.wpbp-variation-card:not(.wpbp-variation-card--active):hover {
    border-color: #bbb;
}

.wpbp-variation-card--active {
    border: 1px solid #1a1a1a;
}

.wpbp-variation-card-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.wpbp-variation-card--active .wpbp-variation-card-indicator {
    border-color: #1a1a1a;
}

.wpbp-variation-card--active .wpbp-variation-card-indicator::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #1a1a1a;
}

.wpbp-variation-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.wpbp-variation-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}

.wpbp-variation-card-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    font-weight: 400;
}

.wpbp-variation-card-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    flex-shrink: 0;
}

.wpbp-variation-card-price .woocommerce-Price-amount {
    font-weight: 600;
}

/* ---- Offerte-knop ---- */
.wpbp-offerte-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #1a1a1a;
    height: 46px;
    box-sizing: border-box;
    padding: 0 1.5rem;
    border-radius: 7px !important;
    text-decoration: none;
    border: 2px solid var(--global-palette2);
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 1rem;
}

.wpbp-offerte-btn:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.wpbp-offerte-btn__main {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
}

.wpbp-offerte-btn__sub {
    font-weight: 400;
    font-size: 0.75rem;
    color: #666;
    line-height: 1;
}

/* ---- Offerte modal ---- */
.wpbp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.wpbp-modal-overlay.wpbp-modal-open {
    display: flex;
}

.wpbp-modal {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.wpbp-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.wpbp-modal-close:hover,
.wpbp-modal-close:focus {
    color: #333;
    background: none !important;
    box-shadow: none !important;
    outline: none;
}

.wpbp-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #033741;
    margin: 0 0 0.4rem !important;
}

.wpbp-modal-intro {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 1.5rem !important;
}

.wpbp-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wpbp-modal-field {
    margin-bottom: 1rem;
}

.wpbp-modal-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 0.35rem;
}

.wpbp-modal-field label abbr {
    color: #e53e3e;
    text-decoration: none;
    margin-left: 2px;
}

.wpbp-modal-field input,
.wpbp-modal-field textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.65rem 0.875rem;
    font-size: 0.9rem;
    color: #1a1a1a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.wpbp-modal-field input:focus,
.wpbp-modal-field textarea:focus {
    outline: none;
    border-color: #007186;
    box-shadow: none;
}

.wpbp-modal-field textarea {
    resize: vertical;
    min-height: 80px;
}

.wpbp-modal-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #c53030;
    margin-bottom: 1rem;
}

.wpbp-modal-success {
    text-align: left;
    padding: 1rem 0;
}

.wpbp-modal-success-msg {
    color: #2d8a4e;
    font-weight: 600;
    font-size: 0.95rem;
}

.wpbp-modal-submit {
    display: block;
    width: 100%;
    background: #007186;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 0.5rem;
}

.wpbp-modal-submit:hover {
    background: #005f72;
    color: #fff;
}

.wpbp-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---- Tabs layout ---- */
.wpbp-tabs-wrap {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #ddd;
}

.wpbp-tabs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.wpbp-tab-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1.25rem !important;
    padding-bottom: 0;
}

.wpbp-tab-reviews {
    margin-top: 3rem;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid #eee;
}

.wpbp-tab-reviews .woocommerce-Reviews-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin: 0 0 1.25rem !important;
}

.woocommerce #reviews .comment-reply-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

/* ---- Beoordelingsformulier: velden verborgen tot ster-klik ---- */
#commentform.wpbp-review-fields-hidden .comment-form-comment,
#commentform.wpbp-review-fields-hidden .comment-form-author,
#commentform.wpbp-review-fields-hidden .comment-form-email,
#commentform.wpbp-review-fields-hidden .comment-form-cookies-consent,
#commentform.wpbp-review-fields-hidden .form-submit {
    display: none;
}

#commentform.wpbp-review-fields-hidden .comment-form-rating,
#commentform.wpbp-review-fields-hidden .comment-form-rating p {
    margin-bottom: 0 !important;
}

/* Specificaties tabel */
.wpbp-tab-specs .woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
}

.wpbp-tab-specs .woocommerce-product-attributes-item th,
.wpbp-tab-specs .woocommerce-product-attributes-item td {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    border: none;
    vertical-align: middle;
}

.wpbp-tab-specs .woocommerce-product-attributes-item:nth-child(odd) {
    background: #fff;
}

.wpbp-tab-specs table.shop_attributes tr:nth-child(even) td,
.wpbp-tab-specs table.shop_attributes tr:nth-child(even) th {
    background: #f5f5f5 !important;
}

.wpbp-tab-specs .woocommerce-product-attributes-item th {
    font-weight: 600;
    width: 45%;
    color: #444;
}

/* ---- USP-balk & contactblok (gekopieerd van winkelwagen) ---- */
.wpbc-usp-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background: #f5f5f5;
    padding: 0.875rem 1.5rem;
    margin: 2rem 0;
    border-radius: 6px;
}

.wpbc-usp-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
}

.wpbc-usp-check {
    width: 12.8px !important;
    height: 12.8px !important;
    flex-shrink: 0;
}

.wpbc-usp-star {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
    margin-top: -2px;
}

.wpbc-contact-block {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0 4rem;
}

.wpbc-contact-persons {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    padding-right: 2rem;
    border-right: 1px solid #ddd;
}

.wpbc-contact-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 110px;
}

.wpbc-contact-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #d9d9d9;
    margin-bottom: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.wpbc-contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpbc-contact-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
}

.wpbc-contact-role {
    font-size: 0.82rem;
    color: #666;
    display: block;
}

.wpbc-contact-info {
    flex: 1;
}

.wpbc-contact-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem !important;
}

.wpbc-contact-text {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 1.25rem !important;
}

.wpbc-contact-btns {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.wpbc-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.15s;
}

.wpbc-contact-btn:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.wpbc-contact-form-link {
    font-size: 0.85rem;
    color: #666;
    margin: 0 !important;
}

.wpbc-contact-form-link a {
    color: #666;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.wpbc-contact-form-link a:hover {
    color: #1a1a1a;
}

/* ---- ACF productinformatie (variabele producten) ---- */
.wpbp-bullets-title {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.wpbp-bullets-heading {
    color: var(--global-palette3);
    margin: 0 !important;
}

.wpbp-bullets-subheading {
    font-size: 0.78125rem;
    color: #666;
    margin: 0 !important;
}

.wpbp-acf-bullets {
    list-style: none;
    margin: 0 0 1.25rem !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.wpbp-acf-bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--global-palette4);
}

.wpbp-acf-bullet-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    margin-top: 0.2em;
}

.wpbp-acf-bullet--plus .wpbp-acf-bullet-icon {
    color: #05ad1b;
}

.wpbp-acf-bullet--min .wpbp-acf-bullet-icon {
    color: #999999;
}

.wpbp-acf-omschrijving {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--global-palette4);
    margin-bottom: 1.25rem;
}

/* Korte specificaties — inklapbaar */
.wpbp-acf-specs {
    margin: 0 0 1.5rem !important;
    border-top: 1px solid #eee;
}

.wpbp-acf-spec-row {
    border-bottom: 1px solid #eee;
}

.wpbp-acf-spec-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.wpbp-acf-spec-label::-webkit-details-marker {
    display: none;
}

.wpbp-acf-spec-label::after {
    content: '';
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.wpbp-acf-spec-row[open] .wpbp-acf-spec-label::after {
    transform: rotate(180deg);
}

.wpbp-acf-spec-value {
    padding: 0 0.25rem 0.75rem;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

/* ---- Gerelateerde producten ---- */
.wpbp-tabs-wrap .related.products,
.wpbp-tabs-wrap .kwt-related-wrap {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.wpbp-tabs-wrap .related.products > h2,
.wpbp-tabs-wrap .kwt-related-wrap > h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1.5rem !important;
}

/* ---- Sticky add-to-cart balk: toon alleen excl. btw prijs ---- */
.kadence-sticky-add-to-cart-action-price .wpbp-price-incl {
    display: none;
}

.kadence-sticky-add-to-cart-action-price .wpbp-tax-label {
    margin-left: 4px;
}

/* ---- Sticky add-to-cart balk: quantity knoppen verbergen ---- */
.kadence-sticky-add-to-cart .quantity {
    display: none !important;
}

.kadence-sticky-add-to-cart .button {
    border-radius: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Sticky-bar knop: padding alleen op grotere schermen (niet mobiel) */
@media (min-width: 768px) {
    .kadence-sticky-add-to-cart .button {
        padding: .6em 1em !important;
    }
}

@media (max-width: 767px) {
    #kadence-mobile-sticky-add-to-cart .kadence-sticky-add-to-cart-title-wrap {
        display: none !important;
    }
    #kadence-mobile-sticky-add-to-cart .kadence-sticky-add-to-cart-action-wrap {
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    #kadence-mobile-sticky-add-to-cart .kadence-sticky-add-to-cart-action-price {
        text-align: left;
        padding-left: 10px !important;
    }
    #kadence-mobile-sticky-add-to-cart .kadence-sticky-add-to-cart-action-price small {
        display: none !important;
    }
    #kadence-mobile-sticky-add-to-cart .kadence-sticky-add-to-cart-action-price .woocommerce-Price-amount {
        margin-left: 4px !important;
    }
    .kadence-sticky-add-to-cart .button {
        margin: 5px 5px 5px 0 !important;
        padding: 12px 15px !important;
    }
    #kadence-mobile-sticky-add-to-cart .kadence-sticky-add-to-cart-action-wrap .button {
        min-height: unset !important;
    }
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .wpbp-product-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .wpbp-product-gallery {
        position: static;
    }

    .wpbp-tabs-two-col {
        grid-template-columns: 1fr;
    }

    .wpbc-usp-bar {
        gap: 0.75rem 1.5rem;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }

    .wpbc-contact-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .wpbc-contact-persons {
        flex-direction: row;
        padding-right: 0;
        border-right: none;
        gap: 1rem;
        width: 100%;
    }

    .wpbc-contact-btns {
        flex-direction: column;
    }

    .wpbc-contact-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .wpbp-product-layout {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .woocommerce div.product div.images {
        margin-bottom: 0 !important;
    }

    .wpbp-tabs-wrap {
        margin-top: 1rem;
        padding-top: 0;
        border-top: 0;
    }

    .wpbp-tab-reviews {
        margin-top: 1rem;
        padding-top: 2rem;
        padding-bottom: 1rem;
        border-top: 1px solid #eee;
    }

    /* Gallery: 250px hoogte op mobiel */
    .woocommerce-product-gallery .flex-viewport,
    .woocommerce-product-gallery ul.slides,
    .woocommerce-product-gallery .woocommerce-product-gallery__image {
        height: 250px !important;
    }

    .woocommerce-product-gallery .woocommerce-product-gallery__image a {
        height: 250px !important;
        padding: 8px 0 !important;
        box-sizing: border-box !important;
    }

    .woocommerce-product-gallery .woocommerce-product-gallery__image img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
    }


    /* Adviesblok: gestapeld op mobiel */
    .wpbp-advice-block {
        flex-direction: column;
        gap: 0.75rem;
    }

    .wpbp-advice-actions {
        width: 100%;
    }

    .wpbp-advice-btn {
        flex: 1;
        text-align: center;
    }

    /* Offerte modal: één kolom */
    .wpbp-modal-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wpbp-modal {
        padding: 1.25rem 1rem;
    }

    /* USP-balk: compact gestapeld */
    .wpbc-usp-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    /* Contactblok: kleinere avatars op mobiel */
    .wpbc-contact-avatar {
        width: 80px;
        height: 80px;
    }

    .wpbc-contact-person {
        min-width: 80px;
    }

    .wpbc-contact-title {
        font-size: 1.1rem;
    }
}

/* ================================================================
   PhotoSwipe — Coolblue-stijl
   ================================================================ */

/* Witte achtergrond i.p.v. zwart */
.pswp__bg {
    background: #fff !important;
}

/* Topbalk: wit met subtiele onderrand */
.pswp__top-bar {
    background: #fff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    height: 56px !important;
}

/* Producttitel (geïnjecteerd via JS) */
.wpbp-pswp-title {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    max-width: calc(100% - 160px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    pointer-events: none;
}

/* Teller (1 / 7) */
.pswp__counter {
    color: #888 !important;
    opacity: 1 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    line-height: 1 !important;
    font-size: 0.8rem !important;
    padding-top: 0 !important;
}

/* Sluitknop: donker ✕ bovenop via ::after (overschrijft default-skin sprite) */
.pswp__button--close {
    background: transparent !important;
    background-image: none !important;
    opacity: 1 !important;
}

.pswp__button--close::after {
    content: '✕' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    color: #333 !important;
    background: none !important;
    font-family: system-ui, sans-serif !important;
}

/* Verberg knoppen die we niet gebruiken */
.pswp__button--share,
.pswp__button--fs,
.pswp__button--zoom {
    display: none !important;
}

/* Ondertitel verbergen */
.pswp__caption {
    display: none !important;
}

/* Navigatiepijlen: wit cirkeltje met schaduw */
.pswp__button--arrow--left,
.pswp__button--arrow--right {
    background: none !important;
    opacity: 1 !important;
    width: 48px !important;
    height: 48px !important;
    top: 50% !important;
    margin-top: -24px !important;
}

.pswp__button--arrow--left {
    left: 16px !important;
}

.pswp__button--arrow--right {
    right: 16px !important;
}

.pswp--open .pswp__button--arrow--left::before,
.pswp--open .pswp__button--arrow--right::before {
    background: #ffffff !important;
    background-image: none !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22) !important;
    width: 48px !important;
    height: 48px !important;
    top: 0 !important;
    left: 0 !important;
}

/* Chevron via ::after */
.pswp__button--arrow--left::after,
.pswp__button--arrow--right::after {
    content: '' !important;
    display: block !important;
    width: 11px !important;
    height: 11px !important;
    border-top: 2px solid #333 !important;
    border-left: 2px solid #333 !important;
    position: absolute !important;
    top: 50% !important;
    margin-top: -6px !important;
}

.pswp__button--arrow--left::after {
    transform: rotate(-45deg) !important;
    left: 19px !important;
}

.pswp__button--arrow--right::after {
    transform: rotate(135deg) !important;
    right: 19px !important;
    left: auto !important;
}

/* Thumbnail strip onderaan de lightbox */
.wpbp-pswp-thumbs {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #fff !important;
    border-top: 1px solid #e0e0e0 !important;
    padding: 8px 16px !important;
    box-sizing: border-box !important;
    z-index: 100 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.wpbp-pswp-thumb {
    flex: 0 0 68px !important;
    width: 68px !important;
    height: 68px !important;
    padding: 4px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background: #fff !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s !important;
    overflow: hidden !important;
    outline: none !important;
}

.wpbp-pswp-thumb:hover {
    border-color: #aaa !important;
}

.wpbp-pswp-thumb--active {
    border-width: 2px !important;
    border-color: var(--global-palette2) !important;
}

.wpbp-pswp-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

@media (max-width: 767px) {
    .wpbp-pswp-thumbs {
        height: 74px !important;
        padding: 6px 10px !important;
        gap: 5px !important;
        justify-content: flex-start !important;
    }

    .wpbp-pswp-thumb {
        flex: 0 0 56px !important;
        width: 56px !important;
        height: 56px !important;
    }
}
