/* =========================================================
   MASCOTILLAS — BLOQUE CABECERA CATEGORÍA (H1 + DESCRIPCIÓN)
   HTML: #js-product-list-header .block-category .block-category-inner #category-description
========================================================= */

#js-product-list-header .block-category.card.card-block{
  position: relative;
  border: 0;
  border-radius: 18px;
  padding: 26px 28px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  box-shadow: 0 14px 34px rgba(10, 20, 10, 0.08);
  overflow: hidden;
  min-height: auto;
}

/* banda decorativa superior (sutil, marca) */
#js-product-list-header .block-category.card.card-block::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #2f6b3f 0%, #f3c31a 55%, #2f6b3f 100%);
  opacity: 0.95;
}

/* glow suave en esquina para dar “premium” sin saturar */
#js-product-list-header .block-category.card.card-block::after{
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(47, 107, 63, 0.14) 0%, rgba(47, 107, 63, 0) 60%);
  pointer-events: none;
}

#js-product-list-header .block-category-inner{
  position: relative;
  max-width: 920px;
}

/* Título categoría */
#js-product-list-header .block-category.card.card-block .h1{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.05;
  font-size: clamp(28px, 2.3vw, 40px);
}

/* Descripción */
#js-product-list-header #category-description{
  margin: 0;
  color: rgba(20, 20, 20, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

/* Párrafos: ritmo y legibilidad */
#js-product-list-header #category-description p{
  margin: 0 0 10px;
  max-width: 72ch;
}

/* Quita el hueco del <p></p> vacío */
#js-product-list-header #category-description p:empty{
  display: none;
}

/* Primer párrafo con “punch” */
#js-product-list-header #category-description p:first-child{
  font-weight: 700;
  color: rgba(15, 15, 15, 0.86);
}

/* Último párrafo: cierre destacado sin parecer CTA agresivo */
#js-product-list-header #category-description p:last-child{
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  font-weight: 600;
  color: rgba(15, 15, 15, 0.84);
}

/* Ajustes responsive */
@media (max-width: 991px){
  #js-product-list-header .block-category.card.card-block{
    padding: 22px 20px 18px;
    border-radius: 16px;
	margin-bottom: 2.3rem;
  }
  #js-product-list-header #category-description{
    font-size: 14px;
  }
}

@media (max-width: 575px){
  #js-product-list-header .block-category.card.card-block{
    padding: 18px 16px 16px;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(10, 20, 10, 0.08);
  }
  #js-product-list-header .block-category.card.card-block .h1{
    margin-bottom: 8px;
  }
  #js-product-list-header #category-description p{
    margin-bottom: 8px;
  }
}





/* =========================================================
   MASCOTILLAS — MENÚ CATEGORÍAS (SIDEBAR) — ITERACIÓN 4
   Cambios:
   - TODO un poco más pequeño (fuentes + paddings)
   - Menos padding lateral
   - Iconos (+/- y flechas) más pequeños
   - Iconos centrados verticalmente y SIN “bailar” al abrir/cerrar
   - Quitar hover azul en toggles (forzamos color neutro/verde)
   - Mantener el resto simple
========================================================= */

.block-categories{
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(10, 20, 10, 0.06);
  overflow: hidden;
  padding: 1rem 1rem 1.2rem;
}

/* MUY poco padding (lateral aún menor) */
.block-categories .category-top-menu{
  list-style: none;
  margin: 0;
  padding: 6px 4px 8px;
}

/* Título “CATÁLOGO” más pequeño */
.block-categories .category-top-menu > li > a.text-uppercase.h6{
  display: block;
  margin: 0 0 6px;
  padding: 7px 9px 7px 14px;
  border-radius: 12px;
  background: rgba(47, 107, 63, 0.06);
  color: #0f2a17;
  font-weight: 800;
  font-size: 14px;            /* antes más grande */
  letter-spacing: 0.05em;
  text-decoration: none;
  line-height: 1.15;
}

/* Reset listas */
.block-categories ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.block-categories .category-sub-menu li{
  position: relative;
  margin: 0;
  padding: 0;
}

