/* Okno filtrov doplnku Filtre+ v štýle Kráčaj (v4, na webe od 14. 10. 2026: okno, keď je jediný filter cena; predošlá v3 je na serveri ako filtre-zaloha-2026-10-14-v3.css a v Zalohy/vypredaj-cena-2026-10-14/).
   Mobil (< 992 px): okno cez celú obrazovku s hlavičkou „Filtre“, sekcie ako rozbaľovací zoznam, hodnoty ako pilulky,
   tlačidlo Zobraziť produkty prilepené dole. Počítač: okno v strede (Ežo vybral variant B), malé filtre vedľa seba,
   Veľkosť a Značky cez celú šírku, všetko rozbalené, hodnoty ako pilulky.
   Doplnok pri otvorenom filtri pridá na <html> triedu dklab-filter-window-active, zbalená sekcia má triedu dkLab-filters-wrapper__wrap.
   Náhľad: Návrhy/kategoria-2026-10/_zdroj/proxy_nahlad.py. */

/* ---------- hodnoty ako pilulky (mobil aj počítač) ---------- */
.type-category #filters .filter-section fieldset input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.type-category #filters .filter-section fieldset > div { display: block; width: auto !important; float: none; margin: 0; padding: 0; }
.type-category #filters .filter-section .filter-label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; margin: 0;
  padding: 0 14px; border: 1px solid #d9ddc9; border-radius: 999px; background: #fff; color: #1a1a1a; font-size: 14px; font-weight: 500;
  line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.type-category #filters .filter-section .filter-label::before,
.type-category #filters .filter-section .filter-label::after { display: none !important; }
.type-category #filters .filter-section .filter-label:hover { border-color: #818a6d; }
.type-category #filters .filter-section .filter-label .filter-count { min-width: 0; margin: 0; padding: 0; background: none; color: #8a8f7c; font-size: 12px;
  font-weight: 500; }
.type-category #filters .filter-section .filter-label.active,
.type-category #filters .filter-section input:checked + .filter-label { border-color: #818a6d; background: #818a6d; color: #fff; font-weight: 600; }
.type-category #filters .filter-section .filter-label.active .filter-count,
.type-category #filters .filter-section input:checked + .filter-label .filter-count { color: #e8ebdf; }
.type-category #filters .filter-section fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.type-category #filters .filter-section fieldset > .advanced-filters-wrapper,
.type-category #filters .filter-section fieldset > input[type=hidden] { display: none; }
/* veľkosti: rovnako široké pilulky, počet produktov je pri nich zbytočný šum */
.type-category #filters .filter-section-parametric-id-5 .filter-label { min-width: 58px; padding: 0 10px; }
.type-category #filters .filter-section-parametric-id-5 .filter-label .filter-count { display: none; }
/* tlačidlo Zobraziť produkty a odkaz Zrušiť filtre (doplnok ich má červené a veľkými písmenami) */
.type-category #filters .filter-section-count .btn { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; }
.type-category #filters #clear-filters { margin: 0; }
.type-category #filters #clear-filters a { color: #555 !important; font-size: 14px; font-weight: 500; text-transform: none; text-decoration: underline;
  text-underline-offset: 3px; }
.type-category #filters #clear-filters a::after { display: none !important; }
/* posuvník ceny */
.type-category #filters .slider-header { font-size: 15px; font-weight: 600; }

/* zvolená hodnota pri nadpise sekcie (doplnok ju dáva len na mobile, my aj na počítači) */
html.dklab-filter-window-active #filters h4 span.dkLab-filters-label--checked.dkLab-filters-label-stats {
  display: block; flex: 0 1 auto; order: 2; min-width: 0; margin: 0 0 0 auto; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-radius: 999px; background: #eef0e6; color: #1a1a1a; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
html.dklab-filter-window-active #filters h4 .question-tooltip { flex: none; order: 1; margin: 0; }

