/* =========================================================
   NXS - Panou filtre sidebar (categorie/shop): slider de preț
   + disponibilitate. Stil aliniat cu restul sidebar-ului
   (.nxs-side-title, separatoare .widget existente in nxs-cat.css).
   ========================================================= */

.nxs-cat-sidebar__group{
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e2e2;
}

/* ---------- Arbore categorii (2 niveluri, dropdown la click) ---------- */
.nxs-cat-tree{
  list-style: none;
  margin: 0;
  padding: 0;
}

.nxs-cat-tree__item{
  margin: 0;
}

.nxs-cat-tree__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.nxs-cat-tree__link{
  flex: 1 1 auto;
  display: block;
  padding: 7px 0;
  color: #2c2c2c;
  text-decoration: none;
}

.nxs-cat-tree__link:hover{
  text-decoration: underline;
}

.nxs-cat-tree__link.is-current{
  color: #2d7d46;
  font-weight: 700;
}

/* itemi de tip "Remorci" - doar declanseaza extinderea, nu au pagina proprie */
.nxs-cat-tree__link--label{
  cursor: pointer;
  font-weight: 700 !important;
}
.nxs-cat-tree__link--label:hover{
  text-decoration: none;
  color: #2d7d46;
}

.nxs-cat-tree__toggle{
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: 50%;
}

.nxs-cat-tree__toggle:hover{
  background: rgba(45,125,70,.08);
}

.nxs-cat-tree__toggle::after{
  content: "▾";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: #767676;
  transition: transform .15s ease;
}

.nxs-cat-tree__item.is-expanded > .nxs-cat-tree__row .nxs-cat-tree__toggle::after{
  transform: translate(-50%, -50%) rotate(180deg);
}

.nxs-cat-tree__children{
  list-style: none;
  margin: 0 0 6px;
  padding: 2px 0 2px 16px;
  display: none;
}

.nxs-cat-tree__item.is-expanded > .nxs-cat-tree__children{
  display: block;
}

.nxs-cat-tree__children li{
  margin: 0;
}

.nxs-cat-tree__children a{
  display: block;
  padding: 6px 0;
  font-size: 14px !important;
  color: #4a4a4a;
  text-decoration: none;
}

.nxs-cat-tree__children a:hover{
  text-decoration: underline;
}

.nxs-cat-tree__children a.is-current{
  color: #2d7d46;
  font-weight: 700;
}

.nxs-filters{
  display: block;
}

.nxs-filters__group{
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e2e2;
}

.nxs-filters__group--last{
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 16px;
}

/* ---------- Slider preț ---------- */
.nxs-price-slider{
  position: relative;
  height: 20px;
  margin: 10px 4px 14px;
}

.nxs-price-slider__track{
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: #e2e2e2;
  border-radius: 999px;
  cursor: pointer;
}

.nxs-price-slider__range{
  position: absolute;
  top: 0;
  bottom: 0;
  background: #2d7d46;
  border-radius: 999px;
}

.nxs-price-slider__handle{
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  transform: translateY(-50%);
  background: #fff;
  border: 3px solid #2d7d46;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  padding: 0;
  cursor: grab;
  touch-action: none;
  transition: box-shadow .12s ease, transform .12s ease;
}

.nxs-price-slider__handle:hover,
.nxs-price-slider__handle:focus-visible{
  box-shadow: 0 0 0 6px rgba(45,125,70,.15);
  outline: none;
}

.nxs-price-slider__handle.is-dragging{
  cursor: grabbing;
  transform: translateY(-50%) scale(1.08);
}

/* ---------- Inputuri Min / Max ---------- */
.nxs-price-inputs{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nxs-price-inputs__field{
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 70px;
  min-width: 0;
}

.nxs-price-inputs__field span{
  font-size: 11px;
  font-weight: 700;
  color: #767676;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.nxs-price-input{
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #2c2c2c;
  box-sizing: border-box;
  -moz-appearance: textfield;
}

.nxs-price-input::-webkit-outer-spin-button,
.nxs-price-input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

.nxs-price-input:focus{
  outline: none;
  border-color: #2d7d46;
  box-shadow: 0 0 0 3px rgba(45,125,70,.12);
}

.nxs-price-inputs__sep{
  color: #999;
  padding-top: 14px;
  flex: 0 0 auto;
}

.nxs-price-inputs__currency{
  font-size: 13px;
  font-weight: 700;
  color: #2c2c2c;
  padding-top: 14px;
  flex: 0 0 auto;
}

/* ---------- Disponibilitate ---------- */
.nxs-filter-check{
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: #2c2c2c;
  user-select: none;
}

.nxs-filter-check input[type="checkbox"]{
  width: 17px;
  height: 17px;
  accent-color: #2d7d46;
  cursor: pointer;
}

.nxs-filters__reset{
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #767676;
  text-decoration: underline;
}

.nxs-filters__reset:hover{
  color: #2d7d46;
}

/* Filtrele nu apar pe pagina de cont/checkout accidental - doar unde e injectat markup-ul */