/* Links: menos padding lateral + tipografía algo menor */
.block-categories .category-sub-menu a{
  display: block;
  padding: 6px 30px 6px 6px;  /* menos lateral */
  border-radius: 10px;
  color: rgba(20, 20, 20, 0.84);
  text-decoration: none;
  line-height: 1.2;
  font-size: 13px;            /* baja tamaño global */
}

.block-categories .category-sub-menu a:hover{
  background: rgba(0, 0, 0, 0.035);
}

/* Nivel 0 (principal) más pequeño */
.block-categories .category-sub-menu li[data-depth="0"] > a{
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 12.5px;          /* baja un puntín visible */
  padding-left: 6px;
}

.block-categories .category-sub-menu li[data-depth="0"] + li[data-depth="0"]{
  margin-top: 2px;
}

/* Nivel 1: menos indent + menor */
.block-categories .category-sub-menu li[data-depth="1"] > a{
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding-left: 14px;         /* menos */
}

/* Nivel 2: menos indent */
.block-categories .category-sub-menu li[data-depth="2"] > a{
  font-weight: 600;
  font-size: 12.5px;
  text-transform: none;
  letter-spacing: 0;
  padding-left: 20px;         /* menos */
  opacity: 0.95;
}

/* Importante: sin pseudo-elementos */
.block-categories .category-sub-menu li::before,
.block-categories .category-sub-menu a::before{
  content: none !important;
}

/* =========================================================
   TOGGLES — posición fija + centrado perfecto + sin hover azul
   CLAVE:
   - top: 50% + translateY(calc(-50% + Xpx)) para “bajar” un poco
   - i.material-icons en posición absoluta para que no “baile” al cambiar
   - no tocamos display/opacity del tema (solo aseguramos mismo anclaje)
========================================================= */

/* Base para ambos toggles */
.block-categories .navbar-toggler.collapse-icons,
.block-categories .arrows{
  position: absolute;
  right: 4px;
  top: 17px;
  transform: translateY(calc(-50% + 1.5px)); /* BAJA el icono (ajuste fino) */
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 1;
}

.block-categories .arrows{
  top: 11px;
}

#subcategories ul li .subcategory-name:hover, .block-categories .arrows .arrow-down:hover, .block-categories .arrows .arrow-right:hover, .block-categories .collapse-icons .add:hover, .block-categories .collapse-icons .remove:hover, .cart-grid-body a.label:hover {
	color: rgba(46,111,58,.92);
}

/* Quitar hover azul (en algunos temas viene por :hover o :focus) */
.block-categories .navbar-toggler.collapse-icons:hover,
.block-categories .navbar-toggler.collapse-icons:focus,
.block-categories .arrows:hover,
.block-categories .arrows:focus{
  background: transparent;
  outline: none;
}

/* Iconos: mismo anclaje SIEMPRE (evita salto +/-, arrow-right/arrow-down) */
.block-categories .navbar-toggler.collapse-icons i.material-icons,
.block-categories .arrows i.material-icons{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;                 /* más pequeño */
  color: rgba(47, 107, 63, 0.78);  /* sin azul */
}

/* Si el tema pinta los toggles en azul por enlaces, lo neutralizamos */
.block-categories .navbar-toggler.collapse-icons,
.block-categories .arrows{
  color: rgba(47, 107, 63, 0.78);
}

.block-categories .navbar-toggler.collapse-icons * ,
.block-categories .arrows *{
  color: rgba(47, 107, 63, 0.78);
}

/* Submenús: compactos */
.block-categories .collapse.show{
  margin: 2px 0 4px;
  padding: 0;
}

.block-categories .category-sub-menu li > .collapse{
  margin-left: 0;
}

/* Activo */
.block-categories a[aria-current="page"],
.block-categories .current > a,
.block-categories a.active{
  background: rgba(47, 107, 63, 0.10);
  color: #0f2a17;
}

/* Responsive */
@media (max-width: 991px){
  .block-categories{
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(10, 20, 10, 0.06);
  }
  .block-categories .category-top-menu{
    padding: 6px 4px 8px;
  }
}















