/* Ödeme sayfası */
.checkout-page { padding-bottom: 2.5rem; }
.checkout-page .page-hero p { display: flex; align-items: center; gap: .45rem; }

.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: minmax(0, 1fr) 24rem; } }

.checkout-steps { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

/* ---- Adım kartı ---- */
.step-card { overflow: hidden; }
.step-head { display: flex; align-items: flex-start; gap: .9rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.step-no { flex-shrink: 0; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9999px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 900; box-shadow: var(--shadow-sm); }
.step-head h2 { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.step-head p { margin: .2rem 0 0; font-size: 12px; color: var(--muted); }
.step-body { padding: 1.25rem 1.5rem 1.5rem; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-input.invalid, .form-select.invalid, .form-textarea.invalid { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(228,17,17,.1); }

/* ---- Fatura ---- */
.billing-same-check { margin-bottom: 1rem; font-weight: 600; }
.billing-type-row { display: flex; gap: .5rem; margin-bottom: 1rem; }
.pill-radio { position: relative; cursor: pointer; }
.pill-radio input { position: absolute; opacity: 0; pointer-events: none; }
.pill-radio span { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 9999px; padding: .45rem 1.1rem; font-size: 13px; font-weight: 700; color: var(--muted); background: #fff; transition: all .15s; }
.pill-radio input:checked + span { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ---- Seçenek kartları (teslimat / kargo / ödeme) ---- */
.option-list { display: flex; flex-direction: column; gap: .6rem; }
.option-card { display: flex; align-items: center; gap: .8rem; border: 1px solid var(--border-strong); border-radius: .9rem; padding: .9rem 1rem; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.option-card:hover { border-color: var(--fg); }
.option-card input { flex-shrink: 0; width: 1rem; height: 1rem; accent-color: var(--primary); }
.option-card:has(input:checked) { border-color: var(--primary); background: #fffafa; box-shadow: 0 0 0 3px rgba(228,17,17,.07); }
.oc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.oc-body b { font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; }
.oc-body small { font-size: 12px; color: var(--muted); }
.oc-body .oc-note { display: inline-flex; align-items: center; gap: .3rem; color: var(--emerald-dark); font-weight: 600; }
.oc-side { flex-shrink: 0; font-size: 13px; font-weight: 800; color: var(--emerald-dark); }

/* ---- Uygula satırları (kupon / puan / hediye kartı) ---- */
.apply-row { display: flex; gap: .5rem; max-width: 26rem; }
.apply-row .form-input { flex: 1; min-width: 0; }
.apply-msg { font-size: 12px; font-weight: 600; margin: .6rem 0 0; }
.apply-msg.ok { color: var(--emerald-dark); }
.apply-msg.err { color: var(--primary); }

.points-info { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; font-size: 13px; color: var(--fg); margin: 0 0 .75rem; }
.step-note { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; font-size: 13px; color: var(--muted); margin: .9rem 0 0; }
.step-note a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.store-credit { display: flex; align-items: center; gap: .45rem; font-size: 13px; color: var(--muted); margin: .9rem 0 0; }

/* ---- Onay ---- */
.step-card .form-check { margin-bottom: .8rem; }
.terms-link { color: var(--primary); font-weight: 700; text-decoration: underline; margin-left: .25rem; }

/* ---- Sipariş özeti ---- */
.checkout-side { position: sticky; top: 8.5rem; }
.order-summary .os-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.order-summary h3 { font-size: 1.05rem; font-weight: 800; }
.os-edit { display: inline-flex; align-items: center; gap: .3rem; font-size: 12px; font-weight: 700; color: var(--muted); transition: color .15s; }
.os-edit:hover { color: var(--primary); }

.os-items { display: flex; flex-direction: column; gap: .75rem; max-height: 21rem; overflow-y: auto; padding-right: .25rem; margin-bottom: 1rem; }
.os-item { display: flex; gap: .7rem; align-items: center; }
.os-item-media { flex-shrink: 0; width: 3.25rem; height: 3.25rem; border: 1px solid var(--border); border-radius: .7rem; background: #fff; display: grid; place-items: center; overflow: hidden; }
.os-item-media img { width: 100%; height: 100%; object-fit: contain; padding: .25rem; }
.os-item-main { flex: 1; min-width: 0; }
.os-item-name { font-size: 12.5px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.os-item-meta { font-size: 11px; color: var(--muted); margin-top: .15rem; }
.os-item-price { flex-shrink: 0; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }

.os-rows { display: flex; flex-direction: column; gap: .55rem; border-top: 1px solid var(--border); padding-top: 1rem; margin-bottom: 1rem; }
.os-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.os-row b { font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.os-row.os-green b { color: var(--emerald-dark); }
.os-grand { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: .8rem; margin-top: .3rem; }
.os-grand span { font-size: 14px; font-weight: 800; display: block; }
.os-grand small { font-size: 11px; color: var(--muted); }
.os-grand b { font-size: 22px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.os-vat { font-size: 11px; color: var(--muted-light); margin: 0; }

.os-trust { display: flex; flex-direction: column; gap: .35rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.os-trust p { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.os-trust p:first-child { color: var(--emerald-dark); }
