/* ══════════════════════════════════════════════════════════════════════
   NRS DRAWER — sepet / giriş / kayıt için tek panel
   Masaüstü: sağdan kayar.  Mobil: alttan yükselen sheet.
   ══════════════════════════════════════════════════════════════════════ */
.nrs-dw-katman {
    position: fixed; inset: 0; z-index: 11000;
    background: rgba(10, 12, 15, .45);
    opacity: 0; transition: opacity .3s ease;
}
.nrs-dw-katman.acik { opacity: 1; }
.nrs-dw-katman[hidden] { display: none; }

.nrs-dw-panel {
    position: absolute; top: 0; right: 0;
    width: min(440px, 100%); height: 100%;
    display: flex; flex-direction: column;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22, .8, .3, 1);
}
.nrs-dw-katman.acik .nrs-dw-panel { transform: none; }

.nrs-dw-ust {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid #eceef1; flex: 0 0 auto;
}
.nrs-dw-baslik {
    margin: 0; font-size: 15px; font-weight: 800;
    letter-spacing: .05em; text-transform: uppercase; color: #14171c;
}
.nrs-dw-kapat {
    background: none; border: 0; font-size: 28px; line-height: 1;
    color: #14171c; cursor: pointer; padding: 0 4px;
}
.nrs-dw-kapat:hover { opacity: .6; }

