/* Sepet stilleri bölümü başlangıcı — SADECE bu sayfaya özel sınıflar.
   .shell/.button/renkler zaten navbar-yeni.css'te yükleniyor;
   body/html sıfırlaması BİLEREK yok. */

.section {
  padding: 44px 0;
}
h1 {
  margin: 0 0 22px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
.cart-guest-note {
  margin: -12px 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-row {
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.cart-row-media {
  width: 70px;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef1ef;
  flex: none;
}
.cart-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-row-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart-row-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  overflow-wrap: break-word;
}
.cart-badge {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.cart-badge-blue {
  background: #0b8db4;
}
.cart-badge-teal {
  background: #0bb495;
}
.cart-row-price {
  flex: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}
.cart-row-remove {
  flex: none;
}
.silbutton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.silbutton svg {
  width: 15px;
  height: 15px;
}
.silbutton:hover {
  color: #a30404;
  border-color: #a30404;
  background: #fdf1f1;
}

.cart-summary {
  position: sticky;
  top: calc(var(--header-height, 113px) + 24px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.cart-summary h2 {
  margin: 0 0 18px;
  font-size: 1.1rem;
}
.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.cart-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}
.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}
.cart-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}
.cart-secure-note svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}
.cart-min-alert {
  margin-top: 6px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 420px;
  margin: 20px auto 0;
  padding: 44px 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.cart-empty svg {
  width: 40px;
  height: 40px;
  color: var(--muted);
}
.cart-empty p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
  .cart-row {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "media info"
      "media price"
      "remove remove";
  }
  .cart-row-media {
    grid-area: media;
    width: 56px;
    height: 62px;
  }
  .cart-row-info {
    grid-area: info;
  }
  .cart-row-price {
    grid-area: price;
  }
  .cart-row-remove {
    grid-area: remove;
    margin-top: 6px;
  }
  .silbutton {
    width: 100%;
    justify-content: center;
  }
}
/* Sepet stilleri bölümü bitişi */

/* ========================================================
   2026-09-29 (Faz 1) — silme onayı + canlı güncelleme
   Kaynak: webrev2/sepet/styles.css (confirm-overlay bölümü)
   ======================================================== */
.cart-empty[hidden],
#sepetOdemeBlok[hidden],
.cart-min-alert[hidden] {
  display: none;
}
.cart-row {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cart-row.is-removing {
  opacity: 0.45;
  pointer-events: none;
}
.cart-row.is-removed {
  opacity: 0;
  transform: translateX(16px);
}
[dir="rtl"] .cart-row.is-removed {
  transform: translateX(-16px);
}
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 24, 28, 0.55);
}
.confirm-overlay[hidden] {
  display: none;
}
.confirm-modal {
  width: min(380px, 100%);
  padding: 28px 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fbeaea;
  color: #c23b3b;
}
.confirm-icon svg {
  width: 24px;
  height: 24px;
}
.confirm-modal h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}
.confirm-modal p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}
.confirm-modal p strong {
  color: var(--ink);
}
.confirm-modal .confirm-error {
  margin-top: -12px;
  color: #c23b3b;
  font-weight: 600;
}
.confirm-actions {
  display: flex;
  gap: 10px;
}
.confirm-actions .button {
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.confirm-cancel {
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
}
.confirm-cancel:hover {
  background: #f1ede4;
}
.confirm-delete {
  color: #fff;
  background: #c23b3b;
}
.confirm-delete:hover {
  background: #a92f2f;
}
.confirm-delete[disabled] {
  opacity: 0.6;
  cursor: wait;
}
/* Faz 1 bitişi */

/* ========================================================
   2026-09-29 (Faz 1b) — satır düzenleme: tutar (webrev2/sepet
   amount-edit) + adet (−/+). Kural: genel/sepet_duzenle_ortak.php
   ======================================================== */
.cart-amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  max-width: 280px;
  white-space: normal;
  transition: opacity 0.2s ease;
}
.cart-row.is-saving .cart-amount {
  opacity: 0.55;
  pointer-events: none;
}
.cart-amount-msg {
  flex-basis: 100%;
  color: #c23b3b;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: end;
}
.cart-amount-msg[hidden],
.cart-amount [hidden] {
  display: none !important;
}
/* Tutar */
.cart-amount .amount-display {
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}
.cart-amount .amount-edit-field {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--teal);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 127, 122, 0.1);
}
.cart-amount .amount-currency {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}
.cart-amount .amount-input {
  width: 84px;
  border: 0;
  background: none;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  text-align: end;
  -moz-appearance: textfield;
  appearance: textfield;
}
.cart-amount .amount-input::-webkit-outer-spin-button,
.cart-amount .amount-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.amount-edit-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.amount-edit-btn:hover {
  color: var(--teal);
  background: #eef7f5;
}
.cart-amount.is-editing .amount-edit-btn {
  color: #fff;
  background: var(--teal);
}
.cart-amount.is-editing .amount-edit-btn:hover {
  background: var(--teal-dark);
}
.amount-edit-btn svg,
.qty-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Adet */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  direction: ltr; /* − solda, + sağda: her dilde aynı */
}
.qty-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--teal);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.qty-btn:hover:not([disabled]) {
  background: #eef7f5;
}
.qty-btn[disabled] {
  color: #c5cfcd;
  cursor: not-allowed;
}
.qty-input {
  width: 42px;
  height: 32px;
  border: 0;
  border-inline: 1px solid var(--line);
  background: transparent;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-input:focus {
  background: #f7faf9;
}
.qty-sum {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}
.qty-sum strong {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}
.qty-sum small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .cart-amount {
    justify-content: flex-start;
    max-width: none;
  }
  .qty-sum {
    align-items: flex-start;
  }
  .cart-amount-msg {
    text-align: start;
  }
}
/* Faz 1b bitişi */

