/* CONTENEDOR DEL SHORTCODE (ID que me diste) */
#filtrosproductos{
  width: 100%;
  display: block;
}

/* NAV del filtro: mismo ancho que contenedor (1250px) y alineado a la izquierda */
#filtrosproductos .wc-subcat-filter{
  width: 1250px;
  max-width: 100%;
  margin: 0;                 /* importante: nada de centrar */
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;  /* alineación izquierda */
  align-items: center;
}

/* BOTONES (RECTANGULARES COMO REFERENCIA) */
#filtrosproductos .wc-subcat-filter a{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #F8F8F8;         /* color inicial */
  color: #111;
  border: 1px solid #BDBDBD;   /* borde gris fino como en la referencia */
  border-radius: 3px;          /* ✅ NO pill */

  padding: 8px 14px;           /* compacto, evita 2 líneas */
  line-height: 1;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  white-space: nowrap;         /* clave para que no salten a dos líneas */
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

/* Hover (desktop) */
#filtrosproductos .wc-subcat-filter a:hover{
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Activo: relleno negro */
#filtrosproductos .wc-subcat-filter a.is-active{
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Estado loading que añade el plugin */
#filtrosproductos .wc-subcat-filter.is-loading{
  opacity: .65;
  pointer-events: none;
}

/* MÓVIL: fila con scroll horizontal (sin apilar) */
@media (max-width: 767px){
  #filtrosproductos .wc-subcat-filter{
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    gap: 8px;
    padding-bottom: 6px; /* para que no corte el scrollbar */
  }

  #filtrosproductos .wc-subcat-filter::-webkit-scrollbar{
    height: 6px;
  }

  #filtrosproductos .wc-subcat-filter::-webkit-scrollbar-thumb{
    background: rgba(0,0,0,.25);
    border-radius: 999px;
  }
}
