/* Обёртка зума */
.product-zoom-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 400px;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='rgba(123,0,63,0.7)'/%3E%3Cpath d='M20 12v16M12 20h16' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") 20 20, auto;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.product-zoom-wrapper.zoom-level-1,
.product-zoom-wrapper.zoom-level-2 {
    cursor: grab;
}

.product-zoom-wrapper.zoom-level-2 {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='rgba(123,0,63,0.7)'/%3E%3Cpath d='M12 20h16' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") 20 20, grab;
}

.product-zoom-wrapper.dragging {
    cursor: grabbing;
}

/* Изображение */
.product-zoom-image {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: 0 0;
    will-change: transform;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Индикатор зума */
.product-zoom-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(123, 0, 63, 0.85);
    color: white;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-zoom-wrapper.zoom-level-1 .product-zoom-indicator,
.product-zoom-wrapper.zoom-level-2 .product-zoom-indicator {
    opacity: 1;
    visibility: visible;
}

/* Анимация плавного зума */
.product-zoom-image.zooming {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* При драге transition отключается для мгновенной реакции */
.product-zoom-wrapper.dragging .product-zoom-image {
    transition: none !important;
}

/* === КНОПКИ ЗУМА КАК У КОНКУРЕНТА === */
.zoomist-zoomer {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    pointer-events: none; /* Чтобы не мешать драгу */
}

.zoomist-in-zoomer,
.zoomist-out-zoomer {
    position: relative;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.85);
    transition: background-color 0.2s ease;
    pointer-events: auto; /* Включаем клики для кнопок */
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoomist-in-zoomer:hover,
.zoomist-out-zoomer:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

.zoomist-in-zoomer:active,
.zoomist-out-zoomer:active {
    background-color: rgba(255, 255, 255, 1);
}

.zoomist-in-zoomer svg,
.zoomist-out-zoomer svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    fill: #333;
    pointer-events: none;
}

.zoomist-zoomer-disable {
    pointer-events: none !important;
    opacity: 0.4;
    cursor: not-allowed;
}

.zoomist-zoomer-disable svg {
    fill: #999;
}

/* Скрываем кнопки на мобильных если нужно */
@media (max-width: 768px) {
    .zoomist-zoomer {
        opacity: 0.9;
    }
}