/* ========================================================
   2026-09-30 (revizeler30-09 md.6) — tasarım farkları
   ======================================================== */
.silbutton--ikon {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  border-color: transparent;
  border-radius: 50%;
  background: transparent;
}
.silbutton--ikon:hover {
  color: #c23b3b;
  border-color: transparent;
  background: #fbeaea;
}
.silbutton--ikon svg {
  width: 17px;
  height: 17px;
}
.cart-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 4px;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 700;
}
.cart-continue:hover {
  color: var(--teal-dark);
}
.cart-continue svg {
  width: 15px;
  height: 15px;
}
[dir="rtl"] .cart-continue svg {
  transform: scaleX(-1); /* #i-arrow sola bakıyor: LTR'de geri yön, RTL'de aynala */
}
.cart-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cart-brand {
  display: inline-flex;
  align-items: center;
  height: 22px;
}
.cart-brand-visa {
  color: #1a1f71;
  font-weight: 800;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.cart-brand-mc i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eb001b;
}
.cart-brand-mc i + i {
  margin-left: -8px;
  background: #f79e1b;
  mix-blend-mode: multiply;
}
.cart-brand-troy {
  color: #0a8a5f;
  font-weight: 800;
  font-size: 0.92rem;
}
@media (max-width: 760px) {
  .cart-row .silbutton--ikon {
    width: 38px;
  }
  .cart-row-remove {
    justify-self: end;
  }
}
/* md.6 bitişi */

/* 2026-09-30: tutarlı satırda "n bağış" etiketi (farklı tutarlarla birleşmiş) */
.cart-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef7f5;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* 2026-10-01 (revizeler-1-10 md.4): sepet özeti — tasarımdaki (webrev2/sepet)
   ikonlar ve "Ödeme Bölümüne Git" butonu. .button-primary sitede hiç tanımlı
   değildi (mockup'ın genel CSS'indeydi), buton düz yazı gibi görünüyordu.
   #i-arrow sola bakıyor: ileri yön için LTR'de aynalanır, RTL'de olduğu gibi. */
.cart-summary h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-summary-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaf6f2;
  color: var(--teal);
}
.cart-summary-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-summary-icon-accent {
  stroke: var(--gold);
}
.cart-summary-icon--muted {
  width: 28px;
  height: 28px;
  background: var(--ivory, #fbf9f4);
}
.cart-summary-icon--muted svg {
  width: 21px;
  height: 21px;
}
.cart-summary-row > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-checkout-btn.button-primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 25px rgba(8, 127, 122, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cart-checkout-btn.button-primary:hover {
  color: #fff;
  background: var(--teal-dark, #075b5a);
  transform: translateY(-2px);
}
.cart-checkout-btn svg {
  width: 18px;
  height: 18px;
  transform: scaleX(-1);
}
[dir="rtl"] .cart-checkout-btn svg {
  transform: none;
}
/* md.4 bitişi */

/* 2026-10-02: boş sepet — webrev2/sepet .cart-empty (sol sütunda tam genişlik, kesik
   kenarlık, teal ikon, koyu metin, teal buton). .button-primary sitede genel olarak
   tanımlı olmadığı için burada. */
.cart-list .cart-empty--liste {
  max-width: none;
  margin: 0;
  padding: 60px 20px;
  gap: 14px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius, 18px);
}
.cart-list .cart-empty--liste svg {
  width: 44px;
  height: 44px;
  color: var(--teal);
}
.cart-list .cart-empty--liste p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.cart-empty--liste .button-primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 25px rgba(8, 127, 122, 0.22);
}
.cart-empty--liste .button-primary:hover {
  color: #fff;
  background: var(--teal-dark, #075b5a);
}
.cart-layout--bos .cart-checkout-btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
  box-shadow: none;
}
@media (max-width: 760px) {
  .cart-list .cart-empty--liste {
    padding: 28px 16px;
  }
}
/* boş sepet bitişi */
