/* ============================================================
 * Buzz Single Product styles
 * Prefix: .bsp-  (Buzz Single Product) — sidesteps Tailwind JIT
 * ============================================================ */

.bsp-product { font-size: 16px; }
.bsp-product * { box-sizing: border-box; }

/* -------------------- LAYOUT (above-the-fold) -------------------- */
.bsp-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin: 16px 0 32px;
}
@media (max-width: 900px) {
    .bsp-detail { grid-template-columns: 1fr; gap: 20px; }
}

.bsp-detail__gallery { min-width: 0; }
.bsp-detail__summary { min-width: 0; }

/* -------------------- TITLE / PRICE / EXCERPT (resets) -------------------- */
.bsp-detail__summary .product_title {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1b1d22;
}
.bsp-detail__summary .price,
.bsp-detail__summary .woocommerce-Price-amount {
    font-size: 26px;
    font-weight: 700;
    color: #d92d20;
    line-height: 1.1;
}
.bsp-detail__summary .price del { color: #98a2b3; font-weight: 400; font-size: 16px; margin-right: 8px; }
.bsp-detail__summary .price ins  { background: transparent; text-decoration: none; }
.bsp-detail__summary .price { margin: 12px 0 4px; }
.bsp-detail__summary .stock {
    display: inline-block;
    margin: 4px 0 14px;
    font-size: 14px;
    font-weight: 600;
}
.bsp-detail__summary .in-stock { color: #16a34a; }
.bsp-detail__summary .out-of-stock { color: #d92d20; }
.bsp-detail__summary .woocommerce-product-rating { display: none; }

/* -------------------- USP BULLETS -------------------- */
.bsp-usps {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    border-top: 1px solid #eef0f3;
    padding-top: 12px;
}
.bsp-usps__item {
    position: relative;
    padding: 4px 0 4px 22px;
    font-size: 14px;
    line-height: 1.45;
    color: #344054;
}
.bsp-usps__item::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 4px;
    color: #16a34a;
    font-weight: 700;
}

/* -------------------- ADD TO CART + STEPPER -------------------- */
.bsp-addtocart { margin: 14px 0 8px; }
.bsp-addtocart__row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}
.bsp-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    height: 44px;
}
.bsp-stepper__btn {
    width: 36px;
    border: 0;
    background: #f9fafb;
    cursor: pointer;
    font-size: 18px;
    color: #1b1d22;
    line-height: 1;
    padding: 0;
}
.bsp-stepper__btn:hover { background: #eef0f3; }
.bsp-stepper input.qty,
.bsp-stepper input.bsp-qty {
    width: 48px !important;
    text-align: center;
    border: 0;
    border-left: 1px solid #d0d5dd;
    border-right: 1px solid #d0d5dd;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
    height: 100%;
    padding: 0;
}
.bsp-stepper input.qty::-webkit-outer-spin-button,
.bsp-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bsp-stepper input.qty:focus { outline: none; }

.bsp-addtocart__btn {
    flex: 1 1 200px;
    min-height: 44px;
    background: #16a34a !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 0 22px !important;
    cursor: pointer;
    transition: background .15s;
    text-transform: none;
}
.bsp-addtocart__btn:hover { background: #15803d !important; }

/* -------------------- TRUST STRIP -------------------- */
.bsp-trust {
    list-style: none;
    margin: 18px 0 8px;
    padding: 14px 0 0;
    border-top: 1px solid #eef0f3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.bsp-trust__item {
    position: relative;
    padding-left: 26px;
    font-size: 13px;
    color: #475467;
    line-height: 1.4;
}
.bsp-trust__item::before {
    content: '';
    position: absolute;
    left: 0; top: 1px;
    width: 18px; height: 18px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
}
.bsp-trust__item--truck::before  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.6' stroke='%2316a34a'><path stroke-linecap='round' stroke-linejoin='round' d='M8 19a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM3 5h11v11H3V5Zm11 4h4l3 3v4h-7'/></svg>"); }
.bsp-trust__item--rotate::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.6' stroke='%2316a34a'><path stroke-linecap='round' stroke-linejoin='round' d='M4 4v5h5M20 20v-5h-5M5 14a7 7 0 0 0 13 3M19 10a7 7 0 0 0-13-3'/></svg>"); }
.bsp-trust__item--shield::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.6' stroke='%2316a34a'><path stroke-linecap='round' stroke-linejoin='round' d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6l-8-3Z'/></svg>"); }
.bsp-trust__item--phone::before  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.6' stroke='%2316a34a'><path stroke-linecap='round' stroke-linejoin='round' d='M5 4h3l2 5-2 1a11 11 0 0 0 5 5l1-2 5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z'/></svg>"); }

/* -------------------- META (sku, cats, share) -------------------- */
.bsp-detail__summary .product_meta {
    margin-top: 14px;
    font-size: 13px;
    color: #98a2b3;
    border-top: 1px solid #eef0f3;
    padding-top: 12px;
}
.bsp-detail__summary .product_meta > span { display: block; margin-bottom: 2px; }

/* -------------------- GALLERY -------------------- */
.bsp-gallery { display: block; opacity: 1 !important; }
.bsp-gallery .bsp-gallery__main {
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bsp-gallery .bsp-gallery__main img,
.bsp-gallery .woocommerce-product-gallery__image img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}
.bsp-gallery .woocommerce-product-gallery__image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.bsp-gallery .woocommerce-product-gallery__trigger { display: none; }

.bsp-gallery__thumbs {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}
.bsp-gallery__thumb {
    position: relative;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #fff;
    transition: border-color .15s;
}
.bsp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bsp-gallery__thumb:hover { border-color: #16a34a; }
.bsp-gallery__thumb.is-active { border-color: #16a34a; box-shadow: 0 0 0 1px #16a34a; }
.bsp-gallery__thumb--video::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,.18);
}
.bsp-gallery__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(0,0,0,.6);
    border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    z-index: 1;
    pointer-events: none;
}

/* -------------------- TABS / ACCORDION -------------------- */
.bsp-tabs { margin: 32px 0; border-top: 1px solid #eef0f3; padding-top: 24px; }

.bsp-tabs__nav {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    border-bottom: 2px solid #eef0f3;
    flex-wrap: wrap;
}
.bsp-tabs__nav li::before { content: none !important; }
.bsp-tabs__navitem {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.bsp-tabs__navitem a {
    display: block;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #475467;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.bsp-tabs__navitem a:hover { color: #1b1d22; }
.bsp-tabs__navitem.active a { color: #16a34a; border-bottom-color: #16a34a; }

.bsp-tabs__panel { display: none; }
.bsp-tabs__panel.active { display: block; }

.bsp-tabs__accordion-toggle {
    display: none;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1b1d22;
    cursor: pointer;
    margin-bottom: 6px;
    align-items: center;
    justify-content: space-between;
}
.bsp-tabs__accordion-icon { font-size: 18px; line-height: 1; color: #16a34a; }

.bsp-tabs__body { padding: 8px 0 4px; }
.bsp-tabs__body p:first-child { margin-top: 0; }
.bsp-tabs__body table { width: 100%; }

@media (max-width: 768px) {
    .bsp-tabs__nav { display: none !important; }
    .bsp-tabs__panel {
        display: block !important;
        margin-bottom: 8px;
    }
    .bsp-tabs__panel .bsp-tabs__body { display: none !important; padding: 12px 16px 16px; border: 1px solid #eef0f3; border-top: 0; border-radius: 0 0 6px 6px; }
    .bsp-tabs__panel.is-open .bsp-tabs__body { display: block !important; }
    .bsp-tabs__panel.is-open .bsp-tabs__accordion-icon { transform: rotate(45deg); }
    .bsp-tabs__accordion-toggle { display: flex !important; }
    .bsp-tabs__panel.is-open .bsp-tabs__accordion-toggle { border-bottom: 0; border-radius: 6px 6px 0 0; background: #fff; }
}

/* -------------------- DESC / SPECS rendering -------------------- */
.bsp-desc { font-size: 15px; line-height: 1.6; color: #344054; }
.bsp-desc ul { margin: 12px 0; padding-left: 20px; }
.bsp-desc li { margin: 4px 0; }
.bsp-desc table.technicalData { display: none; } /* belt + braces; helper strips it */
.bsp-desc p.featureSatz { font-size: 17px; font-weight: 600; color: #1b1d22; margin: 0 0 12px; }

.bsp-specs {
    display: grid;
    grid-template-columns: minmax(160px, max-content) 1fr;
    column-gap: 24px;
    row-gap: 0;
    margin: 0;
    font-size: 14px;
}
.bsp-specs__label { font-weight: 600; color: #475467; padding: 10px 0; border-bottom: 1px solid #f2f4f7; }
.bsp-specs__value { color: #1b1d22; padding: 10px 0; border-bottom: 1px solid #f2f4f7; }
.bsp-specs__label:last-of-type, .bsp-specs__value:last-of-type { border-bottom: 0; }

/* -------------------- VIDEO TAB -------------------- */
.bsp-video--embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}
.bsp-video--embed iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* -------------------- VIDEO MAIN-PANE OVERLAY (when video thumb clicked) -------------------- */
.bsp-gallery__main--video {
    aspect-ratio: 16 / 9;
    padding: 0;
}
.bsp-gallery__main--video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* -------------------- TIDY: hide WC default related/upsells if Rolf wants later -------------------- */
.bsp-tabs-section .related.products,
.bsp-tabs-section .upsells.products { margin-top: 36px; }

/* -------------------- TRUST: variable shipping label -------------------- */
.bsp-trust__item { display: flex; flex-direction: column; gap: 1px; }
.bsp-trust__label { display: inline; }
.bsp-trust__star {
    display: inline-block;
    color: #16a34a;
    text-decoration: none;
    font-weight: 700;
    margin-left: 2px;
    transition: opacity .15s;
}
.bsp-trust__star:hover { opacity: .7; }
.bsp-trust__sub {
    display: block;
    font-size: 11px;
    color: #98a2b3;
    line-height: 1.3;
    margin-top: 1px;
}

/* -------------------- Hide legacy WCAM USP-bullets-list on single-product pages
   (reason: dubbele info met onze USP-bullets + trust-strip)
   Single class .uspstatic is unique to this WCAM message; safe to hide. */
.single-product .product-usp.uspstatic,
.bsp-detail .product-usp.uspstatic {
    display: none !important;
}

/* -------------------- Tighten WCAM wrapper spacing
   When the only content inside the WCAM message is uspstatic (the bullet-list
   we hide), collapse the entire wrapper + adjacent <br>s. */
.bsp-detail__summary .wcam.woocommerce-advanced-message {
    margin: 0 !important;
    padding: 0 !important;
}
.bsp-detail__summary .wcam.woocommerce-advanced-message:has(> .product-usp.uspstatic:only-child) {
    display: none !important;
}
.bsp-detail__summary .wcam.woocommerce-advanced-message:has(> .product-usp.uspstatic:only-child) + br,
.bsp-detail__summary .wcam.woocommerce-advanced-message:has(> .product-usp.uspstatic:only-child) + br + br {
    display: none !important;
}

/* Tighten gap around the WC stock-status line ("Op voorraad — vandaag besteld...") */
.bsp-detail__summary div:has(> .stock-status),
.bsp-detail__summary .stock-status-wrapper {
    margin: 4px 0 12px !important;
    line-height: 1.45;
}

/* Kill stray <br>s in the summary entirely (the WCAM template inserts them). */
.bsp-detail__summary > br,
.bsp-detail__summary br + br {
    display: none;
}

/* -------------------- Vertical rhythm tightening pass --------------------
   Shorter gaps between elements in the summary column. */
.bsp-detail__summary { line-height: 1.45; }
.bsp-detail__summary .product_title { margin: 0 0 6px; }
.bsp-detail__summary .bsp-usps { margin: 0 0 10px; padding-top: 10px; }
.bsp-detail__summary .bsp-usps__item { padding: 2px 0 2px 22px; }

/* Price block compact */
.bsp-detail__summary p.price,
.bsp-detail__summary .price { margin: 6px 0 4px !important; }

/* Stock-status line ("Op voorraad — vandaag besteld...") */
.bsp-detail__summary div:has(> .stock-status),
.bsp-detail__summary div:has(> [class*="stock-status"]) {
    margin: 6px 0 8px !important;
    line-height: 1.4;
}
.bsp-detail__summary .stock { margin: 4px 0 8px !important; }

/* YITH min-quantity rules wrapper (often empty, drops space) */
.bsp-detail__summary .ywmmq-rules-wrapper:empty { display: none; }
.bsp-detail__summary .ywmmq-rules-wrapper { margin: 0 !important; padding: 0 !important; }

/* Add-to-cart form: trim outer margins */
.bsp-detail__summary form.cart,
.bsp-detail__summary form.bsp-addtocart {
    margin: 6px 0 4px !important;
}

/* Trust strip directly under cart button */
.bsp-detail__summary .bsp-trust {
    margin: 12px 0 4px;
    padding: 12px 0 0;
}

/* Meta block (artikelnummer / categorieën) */
.bsp-detail__summary .product_meta {
    margin-top: 10px;
    padding-top: 10px;
}

/* Belt + braces: kill empty WCAM wrappers entirely */
.bsp-detail__summary .wcam.woocommerce-advanced-message:empty,
.bsp-detail__summary .wcam.woocommerce-advanced-message > div:empty {
    display: none !important;
}

/* -------------------- Out-of-stock notify form -------------------- */
.bsp-notify {
    margin: 12px 0 8px;
    padding: 14px 16px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    border-radius: 8px;
}
.bsp-notify__intro {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #78350f;
}
.bsp-notify__form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.bsp-notify__email {
    flex: 1 1 220px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    min-width: 0;
}
.bsp-notify__email:focus { outline: 2px solid #16a34a; outline-offset: 1px; border-color: #16a34a; }
.bsp-notify__hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}
.bsp-notify__btn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 18px;
    background: #f59e0b;
    color: #1b1d22;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    text-transform: none;
}
.bsp-notify__btn:hover { background: #d97706; color: #fff; }
.bsp-notify__btn[disabled] { opacity: .6; cursor: wait; }
.bsp-notify__msg {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
    min-height: 18px;
}
.bsp-notify__msg--success { color: #15803d; }
.bsp-notify__msg--error { color: #b91c1c; }
