.productSlider__slide {
    cursor: zoom-in;
}

.productSlider__zoom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, .85);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    transition: background-color .2s;
}

.productSlider__zoom:hover {
    background: #fff;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease;
}

.lightbox[hidden] {
    display: none;
}

.lightbox.overlay_visible {
    opacity: 1;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(17, 24, 39, .85);
}

.lightbox__figure {
    position: relative;
    z-index: 1;
    display: flex;
    margin: 0;
    max-width: 92vw;
    max-height: 92vh;
}

.lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, .25);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, .25);
}

.lightbox__nav[hidden] {
    display: none;
}

.lightbox__nav_prev {
    left: 20px;
}

.lightbox__nav_next {
    right: 20px;
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.lightbox__counter[hidden] {
    display: none;
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible,
.productSlider__zoom:focus-visible {
    outline: 2px solid var(--brand-color);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .lightbox__figure {
        max-width: 100vw;
        max-height: 100vh;
    }

    .lightbox__image {
        max-height: 82vh;
        border-radius: 0;
    }

    .lightbox__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .lightbox__nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .lightbox__nav_prev {
        left: 8px;
    }

    .lightbox__nav_next {
        right: 8px;
    }

    .lightbox__counter {
        bottom: 10px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .productSlider__zoom,
    .lightbox__close,
    .lightbox__nav {
        transition: none;
    }
}
