/**
 * PS Fancybox - Custom Styles for Large Navigation Arrows
 * Style like vamsvet.ru - arrows on screen edges
 */

/* ============================================
   Fancybox Container Overrides
   ============================================ */

.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, 0.85);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   NAVIGATION ARROWS - Screen edges (vamsvet.ru)
   ============================================ */

.fancybox__button--arrow--left,
.fancybox__button--arrow--right {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 99999 !important;
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    opacity: 0.85 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto;
}

.fancybox__button--arrow--left {
    left: 15px !important;
    right: auto !important;
}

.fancybox__button--arrow--right {
    right: 15px !important;
    left: auto !important;
}

.fancybox__button--arrow--left:hover,
.fancybox__button--arrow--right:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.12) !important;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4) !important;
}

.fancybox__button--arrow--left svg,
.fancybox__button--arrow--right svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #222;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   CLOSE BUTTON - Top right
   ============================================ */

.fancybox__toolbar {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 99999 !important;
}

.fancybox__button--close {
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fancybox__button--close:hover {
    background: #fff !important;
    transform: scale(1.1) !important;
}

.fancybox__button--close svg {
    width: 18px;
    height: 18px;
    stroke: #333;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   Image Info Counter (bottom center)
   ============================================ */

.fancybox__infobar {
    position: fixed !important;
    bottom: 85px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    z-index: 99999 !important;
    pointer-events: none;
}

/* ============================================
   Thumbnails (classic type)
   ============================================ */

.fancybox__thumbs {
    position: fixed !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 99995 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    backdrop-filter: blur(8px) !important;
}

.fancybox__thumb {
    width: 56px !important;
    height: 56px !important;
    border: 2px solid transparent !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    opacity: 0.6 !important;
    margin: 0 3px !important;
    object-fit: cover !important;
}

.fancybox__thumb:hover {
    opacity: 0.9 !important;
}

.fancybox__thumb--is-active {
    border-color: #fff !important;
    opacity: 1 !important;
}

/* ============================================
   Disable EasyZoom (replaced by Fancybox)
   ============================================ */

.easyzoom-product {
    display: none !important;
}

.easyzoom-flyout {
    display: none !important;
}

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
    .fancybox__button--arrow--left,
    .fancybox__button--arrow--right {
        width: 44px !important;
        height: 44px !important;
    }

    .fancybox__button--arrow--left {
        left: 8px !important;
    }

    .fancybox__button--arrow--right {
        right: 8px !important;
    }

    .fancybox__button--arrow--left svg,
    .fancybox__button--arrow--right svg {
        width: 22px;
        height: 22px;
    }

    .fancybox__toolbar {
        top: 10px !important;
        right: 10px !important;
    }

    .fancybox__button--close {
        width: 36px !important;
        height: 36px !important;
    }

    .fancybox__infobar {
        bottom: 75px !important;
        font-size: 12px !important;
        padding: 4px 12px !important;
    }

    .fancybox__thumbs {
        padding: 6px 8px !important;
    }

    .fancybox__thumb {
        width: 40px !important;
        height: 40px !important;
    }
}
