/* ===========================
   BAĞIŞ SAYFASI
=========================== */

/* Bu sayfada sağ dikey BAĞIŞ YAP butonu gizli */
body.bagis-sayfasi .bagis-fixed { display: none !important; }

.bagis-main {
  background: #f0f2f5;
  min-height: 80vh;
  padding-bottom: 60px;
}
=========================== */
.kategori-bar-wrap {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 62px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.kategori-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6px;
  display: flex;
  align-items: center;
}

.kategori-ok {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 50%;
  cursor: pointer;
  color: #888;
  font-size: 0.7rem;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin: 0 4px;
}
.kategori-ok:hover {
  border-color: #1a8a3a;
  color: #1a8a3a;
  box-shadow: 0 2px 8px rgba(26,138,58,0.15);
}

.kategori-listesi {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  padding: 12px 4px;
  cursor: grab;
  user-select: none;
}
.kategori-listesi::-webkit-scrollbar { display: none; }
.kategori-listesi.dragging { cursor: grabbing; }

/* Kategori butonları */
.kat-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1.5px solid #e8e8e8;
  border-radius: 50px;
  background: #fff;
  color: #555;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.kat-btn:hover {
  border-color: #1a8a3a;
  color: #1a8a3a;
  box-shadow: 0 2px 8px rgba(26,138,58,0.12);
  transform: translateY(-1px);
}

