﻿/* ============ PGX GALLERY - FULL CSS ============ */
:root {
    /* ÖLÇÜLER */
    --pgx-main-w: 386px; /* sağ ana görsel genişliği  */
    --pgx-main-h: 520px; /* sağ ana görsel yüksekliği */
    --pgx-thumb-w: 117px; /* sol küçük genişliği       */
    --pgx-thumb-h: 121px; /* sol küçük yüksekliği      */
    --pgx-visible-thumbs: 3; /* aynı anda görünen küçük   */
    /* Boşluklar */
    --pgx-gap: 10px; /* küçükler arası boşluk     */
    --pgx-left-gap: 8px; /* oklarla liste arası       */
    --pgx-arrow-h: 26px; /* ok butonu yüksekliği      */
    /* Renk/estetik */
    --pgx-border: #e6e6e6;
    --pgx-radius: 12px;
    --pgx-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* Genel kutu modeli */
.pgx-root, .pgx-root * {
    box-sizing: border-box;
}

/* --- KÖK LAYOUT (asla satır kırma) --- */
.pgx-root {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap; /* sağın alta düşmesini engeller */
}

/* --- SOL SÜTUN (thumbs) --- */
.pgx-left {
    flex: 0 0 var(--pgx-thumb-w);
    width: var(--pgx-thumb-w);
    height: var(--pgx-main-h); /* sağla aynı yükseklik */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--pgx-left-gap);
}

/* Ok butonları */
.pgx-arrow {
    width: 100%;
    height: var(--pgx-arrow-h);
    border: 1px solid var(--pgx-border);
    border-radius: 8px;
    background: linear-gradient(#f4f4f4,#e8e8e8);
    cursor: pointer;
    line-height: var(--pgx-arrow-h);
    text-align: center;
}

    .pgx-arrow:disabled {
        opacity: .35;
        cursor: not-allowed;
    }

/* Dış çerçeve: kesin clipping */
.pgx-thumbs-outer {
    position: relative;
    height: calc( var(--pgx-main-h) - (var(--pgx-arrow-h)*2) - (var(--pgx-left-gap)*2) );
    padding: 6px;
    background: #fff;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--pgx-border);
    clip-path: inset(0 round 8px);
    isolation: isolate;
}

/* İç scroll alanı: tam 3 kart sığsın, fazlası scroll */
.pgx-thumbs {
    width: 100%;
    height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    gap: var(--pgx-gap);
    margin: 0;
    padding: 0;
}

    .pgx-thumbs::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

/* Thumb kartı (çerçeve: inset shadow → taşma yok) */
.pgx-thumb {
    position: relative;
    display: block;
    width: var(--pgx-thumb-w);
    height: var(--pgx-thumb-h);
    margin: 0;
    padding: 0;
    border: none !important; /* temadan gelen border'ı kapat */
    border-radius: 8px;
    overflow: hidden; /* img kesin içeride kalır */
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--pgx-border);
    cursor: pointer;
}

    .pgx-thumb.is-active {
        box-shadow: inset 0 0 0 1px var(--pgx-border), inset 0 0 0 3px #8ecae6; /* aktif highlight */
    }

    /* Thumb görseli – sert reset + keskin downscale */
    .pgx-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0;
        border-radius: inherit;
        transform: translateZ(0.001px);
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimizeQuality;
    }

/* --- SAĞ SÜTUN (ana görsel) --- */
.pgx-right {
    flex: 0 0 var(--pgx-main-w);
    width: var(--pgx-main-w);
}

/* Sabit kutu 386×520 */
.pgx-stage {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 386 / 520; /* oran koruma */
    border: 0;
    border-radius: var(--pgx-radius);
    background: #fff;
    box-shadow: var(--pgx-shadow);
    overflow: hidden;
}

/* Ana görsel – dolu görünüm */
.pgx-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit;
}

/* Hover zoom overlay */
.pgx-zoom {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: cover;
    opacity: 0;
    transition: opacity .08s linear;
    pointer-events: none;
}

.pgx-stage.pgx--zoom .pgx-zoom {
    opacity: 1;
}