/* popis filtra: na mobile text pod nadpisom (vkladá kategoria.js), na počítači biela karta pri „?“ namiesto čierneho okienka */
.type-category #filters .k-napoveda { display: none; }
body.type-category .tooltip { z-index: 100000; }
body.type-category .tooltip .tooltip-inner { max-width: 290px; font-family: Montserrat, sans-serif; padding: 12px 14px; border: 1px solid #e3e6d9; border-radius: 12px; background: #fff; color: #1a1a1a;
  font-size: 13px; font-weight: 400; line-height: 1.5; text-align: left; box-shadow: 0 12px 30px rgba(0, 0, 0, .14); }
body.type-category .tooltip.top .tooltip-arrow { border-top-color: #fff; }
body.type-category .tooltip.bottom .tooltip-arrow { border-bottom-color: #fff; }

/* ---------- mobil: okno cez celú obrazovku (bez --active: po filtrovaní cenou ho doplnok z okna zoberie, okno ostane otvorené) ---------- */
@media (max-width: 991px) {
  html.dklab-filter-window-active #filters-wrapper { padding: 0 !important; background: #fff; }
  html.dklab-filter-window-active #filters-wrapper .dkLab-mobile-window { padding: 0 0 120px; background: #fff; }
  /* hlavička okna */
  html.dklab-filter-window-active #filters-wrapper .dkLab-mobile-window::before { content: "Filtre"; position: sticky; top: 0; z-index: 3; display: block;
    padding: 18px 20px; border-bottom: 1px solid #e3e6d9; background: #fff; color: #1a1a1a; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
  html.dklab-filter-window-active #filters-wrapper .dkLab-filters-close-button { position: fixed; top: 10px; right: 10px; z-index: 4; width: 44px; height: 44px;
    border-radius: 50%; background: #eef0e6; }
  html.dklab-filter-window-active #filters-wrapper #filters { margin: 0; padding: 0; border: 0; background: none; }
  /* sekcie ako rozbaľovací zoznam */
  html.dklab-filter-window-active #filters .filter-sections > * ,
  html.dklab-filter-window-active #filters #category-filter-hover > * { margin: 0 !important; padding: 0 20px !important; border: 0 !important;
    border-bottom: 1px solid #eef0e6 !important; box-shadow: none !important; }
  html.dklab-filter-window-active #filters .filter-sections > #category-filter-hover { padding: 0 !important; border: 0 !important; }
  html.dklab-filter-window-active #filters h4 { display: flex; align-items: center; gap: 8px; min-height: 58px; margin: 0; padding: 0; border: 0;
    color: #1a1a1a; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; }
  /* popis filtra pod nadpisom, viditeľný len v rozbalenej sekcii; „?“ na mobile netreba */
  html.dklab-filter-window-active #filters h4 .question-tooltip { display: none; }
  html.dklab-filter-window-active #filters .k-napoveda { display: block; margin: -4px 0 14px; color: #555; font-size: 13px; line-height: 1.5; }
  html.dklab-filter-window-active #filters .k-napoveda span { display: block; }
  html.dklab-filter-window-active #filters .k-napoveda span + span { margin-top: 4px; }
  html.dklab-filter-window-active #filters .k-napoveda b { color: #1a1a1a; font-weight: 600; }
  html.dklab-filter-window-active #filters .dkLab-filters-wrapper__wrap > .k-napoveda { display: none; }
  html.dklab-filter-window-active #filters .filter-section form,
  html.dklab-filter-window-active #filters .slider-content { padding-bottom: 18px; }
  /* spodná lišta prilepená k okraju obrazovky */
  html.dklab-filter-window-active #filters #category-filter-hover > .filter-section-count { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)) !important;
    border: 0 !important; border-top: 1px solid #e3e6d9 !important; background: #fff; box-shadow: 0 -8px 24px rgba(0, 0, 0, .06) !important; }
  html.dklab-filter-window-active #filters .filter-section-count .btn { grid-column: 1 / -1; width: 100%; height: 50px; margin: 0; border: 0; border-radius: 999px;
    background: #1a1a1a !important; color: #fff !important; font-size: 16px; font-weight: 700; }
  html.dklab-filter-window-active #filters .filter-section-count > :not(.btn) { margin: 0; font-size: 13px; color: #555; }
}

/* ---------- počítač: okno v strede obrazovky ---------- */
@media (min-width: 992px) {
  html.dklab-filter-window-active body.one-column-body #content #filters-wrapper {
    position: fixed; top: 50%; left: 50%; z-index: 99999; width: min(980px, 92vw); height: auto; max-height: 88vh; overflow-y: auto;
    padding: 0 32px 0; transform: translate(-50%, -50%); border: 0; border-radius: 22px; background: #fff;
    box-shadow: 0 0 0 100vmax rgba(26, 26, 26, .45), 0 24px 60px rgba(0, 0, 0, .25); }
  html.dklab-filter-window-active #filters-wrapper .filters-wrapper { position: static; width: auto; padding: 0; }
  /* hlavička okna */
  html.dklab-filter-window-active #filters-wrapper .filters-wrapper::before { content: "Filtre"; display: block; margin: 0 -32px 22px; padding: 22px 32px;
    border-bottom: 1px solid #e3e6d9; color: #1a1a1a; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
  html.dklab-filter-window-active #filters-wrapper #filters { width: auto; margin: 0; padding: 0; border: 0; background: none; }
  html.dklab-filter-window-active #filters-wrapper .dkLab-filters-close-button { top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: #eef0e6; }

  /* mriežka sekcií: 3 stĺpce, Veľkosť a Značky cez celú šírku */
  html.dklab-filter-window-active #filters-wrapper #category-filter-hover {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 28px; width: auto; }
  html.dklab-filter-window-active #category-filter-hover > * { order: 1; min-width: 0; margin: 0 !important; padding: 0 !important;
    border: 0 !important; box-shadow: none !important; }
  html.dklab-filter-window-active #category-filter-hover > .slider-wrapper { order: 2; }
  html.dklab-filter-window-active #category-filter-hover > .filter-section-parametric-id-5 { order: 3; grid-column: 1 / -1; }
  html.dklab-filter-window-active #category-filter-hover > .filter-section-manufacturer { order: 4; grid-column: 1 / -1; }
  html.dklab-filter-window-active #category-filter-hover > .filter-section-count { order: 5; grid-column: 1 / -1; }

  /* nadpisy sekcií: rovnaká výška, bez zbaľovania */
  html.dklab-filter-window-active #category-filter-hover h4 {
    display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 30px; margin: 0 0 12px; padding: 0;
    border: 0; pointer-events: none; color: #1a1a1a; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none; white-space: nowrap; }
  html.dklab-filter-window-active #category-filter-hover h4 > span:first-child { flex: none; }
  html.dklab-filter-window-active #category-filter-hover h4 .question-tooltip { pointer-events: auto; }
  html.dklab-filter-window-active #category-filter-hover h4::after,
  html.dklab-filter-window-active #category-filter-hover h4 [class*="chevron"],
  html.dklab-filter-window-active #category-filter-hover h4 [class*="arrow"] { display: none !important; }

  /* obsah sekcií vždy viditeľný */
  html.dklab-filter-window-active #category-filter-hover form,
  html.dklab-filter-window-active #category-filter-hover .slider-header,
  html.dklab-filter-window-active #category-filter-hover .slider-content { display: block !important; }
  html.dklab-filter-window-active #category-filter-hover fieldset { display: flex !important; }

  /* spodná lišta prilepená k spodku okna */
  html.dklab-filter-window-active #category-filter-hover .filter-section-count { position: sticky; bottom: 0; z-index: 2; display: flex !important;
    flex-direction: row !important; align-items: center; justify-content: flex-start; gap: 24px; margin: 4px -32px 0 !important;
    padding: 16px 32px !important; border-top: 1px solid #e3e6d9 !important; background: #fff; }
  html.dklab-filter-window-active #category-filter-hover .filter-section-count > * { margin: 0; width: auto; }
  html.dklab-filter-window-active #category-filter-hover .filter-section-count .btn { height: 48px; padding: 0 34px; border: 0; border-radius: 999px;
    background: #1a1a1a !important; color: #fff !important; font-size: 15px; font-weight: 700; }
}

