/**
 * LuxaLife v0.14.2 - geïntegreerde premium producthero, zonder breadcrumbs.
 * Alleen productpagina's. Fotomateriaal blijft WooCommerce-beheerd.
 * Geen nieuwe achtergrondafbeeldingen, geen wijzigingen aan verkooplogica.
 */

/* De producthero loopt visueel door; de contentsecties eronder blijven ingekaderd. */
body.single-product .site-main.site-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0;
    padding-bottom: clamp(3rem, 6vw, 5rem);
    background: #fff;
}
body.single-product .site-main div.product {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}
body.single-product .site-main div.product > .luxalife-product-hero {
    display: grid;
    position: relative;
    grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    align-items: stretch;
    width: min(100%, 1680px);
    margin-inline: auto;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #ede8df;
    isolation: isolate;
}
body.single-product .site-main div.product > .woocommerce-tabs,
body.single-product .site-main div.product > .related,
body.single-product .site-main div.product > .upsells {
    display: block;
    width: min(calc(100% - 3rem), 1200px);
    max-width: 1200px;
    margin-inline: auto;
}
body.single-product .site-main div.product > .woocommerce-tabs {
    padding-top: clamp(2.8rem, 5vw, 4.5rem);
    margin-top: clamp(1.5rem, 3vw, 2.8rem);
}

/* Productfotografie is leidend. Geen losse kaarten of grote kaderranden. */
body.single-product .site-main .luxalife-product-hero > .woocommerce-product-gallery,
body.single-product .site-main .luxalife-product-hero > div.images {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    float: none;
    clear: none;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: clamp(1rem, 2vw, 2rem) clamp(.85rem, 2.5vw, 2.5rem) clamp(1.25rem, 2.5vw, 2.25rem);
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
}
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery__wrapper {
    margin: 0;
}
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery__image > a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    min-height: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    max-height: clamp(340px, 40vw, 635px);
    height: auto;
    object-fit: contain;
    background: transparent;
}
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery__trigger {
    top: 1.3rem;
    right: 1.4rem;
    z-index: 6;
    background: #fff;
    box-shadow: 0 7px 30px rgb(48 35 19 / .12);
}

/* Eén horizontale miniaturenrail, ook met veel foto's en een videotegel. */
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(.4rem, .9vw, .75rem);
    grid-template-columns: none;
    width: 100%;
    max-width: 100%;
    padding: .3rem .2rem .65rem;
    margin: clamp(.75rem, 1.75vw, 1.4rem) 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs li {
    display: block;
    float: none;
    flex: 0 0 clamp(68px, 7vw, 96px);
    width: clamp(68px, 7vw, 96px);
    max-width: none;
    min-width: 0;
    height: clamp(70px, 7.4vw, 100px);
    padding: 3px;
    margin: 0;
    scroll-snap-align: start;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(47 32 16 / .09);
    overflow: hidden;
}
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active),
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs li:focus-within {
    border-color: #c29b4b;
    box-shadow: 0 0 0 1px #c29b4b, 0 4px 15px rgb(47 32 16 / .12);
}
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    opacity: 1;
    object-fit: cover;
    border-radius: 5px;
}
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs li img:not(.flex-active) {
    opacity: .82;
}
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs li:hover img {
    opacity: 1;
}

/* Videominiatuur gebruikt dezelfde afmetingen en de play-knop blijft zichtbaar. */
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs li.luxalife-video-thumb {
    border-color: #c4a05b;
    background: #221e19;
}
body.single-product .site-main .luxalife-product-hero .luxalife-product-video-trigger {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 6px;
}
body.single-product .site-main .luxalife-product-hero .luxalife-product-video-play {
    width: 35px;
    height: 35px;
    font-size: .85rem;
}
body.single-product .site-main .luxalife-product-hero .luxalife-product-video-label {
    margin-top: .23rem;
    font-size: .62rem;
}
body.single-product .site-main .luxalife-product-hero > .luxalife-product-video-source {
    position: absolute;
    z-index: 4;
    left: 1.5rem;
    bottom: 1rem;
    width: 95px;
}