.nrs-dw-icerik { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.nrs-dw-icerik[hidden] { display: none; }

/* AJAX ile gelen sepet içeriği bu kabın İÇİNE basılır. Kap düz bir div olarak
   kalırsa .nrs-dw-govde (kayan liste) ile .nrs-dw-alt (ödeme butonları) flex
   kardeşi olmaz; liste tüm yüksekliği yer, alt blok panelin dışına taşar ve
   "Ödeme Yap" görünmez. Bu yüzden kap da flex sütun olmak zorunda. */
#nrsDwSepet {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.nrs-dw-govde { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 20px; }
.nrs-dw-yukleniyor { padding: 40px 20px; text-align: center; color: #767677; font-size: 14px; }

/* ── Sepet satırları ── */
.nrs-dw-liste { list-style: none; margin: 0; padding: 0; }
.nrs-dw-satir {
    display: grid;
    grid-template-columns: 72px 1fr auto auto;
    gap: 12px; align-items: center;
    padding: 14px 0; border-bottom: 1px solid #f1f2f4;
}
.nrs-dw-gorsel img { width: 72px; height: 72px; object-fit: contain; box-sizing: border-box; padding: 3px; background: #f5f6f7; display: block; border-radius: 4px; }
.nrs-dw-bilgi { min-width: 0; }
.nrs-dw-ad {
    display: block; font-size: 13.5px; line-height: 1.35; color: #14171c;
    text-decoration: none;
}
.nrs-dw-varyant { display: block; margin-top: 2px; font-size: 12px; color: #767677; }
.nrs-dw-fiyat { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 700; }

.nrs-dw-adet {
    display: inline-flex; align-items: center; gap: 2px;
    border: 1px solid #d5d9df; border-radius: 6px;
}
.nrs-dw-adet button {
    width: 28px; height: 30px; border: 0; background: none;
    font-size: 15px; cursor: pointer; color: #14171c;
}
.nrs-dw-adet span { min-width: 24px; text-align: center; font-size: 13.5px; font-weight: 600; }
.nrs-dw-sil {
    background: none; border: 0; font-size: 20px; color: #9aa0a8; cursor: pointer; padding: 0 2px;
}
.nrs-dw-sil:hover { color: #e32b2b; }

.nrs-dw-kamp { margin-bottom: 14px; }
.nrs-dw-kamp .nrs-kamp { padding: 10px 12px; }

/* ── Öneriler ── */
.nrs-dw-oneri { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eceef1; }
.nrs-dw-oneri-baslik {
    margin: 0 0 12px; font-size: 12px; font-weight: 800;
    letter-spacing: .05em; text-transform: uppercase; color: #14171c;
}
/* Kompakt 2 sütunlu kutucuklar — dikey liste panelde dağınık duruyordu */
.nrs-dw-oneri-liste {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.nrs-dw-oneri-kart {
    display: block;
    padding: 8px;
    border: 1px solid #eceef1;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease;
}
.nrs-dw-oneri-kart:hover { border-color: #14171c; }
.nrs-dw-oneri-kart img {
    width: 100%; height: auto; aspect-ratio: 1 / 1;
    object-fit: contain; box-sizing: border-box; padding: 4px; background: #f5f6f7; display: block; border-radius: 4px;
}
.nrs-dw-oneri-ad {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 7px;
    font-size: 12px; line-height: 1.3; min-height: 2.6em;
}
.nrs-dw-oneri-fiyat { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 800; }

/* ── Alt özet ── */
.nrs-dw-alt { flex: 0 0 auto; padding: 16px 20px 20px; border-top: 1px solid #eceef1; background: #fff; }
.nrs-dw-satir-ozet { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.nrs-dw-satir-ozet strong { font-weight: 800; }
.nrs-dw-indirim { color: #2e8b6f; }
.nrs-dw-not { margin: 6px 0 14px; font-size: 11.5px; color: #767677; }
.nrs-dw-butonlar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.nrs-dw-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 16px; border-radius: 6px; border: 1.5px solid #14171c;
    background: #fff; color: #14171c; text-decoration: none;
    font-size: 13px; font-weight: 700; letter-spacing: .03em; cursor: pointer;
}
.nrs-dw-btn--dolu { background: #14171c; color: #fff; }
.nrs-dw-btn--dolu:hover { background: #2e8b6f; border-color: #2e8b6f; }
.nrs-dw-genis { width: 100%; margin-top: 6px; }

/* ── Boş sepet ── */
.nrs-dw-bos { padding: 60px 24px; text-align: center; }
.nrs-dw-bos-baslik { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.nrs-dw-bos-not { margin: 0 0 20px; font-size: 13.5px; color: #767677; }

/* ── Formlar ── */
.nrs-dw-form { padding: 20px; overflow-y: auto; }
.nrs-dw-alan { display: block; margin-bottom: 14px; }
.nrs-dw-alan > span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; color: #4a4f57; }
.nrs-dw-alan input {
    width: 100%; padding: 12px 13px; border: 1.5px solid #d5d9df;
    border-radius: 6px; font-size: 14px; font-family: inherit;
}
.nrs-dw-alan input:focus { outline: none; border-color: #14171c; }
.nrs-dw-ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nrs-dw-onay { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 16px; font-size: 12.5px; color: #4a4f57; }
.nrs-dw-onay input { margin-top: 2px; }
.nrs-dw-uyari {
    margin-bottom: 14px; padding: 11px 13px; border-radius: 6px;
    background: #fdecea; border: 1px solid #f5c6c2; color: #a72820; font-size: 13px;
}
.nrs-dw-kod-bilgi {
    margin-bottom: 14px; padding: 11px 13px; border-radius: 6px;
    background: #f2fbf7; border: 1px solid #cdeade; color: #1f6f5c; font-size: 12.5px;
}
.nrs-dw-kod-bilgi code { font-weight: 800; letter-spacing: .08em; }
.nrs-dw-alt-link {
    display: flex; flex-direction: column; gap: 10px; align-items: center;
    margin-top: 18px; font-size: 13px;
}
.nrs-dw-alt-link a, .nrs-dw-alt-link button {
    background: none; border: 0; color: #14171c; cursor: pointer;
    font-size: 13px; font-family: inherit; text-decoration: none;
}
.nrs-dw-alt-link a:hover, .nrs-dw-alt-link button:hover { text-decoration: underline; }

/* ══ MOBİL: alttan yükselen sheet ══ */
@media (max-width: 640px) {
    .nrs-dw-panel {
        top: auto; bottom: 0; right: 0; left: 0;
        width: 100%; height: min(92vh, 100%);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, .22);
        transform: translateY(100%);
    }
    .nrs-dw-katman.acik .nrs-dw-panel { transform: none; }
    /* Sürükleme tutamağı */
    .nrs-dw-ust::before {
        content: ''; position: absolute; top: 8px; left: 50%;
        transform: translateX(-50%);
        width: 38px; height: 4px; border-radius: 99px; background: #d5d9df;
    }
    .nrs-dw-ust { position: relative; padding-top: 22px; }
    .nrs-dw-butonlar { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .nrs-dw-katman, .nrs-dw-panel { transition: none; }
}

/* Kargo/Toplam satırları — "Ücretsiz" vurgusu ve genel toplam ayrımı */
.nrs-dw-bedava { font-weight: 800; letter-spacing: .02em; }
.nrs-dw-satir-ozet.nrs-dw-genel {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #eceef1;
    font-size: 15px;
}
.nrs-dw-satir-ozet.nrs-dw-genel strong { font-size: 16px; }
