/* Sidebar categorías y subcategorías */
.cat-chevron {
  cursor: pointer;
  margin-left: 8px;
  font-size: 13px;
  transition: transform 0.2s;
  user-select: none;
}
.cat-chevron.open {
  transform: rotate(90deg);
}
.subcat-list {
  display: none;
  padding-left: 18px;
  margin: 6px 0 6px 0;
  list-style: none;
}
.subcat-list.open {
  display: block;
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(202,0,39,0.10), 0 0px 0 0 #CA0027;
  border-radius: 8px;
  margin-top: 6px;
  margin-bottom: 6px;
  padding: 8px 12px;
  transition: box-shadow 0.2s, background 0.2s;
}

/* Categorías y subcategorías: estilos base */
.cat-link,
.subcat-link {
  text-transform: uppercase !important;
  font-size: 12px !important;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  display: block;
  padding: 2px 0;
  transition: color 0.2s, background 0.2s, font-weight 0.2s;
  border-radius: 5px;
  line-height: 1.8 !important;
}

/* Hover (excepto activo) */
.cat-link:hover:not(.active),
.subcat-link:hover:not(.active) {
  color: #CA0027 !important;
  font-weight: bold !important;
}

/* Activo: fondo, color, padding, etc SOLO en el <a> */
.cat-link.active,
.subcat-link.active {
  color: #fff !important;
  background-color: #CA0027 !important;
  font-weight: bold !important;
  padding: 10px !important;
  border-radius: 5px !important;
  display: block;
}

/* Elimina fondo en el li, solo el <a> activo tiene fondo */
.list-lines li,
.subcat-list li {
  background: none !important;
  padding-inline: 5px !important;
}

/* Subcategoría activa sigue igual */
.subcat-link.active {
  background: #CA0027 !important;
  color: #fff !important;
}

/* Opcional: subcategorías no activas, color más suave */
.subcat-link {
  color: #CA0027;
  background: transparent;
}

/* Opcional: categoría activa, shadow más fuerte */
.cat-link.active {
  box-shadow: 0 2px 2px 0 rgba(202,0,39,0.10);
}

.list-lines li {
  border-bottom: 1px solid #ddd;
  padding: 5px 0 5px 2px;
}