/* =========================================================
   MASCOTILLAS — TOP BAR LISTADO (contador + ordenar por)
   HTML: #js-product-list-top.row.products-selection
   Objetivo: limpio, alineado, premium sutil (sin “pills”)
========================================================= */

#js-product-list-top.products-selection{
  margin: 12px 0 18px;
  padding: 0;
}

/* Alineación vertical */
#js-product-list-top.products-selection > .col-lg-5,
#js-product-list-top.products-selection > .col-lg-7{
  display: flex;
  align-items: center;
}

/* Contador */
#js-product-list-top .total-products p{
  margin: 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 13px;
  line-height: 1.2;
}

/* Fila de ordenación: que quede a la derecha y centrado */
#js-product-list-top .sort-by-row{
  width: 100%;
  margin: 0;
  align-items: center;
  justify-content: flex-end;
}

/* “Ordenar por:” */
#js-product-list-top .sort-by{
  padding-right: 10px;
  color: rgba(0, 0, 0, 0.50);
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

/* Dropdown contenedor */
#js-product-list-top .products-sort-order{
  position: relative;
}

/* Botón (select-title) */
#js-product-list-top .products-sort-order .select-title{
  width: 100%;
  min-width: 240px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  background: #fff;
  color: rgba(0, 0, 0, 0.78);
  font-size: 13px;
  line-height: 1.1;
  box-shadow: 0 10px 18px rgba(10, 20, 10, 0.05);
}

/* Hover/focus sobrio (sin azul) */
#js-product-list-top .products-sort-order .select-title:hover{
  border-color: rgba(47, 107, 63, 0.30);
}

#js-product-list-top .products-sort-order .select-title:focus{
  outline: none;
  border-color: rgba(47, 107, 63, 0.42);
  box-shadow: 0 10px 18px rgba(10, 20, 10, 0.05), 0 0 0 3px rgba(47, 107, 63, 0.14);
}

/* Icono dropdown */
#js-product-list-top .products-sort-order .select-title i.material-icons{
  font-size: 20px;
  line-height: 1;
  color: rgba(47, 107, 63, 0.75);
}

/* Menú desplegable */
#js-product-list-top .products-sort-order .dropdown-menu{
  width: 100%;
  min-width: 240px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(10, 20, 10, 0.10);
}

/* Items */
#js-product-list-top .products-sort-order .dropdown-menu .select-list{
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: rgba(0, 0, 0, 0.78);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
}

#js-product-list-top .products-sort-order .dropdown-menu .select-list:hover{
  background: rgba(47, 107, 63, 0.08);
}

/* Actual */
#js-product-list-top .products-sort-order .dropdown-menu .select-list.current{
  background: rgba(47, 107, 63, 0.12);
  color: rgba(15, 42, 23, 0.95);
  font-weight: 700;
}

/* Texto “Mostrando…” móvil */
#js-product-list-top .showing{
  margin-top: 10px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12.5px;
  line-height: 1.2;
}

/* Botón Filtrar (móvil) */
#js-product-list-top .filter-button #search_filter_toggler{
  border-radius: 10px;
}
.products-selection .total-products, .products-selection h1 {
	padding-top: 0.825rem;
}
.products-sort-order {padding-right: 0;}





/* Responsive: en pantallas medianas/pequeñas, que el select no sea enorme */
@media (max-width: 991px){
  #js-product-list-top{
    margin: 10px 0 14px;
  }
  #js-product-list-top .products-sort-order .select-title,
  #js-product-list-top .products-sort-order .dropdown-menu{
    min-width: 200px;
  }
  .products-sort-order {padding-left: 0;}
  .products-selection .filter-button {
		padding-left: 0;
		padding-right: 0;
	}
	
	#js-product-list-top .col-lg-7 {padding: 0 !important}
	#js-product-list-top .col-lg-7 .btn-secondary:hover, .btn-tertiary:hover {
		background-color: transparent;
	}
	#js-product-list .up {display: none;}
}