/* Sale badge blijft op de galerij in plaats van boven de titel. */
body.single-product .site-main .luxalife-product-hero > span.onsale,
body.single-product .site-main .luxalife-product-hero > .onsale {
    position: absolute;
    z-index: 8;
    top: clamp(1rem, 2vw, 2rem);
    left: clamp(1rem, 2.5vw, 2.5rem);
    right: auto;
    bottom: auto;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: .55rem .85rem;
    background: linear-gradient(115deg, #d8b975, #c9a15a);
    color: #252015;
    border: 1px solid #f0d695;
    border-radius: 7px;
    box-shadow: 0 8px 21px rgb(66 48 17 / .2);
    font-size: .75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .035em;
    text-transform: uppercase;
}

/* Geen losse witte koopkaart: onderdeel van hetzelfde hero-oppervlak. */
body.single-product .site-main .luxalife-product-hero > .summary,
body.single-product .site-main .luxalife-product-hero > .entry-summary {
    float: none;
    clear: none;
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: clamp(1.65rem, 3.3vw, 3.8rem) clamp(1.45rem, 3.1vw, 3.8rem);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
body.single-product .site-main .luxalife-product-hero .summary .luxalife-product-eyebrow {
    margin: 0 0 .6rem;
    color: #a17b39;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}
body.single-product .site-main .luxalife-product-hero .summary .product_title {
    margin: 0 0 .55rem;
    font-size: clamp(1.9rem, 2.75vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
}
body.single-product .site-main .luxalife-product-hero .summary .woocommerce-product-rating {
    margin: .65rem 0 1.15rem;
    gap: .6rem;
}
body.single-product .site-main .luxalife-product-hero .summary .woocommerce-product-details__short-description {
    margin-bottom: 1.1rem;
    color: #39362f;
    font-size: clamp(.9rem, 1.1vw, 1rem);
    line-height: 1.62;
}
body.single-product .site-main .luxalife-product-hero .summary .woocommerce-product-details__short-description p:first-child {
    font-weight: 600;
}
body.single-product .site-main .luxalife-product-hero .summary .woocommerce-product-details__short-description ul {
    margin: .85rem 0 1.15rem;
}
body.single-product .site-main .luxalife-product-hero .summary .woocommerce-product-details__short-description li {
    padding-left: 1.7rem;
    margin: .36rem 0;
}
body.single-product .site-main .luxalife-product-hero .summary .woocommerce-product-details__short-description li::before {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    top: .25rem;
    padding: 0;
    border-radius: 50%;
    background: #cfac63;
    color: #252017;
    font-size: .71rem;
    line-height: 1;
}

/* Prijs, berekende korting en bestelactie vormen één herkenbare kooppassage. */
body.single-product .site-main .luxalife-product-hero .summary .luxalife-product-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    margin: .8rem 0 1.05rem;
}
body.single-product .site-main .luxalife-product-hero .summary .luxalife-product-price-row > .price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .3rem;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    color: #20201e;
    font-size: clamp(1.85rem, 2.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}
body.single-product .site-main .luxalife-product-hero .summary .price del {
    margin-right: .35rem;
    color: #928b80;
    font-size: .53em;
}
body.single-product .site-main .luxalife-product-hero .summary .price ins {
    font-weight: 850;
    color: #1e1e1d;
}
body.single-product .site-main .luxalife-product-discount {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    margin: 0;
    padding: .42rem .65rem;
    border-radius: 6px;
    background: #d5b36c;
    color: #292016;
    font-weight: 800;
    font-size: .7rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .025em;
}
body.single-product .site-main .luxalife-product-hero .summary form.cart {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: .6rem;
    margin: .4rem 0 .9rem;
}
/* Alleen eenvoudige bestelrijen mogen niet onder elkaar afbreken.
   Gegroepeerde en variabele producten behouden hun eigen formulieropbouw. */
body.single-product .site-main .luxalife-product-hero .summary form.cart:not(.variations_form):not(.grouped_form) {
    flex-wrap: nowrap;
}
body.single-product .site-main .luxalife-product-hero .summary form.cart .quantity {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    float: none;
    width: auto;
    height: 54px;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 1px solid #e4daca;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}
body.single-product .site-main .luxalife-product-hero .summary form.cart .quantity .qty {
    width: 43px;
    min-width: 43px;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0 .2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}
body.single-product .site-main .luxalife-product-hero .summary form.cart .quantity .qty::-webkit-inner-spin-button,
body.single-product .site-main .luxalife-product-hero .summary form.cart .quantity .qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}
body.single-product .site-main .luxalife-product-hero .summary .luxalife-quantity-button {
    display: grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: #fffdf9;
    color: #2a2823;
    box-shadow: none;
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}
body.single-product .site-main .luxalife-product-hero .summary .luxalife-quantity-button:hover {
    background: #f4ead6;
}
body.single-product .site-main .luxalife-product-hero .summary .luxalife-quantity-button:disabled {
    opacity: .4;
    cursor: not-allowed;
}
body.single-product .site-main .luxalife-product-hero .summary form.cart .single_add_to_cart_button,
body.single-product .site-main .luxalife-product-hero .summary form.cart .single_add_to_cart_button.button {
    display: inline-flex;
    gap: .65rem;
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
    min-width: 0;
    min-height: 54px;
    margin: 0;
    padding: .8rem clamp(.65rem, 1.5vw, 1.15rem);
    border-radius: 9px;
    border: 1px solid #171715;
    background: linear-gradient(125deg, #292721, #161615);
    color: #fff;
    box-shadow: 0 6px 0 -3px #c6a25a, 0 10px 18px rgb(27 24 21 / .12);
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.3;
}
body.single-product .site-main .luxalife-product-hero .summary form.cart .single_add_to_cart_button:hover {
    background: #3b3426;
    color: #fff;
    transform: none;
    box-shadow: 0 6px 0 -3px #d2ad60, 0 11px 22px rgb(27 24 21 / .15);
}
body.single-product .site-main .luxalife-product-hero .summary .luxalife-product-assurances {
    margin-top: 1.15rem;
    padding-top: .9rem;
    gap: .6rem 1rem;
    border-top: 1px solid #ede3d6;
}
body.single-product .site-main .luxalife-product-hero .summary .luxalife-product-assurances__item > span {
    background: #eddbb6;
}
body.single-product .site-main .luxalife-product-hero .summary .luxalife-product-delivery {
    margin: .4rem 0 1.1rem;
    background: #f7f0df;
    border: 1px solid #ead9b5;
    border-left: 3px solid #c6a25a;
}

/* Varianten en echte WooCommerce-regels behouden normale flow. */
body.single-product .site-main .luxalife-product-hero .summary form.variations_form {
    display: block;
}
body.single-product .site-main .luxalife-product-hero .summary form.variations_form .single_variation_wrap,
body.single-product .site-main .luxalife-product-hero .summary form.variations_form .woocommerce-variation-add-to-cart {
    width: 100%;
}
body.single-product .site-main .luxalife-product-hero .summary form.variations_form .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: .6rem;
}

/* Tablet krijgt meer lucht; mobiele koopinformatie direct onder de galerij. */
@media (max-width: 1000px) {
    body.single-product .site-main .luxalife-product-hero .summary .product_title {
        font-size: clamp(1.8rem, 3.1vw, 2.4rem);
    }
    body.single-product .site-main .luxalife-product-hero > .summary {
        padding: clamp(1.5rem, 3vw, 2.3rem);
    }
}
@media (max-width: 850px) {
    body.single-product .site-main div.product > .luxalife-product-hero {
        grid-template-columns: minmax(0, 1fr);
        border-top: 0;
    }
    body.single-product .site-main .luxalife-product-hero > .woocommerce-product-gallery,
    body.single-product .site-main .luxalife-product-hero > div.images,
    body.single-product .site-main .luxalife-product-hero > .summary {
        grid-column: 1;
        grid-row: auto;
    }
    body.single-product .site-main .luxalife-product-hero > .woocommerce-product-gallery,
    body.single-product .site-main .luxalife-product-hero > div.images {
        padding: .8rem 1rem 1.15rem;
        background: transparent;
    }
    body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery__image img {
        max-height: min(57svh, 520px);
    }
    body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs {
        margin-top: .6rem;
        padding: .3rem .05rem .45rem;
        gap: .5rem;
    }
    body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs li {
        flex-basis: 78px;
        width: 78px;
        height: 80px;
    }
    body.single-product .site-main .luxalife-product-hero > .summary {
        padding: clamp(1.35rem, 4vw, 2rem);
        background: transparent;
    }
    body.single-product .site-main .luxalife-product-hero .summary .product_title {
        font-size: clamp(1.85rem, 5.3vw, 2.5rem);
    }
    body.single-product .site-main div.product > .woocommerce-tabs,
    body.single-product .site-main div.product > .related,
    body.single-product .site-main div.product > .upsells {
        width: calc(100% - 2rem);
    }
}
@media (max-width: 480px) {
    body.single-product .site-main .luxalife-product-hero > .woocommerce-product-gallery,
    body.single-product .site-main .luxalife-product-hero > div.images {
        padding: .2rem .7rem .95rem;
    }
    body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery__image img {
        max-height: min(49svh, 430px);
    }
    body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs li {
        flex: 0 0 69px;
        width: 69px;
        height: 72px;
        border-radius: 8px;
    }
    body.single-product .site-main .luxalife-product-hero > .summary {
        padding: 1.4rem 1.1rem 1.6rem;
    }
    body.single-product .site-main .luxalife-product-hero .summary .product_title {
        font-size: clamp(1.82rem, 7vw, 2.3rem);
    }
    body.single-product .site-main .luxalife-product-hero .summary .woocommerce-product-details__short-description {
        font-size: .94rem;
        line-height: 1.58;
    }
    body.single-product .site-main .luxalife-product-hero .summary form.cart .quantity {
        height: 52px;
    }
    body.single-product .site-main .luxalife-product-hero .summary .luxalife-product-price-row {
        gap: .35rem .6rem;
        margin: .65rem 0 .9rem;
    }
    body.single-product .site-main .luxalife-product-hero .summary .luxalife-product-price-row > .price {
        font-size: clamp(1.65rem, 6.3vw, 2.15rem);
    }
    body.single-product .site-main .luxalife-product-hero .summary form.cart {
        gap: .45rem;
    }
    body.single-product .site-main .luxalife-product-hero .summary form.cart .quantity .qty {
        width: 34px;
        min-width: 34px;
    }
    body.single-product .site-main .luxalife-product-hero .summary .luxalife-quantity-button {
        width: 30px;
        min-width: 30px;
    }
    body.single-product .site-main .luxalife-product-hero .summary form.cart .single_add_to_cart_button,
    body.single-product .site-main .luxalife-product-hero .summary form.cart .single_add_to_cart_button.button {
        min-height: 52px;
        flex: 1 1 0;
        min-width: 0;
        padding: .65rem .55rem;
        font-size: .82rem;
        line-height: 1.2;
    }
    body.single-product .site-main .luxalife-product-hero .summary .luxalife-product-assurances {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        font-size: .76rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs li,
    body.single-product .site-main .luxalife-product-hero .summary form.cart .single_add_to_cart_button {
        transition: none;
    }
}

/*
 * v0.14.1 — tweede zichtbare miniatuur is de video.
 * WooCommerce / FlexSlider behoudt zijn oorspronkelijke foto-DOM-indexen.
 */
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs > li:first-child {
    order: 0;
}
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs > li.luxalife-video-thumb {
    order: 1;
    position: relative;
    z-index: 1;
}
body.single-product .site-main .luxalife-product-hero .woocommerce-product-gallery .flex-control-thumbs > li:not(:first-child):not(.luxalife-video-thumb) {
    order: 2;
}
body.single-product .site-main .luxalife-product-hero .luxalife-product-video-trigger {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
body.single-product .site-main .luxalife-product-hero .luxalife-product-video-trigger:focus-visible {
    outline: 3px solid #c6a25a;
    outline-offset: -3px;
}

/* Eigen responsive videovenster; niet afhankelijk van native <dialog>. */
body.luxalife-video-modal-open {
    overflow: hidden;
}
.luxalife-product-video-dialog {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: clamp(.75rem, 2vw, 1.5rem);
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: rgb(10 10 10 / .94);
    color: #fff;
}
.luxalife-product-video-dialog[hidden] {
    display: none !important;
}
.luxalife-product-video-dialog .luxalife-product-video-stage {
    width: min(1100px, 100%);
    min-height: 0;
    max-height: calc(100dvh - 88px);
    overflow: hidden;
    border: 1px solid #615136;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 20px 75px rgb(0 0 0 / .4);
}
.luxalife-product-video-dialog .luxalife-product-video-stage video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: calc(100dvh - 94px);
    object-fit: contain;
    background: #000;
}
.luxalife-product-video-dialog .luxalife-product-video-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid #e4ca94;
    border-radius: 50%;
    background: #cbaa64;
    color: #1e1d1a;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.luxalife-product-video-dialog .luxalife-product-video-close:hover {
    background: #e0c583;
}
.luxalife-product-video-dialog .luxalife-product-video-close:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}
@media (max-width: 480px) {
    .luxalife-product-video-dialog {
        padding: .6rem;
    }
    .luxalife-product-video-dialog .luxalife-product-video-stage {
        width: 100%;
        border-radius: 8px;
    }
}
