﻿/* Ürün sayfalarının ORTAK sipariş bloğu (adım adım seçim → ölçü → adet → fiyat → Sepete Ekle)
   ve büyütme penceresi (lightbox) düzeltmesi.
   Kullanan sayfalar: urun-ayrinti.aspx (Gold/Slim ürünler) ve urun-soktak.aspx (Sök-Tak).
   Sınıf önekleri dcs-st-* (ilk olarak Sök-Tak sayfasında yazıldı). Mobil öncelikli. */

.dcs-st-konfig {
    --dcs-st-ikincil: #5b6475;
    --dcs-st-yesil: #1a7f4b;
    --dcs-st-turuncu: #b45309;
    --dcs-st-vurgu: #0d6efd;   /* sitedeki "Sepete Ekle" (btn-primary) mavisi */
}

.dcs-st-konfig fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

    .dcs-st-konfig fieldset legend {
        float: none;
        width: auto;
        padding: 0;
        font-size: 13px;
        margin-bottom: 8px;
    }

/* Klavye ile renk seçerken odak görünür olsun */
.dcs-st-konfig .dcs-renk-secici input[type=radio]:focus-visible + label {
    outline: 3px solid var(--dcs-navy, #16213e);
    outline-offset: 2px;
}
.dcs-st-adet .form-control {
    max-width: 120px;
}

.dcs-st-fiyat {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    min-height: 72px;
    margin-bottom: 12px;
}

.dcs-st-fiyat-etiket,
.dcs-st-fiyat-durum {
    width: 100%;
    font-size: 12.5px;
    color: var(--dcs-st-ikincil);
}

.dcs-st-fiyat-etiket {
    font-weight: 600;
}

.dcs-st-sepet-btn {
    min-height: 48px;
}


.dcs-st-konfig {
    padding: 0;
    overflow: hidden;
}

.dcs-st-adimk {
    padding: 18px 20px;
    scroll-margin-top: calc(var(--dcs-header-h, 72px) + 16px);
}

    .dcs-st-adimk + .dcs-st-adimk {
        border-top: 1px solid #e6ebf3;
    }

.dcs-st-adimk-baslik {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dcs-st-adimk-no {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--dcs-navy, #16213e);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dcs-st-adimk-baslik-metin {
    flex: 1 1 auto;
    min-width: 0;
}

.dcs-st-adimk-ad {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--dcs-navy, #16213e);
    line-height: 1.3;
}

.dcs-st-adimk-ozet {
    display: block;
    font-size: 13px;
    color: var(--dcs-st-yesil);
    font-weight: 600;
}

    .dcs-st-adimk-ozet:empty {
        display: none;
    }

.dcs-st-adimk-govde {
    margin-top: 12px;
}

/* JS açıkken: tamamlanan adımda numara yeşil tike döner (adımlar kapanmaz) */
.js-konfig .dcs-st-adimk[data-durum="tamam"] .dcs-st-adimk-no {
    background: var(--dcs-st-yesil);
    font-size: 0;
}

    .js-konfig .dcs-st-adimk[data-durum="tamam"] .dcs-st-adimk-no::before {
        content: '\f00c';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 13px;
    }

/* ---- Adım 1: kanat kontrol uyarısı ---- */
.dcs-st-kontrol-uyari {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c3f06;
    font-size: 13.5px;
    line-height: 1.5;
}

    .dcs-st-kontrol-uyari i {
        color: var(--dcs-st-turuncu);
        font-size: 17px;
        margin-top: 2px;
    }

/* ---- Kanat tipi seçim kartları ---- */
.dcs-st-secenekler {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dcs-st-secenek {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}

    .dcs-st-secenek input {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
    }

.dcs-st-secenek-kart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    padding: 10px 10px 12px;
    background: #fff;
    border: 2px solid #dfe5ef;
    border-radius: 12px;
    text-align: center;
    transition: border-color .15s, box-shadow .15s;
}

    /* Kanat görselleri dikey; damlalık alt kenarda olduğu için kırpma aşağıya kaydırılır */
    .dcs-st-secenek-kart img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: 50% 75%;
        border-radius: 8px;
        margin-bottom: 6px;
        background: #f1f4f9;
    }

.dcs-st-secenek-ad {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--dcs-navy, #16213e);
}

.dcs-st-secenek-not {
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--dcs-st-ikincil);
}

.dcs-st-secenek:hover .dcs-st-secenek-kart {
    border-color: #b9c6dc;
}

