/*!
 * NZ FILTRE — 2026-09-21
 * Kategori / arama sayfasindaki urun filtresi (Brainy Filter) icin gorsel katman
 * ve kucuk ekran cekmecesi. brainyfilter.css'ten SONRA yuklenir; tum kurallar
 * .nz-f (panel), .nz-f-* (cekmece, dugme, secili etiketler) altindadir.
 * Yukleyen: catalog/controller/extension/module/brainyfilter.php (NZ FILTRE blogu)
 * Kaldirmak icin o bloktaki iki satiri silin.
 */
.nz-f, .nz-f-cekmece, .nz-f-ac, .nz-f-secili {
  --nz-f-ana:    #1abc9c;
  --nz-f-ana-ko: #15a085;
  --nz-f-ana-ac: #e8f8f4;
  --nz-f-murek:  #323a45;
  --nz-f-soluk:  #6b7684;
  --nz-f-cizgi:  #e4e8ec;
  --nz-f-zemin:  #f6f8fa;
  --nz-f-r:      10px;
}

/* ============================================================ PANEL KARTI */
.bf-panel-wrapper.nz-f { margin-bottom: 22px; }
.nz-f .box {
  border: 1px solid var(--nz-f-cizgi);
  border-radius: var(--nz-f-r);
  background: #fff;
  box-shadow: 0 1px 3px rgba(20,30,45,.06), 0 6px 18px rgba(20,30,45,.04);
  overflow: hidden;
  margin: 0;
}
.nz-f .box-heading {
  background: var(--nz-f-murek);
  color: #fff;
  text-shadow: none;
  border: 0;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.nz-f .box-heading .fa { color: var(--nz-f-ana); margin-right: 6px; }

/* ============================================================ BLOK BASLIKLARI */
.nz-f .bf-attr-header,
.nz-f.bf-layout-id-new .bf-attr-header {
  background: #fff;
  color: var(--nz-f-murek);
  border-top: 1px solid var(--nz-f-cizgi);
  padding: 12px 16px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}
.nz-f .bf-attr-block:first-child .bf-attr-header { border-top: 0; }
.nz-f .bf-arrow { opacity: .55; }
.nz-f .bf-attr-header:hover .bf-arrow { opacity: 1; }
.nz-f .bf-attr-block-cont { padding: 0 16px 10px; }
.nz-f .bf-attr-group-header,
.nz-f.bf-layout-id-new .bf-attr-group-header {
  background: var(--nz-f-zemin); color: var(--nz-f-soluk);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 16px;
}

/* ============================================================ SECENEK SATIRLARI */
.nz-f .bf-cell { border-bottom: 0; padding: 5px 0; height: auto; }
.nz-f .bf-form div:nth-last-of-type(2) .bf-attr-filter:last-child .bf-cell { border-bottom: 0; }
.nz-f .bf-c-1 { width: 26px; padding-right: 0; }
.nz-f .bf-cell label {
  font-size: 13.5px; line-height: 1.35; color: #3d4652; padding: 1px 6px 1px 0;
  transition: color .15s;
}
.nz-f .bf-attr-filter:hover .bf-cell label { color: var(--nz-f-ana-ko); }
.nz-f .bf-attr-filter input[type="checkbox"],
.nz-f .bf-attr-filter input[type="radio"] {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin: 0; cursor: pointer;
  border: 1.5px solid #c3cad2; border-radius: 5px; background: #fff;
  display: inline-block; vertical-align: middle; position: relative;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.nz-f .bf-attr-filter input[type="radio"] { border-radius: 50%; }
.nz-f .bf-attr-filter input[type="checkbox"]:hover,
.nz-f .bf-attr-filter input[type="radio"]:hover { border-color: var(--nz-f-ana); }
.nz-f .bf-attr-filter input[type="checkbox"]:focus-visible,
.nz-f .bf-attr-filter input[type="radio"]:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(26,188,156,.25); }
.nz-f .bf-attr-filter input[type="checkbox"]:checked,
.nz-f .bf-attr-filter input[type="radio"]:checked { background-color: var(--nz-f-ana); border-color: var(--nz-f-ana); }
.nz-f .bf-attr-filter input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.nz-f .bf-attr-filter input[type="radio"]:checked::after {
  content: ""; position: absolute; left: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #fff;
}
.nz-f .bf-attr-filter input:checked ~ label,
.nz-f .bf-attr-filter:has(input:checked) label { color: var(--nz-f-murek); font-weight: 600; }

/* urun sayisi rozetleri */
.nz-f .bf-count,
.nz-f.bf-layout-id-new .bf-count {
  background: var(--nz-f-zemin); color: var(--nz-f-soluk);
  font-size: 11.5px; font-weight: 600; line-height: 20px;
  min-width: 26px; text-align: center; padding: 0 7px; border-radius: 10px;
}
.nz-f .bf-attr-filter:hover .bf-count { background: var(--nz-f-ana-ac); color: var(--nz-f-ana-ko); }
.nz-f .brainyfilter-panel .bf-count.bf-empty { background: var(--nz-f-zemin); color: #b8c0c9; }
.nz-f .bf-disabled label { color: #b8c0c9; }

/* "tumunu goster" */
.nz-f .bf-sliding-show {
  color: var(--nz-f-ana-ko); font-size: 12.5px; font-weight: 600; padding: 6px 0 2px; cursor: pointer;
}
.nz-f .bf-sliding-show:hover { text-decoration: underline; }

/* ============================================================ ARAMA KUTUSU */
.nz-f .bf-search-container.bf-attr-filter input,
.nz-f input[type='text'].bf-search {
  height: 38px; margin: 4px 0 6px; padding: 0 34px 0 12px;
  border: 1px solid var(--nz-f-cizgi); border-radius: 8px; background-color: var(--nz-f-zemin);
  background-position: calc(100% - 11px) 50%; font-size: 13.5px; color: var(--nz-f-murek);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.nz-f input[type='text'].bf-search:focus {
  outline: 0; background-color: #fff; border-color: var(--nz-f-ana); box-shadow: 0 0 0 3px rgba(26,188,156,.18);
}

/* ============================================================ FIYAT */
.nz-f .bf-price-container { padding: 4px 0 0; }
.nz-f .bf-cur-symb {
  display: flex; align-items: center; gap: 6px; padding-bottom: 14px;
}
.nz-f .bf-cur-symb-left { color: var(--nz-f-soluk); font-size: 12.5px; }
.nz-f .bf-cur-symb .ndash { margin: 0 2px; color: #b8c0c9; }
.nz-f input[type=text].bf-range-min,
.nz-f input[type=text].bf-range-max {
  flex: 1 1 0; width: auto; min-width: 0; height: 34px; padding: 0 8px; text-align: left;
  border: 1px solid var(--nz-f-cizgi); border-radius: 7px; background: var(--nz-f-zemin);
  font-size: 13px; font-weight: 600; color: var(--nz-f-murek);
}
.nz-f input[type=text].bf-range-min:focus,
.nz-f input[type=text].bf-range-max:focus { outline: 0; background: #fff; border-color: var(--nz-f-ana); }
.nz-f .bf-price-slider-container { padding: 0 9px 16px; }
.nz-f .bf-slider-range.ui-slider-horizontal,
.nz-f.bf-layout-id-new .ui-widget-content {
  height: 5px; border: 0; border-radius: 3px; background: var(--nz-f-cizgi);
}
.nz-f .bf-slider-range .ui-slider-range,
.nz-f.bf-layout-id-new .ui-widget-header { background: var(--nz-f-ana); top: 0; bottom: 0; }
.nz-f .bf-slider-range .ui-slider-handle,
.nz-f.bf-layout-id-new .ui-state-default {
  width: 18px; height: 18px; top: -7px; margin-left: -9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--nz-f-ana); box-shadow: 0 1px 4px rgba(20,30,45,.2);
  cursor: grab; outline: 0;
}
.nz-f .bf-slider-range .ui-slider-handle:active { cursor: grabbing; box-shadow: 0 0 0 5px rgba(26,188,156,.2); }

/* ============================================================ ALT DUGMELER */
.nz-f .bf-buttonclear-box {
  border-top: 1px solid var(--nz-f-cizgi); padding: 10px 16px; text-align: right; background: #fff;
}
.nz-f .bf-buttonclear {
  background: none; padding: 5px 10px; border-radius: 6px; text-decoration: none;
  color: var(--nz-f-soluk); font-size: 12.5px; font-weight: 600; line-height: 1.4;
}
.nz-f .bf-buttonclear:hover { background: #fdecec; color: #d62c2d; }
.nz-f .bf-buttonclear[disabled] { opacity: .5; cursor: default; }
.nz-f .bf-float-submit { border-color: var(--nz-f-cizgi); border-radius: 8px; }
.nz-f .bf-buttonsubmit { background: var(--nz-f-ana); border-color: var(--nz-f-ana); }

/* yuklenirken: panel soluk + urun listesi soluk */
.bf-panel-wrapper.nz-f.bf-panel-hidden { opacity: .55; transition: opacity .2s; }
.nz-urun-listesi { transition: opacity .2s; }
.nz-urun-listesi.nz-f-yukleniyor { opacity: .35; pointer-events: none; }

/* ============================================================ SECILI FILTRE ETIKETLERI */
.nz-f-secili {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin: 0 0 16px; padding: 10px 12px;
  background: var(--nz-f-zemin); border: 1px solid var(--nz-f-cizgi); border-radius: var(--nz-f-r);
}
.nz-f-secili[hidden] { display: none; }
.nz-f-secili-bas { font-size: 12px; font-weight: 700; color: var(--nz-f-soluk); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.nz-f-etiket {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 4px 6px 4px 11px; border-radius: 16px; border: 1px solid #bfeade;
  background: #fff; color: var(--nz-f-murek); font-size: 12.5px; font-weight: 600; line-height: 1.4; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.nz-f-etiket:hover { border-color: #f1b0b0; background: #fff6f6; }
.nz-f-etiket small { color: var(--nz-f-soluk); font-weight: 500; }
.nz-f-etiket-x {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 50%; background: var(--nz-f-zemin); color: var(--nz-f-soluk); font-size: 14px; line-height: 1;
}
.nz-f-etiket:hover .nz-f-etiket-x { background: #d62c2d; color: #fff; }
.nz-f-temizle-hepsi {
  border: 0; background: none; color: #d62c2d; font-size: 12.5px; font-weight: 600; padding: 4px 6px; margin-left: auto; cursor: pointer;
}
.nz-f-temizle-hepsi:hover { text-decoration: underline; }

/* ============================================================ KUCUK EKRAN: DUGME + CEKMECE */
.nz-f-ac { display: none; }
.nz-f-cekmece { display: none; }

@media (max-width: 1199px) {
  .nz-f-ac {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 14px; padding: 10px 18px; border: 0; border-radius: 22px;
    background: var(--nz-f-murek); color: #fff; font-size: 14px; font-weight: 700;
    box-shadow: 0 4px 14px rgba(20,30,45,.18); cursor: pointer;
  }
  .nz-f-ac .fa { color: var(--nz-f-ana); }
  .nz-f-ac:active { transform: translateY(1px); }
  .nz-f-say {
    display: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: var(--nz-f-ana); color: #fff; font-size: 11.5px; line-height: 20px; text-align: center;
  }
  .nz-f-say.nz-f-var { display: inline-block; }

  /* kapaliyken display:none KULLANILMAZ: Brainy Filter bloklari :visible ile
     olcuyor; gizli panelde tum bloklari "bos" sayip saklardi. */
  .nz-f-cekmece {
    display: block; position: fixed; inset: 0; z-index: 10050;
    visibility: hidden; pointer-events: none;
  }
  .nz-f-cekmece.nz-f-acik { visibility: visible; pointer-events: auto; }
  .nz-f-perde {
    position: absolute; inset: 0; background: rgba(20,26,34,.5); opacity: 0; transition: opacity .25s;
  }
  .nz-f-acik .nz-f-perde { opacity: 1; }
  .nz-f-kutu {
    position: absolute; top: 0; bottom: 0; left: 0; width: 92%; max-width: 380px;
    display: flex; flex-direction: column; background: #fff;
    transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.7,.3,1);
    box-shadow: 8px 0 30px rgba(0,0,0,.18);
  }
  .nz-f-acik .nz-f-kutu { transform: none; }
  .nz-f-ust {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: var(--nz-f-murek); color: #fff; font-size: 15px;
  }
  .nz-f-ust .fa { color: var(--nz-f-ana); margin-right: 6px; }
  .nz-f-kapat {
    width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12);
    color: #fff; font-size: 22px; line-height: 34px; padding: 0; cursor: pointer;
  }
  .nz-f-govde { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .nz-f-alt {
    display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--nz-f-cizgi); background: #fff;
  }
  .nz-f-alt button { height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
  .nz-f-alt-temizle { flex: 0 0 auto; padding: 0 16px; border: 1px solid var(--nz-f-cizgi); background: #fff; color: var(--nz-f-soluk); }
  .nz-f-alt-goster { flex: 1 1 auto; border: 0; background: var(--nz-f-ana); color: #fff; }
  .nz-f-alt-goster:active { background: var(--nz-f-ana-ko); }

  /* panel cekmecenin icindeyken kart gorunumunu sadelestir */
  .nz-f-govde .bf-panel-wrapper.nz-f { margin: 0; }
  .nz-f-govde .nz-f .box { border: 0; border-radius: 0; box-shadow: none; }
  .nz-f-govde .nz-f .box-heading,
  .nz-f-govde .nz-f .bf-buttonclear-box { display: none; }
  .nz-f-govde .nz-f .bf-attr-header { padding-top: 14px; }
  .nz-f-govde .nz-f .bf-cell { padding: 8px 0; }            /* parmakla secim icin genis satir */
  .nz-f-govde .nz-f .bf-cell label { font-size: 14.5px; }
  .nz-f-govde .nz-f .bf-float-submit { display: none !important; }
  body.nz-f-kilit { overflow: hidden; }
}

/* arama sonuc sayfasinda panelin "urun adinda ara" kutusu sayfanin kendi arama
   kutusunu tekrarliyordu; orada gizlenir (arama terimi zaten sorguda) */
.nz-f.nz-f-arama .bf-keywords-filter { display: none !important; }
