/* ----------------------------------------------------------------------- İNDEX SAYFASI CSS SLIDER ve GALERİ KISMI ----- */
.slider-header-bar {
    background: #fff; /* ESKİ: #111 */
    color: #000; /* ESKİ: #fff */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 24px 10px 18px;
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
    position: relative;
    height: 50px;
    min-height: 34px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.slider-header-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #000; /* ESKİ: #fff */
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    flex: 1 0 160px;
    min-width: 130px;
}

.slider-header-motto {
    font-size: 13px;
    color: #000; /* ESKİ: #fff */
    opacity: 1;
    font-family: 'Inter', Arial, sans-serif;
    text-align: right;
    max-width: 410px;
    line-height: 1.35;
    margin-top: 2px;
    margin-left: 14px;
    display: flex;
    align-items: flex-start;
    word-break: break-word;
    flex: 2 1 160px;
}

.slider-header-hr {
    width: 100%;
    height: 5px;
    background-color: #8B0000 !important; /* KOYU SERT BORDO */
    border: none !important;
    margin: 0 0 14px 0;
    border-radius: 2px;
}
.category-banner {
    width: 100%;
    margin: 10px 0 20px 0;
}

    .category-banner img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 6px; /* istemezsen kaldır */
    }



.main-slider {
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
    margin-top: 10px !important;
}

    .main-slider img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 6px;
        max-height: 400px;
        object-fit: cover;
    }

.gallery-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    margin: 0;
    padding: 0;
}

