/* INGCO – Categorías (widget Woo + bloque) – v2.5
   - Solo “+ / –” (sin rectángulo)
   - Nada se monta sobre el texto
   - Seleccionada con sombreado intenso
*/

:root{ --ingco-yellow:#ffb400; }

/* Contenedor + scroller */
.ingco-cat{ position:relative; overflow:hidden; border-radius:12px; }
.ingco-cat__scroller{
  overflow:auto; max-height:60vh; padding-right:4px;
  scrollbar-width: thin; scrollbar-color: var(--ingco-yellow) #000;
}
.ingco-cat__scroller::-webkit-scrollbar{ width:10px; }
.ingco-cat__scroller::-webkit-scrollbar-track{ background:#000; }
.ingco-cat__scroller::-webkit-scrollbar-thumb{ background:var(--ingco-yellow); border-radius:10px; border:2px solid #000; }

/* Lista base */
.ingco-cat ul, .ingco-cat li{ list-style:none; margin:0; padding:0; }
.ingco-cat li{ position:relative; }

/* Enlaces: bloque completo, con hueco a la izquierda para el símbolo */
.ingco-cat a{
  display:block; color:#fff; text-decoration:none; opacity:.95;
  padding:8px 10px; border-radius:8px; line-height:1.25;
  transition:color .2s, background .2s, opacity .2s;
  margin:0 !important;
}
.ingco-cat a:hover{ color:var(--ingco-yellow); background:#171717; opacity:1; }

/* Hueco extra para las que tienen hijos */
.ingco-cat .ingco-cat__scroller li.has-children > a{
  position:relative;
  padding-left:36px !important;   /* ← reserva para el símbolo */
  min-height:32px;
}

/* Símbolo + / – (no es botón, es decorativo) */
.ingco-cat li.has-children > a::before{
  content:'+'; position:absolute; left:12px; top:50%;
  transform:translateY(-50%);
  font-weight:900; font-size:16px; line-height:1; color:var(--ingco-yellow);
  pointer-events:none;             /* nunca intercepta clicks */
}
/* Cuando está abierta, muestra “–” */
.ingco-cat li.is-open > a::before{ content:'–'; }

/* Botón real invisible: solo área de click (no tapa el texto) */
.ingco-cat .ingco-cat__toggle{
  position:absolute; left:0; top:0;
  width:32px; height:100%;
  background:transparent; border:0; cursor:pointer;
  z-index:1;                       /* por debajo del texto del enlace */
}

/* Subniveles */
.ingco-cat li > ul,
.ingco-cat li > .children,
.ingco-cat li > .wc-block-product-categories-list{
  margin:4px 0 6px 8px; padding-left:12px;
  border-left:1px dashed rgba(255,180,0,.25);
}

/* Activos (seleccionada = sombreado intenso) */
.ingco-cat .current-cat > a{
  color:var(--ingco-yellow);
  background:#151515;
  box-shadow: inset 0 0 0 2px var(--ingco-yellow);
  opacity:1;
}
.ingco-cat .current-cat-parent > a,
.ingco-cat .current-cat-ancestor > a{
  color:var(--ingco-yellow);
  background:#111;
  box-shadow: inset 0 0 0 1px rgba(255,180,0,.35);
  opacity:1;
}

/* Asegura que los elementos de resultados no queden tapados */
.woocommerce .woocommerce-products-header,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.woocommerce .products,
.woocommerce .woocommerce-notices-wrapper{ position:relative; z-index:50; }

/* Responsive */
@media (max-width:768px){
  .ingco-cat__scroller{ max-height:48vh; }
  .ingco-cat .ingco-cat__scroller li.has-children > a{ padding-left:34px !important; }
  .ingco-cat li.has-children > a::before{ left:10px; }
  .ingco-cat .ingco-cat__toggle{ width:30px; }
}

