/* ═══════════════════════════════════════════════════════════════════════
   Uyan Parça — Kategori / Arama listesi (OPB_LISTE_V1 · Eki 2026). Yalnız category.html.
   Görünüm katmanı: filtre işlevleri (applyFilters, applyPresetPrice…) aynen çalışır.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --l-gece: #003330; --l-lacivert: #00483f; --l-turuncu: #ec6a0a; --l-turuncu-2: #f5862f; --l-turuncu-acik: #fde6d3;
  --l-zemin: #f3f8f7; --l-cizgi: #dbe7e4; --l-metin: #10302c; --l-soluk: #586b68; --l-celik: #9db0c4;
  --l-kenar: clamp(16px, 2.4vw, 48px);
}
body.opb-liste { background: var(--l-zemin); }
body.opb-liste .container { max-width: none !important; width: 100% !important; box-sizing: border-box; padding-left: var(--l-kenar) !important; padding-right: var(--l-kenar) !important; }

/* Başlık */
body.opb-liste #wzBreadcrumbs { margin-top: 18px; font-size: 12.5px; color: var(--l-soluk); }
body.opb-liste #wzBreadcrumbs a { color: var(--l-turuncu) !important; font-weight: 600; }
body.opb-liste #wzCatHeaderCard { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 8px 0 18px !important; margin: 0 !important; }
body.opb-liste #wzCatTitle { font-family: OpbSora, Inter, sans-serif !important; font-weight: 700 !important; font-size: clamp(22px, 2vw, 30px) !important; color: var(--l-lacivert) !important; text-transform: none !important; letter-spacing: -.015em; }
body.opb-liste #wzCatTitle .u-sayi { display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--l-turuncu-acik); color: #b5510a; font-family: Inter, sans-serif; font-size: 13px; font-weight: 700; vertical-align: 6px; }
body.opb-liste .u-gorunum { display: none !important; }
body.opb-liste #wzSort { height: 44px !important; border-radius: 12px !important; border: 1.5px solid var(--l-cizgi) !important; background-color: #fff !important; font-weight: 600 !important; color: var(--l-lacivert) !important; padding: 0 36px 0 14px !important; cursor: pointer; }

/* Yerleşim */
body.opb-liste .wz-layout { display: grid !important; grid-template-columns: 290px minmax(0, 1fr) !important; gap: clamp(18px, 2vw, 32px) !important; align-items: start; }

/* ── Sol panel ────────────────────────────────────────────────────── */
body.opb-liste #wzSidebar {
  width: auto !important; position: sticky; top: 16px; background: #fff !important; border: 1px solid var(--l-cizgi) !important;
  border-radius: 22px !important; padding: 6px 0 !important; box-shadow: 0 1px 2px rgba(0, 51, 48,.04), 0 14px 34px rgba(0, 51, 48,.06) !important;
  max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin;
}
body.opb-liste .wz-sidebar-section { padding: 16px 20px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--l-cizgi) !important; }
body.opb-liste .wz-sidebar-section:last-child { border-bottom: 0 !important; }
body.opb-liste .wz-sidebar-section h3 {
  display: flex !important; align-items: center; justify-content: space-between; margin: 0 0 12px !important;
  font-family: OpbSora, Inter, sans-serif !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .1em; text-transform: uppercase; color: var(--l-lacivert) !important;
}
body.opb-liste .wz-sidebar-section.collapsed h3 { margin-bottom: 0 !important; }
body.opb-liste .wz-sidebar-section h3 .chevron { font-size: 0 !important; width: 24px; height: 24px; border-radius: 8px; background: var(--l-zemin); position: relative; transition: transform .25s; transform: none !important; }
body.opb-liste .wz-sidebar-section h3 .chevron::before { content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 6px; border-right: 2px solid var(--l-lacivert); border-bottom: 2px solid var(--l-lacivert); transform: rotate(45deg); }
body.opb-liste .wz-sidebar-section.collapsed h3 .chevron { transform: rotate(-90deg) !important; }