.dcs-st-secenek input:checked + .dcs-st-secenek-kart {
    border-color: var(--dcs-st-vurgu);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

.dcs-st-secenek input:focus-visible + .dcs-st-secenek-kart {
    outline: 3px solid var(--dcs-navy, #16213e);
    outline-offset: 2px;
}

.dcs-st-secenek input:disabled + .dcs-st-secenek-kart {
    opacity: .45;
    cursor: not-allowed;
}

/* Seçili kartta sağ üstte onay işareti (renk tek başına anlam taşımasın) */
.dcs-st-secenek input:checked + .dcs-st-secenek-kart::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dcs-st-vurgu);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Açılış yönü: küçük ikon + yazı düğmeleri ---- */
.dcs-st-yonler {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dcs-st-yon {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 200px;
    margin: 0;
    cursor: pointer;
}

    .dcs-st-yon input {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
    }

.dcs-st-yon-kart {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 6px 10px 6px 8px;
    background: #fff;
    border: 1.5px solid #d6dfee;
    border-radius: 10px;
    transition: border-color .15s, background-color .15s;
}

.dcs-st-yon-ikon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: #5b677d;
}

.dcs-st-yon-ad {
    font-size: 14px;
    font-weight: 600;
    color: var(--dcs-navy, #16213e);
    white-space: nowrap;
}

.dcs-st-yon:hover .dcs-st-yon-kart {
    border-color: #b9c6dc;
}

.dcs-st-yon input:checked + .dcs-st-yon-kart {
    border-color: var(--dcs-st-vurgu);
    background: #f0f6ff;
    box-shadow: 0 0 0 1px var(--dcs-st-vurgu);
}

    .dcs-st-yon input:checked + .dcs-st-yon-kart .dcs-st-yon-ikon {
        color: var(--dcs-navy, #16213e);
    }

.dcs-st-yon input:focus-visible + .dcs-st-yon-kart {
    outline: 3px solid var(--dcs-navy, #16213e);
    outline-offset: 2px;
}

.dcs-st-yon input:disabled + .dcs-st-yon-kart {
    opacity: .45;
    cursor: not-allowed;
}

.dcs-st-montaj-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    min-height: 40px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dcs-navy, #16213e);
    text-decoration: none;
}

    .dcs-st-montaj-link:hover {
        text-decoration: underline;
    }

.dcs-st-konfig .dcs-st-guven {
    margin: 0;
    padding: 12px 20px 16px;
    border-top: 1px solid #e6ebf3;
}
.dcs-st-renk-not {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--dcs-st-ikincil);
}
/* ================= Büyütme penceresi (lightbox) ================= */
/* sitil.css'teki eski genel ".modal { background:white; width:60%; height:80%; overflow:auto; ... }" kuralı
   Bootstrap modalını beyaz bir kutuya hapsediyor. Bu sayfada modal tam ekran, şeffaf ve görsel ekran
   yüksekliğine sığacak şekilde açılır. */
#lightboxModal.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    overflow-x: hidden;
    overflow-y: auto;
}

#lightboxModal .modal-dialog {
    max-width: min(1140px, calc(100vw - 24px));
    margin: 12px auto;
    min-height: calc(100% - 24px);
}

#lightboxModal .modal-content {
    max-height: calc(100vh - 24px);
}

#lightboxModal .modal-body {
    min-height: 0;
}

#lightboxModal img {
    max-width: 100%;
    max-height: calc(100vh - 24px - 46px);   /* alt yazı payı */
    width: auto;
    height: auto;
}

/* ================= Adım 3–4: renk onayı, ölçü alanları, fiyat ve buton durumu ================= */
/* Adım başlığının sağındaki yardım linki (Ölçü nasıl alınır?) */
.dcs-st-baslik-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dcs-st-vurgu);
    text-decoration: none;
}

    .dcs-st-baslik-link:hover {
        text-decoration: underline;
    }


/* ---- Ölçü alanları: büyük kutu, içinde "cm", altında sınır / hata ---- */
.dcs-st-olcu-alanlar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.dcs-st-olcu-etiketi {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--dcs-navy, #16213e);
}

    .dcs-st-olcu-etiketi svg {
        width: 18px;
        height: 18px;
        color: var(--dcs-st-vurgu);
    }

.dcs-st-olcu-kutu {
    position: relative;
}

    .dcs-st-olcu-kutu .form-control {
        height: 52px;
        padding-right: 46px;
        font-size: 18px;
        font-weight: 600;
        border: 2px solid #c9d3e3;
        border-radius: 10px;
        background: #fff;
    }

        .dcs-st-olcu-kutu .form-control::placeholder {
            font-weight: 400;
            font-size: 15px;
            color: #a3adbf;
            font-style: italic;
        }

        .dcs-st-olcu-kutu .form-control:focus {
            border-color: var(--dcs-st-vurgu);
            box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
        }

.dcs-st-olcu-birim {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--dcs-st-ikincil);
    pointer-events: none;
}

.dcs-st-olcu-yardim {
    margin-top: 5px;
    font-size: 12.5px;
    color: var(--dcs-st-ikincil);
}

/* Durumlar: geçerli (yeşil tik), geçersiz / eksik (kırmızı) */
.dcs-st-olcu-alan[data-durum="gecerli"] .form-control {
    border-color: var(--dcs-st-yesil);
}

