.product-gallery-open {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.product-gallery-open img {
    transition: transform 0.25s ease;
}

.product-gallery-open:hover img,
.product-gallery-open:focus-visible img {
    transform: scale(1.018);
}

.product-gallery-open:focus-visible {
    outline: 3px solid #22d3ee;
    outline-offset: -3px;
}

.product-gallery-open__hint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 999px;
    background: rgba(5, 10, 18, 0.72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.thumb-row .product-gallery-source.is-active {
    border-color: #22d3ee !important;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.24) !important;
}

body.product-lightbox-open {
    overflow: hidden;
}

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

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 38px);
}

.product-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 14, 0.72);
    backdrop-filter: blur(18px) saturate(0.75);
    cursor: zoom-out;
}

.product-lightbox__stage {
    position: relative;
    z-index: 1;
    width: min(1500px, 96vw);
    height: min(900px, 90vh);
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: clamp(8px, 2vw, 24px);
}

.product-lightbox__figure {
    min-width: 0;
    height: 100%;
    margin: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    place-items: center;
    gap: 12px;
}

.product-lightbox__figure img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.product-lightbox__figure figcaption {
    min-width: 68px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(5, 10, 18, 0.76);
    color: #ffffff;
    text-align: center;
    font-size: 13px;
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.product-lightbox__close,
.product-lightbox__arrow {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(5, 10, 18, 0.72);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.product-lightbox__close:hover,
.product-lightbox__arrow:hover,
.product-lightbox__close:focus-visible,
.product-lightbox__arrow:focus-visible {
    border-color: #22d3ee;
    background: rgba(8, 145, 178, 0.82);
    outline: none;
}

.product-lightbox__close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 999px;
}

.product-lightbox__arrow {
    width: 58px;
    height: 58px;
    border-radius: 999px;
}

.product-lightbox__arrow--previous:hover {
    transform: translateX(-2px);
}

.product-lightbox__arrow--next:hover {
    transform: translateX(2px);
}

.product-lightbox :is(svg) {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 720px) {
    .product-lightbox {
        padding: 12px;
    }

    .product-lightbox__stage {
        width: 100%;
        height: 92vh;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        gap: 5px;
    }

    .product-lightbox__arrow {
        width: 44px;
        height: 44px;
    }

    .product-lightbox__close {
        top: 4px;
        right: 4px;
    }

    .product-gallery-open__hint {
        right: 10px;
        bottom: 10px;
    }
}
