.custom-product-zoom-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.custom-product-zoom-window {
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(78vw, 900px);
    height: min(78vh, 900px);
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 180%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, visibility 160ms ease;
    cursor: zoom-in;
    overflow: hidden;
}

.custom-product-zoom-backdrop.is-visible,
.custom-product-zoom-window.is-visible {
    opacity: 1;
    visibility: visible;
}

.custom-product-zoom-window::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 14px solid #fff;
    pointer-events: none;
    box-sizing: border-box;
}

.custom-product-zoom-close {
    position: fixed;
    right: 32px;
    top: 32px;
    z-index: 10000;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.custom-product-zoom-close.is-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 781px) {
    .custom-product-zoom-window {
        width: 90vw;
        height: 70vh;
        background-size: 160%;
    }
    .custom-product-zoom-close {
        right: 18px;
        top: 18px;
    }
}