﻿/* Ürün detay sayfası - modern görünüm (renkler UrunKart.css ile uyumlu) */
:root {
    --uk-ana: #0c71b3;
    --uk-ana-koyu: #095a8f;
    --uk-vurgu: #e8453c;
    --uk-yazi: #1f2937;
    --uk-yazi-soluk: #6b7280;
    --uk-cizgi: #e5e7eb;
    --uk-zemin: #f5f7fa;
    --uk-golge: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
}

.ud {
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    gap: 32px;
    align-items: start;
    margin-bottom: 32px;
    font-family: 'Open Sans', sans-serif;
    color: var(--uk-yazi);
}

/* ================= Galeri ================= */
.ug {
    position: sticky;
    top: 16px;
    outline: none;
}

.ug-sahne {
    position: relative;
    border: 1px solid var(--uk-cizgi);
    border-radius: 16px;
    background: radial-gradient(circle at 50% 35%, #ffffff 0%, var(--uk-zemin) 80%);
    overflow: hidden;
    box-shadow: var(--uk-golge);
}

.ug:focus-visible .ug-sahne {
    box-shadow: 0 0 0 3px rgba(12, 113, 179, .35);
}

.ug-serit {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .ug-serit::-webkit-scrollbar {
        display: none;
    }

.ug-slayt {
    flex: 0 0 100%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
    cursor: zoom-in;
}

    .ug-slayt img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 12px 18px rgba(16, 24, 40, .18));
        transition: transform .25s ease;
        user-select: none;
        -webkit-user-drag: none;
    }

    .ug-slayt.ug-zoom img {
        transform: scale(2);
        filter: none;
    }

/* Oklar */
.ug-ok {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 4px 14px rgba(16, 24, 40, .16);
    color: var(--uk-yazi);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

    .ug-ok svg,
    .ug-buyut svg,
    .ug-lb-kapat svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .ug-ok:hover {
        background: var(--uk-ana);
        color: #fff;
    }

.ug-ok-sol {
    left: 14px;
    transform: translateX(-6px);
}

.ug-ok-sag {
    right: 14px;
    transform: translateX(6px);
}

.ug-sahne:hover .ug-ok,
.ug:focus-within .ug-ok {
    opacity: 1;
    transform: none;
}

.ug-sayac {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(31, 41, 55, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    pointer-events: none;
}

.ug-buyut {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 8px rgba(16, 24, 40, .14);
    color: var(--uk-yazi);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
}

    .ug-buyut svg {
        width: 18px;
        height: 18px;
    }

    .ug-buyut:hover {
        background: var(--uk-ana);
        color: #fff;
    }

/* Noktalar (yalnızca mobilde) */
.ug-noktalar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 3;
    display: none;
    justify-content: center;
    gap: 6px;
}

.ug-nokta {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(31, 41, 55, .25);
    transition: width .25s ease, background .25s ease;
}

    .ug-nokta.aktif {
        width: 20px;
        background: var(--uk-ana);
    }

/* Küçük resimler */
.ug-kucukler {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 2px 2px 6px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.ug-kucuk {
    flex: 0 0 76px;
    height: 76px;
    padding: 6px;
    border: 2px solid var(--uk-cizgi);
    border-radius: 12px;
    background: var(--uk-zemin);
    cursor: pointer;
    opacity: .7;
    transition: border-color .2s ease, opacity .2s ease, transform .2s ease;
}

    .ug-kucuk img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .ug-kucuk:hover {
        opacity: 1;
        transform: translateY(-2px);
    }

    .ug-kucuk.aktif {
        opacity: 1;
        border-color: var(--uk-ana);
        background: #fff;
    }

.ug-tek .ug-slayt {
    cursor: zoom-in;
}

.ug-bos .ug-sahne {
    aspect-ratio: 1 / 1;
}

/* Tam ekran */
html.ug-kilit,
html.ug-kilit body {
    overflow: hidden;
}

.ug-lb {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 72px;
    background: rgba(10, 15, 25, .92);
    opacity: 0;
    transition: opacity .25s ease;
}

    .ug-lb.acik {
        opacity: 1;
    }

.ug-lb-resim {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    user-select: none;
}

.ug-lb .ug-ok {
    opacity: 1;
    transform: none;
    width: 48px;
    height: 48px;
    margin-top: -24px;
}

.ug-lb .ug-ok-sol {
    left: 20px;
}

.ug-lb .ug-ok-sag {
    right: 20px;
}

.ug-lb-kapat {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

    .ug-lb-kapat:hover {
        background: rgba(255, 255, 255, .25);
    }

.ug-lb-sayac {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
}

/* ================= Bilgi sütunu ================= */
.ud-bilgi h1 {
    margin: 0 0 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--uk-yazi);
}

.ud-kod {
    display: inline-block;
    margin-bottom: 14px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--uk-zemin);
    color: var(--uk-yazi-soluk);
    font-size: 12px;
}

    .ud-kod strong {
        color: var(--uk-yazi);
    }

.ud-aciklama {
    margin: 0 0 20px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--uk-yazi-soluk);
}

.ud-fiyat-kutu {
    padding: 18px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--uk-cizgi);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

