/* WooCommerce urun galerisi etkilesim ve katman duzeltmeleri. */
.single-product .elementor-widget-woocommerce-product-images,
.single-product .elementor-widget-woocommerce-product-images.elementor-element {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.single-product .elementor-widget-woocommerce-product-images > .elementor-widget-container {
    position: relative !important;
    z-index: 1 !important;
    pointer-events: auto !important;
}

.single-product .woocommerce-product-gallery {
    position: relative !important;
    z-index: 2 !important;
    isolation: isolate;
    pointer-events: auto !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery .flex-viewport {
    pointer-events: auto !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery .flex-viewport {
    position: relative !important;
    z-index: 1 !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    z-index: 30 !important;
    pointer-events: auto !important;
    cursor: zoom-in !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
    position: relative !important;
    z-index: 20 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    float: none !important;
    width: 82px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img {
    display: block !important;
    width: 100% !important;
    height: 82px !important;
    margin: 0 !important;
    padding: 3px !important;
    border: 1px solid #dedede !important;
    border-radius: 6px !important;
    background: #fff !important;
    object-fit: contain !important;
    opacity: 0.72 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover,
.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.single-product .woocommerce-product-gallery .flex-control-thumbs img[aria-current="true"] {
    border-color: #b92025 !important;
    box-shadow: 0 0 0 1px #b92025 !important;
    opacity: 1 !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img:focus-visible,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:focus-visible {
    outline: 3px solid rgba(185, 32, 37, 0.35) !important;
    outline-offset: 2px !important;
}

/* Resim ve videolari ayni oynaticida yoneten bagimsiz medya kaydiricisi. */
.single-product .woocommerce-product-gallery.bgz-gallery-controlled .bgz-gallery-stage {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.single-product .woocommerce-product-gallery.bgz-gallery-controlled .woocommerce-product-gallery__wrapper {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    transition: none !important;
}

.single-product .woocommerce-product-gallery.bgz-gallery-controlled .woocommerce-product-gallery__wrapper > * {
    display: none !important;
    float: none !important;
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
}

.single-product .woocommerce-product-gallery.bgz-gallery-controlled .woocommerce-product-gallery__wrapper > .bgz-gallery-active {
    display: block !important;
}

.single-product .woocommerce-product-gallery.bgz-gallery-controlled .woocommerce-product-gallery__wrapper > .clone,
.single-product .woocommerce-product-gallery.bgz-gallery-controlled > .flex-control-thumbs,
.single-product .woocommerce-product-gallery.bgz-gallery-controlled .bgz-gallery-stage > .flex-control-thumbs {
    display: none !important;
}

.single-product .woocommerce-product-gallery.bgz-gallery-controlled .bgz-gallery-active > a {
    display: block !important;
    width: 100% !important;
    cursor: zoom-in !important;
}

.single-product .woocommerce-product-gallery.bgz-gallery-controlled .bgz-gallery-active img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 680px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

.single-product .woocommerce-product-gallery.bgz-gallery-controlled.bgz-active-is-video .woocommerce-product-gallery__trigger {
    display: none !important;
}

.single-product .woocommerce-product-gallery .bgz-gallery-video-slide {
    width: 100% !important;
    background: #080808 !important;
}

.single-product .woocommerce-product-gallery .bgz-gallery-video-slide .bgz-media-original-placeholder {
    display: none !important;
}

.single-product .woocommerce-product-gallery .bgz-gallery-video-stage,
.single-product .woocommerce-product-gallery .bgz-gallery-video-slide .wp-video,
.single-product .woocommerce-product-gallery .bgz-gallery-video-slide .mejs-container {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    background: #080808 !important;
}

.single-product .woocommerce-product-gallery .bgz-gallery-video-slide video,
.single-product .woocommerce-product-gallery .bgz-gallery-video-slide iframe,
.single-product .woocommerce-product-gallery .bgz-gallery-video-stage video,
.single-product .woocommerce-product-gallery .bgz-gallery-video-stage iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 320px !important;
    border: 0 !important;
    background: #080808 !important;
    object-fit: contain !important;
}

.single-product .woocommerce-product-gallery .bgz-gallery-main-arrow {
    position: absolute !important;
    top: 50% !important;
    z-index: 40 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 50% !important;
    background: rgba(20, 20, 20, 0.62) !important;
    color: #fff !important;
    font: 400 32px/1 Arial, sans-serif !important;
    cursor: pointer !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.24) !important;
}

.single-product .woocommerce-product-gallery .bgz-gallery-main-prev { left: 12px !important; }
.single-product .woocommerce-product-gallery .bgz-gallery-main-next { right: 12px !important; }
.single-product .woocommerce-product-gallery .bgz-gallery-main-arrow:hover { background: #b92025 !important; }

.single-product .woocommerce-product-gallery .bgz-gallery-ui {
    position: relative !important;
    z-index: 20 !important;
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) 36px !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 14px 0 0 !important;
}

.single-product .woocommerce-product-gallery .bgz-gallery-ui.has-single-item {
    grid-template-columns: minmax(0, 1fr) !important;
}

.single-product .woocommerce-product-gallery .bgz-gallery-ui.has-single-item .bgz-gallery-thumb-arrow {
    display: none !important;
}

.single-product .woocommerce-product-gallery .bgz-media-thumbs-viewport {
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    scrollbar-width: thin !important;
    scrollbar-color: #bbb transparent !important;
}

.single-product .woocommerce-product-gallery .bgz-media-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: max-content !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 2px !important;
    list-style: none !important;
}

.single-product .woocommerce-product-gallery .bgz-media-thumbs li {
    flex: 0 0 84px !important;
    width: 84px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product .woocommerce-product-gallery .bgz-media-thumb-button {
    position: relative !important;
    display: block !important;
    width: 84px !important;
    height: 84px !important;
    margin: 0 !important;
    padding: 3px !important;
    overflow: hidden !important;
    border: 1px solid #dedede !important;
    border-radius: 7px !important;
    background: #fff !important;
    cursor: pointer !important;
    opacity: 0.72 !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
}

.single-product .woocommerce-product-gallery .bgz-media-thumb-button img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 4px !important;
    object-fit: contain !important;
}

.single-product .woocommerce-product-gallery .bgz-media-thumb-button:hover,
.single-product .woocommerce-product-gallery .bgz-media-thumb-button.is-active {
    border-color: #b92025 !important;
    box-shadow: 0 0 0 1px #b92025 !important;
    opacity: 1 !important;
}

.single-product .woocommerce-product-gallery .bgz-media-thumb-button:focus-visible,
.single-product .woocommerce-product-gallery .bgz-gallery-main-arrow:focus-visible,
.single-product .woocommerce-product-gallery .bgz-gallery-thumb-arrow:focus-visible {
    outline: 3px solid rgba(185, 32, 37, 0.35) !important;
    outline-offset: 2px !important;
}

.single-product .woocommerce-product-gallery .bgz-media-thumb-empty {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #262626, #080808) !important;
}

.single-product .woocommerce-product-gallery .bgz-media-play {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 2 !important;
    width: 32px !important;
    height: 32px !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    background: rgba(185, 32, 37, 0.88) !important;
    transform: translate(-50%, -50%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.single-product .woocommerce-product-gallery .bgz-media-play::after {
    content: "" !important;
    position: absolute !important;
    top: 8px !important;
    left: 12px !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-left: 9px solid #fff !important;
}

.single-product .woocommerce-product-gallery .bgz-gallery-thumb-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #222 !important;
    font: 400 26px/1 Arial, sans-serif !important;
    cursor: pointer !important;
}

.single-product .woocommerce-product-gallery .bgz-gallery-thumb-arrow:hover {
    border-color: #b92025 !important;
    background: #b92025 !important;
    color: #fff !important;
}

.pswp {
    z-index: 999999 !important;
}

/* Photoswipe kullanilamazsa devreye giren hafif yedek buyutme penceresi. */
.bgz-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.88);
    box-sizing: border-box;
}

.bgz-product-lightbox.is-open {
    display: flex;
}

.bgz-product-lightbox__image {
    display: block;
    max-width: min(92vw, 1400px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
}

.bgz-product-lightbox__close,
.bgz-product-lightbox__prev,
.bgz-product-lightbox__next {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.72);
    color: #fff;
    font: 400 32px/1 Arial, sans-serif;
    cursor: pointer;
}

.bgz-product-lightbox__close { top: 18px; right: 18px; }
.bgz-product-lightbox__prev { top: 50%; left: 18px; transform: translateY(-50%); }
.bgz-product-lightbox__next { top: 50%; right: 18px; transform: translateY(-50%); }

.bgz-product-lightbox__close:hover,
.bgz-product-lightbox__prev:hover,
.bgz-product-lightbox__next:hover {
    background: #b92025;
}

body.bgz-lightbox-open {
    overflow: hidden !important;
}

@media (max-width: 600px) {
    .single-product .woocommerce-product-gallery .flex-control-thumbs {
        gap: 7px !important;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs li {
        width: calc(25% - 6px) !important;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs img {
        height: 70px !important;
    }

    .bgz-product-lightbox { padding: 52px 12px 22px; }
    .bgz-product-lightbox__close { top: 8px; right: 8px; }
    .bgz-product-lightbox__prev { left: 8px; }
    .bgz-product-lightbox__next { right: 8px; }

    .single-product .woocommerce-product-gallery .bgz-gallery-main-arrow {
        width: 38px !important;
        height: 38px !important;
        font-size: 27px !important;
    }

    .single-product .woocommerce-product-gallery .bgz-gallery-main-prev { left: 7px !important; }
    .single-product .woocommerce-product-gallery .bgz-gallery-main-next { right: 7px !important; }

    .single-product .woocommerce-product-gallery .bgz-gallery-ui {
        grid-template-columns: 30px minmax(0, 1fr) 30px !important;
        gap: 5px !important;
    }

    .single-product .woocommerce-product-gallery .bgz-gallery-thumb-arrow {
        width: 30px !important;
        height: 30px !important;
        font-size: 22px !important;
    }

    .single-product .woocommerce-product-gallery .bgz-media-thumbs { gap: 7px !important; }
    .single-product .woocommerce-product-gallery .bgz-media-thumbs li { flex-basis: 72px !important; width: 72px !important; }
    .single-product .woocommerce-product-gallery .bgz-media-thumb-button { width: 72px !important; height: 72px !important; }
    .single-product .woocommerce-product-gallery .bgz-gallery-video-slide video,
    .single-product .woocommerce-product-gallery .bgz-gallery-video-slide iframe,
    .single-product .woocommerce-product-gallery .bgz-gallery-video-stage video,
    .single-product .woocommerce-product-gallery .bgz-gallery-video-stage iframe { min-height: 220px !important; }
}
