/**
 * LuxaLife v0.13 - premium WooCommerce product hero, video gallery tile and modal.
 * Scope: single-product only; WooCommerce's core add-to-cart and variations remain unchanged.
 */
body.single-product { background: #fdfbf7; }
body.single-product .site-main { padding-block: clamp(1.5rem, 3.7vw, 3.25rem) clamp(3.5rem, 7vw, 6rem); }
body.single-product .site-main .woocommerce-breadcrumb {
    margin-bottom: clamp(1.8rem, 3vw, 3rem);
    font-size: .83rem;
    letter-spacing: .015em;
    color: #857d70;
}
body.single-product .site-main .woocommerce-breadcrumb a { color: #857d70; }
body.single-product .site-main .woocommerce-breadcrumb a:hover { color: #ba9146; }
body.single-product .site-main div.product {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    column-gap: clamp(1.5rem, 4vw, 4.25rem);
    row-gap: clamp(2.5rem, 5vw, 4rem);
}
body.single-product .site-main div.product > div.images,
body.single-product .site-main div.product > .woocommerce-product-gallery {
    border-radius: 18px;
    overflow: visible;
}
/* Deliberately quiet visual frame: the product remains the protagonist. */
body.single-product .site-main .woocommerce-product-gallery__image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee8df;
    border-radius: 16px;
    min-height: 380px;
    padding: clamp(.5rem, 2.2vw, 1.5rem);
    overflow: hidden;
}
body.single-product .site-main .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    background: transparent;
}
body.single-product .site-main .woocommerce-product-gallery .flex-control-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1rem;
}
body.single-product .site-main .woocommerce-product-gallery .flex-control-thumbs li {
    border: 1px solid #e6dfd2;
    border-radius: 9px;
    background: #fff;
    padding: 4px;
    transition: box-shadow .16s ease, border-color .16s ease;
}
body.single-product .site-main .woocommerce-product-gallery .flex-control-thumbs li:hover,
body.single-product .site-main .woocommerce-product-gallery .flex-control-thumbs li:has(.flex-active) {
    border-color: #c7a661;
    box-shadow: 0 0 0 1px rgb(199 166 97 / .25);
}
body.single-product .site-main .woocommerce-product-gallery .flex-control-thumbs img {
    border-radius: 6px;
    aspect-ratio: 1;
    object-fit: contain;
    opacity: .8;
}
body.single-product .site-main .woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; }
body.single-product .site-main .woocommerce-product-gallery__trigger {
    top: 1.15rem;
    right: 1.15rem;
    border: 1px solid #e9e1d3;
    background: #fff;
    box-shadow: 0 4px 16px rgb(27 24 19 / .08);
}
body.single-product .site-main div.product span.onsale {
    background: #c5a15c;
    color: #252018;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    top: 1rem;
    left: 1rem;
    padding: .45rem .8rem;
    border-radius: 5px;
    box-shadow: 0 7px 22px rgb(30 23 15 / .13);
}