@media (max-width: 575px){
  #js-product-list-top .products-sort-order .select-title,
  #js-product-list-top .products-sort-order .dropdown-menu{
    min-width: 0;
  }
}




/* =========================================================
   MASCOTILLAS — PAGINACIÓN (debajo del listado)
   HTML: <nav class="pagination"> ... <ul class="page-list">...</ul>
   Objetivo:
   - Desktop: contador izquierda, páginas derecha
   - Móvil: contador arriba alineado a la izquierda, paginación debajo ocupando ancho,
            primera/última alineadas a izquierda/derecha sin desbordes
   - Estilo limpio, coherente con el resto (sin pills)
========================================================= */

nav.pagination {
	width: 100%;
	margin: 22px 0 6px;
	padding: 24px 0 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* columnas */
nav.pagination > .col-md-4,
nav.pagination > .col-md-6{
  padding-left: 0;
  padding-right: 0;
}

/* contador */
nav.pagination > .col-md-4{
  color: rgba(0, 0, 0, 0.55);
  font-size: 12.5px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding-left: 0.7rem;	
}

/* lista */
nav.pagination .page-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  background: transparent;	
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

/* items */
nav.pagination .page-list li{
  margin: 0;
  padding: 0;
}

/* links base */
nav.pagination .page-list a,
nav.pagination .page-list span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.72);
}

/* números */
nav.pagination .page-list li > a{
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
}

nav.pagination .page-list li > a:hover{
  border-color: rgba(47, 107, 63, 0.28);
  background: rgba(47, 107, 63, 0.05);
}

/* actual */
nav.pagination .page-list li.current a{
  border-color: rgba(47, 107, 63, 0.35);
  background: rgba(47, 107, 63, 0.10);
  color: rgba(15, 42, 23, 0.95);
  font-weight: 800;
  cursor: default;
}

/* “…” */
nav.pagination .page-list .spacer{
  padding: 0 6px;
  color: rgba(0, 0, 0, 0.40);
}

/* Siguiente */
nav.pagination .page-list a.next{
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  font-weight: 700;
  padding: 0 12px;
  gap: 6px;
  white-space: nowrap;
}

nav.pagination .page-list a.next i.material-icons{
  font-size: 18px;
  line-height: 1;
  color: rgba(47, 107, 63, 0.78);
}

/* =========================================================
   MÓVIL: orden en columna, todo bien alineado y sin desbordes
========================================================= */

@media (max-width: 991px){
	nav.pagination {
		margin-top: 28px;
		padding-top: 25px;
	}

  nav.pagination > .col-md-4,
  nav.pagination > .col-md-6{
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  /* contador arriba, alineado a la izquierda */
  nav.pagination > .col-md-4{
    min-height: 0;
    margin-bottom: 10px;
    justify-content: flex-start;
    text-align: left;
	padding: 0 0px 9px;  
  }

  /* paginación debajo, ocupa ancho */
  nav.pagination .page-list{
    width: 100%;
    justify-content: space-between; /* izquierda/derecha */
    gap: 6px;
  }

  /* Evita que el “Siguiente” empuje y desborde */
  nav.pagination .page-list a,
  nav.pagination .page-list span{
    height: 32px;
    border-radius: 10px;
    font-size: 13px;
  }

  /* Hacemos los números más compactos */
  nav.pagination .page-list li:not(:last-child) > a{
    padding: 0 8px;
    min-width: 34px;
  }

  /* “Siguiente” pegado a la derecha */
  nav.pagination .page-list li:last-child{
    margin-left: auto;
  }

  nav.pagination .page-list a.next{
    padding: 0 10px;
  }
}

/* Extra pequeño: reducimos aún más */
@media (max-width: 420px){
  nav.pagination .page-list{
    gap: 5px;
  }
  nav.pagination .page-list li:not(:last-child) > a{
    padding: 0 7px;
    min-width: 32px;
  }
  nav.pagination .page-list a.next{
    font-size: 12.5px;
    padding: 0 9px;
  }
}







/* =========================================================
   MASCOTILLAS — FILTROS (FACETS) — ITERACIÓN (sin variables)
   Correcciones:
   - “FILTRAR POR” con estética tipo “CATÁLOGO” (pill header)
   - Eliminar checkbox duplicado (solo uno visible: el custom)
   - Alinear checkbox + texto (centrado vertical real)
   - Dar aire entre bloques (Marca / Peso / sliders)
   - Evitar que el handle derecho del slider quede cortado
========================================================= */

/* Wrapper sin padding extra */
#search_filters_wrapper{ padding: 0; }

/* Panel base */
#search_filters{
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* -----------------------------------------
   CABECERA “FILTRAR POR” tipo CATÁLOGO
----------------------------------------- */
#search_filters > p.h6.hidden-sm-down{
  margin: 0 0 -20px;
  padding: 12px 8px 14px;
  font-size: 0; /* ocultamos el estilo “texto suelto” */
  border-bottom: 0;
}
#search_filters > p.h6.hidden-sm-down::before{
  content: "FILTRAR POR";
  display: inline-flex;
  align-items: center;

  padding: 10px 14px 8px;
  border-radius: 12px;
  width: 100%;	

  background: rgba(47, 107, 63, 0.08);
  color: rgba(0,0,0,0.78);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#search_filters, #search_filters_brands, #search_filters_suppliers {
	padding: 0.763rem 0.75rem;
}

