﻿.products-detail {
    background-color: #f1f1f1;
    padding: 2rem 0 4rem 0;
    color: #100f0d;
    text-align: justify;
    text-justify: inter-word;
    font-family: "Cormorant Garamond", serif;
}

    .products-detail .section-title {
        text-align: left !important;
        margin-top: 1rem !important;
        margin-bottom: 2rem;
        padding-left: 3rem;
    }

        .products-detail .section-title h2 {
            font-size: 2.25rem;
            font-weight: 600;
            color: #100f0d;
            margin: 0;
            letter-spacing: 0.5px;
            text-align: left;
        }

            .products-detail .section-title h2::before,
            .products-detail .section-title h2::after {
                display: none !important;
            }

    /* Görsel ve açıklama hizalaması */
    .products-detail .row {
        align-items: flex-start !important; /* Üstten hizalama */
    }

    .products-detail .col-lg-7 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-right: 1.5rem;
        margin-top: -65px;
    }

    /* Sağ taraftaki başlık + açıklama kolonunu yukarı taşı */
    .products-detail .col-lg-5 {
        margin-top: -15px !important; /* başlık yukarı çıksın */
        padding-right: 7rem !important; /* sola yaklaşsın */
        padding-left: 0rem;
    }


/* === DETAIL SAYFASI HERO BAŞLIK === */

.products-hero {
    position: relative;
    background-image: url('/images/baslik.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 35vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.products-hero-title {
    z-index: 5;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
}

    .products-hero-title h1 {
        font-size: 2.3rem;
        font-weight: 600;
        color: #f1f1f1;
        margin: 0;
        margin-top: 5.5rem;
        letter-spacing: 0.08em;
        text-shadow: 0px 4px 10px rgba(0,0,0,0.6);
    }

/* Üst blur efekti */
.products-hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 160px;
    background: url('/images/baslik.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    filter: blur(15px);
    z-index: 2;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* Siyah degrade */
.products-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
    z-index: 3;
    pointer-events: none;
}

/* Ana görsel */
.main-image {
    width: 70%;
    max-width: 320px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

/* Thumbnail alanı */
.thumbnail-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    overflow: hidden;
}

.thumbnail-bar {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.4s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #1f3652 #f1f1f1;
    padding: 0 2rem;
}

.thumbnail {
    width: 30px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.4;
    transform: scale(0.9);
    transition: all 0.25s ease;
}

    .thumbnail.active-thumb {
        opacity: 1;
        transform: scale(1);
        border: 2px solid #1f3652;
    }

    .thumbnail:hover {
        opacity: 0.8;
        transform: scale(0.95);
    }

/* Ok butonları */
.thumb-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1f3652;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 0 8px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

    .thumb-btn.left {
        left: 8rem;
    }

    .thumb-btn.right {
        right: 8rem;
    }

    .thumb-btn:hover {
        color: #1f3652;
        transform: translateY(-50%) scale(1.15);
    }

/* Scrollbar görünümü */
.thumbnail-bar::-webkit-scrollbar {
    height: 5px;
}

.thumbnail-bar::-webkit-scrollbar-thumb {
    background-color: #1f3652;
    border-radius: 10px;
}

.thumbnail-bar::-webkit-scrollbar-track {
    background: #1f3652;
}

/* === FULLSCREEN IMAGE VIEWER === */

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(2px);
}

.viewer-image {
    max-width: 82vw;
    max-height: 85vh;
    border-radius: 10px;
    object-fit: contain;
}

/* Close Button */
.close-viewer {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #f1f1f1;
    cursor: pointer;
    font-weight: bold;
    z-index: 100000;
}

    .close-viewer:hover {
        transform: scale(1.15);
    }

/* Oklar – RESMİN HEMEN YANINDA */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #f1f1f1;
    cursor: pointer;
    padding: 10px;
    transition: 0.2s ease;
    z-index: 100000;
}

    .nav-arrow:hover {
        transform: translateY(-50%) scale(1.18);
    }

.left-arrow {
    left: 30px;
}

.right-arrow {
    right: 30px;
}