/* Hero buy card */
body.single-product .site-main div.product > .summary {
    background: #fff;
    border: 1px solid #ece6db;
    border-radius: 18px;
    padding: clamp(1.3rem, 2.8vw, 2.5rem);
    box-shadow: 0 14px 46px rgb(56 44 27 / .055);
}
.luxalife-product-eyebrow {
    display: block;
    margin-bottom: .8rem;
    color: #a17c3b;
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}
body.single-product .site-main div.product .summary .product_title {
    margin-bottom: 1rem;
    font-size: clamp(1.85rem, 3vw, 2.8rem);
    line-height: 1.13;
    font-weight: 800;
    letter-spacing: -.035em;
}
body.single-product .site-main div.product .woocommerce-product-rating {
    margin: 0 0 1.2rem;
    gap: .6rem;
    font-size: .86rem;
}
body.single-product .site-main .star-rating::before { color: #d8c7a3; }
body.single-product .site-main .star-rating span::before { color: #c5a15c; }
body.single-product .site-main div.product .summary .woocommerce-product-details__short-description {
    color: #3b3934;
    line-height: 1.72;
    font-size: .98rem;
}
body.single-product .site-main div.product .summary .woocommerce-product-details__short-description p:first-child {
    font-weight: 570;
}
body.single-product .site-main div.product .summary .woocommerce-product-details__short-description li { padding-left: 1.6rem; margin: .45rem 0; }
body.single-product .site-main div.product .summary .woocommerce-product-details__short-description li::before { color: #a5803c; }
body.single-product .site-main div.product .summary > p.price,
body.single-product .site-main div.product .summary > .price {
    border-top: 1px solid #eee7db;
    padding-top: 1.2rem;
    margin: 1.15rem 0 1rem;
    font-size: clamp(1.9rem, 3vw, 2.35rem);
    color: #22211e;
}
body.single-product .site-main div.product .summary .price del { color: #978f83; font-size: .55em; }
body.single-product .site-main div.product .summary .price ins { color: #22211e; font-weight: 800; }
body.single-product .site-main div.product .summary form.cart {
    gap: .7rem;
    margin-top: 1.15rem;
    margin-bottom: .6rem;
}
body.single-product .site-main div.product .summary form.cart .qty {
    background: #fff;
    min-height: 52px;
    width: 4.4rem;
    border: 1px solid #ddd5c8;
    border-radius: 8px;
    font-size: 1rem;
}
body.single-product .site-main div.product .summary form.cart .single_add_to_cart_button,
body.single-product .site-main div.product .summary form.cart .single_add_to_cart_button.button {
    min-height: 52px;
    padding: .95rem 1.25rem;
    background: #222220;
    border: 1px solid #222220;
    color: #fff;
    border-radius: 8px;
    font-weight: 750;
    letter-spacing: .01em;
    box-shadow: 0 7px 16px rgb(21 20 18 / .12);
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
body.single-product .site-main div.product .summary form.cart .single_add_to_cart_button:hover,
body.single-product .site-main div.product .summary form.cart .single_add_to_cart_button.button:hover {
    background: #c4a05a;
    border-color: #c4a05a;
    color: #1e1d1b;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgb(60 45 19 / .16);
}
body.single-product .site-main div.product .summary form.cart .single_add_to_cart_button:focus-visible {
    outline: 2px solid #a17c3b;
    outline-offset: 3px;
}
body.single-product .site-main div.product .summary form.variations_form .single_variation_wrap,
body.single-product .site-main div.product .summary form.variations_form .woocommerce-variation-add-to-cart { width: 100%; }
body.single-product .site-main div.product .summary form.variations_form .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .7rem;
}
body.single-product .site-main div.product .summary form.variations_form .woocommerce-variation-price { margin-bottom: .7rem; }
body.single-product .site-main div.product .summary form.cart table.variations select {
    border-radius: 8px;
    border-color: #ddd5c8;
    background: #fffdf9;
}
body.single-product .site-main div.product .summary .stock { font-weight: 650; }

/* Product assurances and optional delivery */
body.single-product .site-main .luxalife-product-delivery {
    margin-top: 1.1rem;
    margin-bottom: .6rem;
    padding: 1rem 1.1rem;
    background: #f8f4e9;
    border: 1px solid #e9d9b8;
    border-left: 3px solid #b7944d;
    border-radius: 9px;
    color: #403723;
    font-weight: 660;
}
body.single-product .site-main .luxalife-product-delivery__icon {
    color: #9b7733;
    font-size: 1.1rem;
}
body.single-product .site-main .luxalife-product-assurances {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1.15rem;
    padding-top: 1.2rem;
    border-top: 1px solid #eee8de;
    color: #665e50;
    font-size: .82rem;
}
body.single-product .site-main .luxalife-product-assurances__item {
    display: flex;
    align-items: center;
    gap: .55rem;
    line-height: 1.4;
}
body.single-product .site-main .luxalife-product-assurances__item > span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #f6eedf;
    color: #987339;
    font-weight: 750;
}

/* Elegant tabbed details below the hero */
body.single-product .site-main div.product > .woocommerce-tabs { margin-top: .2rem; padding-top: clamp(2rem, 4vw, 3rem); }
body.single-product .site-main div.product .woocommerce-tabs ul.tabs {
    border-bottom-color: #e5dbcb;
    gap: clamp(1rem, 2.5vw, 2.25rem);
}
body.single-product .site-main div.product .woocommerce-tabs ul.tabs li a {
    letter-spacing: .02em;
    padding: .9rem .2rem;
}
body.single-product .site-main div.product .woocommerce-tabs ul.tabs li.active a { border-color: #bc9650; }
body.single-product .site-main div.product .woocommerce-tabs .panel { max-width: 900px; line-height: 1.8; }
body.single-product .site-main div.product .woocommerce-tabs .panel h2 { letter-spacing: -.02em; }

/* Gallery video is a lazy-loaded tile, not another heavy gallery slide. */
body.single-product .site-main .luxalife-product-video-source { grid-column: 1; width: 140px; }
body.single-product .site-main .luxalife-product-video-trigger {
    display: flex;
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    min-height: 85px;
    aspect-ratio: 1;
    color: #fff;
    text-decoration: none;
    background: #26231e;
    border-radius: 7px;
    isolation: isolate;
}
body.single-product .site-main .luxalife-product-video-poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .52;
    z-index: -1;
    transition: transform .3s ease;
}
body.single-product .site-main .luxalife-product-video-trigger:hover .luxalife-product-video-poster { transform: scale(1.055); }
body.single-product .site-main .luxalife-product-video-play {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding-left: 3px;
    border-radius: 50%;
    background: #c9aa68;
    color: #211f1a;
    font-size: .85rem;
    box-shadow: 0 4px 15px rgb(0 0 0 / .2);
}
body.single-product .site-main .luxalife-product-video-label {
    margin-top: .45rem;
    font-size: .72rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .06em;
}
body.single-product .site-main .woocommerce-product-gallery .flex-control-thumbs li.luxalife-video-thumb {
    padding: 4px;
    border-color: #d8bc7d;
}
body.single-product .site-main .woocommerce-product-gallery .flex-control-thumbs .luxalife-product-video-trigger {
    min-height: 0;
    height: 100%;
}
.luxalife-product-video-dialog {
    width: min(1060px, calc(100vw - 32px));
    max-width: 1060px;
    max-height: calc(100svh - 32px);
    overflow: visible;
    border: 1px solid #53462f;
    border-radius: 13px;
    padding: 12px;
    background: #171717;
    color: #fff;
    box-shadow: 0 28px 90px rgb(0 0 0 / .4);
}
.luxalife-product-video-dialog::backdrop { background: rgb(11 11 11 / .84); }
.luxalife-product-video-stage { display: grid; place-items: center; min-height: 170px; }
.luxalife-product-video-stage video { display: block; width: 100%; max-height: calc(100svh - 94px); object-fit: contain; background: #000; }
.luxalife-product-video-close {
    position: absolute;
    right: -14px;
    top: -17px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 1px solid #e7d4af;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    background: #c5a25f;
    color: #1d1c19;
}

/* Preserve all WooCommerce product behaviour at compact widths. */
@media (max-width: 850px) {
    body.single-product .site-main div.product { grid-template-columns: minmax(0, 1fr); row-gap: 1.35rem; }
    body.single-product .site-main div.product > .summary { padding: 1.5rem; }
    body.single-product .site-main .woocommerce-product-gallery__image > a { min-height: 300px; }
    body.single-product .site-main .woocommerce-product-gallery .flex-control-thumbs { gap: .55rem; }
    body.single-product .site-main .woocommerce-product-gallery__image img { max-height: 490px; }
}
@media (max-width: 480px) {
    body.single-product { background: #fff; }
    body.single-product .site-main div.product > .summary { padding: 1.15rem; border-radius: 12px; box-shadow: none; }
    body.single-product .site-main div.product .summary .product_title { font-size: clamp(1.8rem, 7vw, 2.15rem); }
    body.single-product .site-main .woocommerce-product-gallery__image > a { min-height: 230px; border-radius: 11px; padding: .5rem; }
    body.single-product .site-main .woocommerce-product-gallery__image img { max-height: min(52svh, 400px); }
    body.single-product .site-main .woocommerce-product-gallery .flex-control-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
    body.single-product .site-main .luxalife-product-assurances { grid-template-columns: 1fr; }
    body.single-product .site-main div.product .summary form.cart .single_add_to_cart_button { flex-basis: 150px; }
    .luxalife-product-video-close { right: -7px; top: -16px; }
}
@media (prefers-reduced-motion: reduce) {
    body.single-product .site-main .luxalife-product-video-poster,
    body.single-product .site-main div.product .summary form.cart .single_add_to_cart_button { transition: none; transform: none; }
}
