/* Sepet sayfası */
.cart-page { padding-bottom: 2rem; }

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

/* ---- Ürün satırları ---- */
.cart-items { overflow: hidden; }
.cart-item { display: flex; gap: 1rem; padding: 1.25rem; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }

.ci-media { flex-shrink: 0; width: 5.5rem; height: 5.5rem; border: 1px solid var(--border); border-radius: .9rem; background: #fff; display: grid; place-items: center; overflow: hidden; }
@media (min-width: 640px) { .ci-media { width: 7rem; height: 7rem; } }
.ci-media img { width: 100%; height: 100%; object-fit: contain; padding: .4rem; }

.ci-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.ci-brand { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .2em; color: var(--primary); }
.ci-title { font-size: 14px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.ci-title a:hover { color: var(--primary); }
.ci-sku { font-size: 11px; color: var(--muted-light); }
.ci-meta { display: flex; flex-wrap: wrap; gap: .35rem .8rem; font-size: 12px; color: var(--muted); }
.ci-meta .ci-swatch { display: inline-block; width: .7rem; height: .7rem; border-radius: 9999px; border: 1px solid var(--border-strong); vertical-align: -1px; margin-right: .25rem; }
.ci-meta .stock-ok { color: var(--emerald-dark); font-weight: 600; }

.ci-actions { display: flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .5rem; }
.ci-fav { display: inline-flex; align-items: center; gap: .35rem; font-size: 12px; font-weight: 600; color: var(--muted); border-radius: 9999px; padding: .35rem .7rem; transition: all .15s; }
.ci-fav:hover { background: var(--primary-soft); color: var(--primary); }
.ci-trash { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9999px; color: var(--muted); transition: all .15s; }
.ci-trash:hover { background: var(--primary-soft); color: var(--primary); }

.ci-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: .75rem; flex-shrink: 0; text-align: right; }
.ci-old { font-size: 12px; color: var(--muted-light); text-decoration: line-through; }
.ci-price { font-size: 18px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
@media (min-width: 640px) { .ci-price { font-size: 20px; } }
.ci-discount { margin-top: .2rem; }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 9999px; overflow: hidden; background: #fff; }
.qty-stepper button { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--fg); transition: background .15s; }
.qty-stepper button:hover { background: var(--surface-subtle); }
.qty-stepper button[disabled] { opacity: .35; pointer-events: none; }
.qty-stepper .qty-val { min-width: 2rem; text-align: center; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---- Sipariş özeti ---- */
.cart-right { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 8.5rem; }
.cart-summary .cs-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.cart-summary h3 { font-size: 1.05rem; font-weight: 800; }
.cart-summary .cs-count { font-size: 12px; color: var(--muted); font-weight: 600; }
.cs-rows { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1rem; }
.cs-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cs-row b { font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.cs-row.cs-discount b, .cs-row.cs-coupon b { color: var(--emerald-dark); }
.cs-grand { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: .8rem; margin-top: .3rem; }
.cs-grand span { font-size: 14px; font-weight: 800; display: block; }
.cs-grand small { font-size: 11px; color: var(--muted); }
.cs-grand b { font-size: 22px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cs-vat { font-size: 11px; color: var(--muted-light); margin: 0; }
.cs-notes { display: flex; flex-direction: column; gap: .3rem; margin: .9rem 0 1rem; }
.cs-notes p { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.cs-notes .cs-free-note { color: var(--emerald-dark); }

/* ---- Kupon / kargo widget ---- */
.cart-widget h4 { display: flex; align-items: center; gap: .45rem; font-size: 14px; font-weight: 800; margin-bottom: .25rem; }
.cart-widget .cw-sub { font-size: 12px; color: var(--muted); margin: 0 0 .75rem; }
.cart-widget .cw-row { display: flex; gap: .5rem; }
.cart-widget .cw-row .form-input { flex: 1; min-width: 0; }
.cart-widget .cw-msg { font-size: 12px; font-weight: 600; margin: .6rem 0 0; }
.cart-widget .cw-msg.ok { color: var(--emerald-dark); }
.cart-widget .cw-msg.err { color: var(--primary); }

.cart-campaign { margin-top: 2rem; }