/* Görsel Sayacı */
.viewer-counter {
    position: absolute;
    bottom: 25px;
    right: 40px;
    background: rgba(255,255,255,0.8);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #100f0d;
    z-index: 100000;
}

.detail-header h4 {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 3rem;
    color: #100f0d;
}

.detail-header a {
    border: 1px solid #100f0d !important;
    color: #100f0d !important;
    background-color: transparent !important;
    transition: 0.25s ease;
}

    .detail-header a:hover {
        background-color: #100f0d !important;
        color: #f1f1f1 !important;
        border-color: #100f0d !important;
        transform: translateY(-2px);
    }

/* ===================================================
   ÜRÜN DETAY SAYFASI — ORTA EKRAN  (tablet + küçük laptop)
   577px – 1199px
   =================================================== */
@media (min-width: 577px) and (max-width: 1199px) {
    /* === HERO === */
    .products-hero {
        height: 35vh !important;
        background-position: center !important;
    }

    .products-hero-title h1 {
        font-size: 2rem !important;
        margin-top: 5.5rem !important;
        letter-spacing: 0.06em !important;
    }

    /* === ANA DETAY WRAPPER === */
    .products-detail {
        padding: 1rem 1rem 3rem 1rem !important;
    }

        /* Başlık sola çok yapışmasın */
        .products-detail .section-title {
            padding-left: 0 !important;
            padding-right: 0 !important;
            margin-bottom: 1.3rem !important;
            width: 100% !important;
            max-width: 1150px !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

            .products-detail .section-title h2 {
                font-size: 1.75rem !important;
                text-align: left !important;
            }

        /* === SOL KOLON (ANA GÖRSEL) === */
        .products-detail .col-lg-7 {
            order: 1 !important;
            margin-top: 0.5rem !important;
            padding-right: 0 !important;
            text-align: center !important;
        }

    .main-image {
        width: 70% !important;
        max-width: 320px !important;
        border-radius: 12px !important;
        margin: 0 auto !important;
    }

    /* === THUMBNAIL === */
    .thumbnail-wrapper {
        margin-top: 0.7rem !important;
        width: 100% !important;
    }

    .thumbnail-bar {
        gap: 0.3rem !important;
        padding: 0 2.5rem !important;
        overflow-x: auto !important;
    }

    .thumbnail {
        width: 50px !important;
        height: 50px !important;
        border-radius: 6px !important;
    }

    .thumb-btn {
        display: block !important;
        color: #100f0d !important;
        background: rgba(255,255,255,0.8) !important;
        border: 1px solid #100f0d30 !important;
        font-size: 1.3rem !important;
        padding: 4px 9px !important;
        border-radius: 6px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
    }

        .thumb-btn.left {
            left: 2px !important;
        }

        .thumb-btn.right {
            right: 2px !important;
        }

    /* === ÜST BAŞLIK / ÜRÜNLERE DÖN === */
    .detail-header {
        order: 3 !important;
        width: 100% !important;
        margin-top: 2.5rem !important;
        display: flex !important;
        justify-content: flex-end !important; /* ↠ SAĞA YASLI */
        align-items: center !important;
        padding-right: 0rem !important;
    }

        .detail-header h4 {
            font-size: 1.5rem !important;
            margin-bottom: 0.6rem !important;
            width: 100% !important;
            text-align: left !important;
        }

        .detail-header a {
            font-size: 1rem !important;
            padding: 6px 12px !important;
            border-radius: 6px !important;
            white-space: nowrap;
        }

    /* === SAĞ KOLON (Açıklama / Avantajlar) === */
    .products-detail .col-lg-5 {
        order: 4 !important;
        margin-top: 0.1rem !important;
        padding: 0rem !important;
        text-align: justify !important;
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .products-detail p {
        font-size: 1.1rem !important;
        line-height: 1.4rem !important;
        margin-bottom: 1rem !important;
    }

    /* === LISTE === */
    .products-detail ul li {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
        margin-bottom: 0.4rem !important;
    }

    /* === FULLSCREEN VIEWER === */
    .viewer-image {
        max-width: 100vw !important;
        max-height: 80vh !important;
    }

    .close-viewer {
        top: 18px !important;
        right: 20px !important;
        font-size: 2.4rem !important;
    }

    .nav-arrow {
        font-size: 2rem !important;
        padding: 8px !important;
    }

    .left-arrow {
        left: 20px !important;
    }

    .right-arrow {
        right: 20px !important;
    }

    .viewer-counter {
        bottom: 16px !important;
        right: 22px !important;
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
    }
}

/* ===================================================
   ÜRÜN DETAY SAYFASI — MOBİL SÜRÜM (max-width: 576px)
   =================================================== */
@media (max-width: 576px) {

    /* === HERO === */
    .products-hero {
        height: 28vh !important;
        background-position: center !important;
    }

    .products-hero-title h1 {
        font-size: 1.7rem !important;
        margin-top: 5rem !important;
        letter-spacing: 0.06em !important;
    }

    /* === ANA DETAY WRAPPER === */
    .products-detail {
        padding: 1rem 0.7rem 2rem 0.7rem !important;
       
    }

        /* Başlık sola çok yapışmasın */
        .products-detail .section-title {
            padding-left: 0.8rem !important;
            margin-bottom: 1.2rem !important;
        }

            .products-detail .section-title h2 {
                font-size: 1.75rem !important;
            }

        /* === SOL KOLON (ANA GÖRSEL) === */
        .products-detail .col-lg-7 {
            order: 1 !important;
            margin-top: 0 !important;
            padding-right: 0 !important;
            align-items: center !important;
            width: 100% !important;
        }

    .main-image {
        width: 80% !important;
        max-width: 320px !important;
        border-radius: 12px !important;
        margin: auto !important;
    }

    /* === THUMBNAIL === */
    .thumbnail-wrapper {
        margin-top: 0.5rem !important;
        padding: 0 0.4rem !important;
        width: 100% !important;
    }

    .thumbnail-bar {
        gap: 0.3rem !important;
        padding: 0 1.8rem !important; /* Oklar için yer bırak */
        overflow-x: auto !important;
        scroll-behavior: smooth !important;
    }

    .thumbnail {
        width: 46px !important;
        height: 46px !important;
        border-radius: 6px !important;
    }

    /* === THUMBNAIL OKLARI (MOBİLDE GÖRÜNÜR) === */
    .thumb-btn {
        display: block !important;
        color: #100f0d !important;
        background: rgba(255,255,255,0.75) !important;
        border: 1px solid #100f0d30 !important;
        font-size: 1.35rem !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 20 !important;
    }

        .thumb-btn.left {
            left: 6px !important;
        }

        .thumb-btn.right {
            right: 6px !important;
        }

    /* === ÜST BAŞLIK / ÜRÜNLERE DÖN ALANI === */
    .detail-header {
        order: 3 !important;
        width: 100% !important;
        margin-top: 2.5rem !important;
        text-align: center !important;
    }

        .detail-header h4 {
            font-size: 1.3rem !important;
            margin-bottom: 0.6rem !important;
        }

        .detail-header a {
            font-size: 0.80rem !important;
            padding: 5px 10px !important;
            border-radius: 6px !important;
        }

    /* === SAĞ KOLON (META + AÇIKLAMA) === */
    .products-detail .col-lg-5 {
        order: 4 !important;
        margin-top: 0.3rem !important;
        padding: 0rem 0.7rem 0 0.7rem !important;
        text-align: justify !important; /* İKİ YANA YASLI */
    }

    .products-detail p {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    /* === FULLSCREEN GÖRÜNTÜLEYİCİ === */
    .viewer-image {
        max-width: 90vw !important;
        max-height: 80vh !important;
    }

    .close-viewer {
        top: 18px !important;
        right: 20px !important;
        font-size: 2.4rem !important;
    }

    .nav-arrow {
        font-size: 2.2rem !important;
        color: #100f0d !important;
        opacity: 0.9 !important;
        padding: 8px !important;
    }

    .left-arrow {
        left: 20px !important;
    }

    .right-arrow {
        right: 20px !important;
    }

    .viewer-counter {
        bottom: 16px !important;
        right: 22px !important;
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
    }
}