.gallery {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

    .gallery::-webkit-scrollbar {
        display: none;
    }

.gallery-item {
    width: 250px;
    flex-shrink: 0;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .gallery-item:last-child {
        margin-right: 0;
    }

.img-wrapper {
    width: 250px;
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
}

    .img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.item-caption {
    width: 100%;
    padding: 4px 0 0 0;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #333;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .item-caption .rating {
        font-size: 14px;
        color: #FFD700;
        margin-bottom: 2px;
    }

        .item-caption .rating span {
            color: #333;
            font-size: 12px;
            margin-left: 2px;
        }

    .item-caption .product-name {
        font-size: 16px;
        font-weight: bold;
        margin: 0 0 1px 0;
        color: #222;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .item-caption .price {
        font-size: 18px;
        color: #A52A2A;
        font-weight: bold;
        margin: 0 0 2px 0;
    }

        .item-caption .price .old-price {
            text-decoration: line-through;
            color: #777;
            margin-left: 6px;
            font-size: 14px;
            font-weight: normal;
        }

    .item-caption .save {
        font-size: 12px;
        color: #555;
        margin: 2px 0;
        line-height: 1.2;
        min-height: calc(1.2em * 2);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-wrap: break-word;
    }

    .item-caption .shop-btn {
        display: inline-block;
        padding: 6px 16px;
        background-color: #A52A2A;
        color: #fff;
        font-size: 14px;
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.2s;
        margin-top: 4px;
    }

        .item-caption .shop-btn:hover {
            background-color: #8B0000;
        }

.gallery-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

    .gallery-button span {
        font-size: 22px;
        color: #fff;
        user-select: none;
    }

    .gallery-button:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }

    .gallery-button.prev {
        left: 4px;
    }

    .gallery-button.next {
        right: 4px;
    }

.img-wrapper.clickable-img {
    cursor: pointer;
}

/* Video galeri barı */
.video-gallery-bar {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0.3rem 0;
    margin: 0;
    width: 100%;
    scrollbar-color: #a52a2a white;
    scrollbar-width: thin;
}

.video-thumb {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

    .video-thumb:last-child {
        margin-right: 0;
    }

    .video-thumb:hover {
        box-shadow: 0 4px 20px #a52a2a55;
    }

    .video-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .video-thumb .play-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 34px;
        height: 34px;
        background: rgba(255,0,0,0.85);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .video-thumb .play-btn::after {
            content: "";
            display: block;
            width: 0;
            height: 0;
            border-left: 14px solid #fff;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            margin-left: 4px;
        }

    .video-thumb:hover .play-btn {
        background: #a52a2a;
    }

    .video-thumb iframe {
        width: 190px;
        height: 100px;
        border: none;
        display: block;
        background: #222;
        border-radius: 8px;
    }

.video-gallery-bar::-webkit-scrollbar {
    height: 9px;
    background: #222;
}

.video-gallery-bar::-webkit-scrollbar-thumb {
    background: #a52a2a;
    border-radius: 6px;
}

/* Mobil görünüm - En pratik hal (max-width: 600px) ----------------------------------------------------------------MOBİL*/
@media (max-width: 600px) {

    footer .row.gx-2.gy-0 > div {
        margin-bottom: 2px !important;
    }

    footer .row.gx-2.gy-0 {
        row-gap: 2px !important;
    }

    body {
        padding-bottom: 60px !important;
    }

    .gallery-container:last-of-type {
        margin-bottom: 20px !important;
    }

    .slider-header-bar {
        background: #fff !important; /* MOBİLDE DE BEYAZ */
        color: #000 !important; /* MOBİLDE DE SİYAH */
        padding: 3px 4px 2px 6px !important;
        margin-top: 3px !important;
        margin-bottom: 0 !important;
        min-height: unset !important;
        height: auto !important;
        line-height: 1.08 !important;
        gap: 0 !important;
        border-radius: 2px 2px 0 0 !important;
        align-items: center !important;
        overflow: visible !important;
        box-shadow: none !important;
    }

    .slider-header-title {
        margin-top: 4px !important;
        margin-left: 10px;
        padding: 0 !important;
        font-size: 0.93rem !important;
        min-height: unset !important;
        height: 26px !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
        color: #000 !important;
    }

    .slider-header-motto {
        font-size: 0.61rem !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.04 !important;
        display: flex !important;
        align-items: center !important;
        margin-right: 15px !important;
        color: #000 !important;
    }

        .slider-header-motto i {
            font-size: 1.85em !important;
            margin-right: 3px !important;
        }

    .slider-header-hr {
        border: none !important;
        border-top: 2px solid #8B0000 !important;
        padding: 0 !important;
        height: 0 !important;
        width: 100% !important;
        background: none !important;
        margin-bottom: 10px;
    }

    .main-slider img {
        max-height: 295px !important;
        border-radius: 5px !important;
    }

    .gallery-container {
        overflow-x: auto !important;
        overflow-y: visible !important;
        width: 100% !important;
        padding-bottom: 0 !important;
        margin-bottom: 5px !important;
        min-height: unset !important;
        height: auto !important;
        background: none !important;
    }

    .gallery {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        width: 100% !important;
        min-height: unset !important;
        height: auto !important;
        padding-bottom: 0 !important;
        scrollbar-width: thin;
    }

    .gallery-item {
        flex: 0 0 49vw !important;
        max-width: 50vw !important;
        min-width: 49vw !important;
        margin-right: 6px !important;
        box-sizing: border-box !important;
        height: auto !important;
    }

    .img-wrapper,
    .img-wrapper img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
        border-radius: 5px !important;
        min-height: 0 !important;
    }

    .item-caption {
        padding: 2px 0 0 0 !important;
    }

        .item-caption .product-name {
            font-size: 12px !important;
            font-weight: 700 !important;
            letter-spacing: 0.01em;
        }

        .item-caption .price {
            font-size: 12px !important;
            margin-bottom: 0 !important;
            font-weight: 700 !important;
        }

        .item-caption .rating,
        .item-caption .rating span {
            font-size: 8px !important;
        }

        .item-caption .save {
            font-size: 7px !important;
            min-height: unset !important;
            line-height: 1.05 !important;
        }

        .item-caption .shop-btn {
            font-size: 10px !important; /* 10+px hatasını düzelttim */
            padding: 2px 5px !important;
            border-radius: 3px !important;
            margin-top: 1px !important;
        }

    .gallery-button {
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
        top: 43% !important;
    }

        .gallery-button span {
            font-size: 9px !important;
        }

    .video-thumb {
        width: 175px !important;
        height: 85px !important;
        margin-right: 4px !important;
    }

        .video-thumb img {
            width: 100% !important;
            height: 100% !important;
            border-radius: 6px !important;
        }

        .video-thumb .play-btn {
            width: 18px !important;
            height: 18px !important;
        }

            .video-thumb .play-btn::after {
                border-left: 8px solid #fff !important;
                border-top: 5px solid transparent !important;
                border-bottom: 5px solid transparent !important;
                margin-left: 0 !important;
            }

    .video-gallery-bar {
        margin-bottom: 9px !important;
    }

    .container-fluid,
    .container {
        padding-left: 1px !important;
        padding-right: 1px !important;
    }
}
/* Slider başlık şeridi: beyaz zemin, siyah yazı ZORLA */
.slider-header-bar {
    background: #fff !important;
    color: #000 !important;
}

    .slider-header-bar .slider-header-title,
    .slider-header-bar .slider-header-motto,
    .slider-header-bar .slider-header-motto span,
    .slider-header-bar .slider-header-motto i {
        color: #000 !important;
    }