/* -----------------------------------------
   FACETS: separación / respiración
----------------------------------------- */
#search_filters section.facet{
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
#search_filters section.facet:first-of-type{
  border-top: 0;
  padding-top: 12px;
}

/* Título facet (desktop) */
#search_filters .facet-title.hidden-sm-down{
  margin: 20px 0 6px;
  padding: 0 14px 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(0,0,0,0.78);
}

/* Listas con scroll interno (si hay muchas opciones) */
#search_filters section.facet > ul.collapse{
  margin: 0;
  padding: 2px 0 32px;
  list-style: none;

  max-height: 360px;
  overflow: auto;
  overscroll-behavior: contain;

  scrollbar-width: none; /* Firefox */
}
#search_filters section.facet > ul.collapse::-webkit-scrollbar{
  width: 0;
  height: 0;
}

/* Items */
#search_filters section.facet > ul.collapse > li{
  margin: 0;
  padding: 0 10px;
}

/* -----------------------------------------
   CHECKBOX: evitar duplicado + alinear
   (En tu captura se ve el checkbox nativo + el custom)
----------------------------------------- */

/* Ocultamos el checkbox nativo para que solo se vea el custom */
#search_filters .facet-label input[type="checkbox"]{
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* Layout clicable */
#search_filters .facet-label{
  position: relative;
  display: flex;
  align-items: center;            /* alineación vertical real */
  gap: 10px;

  width: 100%;
  margin: 0 0 0.5rem !important;
  padding: 7px 4px;
  border-radius: 10px;

  cursor: pointer;
}

/* Hover suave (mantener, pero sin estridencias) */
#search_filters .facet-label:hover{
  background: rgba(47, 107, 63, 0.08);
}

/* Custom checkbox */
#search_filters .facet-label .custom-checkbox{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  min-width: 18px;
  height: 18px;
  top: 0 !important;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;

  position: relative;
  flex: 0 0 auto;
}

/* El icono check SOLO cuando está checked */
#search_filters .facet-label .custom-checkbox .ps-shown-by-js{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;	
}
#search_filters .facet-label .custom-checkbox i.checkbox-checked{
  font-size: 16px;
  line-height: 1;
  color: #2f6b3f;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity .15s ease, transform .15s ease;
}