.ud-indirim {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.ud-rozet {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--uk-vurgu);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.ud-eski {
    color: #9ca3af;
    font-size: 15px;
    text-decoration: line-through;
}

.ud-fiyat {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.ud-fiyat-tutar {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--uk-ana);
}

.ud-paket {
    font-size: 13px;
    color: var(--uk-yazi-soluk);
}

    .ud-paket strong {
        color: var(--uk-yazi);
    }

.ud-bayi {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--uk-cizgi);
}

.ud-bayi-etiket {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #059669;
}

.ud-bayi .ud-fiyat-tutar {
    font-size: 24px;
    color: #059669;
}

/* Seçenekler */
.ud-secenekler {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

    .ud-secenekler li {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 13px;
        font-weight: 600;
        color: var(--uk-yazi);
    }

    .ud-secenekler select {
        width: 100%;
        height: 44px;
        padding: 0 36px 0 12px;
        border: 1px solid #d1d5db;
        border-radius: 10px;
        background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
        -webkit-appearance: none;
        appearance: none;
        font-family: inherit;
        font-size: 14px;
        font-weight: 400;
        color: var(--uk-yazi);
        outline: none;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .ud-secenekler select:focus {
            border-color: var(--uk-ana);
            box-shadow: 0 0 0 3px rgba(12, 113, 179, .15);
        }

        .ud-secenekler select.dropdownbosgecemebelirtme {
            border-color: var(--uk-vurgu);
            box-shadow: 0 0 0 3px rgba(232, 69, 60, .15);
        }

.ud-stok {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--uk-vurgu);
}

    .ud-stok br {
        display: none;
    }

.ud-bilgi .SepeteEkle,
.ud-bilgi .SepeteEklefalse {
    width: 100%;
    height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease, box-shadow .2s ease;
}

.ud-bilgi .SepeteEkle {
    background: var(--uk-ana);
    box-shadow: 0 8px 20px rgba(12, 113, 179, .25);
}

    .ud-bilgi .SepeteEkle:hover {
        background: var(--uk-ana-koyu);
    }

    .ud-bilgi .SepeteEkle:active {
        transform: translateY(1px);
    }

.ud-bilgi .SepeteEklefalse {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Güven şeridi */
.ud-guven {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

    .ud-guven li {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px;
        border-radius: 10px;
        background: var(--uk-zemin);
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
        color: var(--uk-yazi);
    }

    .ud-guven svg {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        fill: none;
        stroke: var(--uk-ana);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Paylaş */
.ud-paylas {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--uk-cizgi);
    font-size: 13px;
    font-weight: 600;
    color: var(--uk-yazi-soluk);
}

    .ud-paylas a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--uk-zemin);
        color: var(--uk-yazi);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .2s ease, color .2s ease;
    }

        .ud-paylas a:hover {
            background: var(--uk-ana);
            color: #fff;
        }

    .ud-paylas svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

/* ================= Sekmeler ================= */
.sap_tabs {
    padding: 0 0 2em;
    font-family: 'Open Sans', sans-serif;
}

    .sap_tabs .resp-tabs-list {
        display: flex;
        gap: 4px;
        margin: 0;
        border-bottom: 1px solid var(--uk-cizgi);
    }

    .sap_tabs .resp-tab-item {
        float: none;
        padding: 12px 18px;
        border: 0;
        border-bottom: 3px solid transparent;
        margin-bottom: -1px;
        background: none;
        color: var(--uk-yazi-soluk);
        font-size: 14px;
        font-weight: 700;
        text-transform: none;
    }

        .sap_tabs .resp-tab-item:hover {
            color: var(--uk-ana);
        }

        .sap_tabs .resp-tab-item.resp-tab-active {
            background: none;
            color: var(--uk-ana);
            border-bottom-color: var(--uk-ana);
        }

    .sap_tabs h2.resp-accordion {
        border-radius: 10px;
        background: var(--uk-zemin);
        color: var(--uk-yazi);
        font-size: 15px;
        font-weight: 700;
    }

        .sap_tabs h2.resp-accordion:hover,
        .sap_tabs h2.resp-accordion.resp-tab-active {
            background: var(--uk-ana);
            color: #fff;
        }

    .sap_tabs .facts {
        padding: 24px 0;
        border: 0;
    }

        .sap_tabs .facts p {
            font-size: 14.5px;
            line-height: 1.75;
            color: #4b5563;
        }

    .sap_tabs .NormalFotoBoyut {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .sap_tabs iframe {
        max-width: 100%;
        border-radius: 12px;
    }

/* ================= Duyarlı ================= */
@media (max-width: 991px) {
    .ud {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ug {
        position: static;
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .ug-ok,
    .ug-kucukler {
        display: none;
    }

    .ug-noktalar {
        display: flex;
    }

    .ug-slayt {
        padding: 20px 20px 32px;
    }

    .ud-bilgi h1 {
        font-size: 21px;
    }

    .ud-fiyat-tutar {
        font-size: 28px;
    }

    .ud-guven {
        grid-template-columns: 1fr;
    }

    .ug-lb {
        padding: 64px 8px;
    }

        .ug-lb .ug-ok {
            display: none;
        }
}
