.product-vr-button {
    position: absolute;
    z-index: 4;
    inset-inline-start: 16px;
    bottom: 16px;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgb(255 255 255 / 82%);
    border-radius: 12px;
    background: rgb(255 253 248 / 94%);
    box-shadow: 0 5px 18px rgb(35 48 40 / 16%);
    color: #294b3e;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.product-vr-button:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 8px 22px rgb(35 48 40 / 20%);
}

.product-vr-button:disabled { opacity: .68; cursor: wait; }

.product-vr-button > span {
    font-size: 18px;
    line-height: 1;
}

.product-vr-button:focus-visible {
    outline: 3px solid #b98545;
    outline-offset: 3px;
}

.product-vr-status {
    margin: 8px 0 0;
    color: #795b35;
    font-size: 12px;
    line-height: 1.8;
}

.product-vr-status[hidden] {
    display: none;
}

.product-vr-status.is-xr-overlay {
    position: fixed;
    z-index: 2147483647;
    inset: max(12px, env(safe-area-inset-top)) 12px auto;
    width: fit-content;
    max-width: min(92vw, 520px);
    margin: 0 auto;
    padding: 10px 14px;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 12px;
    background: rgb(24 34 30 / 88%);
    color: #fff;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    pointer-events: none;
}

@media (max-width: 650px) {
    .product-vr-button {
        inset-inline-start: 10px;
        bottom: 10px;
        min-height: 38px;
        padding-inline: 11px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-vr-button {
        transition: none;
    }
}

body.product-ar-open { overflow: hidden; }
.product-ar-viewer { position: fixed; z-index: 10050; inset: 0; display: grid; overflow: hidden; background: #101816; opacity: 0; transition: opacity .26s ease; }
.product-ar-viewer[hidden] { display: none !important; }
.product-ar-viewer.is-open { opacity: 1; }
.product-ar-viewer__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.product-ar-viewer__stage { position: relative; z-index: 1; width: 100%; height: 100%; overflow: hidden; isolation: isolate; }
.product-ar-viewer__video,.product-ar-viewer__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-ar-viewer__video { object-fit: cover; background: #17201d; }
.product-ar-viewer__shade { background: linear-gradient(180deg,rgba(12,21,18,.58),transparent 24%,transparent 68%,rgba(12,21,18,.54)); pointer-events: none; }
.product-ar-viewer__header { position: absolute; z-index: 2; inset: max(16px,env(safe-area-inset-top)) 16px auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; }
.product-ar-viewer__header>div { display: grid; gap: 3px; }
.product-ar-viewer__header strong { font-size: 14px; }
.product-ar-viewer__header span { color: rgba(255,255,255,.8); font-size: 10px; }
.product-ar-viewer__close { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; background: rgba(20,32,27,.58); color: #fff; cursor: pointer; backdrop-filter: blur(10px); }
.product-ar-viewer__close .icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.product-ar-viewer__image { position: absolute; z-index: 2; top: 50%; left: 50%; width: min(64vw,360px); max-height: 56vh; object-fit: contain; transform: translate(calc(-50% + var(--ar-x,0px)),calc(-50% + var(--ar-y,0px))) scale(var(--ar-scale,1)); filter: drop-shadow(0 14px 22px rgba(0,0,0,.3)); cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; }
.product-ar-viewer__image:active { cursor: grabbing; }
.product-ar-viewer__scale { position: absolute; z-index: 2; inset-inline-start: 50%; bottom: calc(66px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 13px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(20,32,27,.72); color: #fff; transform: translateX(-50%); backdrop-filter: blur(12px); }
.product-ar-viewer__scale button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 11px; background: var(--forest,#23483f); color: #fff; font: 600 22px/1 Arial,sans-serif; cursor: pointer; }
.product-ar-viewer__scale span { min-width: 45px; color: #fff; font-size: 11px; text-align: center; }
.product-ar-viewer__hint { position: absolute; z-index: 2; inset-inline: 16px; bottom: max(15px,env(safe-area-inset-bottom)); margin: 0; color: rgba(255,255,255,.9); font-size: 11px; text-align: center; text-shadow: 0 1px 5px rgba(0,0,0,.6); }
@media (prefers-reduced-motion: reduce) { .product-ar-viewer { transition: none; } }