/* Marka listesi */
body.opb-liste .wz-sidebar-cat-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
body.opb-liste .wz-sidebar-cat-item a {
  display: flex !important; align-items: center; gap: 12px; padding: 7px 10px !important; border-radius: 12px; text-decoration: none;
  color: var(--l-metin) !important; font-size: 14px !important; font-weight: 600 !important; transition: background .2s, color .2s;
}
body.opb-liste .wz-sidebar-cat-item a:hover { background: var(--l-zemin); color: var(--l-turuncu) !important; }
body.opb-liste .wz-sidebar-cat-item.active a, body.opb-liste .wz-sidebar-cat-item a.active { background: var(--l-turuncu-acik); color: #b5510a !important; }
.u-l-halka { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--m, var(--l-cizgi)); background: #fff; box-shadow: inset 0 0 0 2px #fff; overflow: hidden; }
.u-l-halka img { width: 66%; height: 66%; object-fit: contain; }
.u-l-halka b { font-family: OpbSora, Inter, sans-serif; color: var(--m); font-size: 13px; }
body.opb-liste .wz-sidebar-cat-item a .u-l-ok { margin-left: auto; width: 6px; height: 6px; border-right: 2px solid var(--l-celik); border-top: 2px solid var(--l-celik); transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
body.opb-liste .wz-sidebar-cat-item a:hover .u-l-ok { opacity: 1; border-color: var(--l-turuncu); }

/* Kelime ara */
body.opb-liste #wzCatSearchInput { height: 42px !important; border-radius: 12px !important; border: 1.5px solid var(--l-cizgi) !important; font-size: 14px !important; padding: 0 12px !important; }
body.opb-liste #wzCatSearchInput:focus { border-color: var(--l-lacivert) !important; box-shadow: 0 0 0 4px rgba(236, 106, 10,.12); }
body.opb-liste .wz-sidebar-section .wz-btn-primary { height: 42px !important; padding: 0 16px !important; border-radius: 12px !important; background: var(--l-turuncu) !important; border: 0 !important; font-weight: 700 !important; }

/* Onay kutuları ve seçenekler: tıklanabilir satırlar */
body.opb-liste .wz-filter-checkbox-list { display: grid !important; gap: 4px !important; }
body.opb-liste .wz-filter-checkbox-item { display: flex !important; align-items: center; gap: 10px; padding: 8px 10px !important; border-radius: 10px; cursor: pointer; font-size: 13.5px !important; color: var(--l-metin) !important; font-weight: 500; transition: background .2s; margin: 0 !important; }
body.opb-liste .wz-filter-checkbox-item:hover { background: var(--l-zemin); }
body.opb-liste .wz-filter-checkbox-item input { width: 18px; height: 18px; accent-color: var(--l-turuncu); margin: 0 !important; flex: 0 0 auto; }
body.opb-liste .wz-filter-checkbox-item:has(input:checked) { background: var(--l-turuncu-acik); color: #b5510a !important; font-weight: 700; }
body.opb-liste .wz-price-range input { height: 40px !important; border-radius: 10px !important; border: 1.5px solid var(--l-cizgi) !important; }
body.opb-liste .u-gizli { display: none !important; }

/* ── Araç / şase paneli ───────────────────────────────────────────── */
body.opb-liste #wzVehicleFilterWidget { margin-bottom: 20px !important; }
body.opb-liste .wz-vehicle-filter-horizontal {
  background: linear-gradient(135deg, var(--l-gece) 0%, var(--l-lacivert) 70%, #0b6157 100%) !important; border: 0 !important; border-radius: 22px !important;
  padding: 20px 24px !important; box-shadow: 0 14px 34px rgba(0, 51, 48, .18) !important;
}
body.opb-liste .wz-vehicle-filter-horizontal h4 { color: #fff !important; font-family: OpbSora, Inter, sans-serif; font-size: 12.5px !important; letter-spacing: .1em !important; }
body.opb-liste .wz-vehicle-filter-horizontal h4 > span:first-child { display: none !important; }
body.opb-liste .wz-vehicle-filter-horizontal input, body.opb-liste .wz-vehicle-filter-horizontal select { height: 44px !important; border-radius: 12px !important; border: 0 !important; background-color: #fff !important; font-size: 14px !important; }
body.opb-liste .wz-vehicle-filter-horizontal button { height: 44px !important; border-radius: 12px !important; background: var(--l-turuncu) !important; font-weight: 700 !important; box-shadow: 0 8px 18px rgba(236, 106, 10,.3) !important; }
body.opb-liste .wz-vehicle-filter-horizontal [class*="divider"], body.opb-liste .wz-filter-row > div[style*="width:1px"] { background: rgba(157,176,196,.25) !important; }

/* ── Ürün kartları (ana sayfa ile aynı dil) ───────────────────────── */
body.opb-liste #wzGrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; gap: 18px !important; }
body.opb-liste .ty-card { background: #fff !important; border: 1px solid var(--l-cizgi) !important; border-radius: 18px !important; box-shadow: none !important; overflow: hidden; display: flex !important; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s !important; }
body.opb-liste .ty-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(0, 51, 48,.12) !important; border-color: rgba(236, 106, 10,.35) !important; }
body.opb-liste .ty-card-img { aspect-ratio: 1 / 1; height: auto !important; background: radial-gradient(120% 90% at 50% 35%, #fff 0%, #f3f5f9 70%, #e9edf3 100%) !important; }
body.opb-liste .ty-card-img img { object-fit: contain !important; padding: 9%; box-sizing: border-box; mix-blend-mode: multiply; transition: transform .5s; }
body.opb-liste .ty-card:hover .ty-card-img img { transform: scale(1.06); }
body.opb-liste .ty-card.u-resimsiz .ty-card-img img { opacity: .35; filter: grayscale(1); }
body.opb-liste .ty-card-body { padding: 14px 16px 16px !important; display: flex; flex-direction: column; flex: 1; gap: 6px; }
body.opb-liste .ty-card-title-row { display: block !important; }
body.opb-liste .ty-card-brand { display: inline-block !important; font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .09em; color: #fff !important; background: var(--l-lacivert); padding: 3px 8px; border-radius: 999px; text-transform: uppercase; margin-bottom: 6px !important; }
body.opb-liste .ty-card-name { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px !important; font-weight: 600 !important; color: var(--l-metin) !important; line-height: 1.4 !important; min-height: 2.8em; }
body.opb-liste .ty-verified, body.opb-liste .ty-card-status, body.opb-liste .ty-card-variants:empty, body.opb-liste .ty-card-proof, body.opb-liste .ty-card-cart-discount { display: none !important; }
body.opb-liste .ty-card-price-block { margin-top: auto !important; padding-top: 6px; }
body.opb-liste .ty-price-now { font-size: 22px !important; font-weight: 800 !important; color: var(--l-lacivert) !important; letter-spacing: -.02em; }
body.opb-liste .ty-card-add-btn { height: 44px !important; border-radius: 12px !important; border: 0 !important; background: var(--l-lacivert) !important; color: #fff !important; font-weight: 700 !important; font-size: 14px !important; margin-top: 10px !important; }
body.opb-liste .ty-card:hover .ty-card-add-btn { background: linear-gradient(135deg, var(--l-turuncu), var(--l-turuncu-2)) !important; }
body.opb-liste .ty-fav-btn { background: rgba(255,255,255,.95) !important; border: 1px solid var(--l-cizgi) !important; border-radius: 50% !important; }

/* Sayfalama */
body.opb-liste #wzPager { gap: 6px !important; margin: 28px 0 40px !important; }
body.opb-liste #wzPager button { min-width: 42px; height: 42px; border-radius: 12px !important; border: 1px solid var(--l-cizgi) !important; background: #fff !important; color: var(--l-lacivert) !important; font-weight: 700 !important; }
body.opb-liste #wzPager button.active { background: var(--l-lacivert) !important; color: #fff !important; border-color: transparent !important; }
body.opb-liste #wzPager button:hover:not(.active) { border-color: var(--l-turuncu) !important; color: var(--l-turuncu) !important; }

/* ── Mobil ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  body.opb-liste .wz-layout { grid-template-columns: 1fr !important; }
  body.opb-liste #wzSidebar { position: static; max-height: none; }
}
@media (max-width: 768px) {
  body.opb-liste #wzGrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  body.opb-liste .ty-card-body { padding: 10px 12px 12px !important; }
  body.opb-liste .ty-card-name { font-size: 13px !important; }
  body.opb-liste .ty-price-now { font-size: 18px !important; }
  body.opb-liste .ty-card-add-btn { height: 40px !important; font-size: 13px !important; }
  body.opb-liste .wz-vehicle-filter-horizontal { padding: 16px !important; border-radius: 18px !important; }
  body.opb-liste .wz-sidebar-cat-list { grid-template-columns: 1fr 1fr; }
}

/* Çok sonuç / sonuç yok → WhatsApp yönlendirme */
.u-wa-yon { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin: 0 0 18px; border-radius: 18px; background: linear-gradient(120deg, #ecfdf3, #fff); border: 1px solid #bfe8d0; box-shadow: 0 8px 22px rgba(18, 140, 74, .08); }
.u-wa-yon.bos { background: linear-gradient(120deg, #fde6d3, #fff); border-color: #ffd2bd; }
.u-wa-ikon { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 18px rgba(37, 211, 102, .3); }
.u-wa-metin { flex: 1; min-width: 0; }
.u-wa-metin b { display: block; font-family: OpbSora, Inter, sans-serif; font-size: 16px; color: #00483f; }
.u-wa-metin span { display: block; margin-top: 3px; font-size: 13.5px; color: #3f5263; line-height: 1.45; }
.u-wa-dugmeler { display: flex; gap: 8px; flex: 0 0 auto; }
.u-wa-dugme { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 12px; background: #25d366; color: #05391c !important; font-weight: 800; text-decoration: none; white-space: nowrap; }
.u-wa-sase { height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid #dbe7e4; background: #fff; color: #00483f; font-weight: 700; cursor: pointer; white-space: nowrap; }
.u-wa-sase:hover { border-color: #ec6a0a; color: #ec6a0a; }
@media (max-width: 768px) { .u-wa-yon { flex-wrap: wrap; padding: 14px; } .u-wa-dugmeler { width: 100%; } .u-wa-dugme, .u-wa-sase { flex: 1; justify-content: center; } }

/* UP_LISTE_RENK_V1: kategori kenar çubuğu Uyan Parça logo renklerinde (marka renkleri yerine petrol + turuncu) */
body.opb-liste .u-l-halka { border-color: #b9d3ce !important; transition: border-color .2s, box-shadow .2s; }
body.opb-liste .u-l-halka b { color: #00483f !important; }
body.opb-liste .wz-sidebar-cat-item a { color: #10302c !important; }
body.opb-liste .wz-sidebar-cat-item a:hover { background: #eef5f3 !important; color: #00483f !important; }
body.opb-liste .wz-sidebar-cat-item a:hover .u-l-halka { border-color: #ec6a0a !important; }
body.opb-liste .wz-sidebar-cat-item.active a, body.opb-liste .wz-sidebar-cat-item a.active {
  background: #00483f !important; color: #fff !important; box-shadow: 0 6px 16px rgba(0, 72, 63, .18);
}
body.opb-liste .wz-sidebar-cat-item.active a .u-l-halka, body.opb-liste .wz-sidebar-cat-item a.active .u-l-halka {
  border-color: #ec6a0a !important; box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px rgba(236, 106, 10, .25);
}
body.opb-liste .wz-sidebar-cat-item.active a .u-l-ok, body.opb-liste .wz-sidebar-cat-item a.active .u-l-ok { border-color: #ec6a0a; opacity: 1; }

/* UP_BOS_LISTE_V1: boş liste yönlendirme kutusu */
.up-bos { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff; border: 1px solid #dbe7e4;
  border-radius: 20px; padding: 24px 28px; box-shadow: 0 8px 24px rgba(0, 72, 63, .06); }
.up-bos-ik { width: 56px; height: 56px; border-radius: 16px; background: #00483f; color: #fff; display: grid; place-items: center; flex: none; }
.up-bos-ik svg { width: 28px; height: 28px; }
.up-bos-metin { flex: 1; min-width: 240px; }
.up-bos-metin strong { display: block; font-size: 18px; color: #00483f; margin-bottom: 4px; }
.up-bos-metin span { font-size: 14px; color: #586b68; line-height: 1.55; }
.up-bos-eylem { display: flex; gap: 10px; flex-wrap: wrap; }
.up-bos-eylem a { text-decoration: none; font-weight: 800; font-size: 14px; padding: 12px 18px; border-radius: 12px; }
.up-bos-ana { background: #ec6a0a; color: #fff !important; }
.up-bos-ana:hover { background: #d45d08; }
.up-bos-wa { background: #fff; color: #00483f !important; border: 1.5px solid #b9d3ce; }
.up-bos-wa:hover { border-color: #00483f; }
@media (max-width: 640px) { .up-bos { padding: 18px; } .up-bos-eylem, .up-bos-eylem a { width: 100%; text-align: center; } }

/* UP_BOS_LISTE_V1: eski "parça bulamadık" bandı gizli; yerine yönlendirme kutusu (.up-bos) */
body.opb-liste .u-wa-yon.bos { display: none !important; }
