/* Sepet grubu: Bağış Sepeti (boş / dolu) ve "Bağışınız Sepete Eklendi" penceresi
   Ölçüler: docs/olculer/sepet-sepet-bos.txt, sepet-dolu.txt, bagisiniz-eklendi-pop-up.txt (1440 tasarım)
   Adet kutusu (.adet) bagis.css'ten gelir; bu sayfada bagis.css de yüklenir. */
/* Onay yeşili (--yesil) ortak renktir: site.css :root */

/* ---------- Sayfa iskeleti (ana içerik 200'de başlar; şerit yok) ---------- */
.sepet-sayfa { padding: 14px 0 192px; }
.sepet-sayfa--dolu { padding-bottom: 404px; }
.sepet-sayfa__bant { height: 90px; border-color: var(--lacivert); }
.sepet-sayfa__bant h1 { font-size: 24px; line-height: 29px; font-weight: 800; }

/* ---------- Boş sepet ---------- */
.sepet-bos { display: flex; flex-direction: column; align-items: center; width: 530px; max-width: 100%; height: 300px; margin: 20px auto 0; padding-top: 30px; border: 2px solid var(--gri-zemin-2); border-radius: 12px; text-align: center; }
.sepet-bos[hidden] { display: none; }
.sepet-bos__simge { display: grid; place-items: center; width: 85px; height: 85px; border-radius: 50%; background: var(--gri-zemin); }
.sepet-bos__simge img { width: 35px; height: 45px; }
.sepet-bos h2 { margin-top: 14px; font-size: 16px; line-height: 31px; font-weight: 800; }
.sepet-bos p { margin-top: 2px; font-size: 14px; line-height: 17px; font-weight: 400; }
.sepet-bos__dugme { margin-top: 30px; width: 120px; height: 32px; font-size: 15px; line-height: 19px; font-weight: 700; }

/* ---------- Dolu sepet: kalemler + özet ---------- */
.sepet-dolu { display: grid; grid-template-columns: 900px 280px; justify-content: space-between; align-items: start; margin-top: 20px; }
.sepet-dolu[hidden] { display: none; }
.sepet-kalemler { min-height: 296px; border: 2px solid var(--gri-zemin-2); border-radius: 12px; }
.sepet-liste { padding: 12px 11px 0 13px; }
.sepet-kalem { display: grid; grid-template-columns: 60px minmax(0, 1fr) 80px 218px 58px; align-items: center; padding: 0 5px 14px 0; }
.sepet-kalem + .sepet-kalem { border-top: 2px solid var(--gri-zemin-2); padding-top: 13px; }
.sepet-kalem__gorsel { width: 60px; height: 60px; margin-left: -1px; }
.sepet-kalem__metin { align-self: start; padding: 16px 0 0 13px; min-width: 0; }
.sepet-kalem__ad { font-size: 13px; line-height: 16px; font-weight: 800; }
.sepet-kalem__alt { display: flex; flex-wrap: wrap; gap: 0 9px; margin-top: 2px; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--yazi-2); }
.sepet-kalem__fiyat { justify-self: end; font-size: 12px; line-height: 24px; font-weight: 700; white-space: nowrap; }
.sepet-kalem__fiyat b { font-size: 20px; font-weight: 900; }
.sepet-kalem__sil { justify-self: end; position: relative; width: 36px; height: 36px; border-radius: 50%; }
.sepet-kalem__sil::before, .sepet-kalem__sil::after { content: ""; position: absolute; left: 12.5px; top: 17px; width: 11px; height: 2px; border-radius: 1px; background: var(--gri-ikon); transform: rotate(45deg); }
.sepet-kalem__sil::after { transform: rotate(-45deg); }
.sepet-kalem__sil:hover { background: var(--gri-zemin-2); }
.sepet-kalem__sil:hover::before, .sepet-kalem__sil:hover::after { background: var(--kirmizi); }

