/**
 * PS Fancybox - Custom Styles for Large Navigation Arrows
 * Style like vamsvet.ru - arrows on screen edges
 * Color: Dark red (#b11e22)
 */

:root {
    --fancybox-bg: rgba(0, 0, 0, 0.85);
    --f-button-bg: #b11e22;
    --f-button-hover-bg: #a01a1e;
    --f-button-active-bg: #8e171a;
    --f-button-color: #fff;
}

.fancybox__container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* NAVIGATION ARROWS */
html body .f-button.is-prev,
html body .f-button.is-next {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 99999 !important;
    width: 60px !important;
    height: 60px !important;
    background: #b11e22 !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    opacity: 0.9 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !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;
}

html body .f-button.is-prev { left: 15px !important; right: auto !important; }
html body .f-button.is-next { right: 15px !important; left: auto !important; }

html body .f-button.is-prev:hover,
html body .f-button.is-next:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.12) !important;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4) !important;
}

html body .f-button.is-prev svg,
html body .f-button.is-next svg {
    width: 28px; height: 28px; fill: none;
    stroke: #fff !important; stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
}

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

html body .fancybox__content [data-fancybox-close] {
    width: 44px !important; height: 44px !important;
    background: #b11e22 !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important; cursor: pointer !important;
    opacity: 0.9 !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;
}

html body .fancybox__content [data-fancybox-close]:hover {
    opacity: 1 !important; transform: scale(1.1) !important;
}

html body .fancybox__content [data-fancybox-close] svg {
    width: 18px; height: 18px;
    stroke: #fff !important; stroke-width: 3;
    stroke-linecap: round; stroke-linejoin: round;
}

/* INFO BAR */
.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;
}

/* THUMBS */
.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: #b11e22 !important; opacity: 1 !important; }

/* DISABLE EASYZOOM */
.easyzoom-product, .easyzoom-flyout { display: none !important; }

/* IMAGE FRAME */
.fancybox__slide.has-image {
    background: #ccc !important; padding: 20px 20px 0 !important;
    border-radius: 8px !important;
}

.fancybox__slide.has-image .fancybox__content {
    background: #fff !important; border: 3px solid #fafafa !important;
    border-radius: 4px !important; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3) !important;
}

/* CAPTION */
.fancybox__caption {
    color: #fff; background: #b11e22;
    padding: 10px; border-radius: 5px;
}

/* MOBILE */
@media (max-width: 768px) {
    html body .f-button.is-prev, html body .f-button.is-next {
        width: 44px !important; height: 44px !important;
    }
    html body .f-button.is-prev { left: 8px !important; }
    html body .f-button.is-next { right: 8px !important; }
    html body .f-button.is-prev svg, html body .f-button.is-next svg {
        width: 22px; height: 22px;
    }
    .fancybox__toolbar { top: 10px !important; right: 10px !important; }
    html body .fancybox__content [data-fancybox-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; }
}
