/* ==========================================================================
   Balcı teması — ürün listeleme sayfaları (populerurunler/, gununfirsati/)
   Markup: default/parcalar/urun-liste.php · balci.css token'ları; kart stili product.css'te.
   Yapı: breadcrumb → başlık → araç çubuğu (sonuç sayısı + sıralama) → 4 sütun ızgara → sayfalama · boş durum
   Kırılımlar: 1199 / 991 (3 sütun) / 767 (2 sütun) / 575 (dar boşluk, dikey araç çubuğu, kısa sayfalama)
   ========================================================================== */

/* ---------- 1. Sayfa kabuğu ---------- */
.bpb-liste { padding-bottom: var(--bpb-s9); }
.bpb-liste .bpb-breadcrumb { list-style: none; margin: 0; padding: var(--bpb-s4) 0; }
.bpb-liste .bpb-breadcrumb li { display: inline-flex; align-items: center; }
.bpb-liste .bpb-breadcrumb a { color: var(--bpb-text-3); }
.bpb-liste .bpb-breadcrumb [aria-current="page"] { color: var(--bpb-text); }

.bpb-liste__head { margin-bottom: var(--bpb-s5); }
.bpb-liste__head .bpb-page-title { margin: 0; font-size: var(--bpb-fs-title); font-weight: 600; line-height: 28px; color: var(--bpb-text); }
.bpb-liste__sub { margin: var(--bpb-s1) 0 0; font-size: var(--bpb-fs-lg); line-height: 20px; color: var(--bpb-text-2); }

/* ---------- 2. Araç çubuğu ---------- */
.bpb-liste__toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--bpb-s4);
  margin-bottom: var(--bpb-s5); padding: var(--bpb-s3) var(--bpb-s4);
  background: var(--bpb-surface); border: 1px solid var(--bpb-border);
}
.bpb-liste__count { margin: 0; font-size: var(--bpb-fs-md); color: var(--bpb-text-2); }
.bpb-liste__count strong { font-weight: 600; color: var(--bpb-text); }
.bpb-liste__range { color: var(--bpb-text-3); }
.bpb-liste__sort { display: flex; align-items: center; gap: var(--bpb-s2); margin: 0; }
.bpb-liste__sort .bpb-label { margin: 0; white-space: nowrap; }
.bpb-liste__sort .bpb-select { width: auto; min-width: 200px; }
.bpb-liste__sort .bpb-btn { flex-shrink: 0; }

/* ---------- 3. Izgara (4 → 3 → 2) ---------- */
.bpb-liste__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--bpb-s5);
  list-style: none; margin: 0; padding: 0;
}
.bpb-liste__grid > li { min-width: 0; display: flex; }
.bpb-liste__grid > li > .bpb-product { width: 100%; }

/* ---------- 4. Sayfalama ---------- */
.bpb-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--bpb-s2); margin-top: var(--bpb-s7); }
.bpb-pagination__list { display: flex; flex-wrap: wrap; gap: var(--bpb-s2); list-style: none; margin: 0; padding: 0; }
.bpb-pagination .bpb-btn { min-width: 40px; padding: 0 var(--bpb-s3); }
.bpb-pagination .bpb-btn.is-active { background: var(--bpb-primary); border-color: var(--bpb-primary); color: #fff; cursor: default; }
.bpb-pagination__nav { gap: var(--bpb-s1); }
.bpb-pagination__nav[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.bpb-pagination__dots { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 40px; color: var(--bpb-text-3); }
.bpb-pagination__status { display: none; margin: 0; font-size: var(--bpb-fs-md); color: var(--bpb-text-2); }

/* ---------- 5. Boş durum ---------- */
.bpb-liste .bpb-empty h3 { margin: 0 0 var(--bpb-s2); }
.bpb-liste .bpb-empty p { max-width: 480px; margin: 0 auto var(--bpb-s5); }

/* ---------- 6. Kırılımlar ---------- */
@media (max-width: 1199px) {
  .bpb-liste__sort .bpb-select { min-width: 180px; }
}
@media (max-width: 991px) {
  .bpb-liste__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .bpb-liste__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .bpb-liste__grid { gap: var(--bpb-s3); }
  .bpb-liste__toolbar { flex-direction: column; align-items: stretch; gap: var(--bpb-s3); }
  .bpb-liste__sort { flex-wrap: wrap; }
  .bpb-liste__sort .bpb-select { flex: 1 1 160px; min-width: 0; }
  .bpb-pagination__list { display: none; }
  .bpb-pagination__status { display: block; }
  .bpb-pagination { justify-content: space-between; }
}

/* ---------- 7. Hareket ---------- */
@media (prefers-reduced-motion: reduce) {
  .bpb-liste .bpb-btn, .bpb-liste .bpb-select { transition: none; }
}
