/* ============================
   SEPET SAYFASI — MODERN TASARIM
   ============================ */

.sepetPage {
    margin-top: 60px;
    margin-bottom: 80px;
}

/* ---- BOŞ SEPET ---- */
.sepetBosParent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}
.sepetBosIcon {
    font-size: 80px;
    color: var(--black);
    margin-bottom: 20px;
    display: block;
}
.sepetBosParent h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: var(--black);
}
.sepetBosParent div {
    font-size: 14px;
    color: #888;
    margin-bottom: 28px;
}
.sepetBosParent a.btn {
    background-color: var(--black);
    color: #fff;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}
.sepetBosParent a.btn:hover { opacity: 0.75; }

/* ---- ÜST BUTON ALANI ---- */
.buttonLists {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

/* ---- SEPET KAPSUL (tablo wrapper'ı sıfırla) ---- */
.sepetKapsul { background: transparent; }

.sepetTableKapsul {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    margin-bottom: 24px;
    padding: 0;
    overflow: visible;
}

/* Tablo başlık satırını gizle */
.sepetTableKapsul table thead { display: none; }

.sepetKapsul table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
}

/* ---- SEPET SATIRLARI (kart görünümü) ---- */
.sepetKapsul table tr.sepetItem {
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}
.sepetKapsul table tr.sepetItem:last-child {
    border-bottom: none;
}
.sepetKapsul table tr.sepetItem:hover {
    background: #fafafa;
}

.sepetKapsul table td {
    vertical-align: middle !important;
    text-align: center;
    font-size: 14px;
    padding: 18px 14px !important;
    border: none !important;
}

/* Görsel sütunu */
.sepetKapsul table tr td:nth-child(1) { width: 90px; }
.sepetGorsel {
    width: 70px !important;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    background: #fafafa;
    padding: 4px;
}

/* Ürün adı sütunu */
.sepetKapsul table tr td:nth-child(2) {
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--black);
    line-height: 1.4;
}

/* Adet sütunu */
.sepetKapsul table tr td:nth-child(3) { width: 130px; }

/* Fiyat & sil sütunu */
.sepetKapsul table tr td:nth-child(4) { width: 150px; }

/* ---- ADET SAYACI ---- */
.qtyCartAddContainer { justify-content: center; }
.qtyCounter {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e8e8e8;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
}
.qtyCounter button {
    background: transparent;
    border: none;
    width: 32px;
    height: 34px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.qtyCounter button:hover {
    background: var(--green);
    color: var(--black);
}
.qtyCounter input[type=number] {
    width: 38px;
    height: 34px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    -moz-appearance: textfield;
}
.qtyCounter input[type=number]::-webkit-inner-spin-button,
.qtyCounter input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ---- FİYAT & SİL ---- */
.cartPrice { text-align: center; }
.cartPrice ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}
.cartPrice ul li {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
}

a.sepet_remove.carpi {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid #eee;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    margin-bottom: 6px;
}
a.sepet_remove.carpi:hover {
    color: var(--red);
    border-color: var(--red);
    background: #fff0f0;
}

/* ---- KALAN ZAMAN ---- */
.kalanZaman {
    font-size: 11px;
    color: var(--green);
    display: flex;
    justify-content: center;
    gap: 4px;
}
.kalanZaman.kritik { color: var(--red); }

/* ---- ALT BUTONLAR & KOSZUL SEÇİMİ ---- */
.satisKosuluDegistirKapsul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin-bottom: 28px;
}
.satisKosuluDegistirKapsul select {
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid #e8e8e8;
    padding: 0 12px;
    font-size: 13px;
    color: var(--black);
    background: #fff;
    min-width: 160px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.satisKosuluDegistirKapsul select:focus { border-color: var(--green); }

.sepetRightBtns {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
}
.sepetRightBtns a.btn {
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    transition: opacity 0.2s, transform 0.15s;
}
.sepetRightBtns a.btn:hover {
    opacity: 0.82;
    transform: translateY(-1px);
}
.sepetRightBtns a.btn.teklifOlusturBtn {
    background: var(--green);
    color: var(--black);
    border: 2px solid var(--green);
}
.sepetRightBtns a.btn.devamEtBtn {
    background: var(--black);
    color: #fff;
    border: 2px solid var(--black);
}

/* ---- SİPARİŞ ÖZETİ PANELİ ---- */
.siparisOzetiWrap { margin-top: 0; }

.siparisOzeti {
    background: #fff;
    border: 1.5px solid #f0f0f0;
    border-radius: 16px;
    padding: 20px;
    margin-right: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    position: sticky;
    top: 20px;
}
.siparisOzeti h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f0f0f0;
    color: var(--black);
}

.siparisOzeti ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f8f8f8;
}
.siparisOzeti ul:last-of-type { border-bottom: none; }
.siparisOzeti ul li:first-child {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}
.siparisOzeti ul li:last-child {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
}

/* Ödenecek toplam — öne çıkar */
.siparisOzeti ul.odenecekToplamTutar {
    margin-top: 10px;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 10px 12px;
    border: none;
}
.siparisOzeti ul.odenecekToplamTutar li:first-child {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
}
.siparisOzeti ul.odenecekToplamTutar li:last-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.siparisiOnaylaBtn {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.siparisiOnaylaBtn a {
    background: var(--green);
    color: var(--black);
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.15s;
}
.siparisiOnaylaBtn a:hover {
    opacity: 0.82;
    transform: translateY(-1px);
}

/* ---- SATIŞ KOŞULU UYMAYANLAR ---- */
table.satisKosuluUymayanUrunler {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}
table.satisKosuluUymayanUrunler td {
    border: 1px solid #ddd;
    padding: 8px;
}

/* ---- ÖDEME SEPET İÇERİĞİ ---- */
.odemeSepetIcerigiWrap { margin-top: 15px; text-align: left; }
.odemeSepetIcerigiWrap > h3 { margin-bottom: 12px; font-size: 18px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .sepetPage { margin-top: 30px; margin-bottom: 50px; }

    .sepetTableKapsul { border-radius: 12px; }

    .sepetKapsul table tr.sepetItem {
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        padding: 14px;
        gap: 8px;
    }
    .sepetKapsul table td {
        display: block !important;
        width: auto !important;
        padding: 4px 0 !important;
        text-align: left;
    }
    .sepetKapsul table tr.sepetItem td:nth-child(1) {
        grid-row: 1 / 3;
        align-self: center;
    }
    .sepetKapsul table tr.sepetItem td:nth-child(3),
    .sepetKapsul table tr.sepetItem td:nth-child(4) {
        grid-column: 2;
    }
    .sepetGorsel { width: 64px !important; height: 64px; }

    .qtyCartAddContainer { justify-content: flex-start; margin: 4px 0; }

    .cartPrice ul { align-items: flex-start; }
    a.sepet_remove.carpi { margin-bottom: 4px; }

    .satisKosuluDegistirKapsul { padding: 0 4px; }
    .satisKosuluDegistirKapsul select { min-width: 140px; width: 100%; }

    .siparisOzetiWrap { margin-top: 24px; }
    .siparisOzeti { position: static; margin-right: 0; }

    .sepetRightBtns { padding: 0 4px; }
    .sepetRightBtns a.btn { flex: 1; text-align: center; }

    .teklifFormRow table tbody { display: grid; grid-template-columns: repeat(1,1fr); }
    .teklifFormRow table tbody tr { display: flex; flex-direction: column; }
    .teklifFormRow table thead { display: none; }
    .teklifFormDetaylar { width: 100%; }
}