/* Aktif kategori — yeşil kenarlı, hafif yeşil arka plan, yumuşak gölge */
.kat-btn.active {
  border-color: #1a8a3a;
  color: #1a8a3a;
  background: linear-gradient(135deg, #f0faf3 0%, #e6f7ed 100%);
  box-shadow: 0 3px 12px rgba(26,138,58,0.18), inset 0 1px 0 rgba(255,255,255,0.8);
  transform: translateY(-1px);
}

.kat-btn svg { flex-shrink: 0; }

.kat-sayi {
  background: #f0f0f0;
  color: #888;
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 1px;
  transition: all 0.18s;
}
.kat-btn.active .kat-sayi,
.kat-btn:hover .kat-sayi {
  background: #1a8a3a;
  color: #fff;
}

/* ===========================
   BAĞIŞ İÇERİK ALANI
=========================== */
.bagis-icerik {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
  box-sizing: border-box;
}

/* ===========================
   BAĞIŞ KARTLARI
=========================== */
.bagis-kartlar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.bagis-kart {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  padding: 13px 13px 15px;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.bagis-kart:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.bagis-kart.gizli { display: none; }

.bagis-kart-baslik {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1a1a2e;
  text-align: center;
  padding: 0 2px 7px;
  letter-spacing: 0.2px;
  line-height: 1.3;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.bagis-kart-img-wrap {
  width: 100%;
  height: 145px;
  overflow: hidden;
  background: #dde8f0;
  border-radius: 8px;
  flex-shrink: 0;
  margin-bottom: 7px;
}
.bagis-kart-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.bagis-kart:hover .bagis-kart-img-wrap img { transform: scale(1.03); }

.bagis-kart-aciklama {
  font-size: 0.73rem;
  color: #555;
  padding: 0 0 7px;
  line-height: 1.5;
  height: 58px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bagis-kart-alt {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}

/* Tutar + miktar satırı */
.bagis-tutar-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  height: 34px;
}

.bagis-tutar-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-right: 1px solid #e8e8e8;
  padding: 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1a1a2e;
  text-align: left;
  outline: none;
  background: transparent;
  height: 34px;
}
.bagis-tutar-input::-webkit-outer-spin-button,
.bagis-tutar-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bagis-tutar-input[type=number] { -moz-appearance: textfield; }

.bagis-para {
  font-size: 0.85rem;
  color: #888;
  font-weight: 700;
  padding: 0 7px;
  border-right: 1px solid #e8e8e8;
  height: 34px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: transparent;
}

.bagis-miktar-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.miktar-btn {
  background: #fff;
  border: none;
  width: 28px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-weight: 700;
}
.miktar-btn:hover { background: #f5f5f5; }
.miktar-deger {
  width: 26px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a2e;
  border-left: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  height: 34px;
  line-height: 34px;
}

/* Kart butonları */
.bagis-butonlar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.btn-hemen-bagis {
  background: linear-gradient(135deg, #1a8a3a 0%, #15732f 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.25;
  transition: all 0.2s;
  text-align: center;
  box-shadow: 0 2px 8px rgba(26,138,58,0.22);
}
.btn-hemen-bagis:hover {
  background: linear-gradient(135deg, #15732f 0%, #0f5a24 100%);
  box-shadow: 0 4px 14px rgba(26,138,58,0.35);
  transform: translateY(-1px);
}

.btn-sepete-ekle {
  background: #fff;
  color: #1a8a3a;
  border: 2px solid #1a8a3a;
  border-radius: 50px;
  padding: 8px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-sepete-ekle:hover {
  background: #1a8a3a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,138,58,0.25);
  transform: translateY(-1px);
}

/* ===========================
   BAĞIŞ KUTUSU (SAĞ PANEL)
=========================== */
.bagis-kutusu {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.09);
  overflow: hidden;
  position: sticky;
  top: 130px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

.bk-baslik {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* "Sepete Git" butonu — şık pill */
.bk-sepete-git {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fb 100%);
  border: 1.5px solid #c8ddf2;
  color: #1a6fa8;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  transition: all 0.22s;
  text-decoration: none;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(26,111,168,0.1);
}
.bk-sepete-git:hover {
  background: linear-gradient(135deg, #1a6fa8 0%, #135a8c 100%);
  border-color: #1a6fa8;
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,111,168,0.28);
  transform: translateY(-1px);
}

.bk-liste {
  padding: 8px 14px;
  min-height: 60px;
  max-height: 320px;
  overflow-y: auto;
}

.bk-bos {
  font-size: 0.78rem;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
}

/* Sepet öğesi */
.bk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 6px;
}
.bk-item:last-child { margin-bottom: 0; }

.bk-item-sol {
  flex: 1;
  min-width: 0;
}
.bk-item-isim {
  font-weight: 500;
  color: #444;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.bk-item-birim {
  display: none;
}

/* +/- miktar */
.bk-item-miktar-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  flex-grow: 0;
  width: 88px;
}
.bk-miktar-btn {
  background: #fff;
  border: none;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background 0.15s;
}
.bk-miktar-btn:hover { background: #f0f0f0; }
.bk-item-miktar-val {
  width: 36px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1a2e;
  border-left: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  height: 26px;
  line-height: 26px;
  cursor: text;
  outline: none;
  background: #fff;
  border-top: none;
  border-bottom: none;
  padding: 0;
  display: block;
}

.bk-item-tutar {
  font-weight: 700;
  color: #1a8a3a;
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
  flex-grow: 0;
  width: 60px;
  text-align: right;
}

.bk-item-sil {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 2px;
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
  flex-grow: 0;
  width: 18px;
  text-align: center;
  line-height: 1;
}
.bk-item-sil:hover { opacity: 1; }
  transition: opacity 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.bk-item-sil:hover { opacity: 1; }

.bk-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1.5px solid #f0f0f0;
  background: #fff;
}

.bk-toplam-satir {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
}
.bk-toplam-satir strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a2e;
}

/* "Ödemeye Geç" butonu — yeşil gradient, premium */
.bk-odeme-btn {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bk-odeme-btn:hover {
  background: linear-gradient(135deg, #1a8a3a 0%, #15732f 100%);
  box-shadow: 0 4px 14px rgba(26,138,58,0.3);
  transform: translateY(-1px);
}

/* ===========================
   RESPONSİF
=========================== */
@media (max-width: 1024px) {
  .bagis-icerik {
    grid-template-columns: 1fr;
  }
  .bagis-kutusu { position: static; }
  .bagis-kartlar { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .bagis-kartlar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .bagis-kartlar { grid-template-columns: 1fr; }
}
