/* ═══ Teklif Sepeti — /sepet ═══ */
.sp-page {
    --sp-navy: #0d395e; --sp-steel: #79a1bb;
    --sp-line: rgba(13, 57, 94, .12);
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.sp-title { font-size: 1.15rem; font-weight: 700; color: var(--sp-navy); margin: 0; }
[data-theme="dark"] .sp-title { color: #cfe0ec; }

/* Bilgi mesajı */
.sp-alert {
    display: flex; align-items: center; gap: .55rem;
    background: rgba(47, 158, 99, .1); color: #23744a;
    border: 1px solid rgba(47, 158, 99, .3); border-radius: 12px;
    padding: .85rem 1.1rem; margin-bottom: 1.25rem; font-weight: 600; font-size: .92rem;
}

/* Boş sepet */
.sp-empty { text-align: center; padding: clamp(3rem, 8vw, 5rem) 1rem; }
.sp-empty i { font-size: 3rem; color: var(--sp-steel); display: block; margin-bottom: 1rem; }
.sp-empty h2 { font-size: 1.3rem; font-weight: 700; color: var(--sp-navy); margin: 0 0 .5rem; }
[data-theme="dark"] .sp-empty h2 { color: #cfe0ec; }
.sp-empty p { color: var(--muted, #6b7280); margin: 0 0 1.5rem; }

/* Düzen: sol kartlar + sağ yapışkan özet */
.sp-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 992px) { .sp-grid { grid-template-columns: 1fr 360px; gap: 2rem; } }

.sp-items__head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; }
.sp-count { color: var(--muted, #6b7280); font-size: .9rem; font-weight: 600; }

/* Ürün kartı satırı */
.sp-item {
    display: flex; align-items: center; gap: 1rem;
    background: var(--surface, #fff); border: 1px solid var(--sp-line);
    border-radius: 16px; padding: .9rem 1rem; margin-bottom: .75rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.sp-item:hover { border-color: rgba(121, 161, 187, .55); box-shadow: 0 10px 26px -14px rgba(13, 57, 94, .25); }
[data-theme="dark"] .sp-item { background: #1b1c1f; border-color: rgba(255, 255, 255, .1); }

.sp-item__img {
    flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; object-fit: cover;
    background: #eef2f6;
}
.sp-item__img--bos { display: inline-flex; align-items: center; justify-content: center; color: #b6c2cd; font-size: 1.4rem; }

.sp-item__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.sp-item__ad { font-weight: 700; font-size: .95rem; color: var(--text, #1d1d1f); text-decoration: none; }
a.sp-item__ad:hover { color: var(--sp-steel); }
.sp-item__birim { color: var(--muted, #6b7280); font-size: .8rem; font-variant-numeric: tabular-nums; }
.sp-item__not { color: var(--muted, #6b7280); font-size: .74rem; }

/* Miktar stepper'ı — vitrindeki dille aynı */
.sp-stepper {
    flex: 0 0 auto; display: inline-flex; align-items: stretch;
    height: 44px; border-radius: 12px; overflow: hidden;
    background: var(--surface, #fff); border: 1.5px solid rgba(13, 57, 94, .16);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.sp-stepper:focus-within { border-color: var(--sp-steel); box-shadow: 0 0 0 3px rgba(121, 161, 187, .22); }
[data-theme="dark"] .sp-stepper { background: #202124; border-color: rgba(255, 255, 255, .16); }
.sp-step {
    width: 30px; border: 0; background: transparent; color: rgba(13, 57, 94, .55);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.sp-step:hover { background: rgba(121, 161, 187, .14); color: var(--sp-navy); }
[data-theme="dark"] .sp-step { color: rgba(255, 255, 255, .55); }
.sp-qty {
    width: 44px; border: 0; background: transparent; text-align: center;
    font-size: .95rem; font-weight: 700; color: var(--text, #1d1d1f);
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield; appearance: textfield;
}
.sp-qty::-webkit-outer-spin-button, .sp-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-qty:focus { outline: none; }

/* Satır tutarı */
.sp-item__tutar {
    flex: 0 0 auto; min-width: 110px; text-align: right;
    font-weight: 800; color: var(--sp-navy); font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .sp-item__tutar { color: #cfe0ec; }

/* Kaldır — yıkıcı eylem ayrık ve belirgin */
.sp-sil { flex: 0 0 auto; }
.sp-sil__btn {
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: transparent; color: var(--muted, #8a929b); font-size: 1.05rem;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s ease, color .2s ease;
}
.sp-sil__btn:hover { background: rgba(192, 57, 43, .1); color: #c0392b; }
.sp-sil__btn:focus-visible { outline: 2px solid #c0392b; outline-offset: 2px; }

.sp-devam {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem;
    color: var(--sp-navy); font-weight: 600; font-size: .9rem; text-decoration: none;
}
.sp-devam:hover { color: var(--sp-steel); }
[data-theme="dark"] .sp-devam { color: #cfe0ec; }

/* Özet paneli — masaüstünde yapışkan */
.sp-ozet {
    background: var(--surface, #fff); border: 1px solid var(--sp-line);
    border-radius: 16px; padding: 1.4rem 1.3rem;
    box-shadow: 0 14px 34px -18px rgba(13, 57, 94, .25);
}
[data-theme="dark"] .sp-ozet { background: #1b1c1f; border-color: rgba(255, 255, 255, .1); }
@media (min-width: 992px) { .sp-ozet { position: sticky; top: calc(var(--eh-h, 130px) + 16px); } }
.sp-ozet .sp-title { margin-bottom: 1rem; }
.sp-ozet__satir {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: .5rem 0; color: var(--muted, #6b7280); font-size: .92rem;
    border-bottom: 1px dashed rgba(121, 161, 187, .35);
}
.sp-ozet__satir--toplam { border-bottom: 0; padding-top: .8rem; color: var(--text, #1d1d1f); }
.sp-ozet__satir--toplam strong { font-size: 1.3rem; color: var(--sp-navy); font-variant-numeric: tabular-nums; }
[data-theme="dark"] .sp-ozet__satir--toplam strong { color: #cfe0ec; }
.sp-ozet__satir small { font-weight: 400; color: var(--muted, #6b7280); }
.sp-ozet__not { color: var(--muted, #6b7280); font-size: .88rem; margin: .8rem 0; }
.sp-ozet__hint { color: var(--muted, #6b7280); font-size: .8rem; line-height: 1.6; margin: .8rem 0 0; }

/* Butonlar */
.sp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .8rem 1.8rem; border: 0; border-radius: 12px;
    font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
.sp-btn--primary { background: var(--sp-navy); color: #fff !important; }
.sp-btn--primary:hover { background: var(--sp-steel); }
.sp-btn--primary:active { transform: scale(.98); }
.sp-btn--full { width: 100%; margin-top: .9rem; }
.sp-btn:focus-visible { outline: 3px solid rgba(121, 161, 187, .55); outline-offset: 2px; }

/* Mobil: kart iki satıra iner — üstte görsel+ad, altta stepper/tutar/sil */
@media (max-width: 575.98px) {
    .sp-item { flex-wrap: wrap; }
    .sp-item__info { flex: 1 1 calc(100% - 88px); }
    .sp-stepper { order: 3; }
    .sp-item__tutar { order: 4; flex: 1 1 auto; }
    .sp-sil { order: 5; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-item, .sp-stepper, .sp-step, .sp-sil__btn, .sp-btn, .sp-devam { transition: none; }
    .sp-btn--primary:active { transform: none; }
}
