/* Product image viewer — instant open, adjacent navigation controls. */
.vsc-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 62px 86px 58px;
    background: rgba(8, 15, 28, .96);
    overscroll-behavior: contain;
    touch-action: none;
}
.vsc-product-lightbox.is-open { display: flex; }

.vsc-product-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: calc(100vw - 172px);
    max-height: calc(100vh - 120px);
    margin: 0 auto;
}

.vsc-product-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 18px 60px rgba(0,0,0,.35);
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.vsc-product-lightbox__close,
.vsc-product-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 50%;
    color: #fff;
    background: rgba(20, 28, 42, .78);
    font: 30px/1 Arial, sans-serif;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.vsc-product-lightbox__close {
    top: 16px;
    right: 20px;
    font-size: 32px;
}
.vsc-product-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    line-height: 1;
    transition: background-color 120ms ease;
}
.vsc-product-lightbox__prev { left: -58px; }
.vsc-product-lightbox__next { right: -58px; }
.vsc-product-lightbox__close:hover,
.vsc-product-lightbox__nav:hover {
    background: rgba(255,255,255,.22);
}
.vsc-product-lightbox__nav:disabled {
    opacity: .4;
    cursor: default;
}
.vsc-product-lightbox__counter {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(20, 28, 42, .78);
    font: 600 13px/1.2 Arial, sans-serif;
    letter-spacing: .03em;
    white-space: nowrap;
}
.vsc-product-lightbox.is-single .vsc-product-lightbox__nav,
.vsc-product-lightbox.is-single .vsc-product-lightbox__counter {
    display: none;
}

@media (max-width: 767.98px) {
    .vsc-product-lightbox {
        padding: 58px 10px 54px;
    }
    .vsc-product-lightbox__stage {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 116px);
    }
    .vsc-product-lightbox__image {
        max-width: 100%;
        max-height: calc(100vh - 116px);
    }
    .vsc-product-lightbox__close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
    }
    /* On narrow screens the arrows sit just inside the image's left/right edges. */
    .vsc-product-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 32px;
        background: rgba(20,28,42,.66);
    }
    .vsc-product-lightbox__prev { left: 7px; }
    .vsc-product-lightbox__next { right: 7px; }
    .vsc-product-lightbox__counter { bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .vsc-product-lightbox,
    .vsc-product-lightbox * {
        animation: none !important;
        transition: none !important;
    }
}
