.product-image-zoom {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    cursor: zoom-in;
}

.product-image-zoom__trigger {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 20;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 9999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.3);
    cursor: zoom-in;
    transition: transform 160ms ease, background-color 160ms ease;
}

.product-image-zoom__trigger:hover,
.product-image-zoom__trigger:focus-visible {
    transform: scale(1.08);
    background: #ff6b00;
    outline: 3px solid rgba(255, 107, 0, 0.3);
    outline-offset: 2px;
}

.product-image-lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: auto;
    background: rgba(3, 7, 18, 0.96);
}

.product-image-lightbox[open] {
    display: grid;
    place-items: center;
}

.product-image-lightbox::backdrop { background: rgba(3, 7, 18, 0.92); }

.product-image-lightbox__image {
    display: block;
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 180ms ease;
}

.product-image-lightbox__image.is-zoomed {
    transform: scale(1.65);
    cursor: zoom-out;
}

.product-image-lightbox__close {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    z-index: 2;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 9999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.86);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.product-image-lightbox__hint {
    position: fixed;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 2;
    margin: 0;
    padding: 0.45rem 0.85rem;
    transform: translateX(-50%);
    border-radius: 9999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.82);
    font-size: 0.8rem;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .product-image-zoom__trigger,
    .product-image-lightbox__image { transition: none; }
}