/* ---------- jediný filter je cena (Výpredaj!, návrh 14. 10. 2026) ----------
   Bez ďalších filtrov doplnok nevytvorí #category-filter-hover ani spodnú lištu, takže cena ostala zbalená a bez našich štýlov.
   Tu je vždy rozbalená, s veľkými hodnotami a posuvníkom. Tlačidlo Zobraziť produkty (.k-zobrazit) pridáva kategoria.js. */
html.dklab-filter-window-active #filters:not(:has(.filter-section)) > .slider-wrapper { margin: 0; padding: 22px 20px 0 !important; border: 0 !important; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) > .slider-wrapper h4 { display: block; min-height: 0; margin: 0; padding: 0; border: 0;
  pointer-events: none; color: #1a1a1a; font-size: 18px; font-weight: 700; letter-spacing: 0; text-transform: none; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) > .slider-wrapper h4::after { display: none !important; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) > .slider-wrapper .slider-header { display: flex !important; justify-content: space-between;
  gap: 12px; margin: 0 !important; padding: 16px 0 0 !important; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) .slider-header::before,
html.dklab-filter-window-active #filters:not(:has(.filter-section)) .slider-header::after { display: none; } /* clearfix by v flexe pridal medzery */
html.dklab-filter-window-active #filters:not(:has(.filter-section)) .slider-header > span { flex: 1 1 0; max-width: none; margin: 0; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) .slider-header > span { min-width: 104px; padding: 8px 16px 10px; border: 1px solid #d9ddc9;
  border-radius: 14px; color: #1a1a1a; font-size: 20px; font-weight: 700; line-height: 1.2; text-align: center; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) .slider-header > span::before { display: block; margin-bottom: 2px; color: #8a8f7c;
  font-size: 12px; font-weight: 500; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) .slider-header > .from::before { content: "od"; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) .slider-header > .to::before { content: "do"; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) > .slider-wrapper .slider-content { display: block !important; padding: 30px 15px 34px !important;
  background: none; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) #slider { height: 6px; padding: 0; border: 0; border-radius: 999px; background: #e3e6d9; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) #slider .ui-slider-range { top: 0; height: 100%; border-radius: 999px; background: #818a6d; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) #slider .ui-slider-handle { top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 3px solid #818a6d; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: grab; outline: none; }
html.dklab-filter-window-active #filters:not(:has(.filter-section)) #slider .ui-slider-handle:focus-visible { box-shadow: 0 0 0 4px rgba(129, 138, 109, .35); }
.k-zobrazit { display: none; }
html.dklab-filter-window-active #filters .k-zobrazit { display: block; height: 50px; border: 0; border-radius: 999px; background: #1a1a1a; color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
@media (max-width: 991px) {
  html.dklab-filter-window-active #filters .k-zobrazit { position: fixed; left: 20px; right: 20px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 5; }
}
@media (min-width: 992px) {
  /* okno len také široké, aká je cena */
  html.dklab-filter-window-active body.one-column-body #content #filters-wrapper:not(:has(.filter-section)) { width: min(520px, 92vw); padding-bottom: 32px; }
  html.dklab-filter-window-active #filters:not(:has(.filter-section)) > .slider-wrapper { padding: 0 !important; }
  html.dklab-filter-window-active #filters .k-zobrazit { width: 100%; margin-top: 8px; }
}
