/* LUXURELAX - moderny filter pre kategorie Sauny / Kade
   Nacita sa az PO FacetWP front.css (ten ide do pati stranky),
   preto tu prebijame jeho vychodzie styly. */

/* ------------------------------------------------------------------
   1) Zrusenie vychodzieho vzhladu FacetWP (biele PNG checkboxy)
   ------------------------------------------------------------------ */
.lux-shop-filters-bar .facetwp-checkbox,
.lux-shop-filters-bar .facetwp-radio {
  background-image: none !important;
  background-color: transparent;
  padding-left: 0;
  margin-bottom: 0;
}

.lux-shop-filters-bar .facetwp-facet {
  margin-bottom: 0;
}

.lux-shop-filters-bar .facetwp-display-value {
  padding-right: 0;
}

/* ------------------------------------------------------------------
   2) Tlacidlo FILTRE
   ------------------------------------------------------------------ */
.lux-filter-toggle-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
}

.lux-filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 11px 20px;
  border: 1px solid rgba(238, 165, 64, 0.35);
  border-radius: 6px;
  color: #eea540;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  user-select: none;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lux-filter-toggle-btn:hover {
  background: rgba(238, 165, 64, 0.08);
  border-color: rgba(238, 165, 64, 0.6);
}

.lux-filter-toggle-icon {
  display: inline-block;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

body.lux-filters-open .lux-filter-toggle-icon {
  transform: rotate(180deg);
}

/* Pocet aktivnych filtrov v tlacidle */
.lux-filter-count {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #eea540;
  color: #161412;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.lux-filter-count.is-visible {
  display: inline-block;
}

/* ------------------------------------------------------------------
   3) Panel filtrov - DESKTOP (rozbalovaci)
   ------------------------------------------------------------------ */
.lux-shop-filters-bar.lux-shop-filters-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px 30px;
  align-items: start;
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 24px;
  margin-bottom: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease,
    margin 0.35s ease;
}

body.lux-filters-open .lux-shop-filters-bar.lux-shop-filters-bar {
  max-height: 3000px;
  opacity: 1;
  padding: 26px 24px;
  margin-bottom: 30px;
  border-color: rgba(238, 165, 64, 0.15);
}

.lux-filter-col {
  min-width: 0;
}

.lux-filter-label {
  color: #eea540;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  display: block;
}

/* ------------------------------------------------------------------
   4) Moznosti filtra - "chip" vzhlad
   ------------------------------------------------------------------ */
.lux-shop-filters-bar .facetwp-type-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: flex-start;
}

.lux-shop-filters-bar .facetwp-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  font-size: 0.78rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lux-shop-filters-bar .facetwp-checkbox:hover {
  border-color: rgba(238, 165, 64, 0.5);
  color: #f3ede3;
}

.lux-shop-filters-bar .facetwp-checkbox.checked {
  background: rgba(238, 165, 64, 0.14);
  border-color: #eea540;
  color: #eea540;
}

.lux-shop-filters-bar .facetwp-checkbox.disabled {
  opacity: 0.35;
  cursor: default;
}

.lux-shop-filters-bar .facetwp-counter {
  opacity: 0.5;
  font-size: 0.72rem;
}

/* "See more" / "See less" prepinac */
.lux-shop-filters-bar .facetwp-toggle {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 0.72rem;
  color: #eea540;
  text-decoration: none;
  cursor: pointer;
  border: 1px dashed rgba(238, 165, 64, 0.35);
  border-radius: 18px;
  background: transparent;
}

.lux-shop-filters-bar .facetwp-toggle:hover {
  background: rgba(238, 165, 64, 0.08);
}

.lux-shop-filters-bar .facetwp-hidden {
  display: none !important;
}

/* ------------------------------------------------------------------
   5) Cenovy slider
   ------------------------------------------------------------------ */
.lux-shop-filters-bar .facetwp-slider-wrap {
  margin: 8px 6px 10px 6px;
  padding-bottom: 0;
}

.lux-shop-filters-bar .facetwp-slider {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 2px;
}

.lux-shop-filters-bar .facetwp-slider .noUi-connect,
.lux-shop-filters-bar .facetwp-slider .ui-slider-range {
  background: #eea540;
  border-radius: 2px;
}

.lux-shop-filters-bar .facetwp-slider .noUi-handle,
.lux-shop-filters-bar .facetwp-slider .ui-slider-handle {
  width: 14px;
  height: 14px;
  top: -6px;
  right: -7px;
  background: #eea540;
  border: 2px solid #161412;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  outline: none;
}

.lux-shop-filters-bar .facetwp-slider .noUi-handle:before,
.lux-shop-filters-bar .facetwp-slider .noUi-handle:after {
  display: none;
}

.lux-shop-filters-bar .facetwp-slider-label {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  margin-top: 2px;
}

.lux-shop-filters-bar .facetwp-slider-reset {
  background: transparent;
  border: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
  text-decoration: underline;
}

.lux-shop-filters-bar .facetwp-slider-reset:hover {
  color: #eea540;
}

/* ------------------------------------------------------------------
   6) Hlavicka a paticka panelu (viditelne len v modali na mobile)
   ------------------------------------------------------------------ */
.lux-filters-head,
.lux-filters-foot {
  display: none;
}

.lux-filters-close {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.6rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

.lux-filters-title {
  color: #f3ede3;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.lux-filters-apply {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 6px;
  background: #eea540;
  color: #161412;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lux-filters-reset {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

/* ------------------------------------------------------------------
   7) MOBIL / TABLET - panel ako modalne okno
   ------------------------------------------------------------------ */
@media (max-width: 1023px) {
  .lux-filter-toggle-btn {
    width: 100%;
    justify-content: center;
  }

  /* Tmave prekrytie pozadia */
  .lux-filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 99998;
  }

  body.lux-filters-open .lux-filters-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Samotny modal - vysunie sa zospodu */
  .lux-shop-filters-bar.lux-shop-filters-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    border-radius: 16px 16px 0 0;
    background: #1c1917;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    opacity: 1;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 99999;
  }

  body.lux-filters-open .lux-shop-filters-bar.lux-shop-filters-bar {
    max-height: 88vh;
    transform: translateY(0);
    padding: 0 !important;
    margin: 0 !important;
    border: none;
  }

  /* Hlavicka modalu */
  .lux-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Skrolovatelna cast s filtrami */
  .lux-filters-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  /* Paticka s potvrdenim */
  .lux-filters-foot {
    display: block;
    flex: 0 0 auto;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #1c1917;
  }

  .lux-filter-col {
    width: 100%;
  }

  /* Zamknutie skrolovania stranky pod modalom */
  body.lux-filters-open {
    overflow: hidden;
  }
}

/* Na desktope prekrytie nikdy nezobrazujeme */
@media (min-width: 1024px) {
  .lux-filters-overlay {
    display: none !important;
  }

  .lux-filters-scroll {
    display: contents;
  }
}