.sepet-ozet__baslik { height: 50px; padding: 17px 14px 0; border-radius: 12px 12px 0 0; background: var(--gri-zemin-2); color: var(--mavi); font-size: 15px; line-height: 19px; font-weight: 800; }
.sepet-ozet__govde { padding: 30.5px 12px 12px; border: 2px solid var(--gri-zemin-2); border-top: 0; border-radius: 0 0 12px 12px; }
.sepet-ozet__adet { display: grid; grid-template-columns: 192px auto; font-size: 15px; line-height: 19px; font-weight: 600; }
.sepet-ozet__toplam { display: flex; align-items: center; justify-content: space-between; height: 42px; margin-top: 28.5px; padding: 0 10px; border-radius: 8px; background: var(--gri-zemin); color: var(--lacivert); font-size: 13px; line-height: 16px; font-weight: 800; }
.sepet-ozet__toplam dd { font-size: 12px; line-height: 19px; white-space: nowrap; }
.sepet-ozet__toplam b { font-size: 15px; font-weight: 800; }
.sepet-ozet__odeme { display: flex; align-items: center; justify-content: center; gap: 9px; height: 42px; margin-top: 14px; padding-right: 8px; border-radius: 21px; background: var(--yesil); color: #fff; font-size: 13px; line-height: 16px; font-weight: 800; white-space: nowrap; transition: filter .15s; }
.sepet-ozet__odeme img { width: 16px; height: 14px; }
.sepet-geri { display: flex; align-items: center; justify-content: center; height: 42px; margin-top: 14px; border-radius: 8px; background: var(--kirmizi); color: #fff; font-size: 13px; line-height: 16px; font-weight: 800; transition: filter .15s; }
.sepet-ozet__odeme:hover, .sepet-geri:hover { filter: brightness(1.08); }

/* ---------- "Bağışınız Sepete Eklendi" penceresi (Online Bağış, Eğitim) ---------- */
.eklendi { width: 360px; max-width: calc(100% - 32px); min-height: 320px; padding: 0 0 20px; border: 0; border-radius: 12px; background: #fff; color: var(--yazi); text-align: center; overflow: visible; }
.eklendi:focus { outline: none; }
.eklendi::backdrop { background: rgba(55, 68, 86, .30); -webkit-backdrop-filter: blur(.6px); backdrop-filter: blur(.6px); }
.eklendi__kapat { position: absolute; top: 0; right: 0; width: 32px; height: 32px; border-radius: 50%; }
.eklendi__kapat::before, .eklendi__kapat::after { content: ""; position: absolute; left: 10.5px; top: 15px; width: 11px; height: 2px; border-radius: 1px; background: var(--gri-cizgi); transform: rotate(45deg); }
.eklendi__kapat::after { transform: rotate(-45deg); }
.eklendi__kapat:hover::before, .eklendi__kapat:hover::after { background: var(--yazi-2); }
.eklendi__simge { width: 80px; height: 71px; margin: 55px auto 0; }
.eklendi h2 { margin-top: 30.5px; color: var(--mavi); font-size: 16px; line-height: 20px; font-weight: 800; }
.eklendi p { margin-top: 13px; padding: 0 16px; font-size: 12px; line-height: 15px; font-weight: 700; }
.eklendi__uyari { margin: 14px 16px 0; padding: 8px 10px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-size: 12px; line-height: 16px; font-weight: 600; text-align: left; }
.eklendi__uyari[hidden] { display: none; }
.eklendi__uyari a { color: inherit; text-decoration: underline; }
.eklendi__dugmeler { display: flex; justify-content: center; gap: 10px; margin-top: 44px; padding: 0 16px; }
.eklendi__dugmeler a, .eklendi__dugmeler button { display: flex; align-items: center; justify-content: center; flex: 0 1 140px; height: 36px; border-radius: 8px; font-size: 12px; line-height: 15px; font-weight: 800; white-space: nowrap; transition: filter .15s; }
.eklendi__git { background: var(--gri-zemin-2); color: var(--yazi); }
.eklendi__yeni { background: var(--mavi); color: #fff; }
.eklendi__dugmeler a:hover, .eklendi__dugmeler button:hover { filter: brightness(.96); }
.eklendi__yeni:hover { filter: brightness(1.08) !important; }
/* Online Bağış ürün kartında ad ve görsel Eğitim detayına gider (Bağış Yap artık sepete ekler) */
.urun h2 a:hover { color: var(--mavi); text-decoration: underline; text-underline-offset: 3px; }
/* Tasarımla karşılaştırma ölçümünde pencere tasarımdaki yerinde (sayfanın 388. pikseli)
   (tam sayfa görüntüde perde bütün sayfayı örter; boy betikten --olcum-boy ile gelir) */
.tasarim-olcum .eklendi { position: absolute; top: 388px; margin: 0 auto; }
.tasarim-olcum .eklendi::backdrop { position: absolute; height: var(--olcum-boy, 100%); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1239px) {
  .sepet-sayfa, .sepet-sayfa--dolu { padding-bottom: 64px; }
  .sepet-dolu { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
  .sepet-kalem { grid-template-columns: 60px minmax(0, 1fr) 80px minmax(110px, auto) 58px; column-gap: 0; }
  .sepet-kalem__metin { padding-right: 12px; }
}
@media (max-width: 1023px) {
  .urun h2 { margin-top: 12px; }
  .urun h2 a { display: inline-block; padding: 8px 0; }
  .urun h2 + label + .ulke { margin-top: 7px; }
  .sepet-dolu { grid-template-columns: minmax(0, 1fr); }
  .sepet-ozet-kap { width: 100%; max-width: 480px; justify-self: end; }
  .sepet-kalem { grid-template-columns: 60px minmax(0, 1fr) 96px minmax(110px, auto) 50px; }
}
@media (max-width: 767px) {
  .sepet-bos { height: auto; padding: 28px 16px 30px; }
  .sepet-bos h2 { line-height: 24px; }
  .sepet-bos__dugme { width: 160px; height: 40px; }
  .sepet-kalemler { min-height: 0; }
  .sepet-liste { padding: 12px 12px 0; }
  .sepet-kalem { grid-template-columns: 60px minmax(0, 1fr) auto; grid-template-areas: "g m s" "g a f"; row-gap: 8px; padding-right: 0; }
  .sepet-kalem__gorsel { grid-area: g; align-self: start; margin-left: 0; }
  .sepet-kalem__metin { grid-area: m; padding: 4px 8px 0 12px; }
  .sepet-kalem__ad { font-size: 14px; line-height: 18px; }
  .sepet-kalem__alt { font-size: 12px; line-height: 16px; }
  .sepet-kalem .adet { grid-area: a; margin-left: 12px; }
  .sepet-kalem__fiyat { grid-area: f; align-self: center; }
  .sepet-kalem__sil { grid-area: s; align-self: start; margin-right: -6px; }
  .sepet-ozet-kap { max-width: none; }
  .sepet-ozet__adet { grid-template-columns: 1fr auto; }
  .sepet-ozet__odeme, .sepet-geri { height: 46px; }
  .eklendi { min-height: 0; }
  .eklendi__kapat { width: 40px; height: 40px; }
  .eklendi__kapat::before, .eklendi__kapat::after { left: 14.5px; top: 19px; }
  .eklendi__simge { margin-top: 40px; }
  .eklendi h2 { margin-top: 22px; }
  .eklendi__dugmeler { margin-top: 28px; }
  .eklendi__dugmeler a, .eklendi__dugmeler button { height: 40px; }
}