/* PrestaShop marca checked en el input (aunque esté oculto) */
#search_filters .facet-label input[type="checkbox"]:checked + .ps-shown-by-js i.checkbox-checked,
#search_filters .facet-label input[type="checkbox"]:checked ~ .ps-shown-by-js i.checkbox-checked{
  opacity: 1;
  transform: scale(1);
}
#search_filters .facet .facet-label a, #search_filters_brands .facet .facet-label a, #search_filters_suppliers .facet .facet-label a {
	margin-top: 0;
}
/* Link + recuento */
#search_filters a.search-link{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;

  color: rgba(0,0,0,0.72);
  text-decoration: none;

  font-size: 13px;
  line-height: 1.2;

  flex: 1;
  min-width: 0;
}
#search_filters a.search-link:hover{
  color: rgba(0,0,0,0.86);
  text-decoration: none;
}
#search_filters a.search-link .magnitude{
  color: rgba(0,0,0,0.55);
  font-size: 12px;
  white-space: nowrap;
}
#search_filters a._gray-darker{
  color: rgba(0,0,0,0.72);
}

/* -----------------------------------------
   SLIDERS (Peso/Precio): aire + no cortar handles
----------------------------------------- */
#search_filters ul.faceted-slider{
  margin: 0;
  padding: 6px 14px 12px;
  list-style: none;

  /* evita el corte del handle derecho */
  overflow: visible !important;
}
#search_filters ul.faceted-slider li{
  margin: 0;
  padding: 0 0 10px;
}
#search_filters ul.faceted-slider p[id^="facet_label_"]{
  margin: 0 0 10px;
  font-size: 12.5px;
  color: rgba(0,0,0,0.60);
}

/* Contenedor del slider: dar margen lateral para que el handle no “toque” borde */
#search_filters ul.faceted-slider #slider-range_25555,
#search_filters ul.faceted-slider #slider-range_72899,
#search_filters ul.faceted-slider .ui-slider.ui-slider-horizontal{
  margin: 0 8px; /* clave para que el círculo derecho no se corte visualmente */
}

/* jQuery UI slider */
#search_filters .ui-slider.ui-slider-horizontal{
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.06);
}
#search_filters .ui-slider .ui-slider-range{
  background: rgba(47, 107, 63, 0.45);
  border-radius: 999px;
}
#search_filters .ui-slider .ui-slider-handle{
  width: 16px;
  height: 16px;
  top: -6px;

  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;

  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
#search_filters .ui-slider .ui-slider-handle:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 107, 63, 0.16), 0 6px 14px rgba(0,0,0,0.12);
}

/* -----------------------------------------
   MÓVIL (acordeón): coherencia + aire
----------------------------------------- */
@media (max-width: 991px){

  #search_filters{
    border-radius: 14px;
	  margin: 0 23px !important;
  }

  #search_filters > p.h6.hidden-sm-down{
    display: none;
  }

  #search_filters section.facet{
    padding: 8px 0;
  }

	#search_filters .title.hidden-md-up {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 12px 0px;
	}
  #search_filters .title.hidden-md-up .facet-title{
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: rgba(0,0,0,0.78);
  }

  #search_filters .title.hidden-md-up .navbar-toggler.collapse-icons{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 21px;
    height: 21px;
    border-radius: 10px;

    background: rgba(47, 107, 63, 0.08);
    color: #2f6b3f;
  }
  #search_filters .title.hidden-md-up .navbar-toggler.collapse-icons i{
    font-size: 18px;
    line-height: 1;
  }

  #search_filters section.facet > ul.collapse{
    padding: 8px 0 12px;
    max-height: unset;
  }
  #search_filters section.facet > ul.collapse > li{
    padding: 0.5rem 1.3rem !important;
    border-top: 0 !important;
  }

  #search_filters ul.faceted-slider{
    padding: 10px 12px 14px;
  }
  #search_filters ul.faceted-slider #slider-range_25555,
  #search_filters ul.faceted-slider #slider-range_72899,
  #search_filters ul.faceted-slider .ui-slider.ui-slider-horizontal{
    margin: 0 10px;
  }
}

/* -----------------------------------------
   Botón OK (si aparece en móvil)
----------------------------------------- */
#search_filter_controls{
  padding: 10px 0;
}
#search_filter_controls .btn.ok{
  border-radius: 999px;
  padding: 8px 14px;
  background: #2f6b3f;
  border-color: #2f6b3f;
  color: #fff;
}
#search_filter_controls .btn.ok:hover{
  background: #285a35;
  border-color: #285a35;
}