.pgx-stage.pgx--zoom .pgx-main {
    opacity: 0;
}

/* --- Mobil uyarlama (isteğe bağlı) --- */
@media (max-width: 768px) {
    .pgx-root {
        flex-direction: column; /* sağdaki görsel ve soldaki küçükler yan yana */
        width: 100%; 
        gap: 12px;
    }

    .pgx-left {
        height: var(--pgx-main-h); /* sağdaki görselle aynı yükseklik */
        width: var(--pgx-thumb-w);
        flex-direction: column; /* küçükler dikey */
        align-items: center;
    }

    .pgx-thumbs-outer {
        height: calc(var(--pgx-main-h) - (var(--pgx-arrow-h)*2) - (var(--pgx-left-gap)*2));
        max-width: none;
    }

    .pgx-thumbs {
        flex-direction: column; /* üstten aşağı */
        overflow-y: auto;
        overflow-x: hidden;
    }

    .pgx-arrow {
        display: block; /* yukarı-aşağı oklar görünsün */
    }

    .pgx-right,
    .pgx-stage {
        width: var(--pgx-main-w);
        margin-left: 10px;
    }
}

/* --- THUMB BLEED KILIT DÜZELTMESI --- */
.pgx-thumbs-outer {
    margin-left:15px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    /* radius'u gerçek klip alanı yap */
    clip-path: inset(0 round 8px);
}

/* Button’ın UA/tema padding-border’ını tamamen iptal et */
.pgx-thumb {
    display: block;
    width: var(--pgx-thumb-w);
    height: var(--pgx-thumb-h);
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--pgx-border) !important; /* inset shadow yerine gerçek border */
    border-radius: 8px;
    overflow: hidden; /* img dışarı çıkamaz */
    line-height: 0;
    -webkit-appearance: none;
    appearance: none;
}

    .pgx-thumb::-moz-focus-inner {
        border: 0;
        padding: 0;
    }

    .pgx-thumb.is-active {
        /* aktif vurguyu içe ver ki dışarı taşmasın */
        box-shadow: inset 0 0 0 3px #8ecae6;
    }

    /* Temadaki img border/padding’i sıfırla ve radius'u miras al */
    .pgx-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0;
        border-radius: inherit;
    }

.countdown-timer {
    display: flex;
    gap: 8px;
}

.countdown-box {
    background-color: #1a3b54;
    border-radius: 4px;
    padding: 6px 10px;
    text-align: center;
    min-width: 45px;
}

.countdown-number {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

.countdown-label {
    display: block;
    font-size: 12px;
}
/* ============ /PGX GALLERY - FULL CSS ============ */




.vertical-slider .sezerler-slider-next,
.vertical-slider .sezerler-slider-prev {
    top: 30px;
    left: 50%;
    margin-left: -16px;
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
    transform: rotate(90deg);
    -ms-filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=90);
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=90);
}

.vertical-slider .sezerler-slider-next {
    top: auto;
    bottom: 26px;
}

@media (max-width:767px) {
    .vertical-slider {
        margin-left: 5px;
        margin-right: -5px;
    }

        .vertical-slider.slick-slider {
            margin-bottom: 10px;
        }

        .vertical-slider .sezerler-slider-next,
        .vertical-slider .sezerler-slider-prev {
            margin-left: -14px;
        }

            .vertical-slider .sezerler-slider-next img,
            .vertical-slider .sezerler-slider-prev img {
                width: 24px;
            }

    .urun-image-frame {
        padding: 0;
    }

    .urun-extend-item {
        font-size: 14px;
    }
}

#search_content {
    position: absolute;
    border: 2px solid #E5E5E5;
    margin-top: -18px;
    background-color: #FFF;
    border-top: 0px;
    border-radius: 0px 0px 4px 4px;
    z-index: 10000;
    display: none;
    max-height: 300px;
    overflow: auto;
}

    #search_content ul li:hover {
        background-color: #E5E5E5;
    }

    #search_content ul li a {
        color: #2d3136;
    }

        #search_content ul li a:hover {
            text-decoration: none;
            color: #0a71ce;
        }