.dcs-st-olcu-alan[data-durum="gecerli"] .dcs-st-olcu-birim::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--dcs-st-yesil);
    margin-right: 6px;
}

.dcs-st-olcu-alan[data-durum="gecersiz"] .form-control,
.dcs-st-olcu-alan[data-durum="eksik"] .form-control {
    border-color: #dc3545;
    background: #fff8f8;
}

.dcs-st-olcu-alan[data-durum="gecersiz"] .dcs-st-olcu-yardim,
.dcs-st-olcu-alan[data-durum="eksik"] .dcs-st-olcu-yardim {
    color: #b02a37;
    font-weight: 600;
}

/* ---- Adet: − / + ---- */
.dcs-st-adet {
    margin-bottom: 14px;
}

.dcs-st-adet-kutu {
    display: inline-flex;
    align-items: stretch;
    border: 2px solid #c9d3e3;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

    .dcs-st-adet-kutu .form-control {
        width: 60px;
        max-width: none;
        height: 44px;
        border: 0;
        border-radius: 0;
        text-align: center;
        font-weight: 600;
        -moz-appearance: textfield;
    }

        .dcs-st-adet-kutu .form-control::-webkit-outer-spin-button,
        .dcs-st-adet-kutu .form-control::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

.dcs-st-adet-btn {
    width: 44px;
    border: 0;
    background: #f1f4f9;
    color: var(--dcs-navy, #16213e);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

    .dcs-st-adet-btn:hover {
        background: #e4e9f2;
    }

/* ---- Fiyat: ölçü girilene kadar "başlangıç" olarak küçük ve soluk ---- */
.dcs-st-fiyat-bekliyor .dcs-fiyat-buyuk {
    font-size: 18px;
    color: var(--dcs-st-ikincil);
}

.dcs-st-fiyat-bekliyor .dcs-fiyat-eski {
    display: none;
}

.dcs-st-fiyat-bekliyor .dcs-st-fiyat-durum {
    color: var(--dcs-navy, #16213e);
    font-weight: 600;
}

/* ---- Sepete Ekle: hazır değilken gri, ne eksik olduğunu yazar ---- */
.dcs-st-sepet-btn.dcs-st-btn-bekliyor {
    background: #e9edf4;
    border-color: #e9edf4;
    color: #5b6475;
    box-shadow: none !important;
}

/* Eksik adıma gidildiğinde kısa bir vurgu */
@keyframes dcs-st-dikkat {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(13, 110, 253, 0); }
    30% { box-shadow: inset 0 0 0 3px rgba(13, 110, 253, .55); }
}

.dcs-st-dikkat {
    animation: dcs-st-dikkat 1.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .dcs-st-dikkat {
        animation: none;
    }
}

/* ---- Profil tipi (Gold / Slim): küçük ikon + yazı düğmeleri (asp:RadioButtonList → input + label) ---- */
.dcs-st-profil-secici {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .dcs-st-profil-secici input[type=radio] {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
    }

    .dcs-st-profil-secici label {
        flex: 1 1 0;
        min-width: 0;
        max-width: 200px;
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        margin: 0;
        padding: 6px 12px 6px 10px;
        background: #fff;
        border: 1.5px solid #d6dfee;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        color: var(--dcs-navy, #16213e);
        white-space: nowrap;
        cursor: pointer;
        transition: border-color .15s, background-color .15s;
    }

        /* İkon: profil kesiti; Gold kalın, Slim ince çerçeve */
        .dcs-st-profil-secici label::before {
            content: '';
            flex: 0 0 auto;
            width: 28px;
            height: 28px;
            box-sizing: border-box;
            border: 8px solid #5b677d;
            border-radius: 3px;
            background: #fff;
        }

        .dcs-st-profil-secici input[value="Slim(25mm)"] + label::before {
            border-width: 4px;
        }

        .dcs-st-profil-secici label:hover {
            border-color: #b9c6dc;
        }

    .dcs-st-profil-secici input[type=radio]:checked + label {
        border-color: var(--dcs-st-vurgu);
        background: #f0f6ff;
        box-shadow: 0 0 0 1px var(--dcs-st-vurgu);
    }

        .dcs-st-profil-secici input[type=radio]:checked + label::before {
            border-color: var(--dcs-navy, #16213e);
        }

    .dcs-st-profil-secici input[type=radio]:focus-visible + label {
        outline: 3px solid var(--dcs-navy, #16213e);
        outline-offset: 2px;
    }

/* urun-ayrinti: ölçü notu (Sök-Tak'ta urun-soktak.css'te de tanımlı) */
.dcs-st-konfig .dcs-st-olcu-not {
    font-size: 13px;
    color: var(--dcs-st-ikincil);
    margin: 8px 0 12px;
}