.cat-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 56px 0 28px; }
.cat-head h1 { font-size: clamp(44px, 6vw, 72px); }
.cat-head p { margin: 0; }

.toolbar {
  position: sticky; top: 68px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; margin-bottom: 28px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--muted); font-size: 15px;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-selected="true"]):hover { color: var(--text); border-color: var(--muted); } }

.toolbar-right { display: flex; gap: 10px; }
.search { position: relative; display: block; }
.search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 38px; width: 240px; min-height: 40px; }
.toolbar select.input { min-height: 40px; width: auto; padding-right: 32px; }

@media (max-width: 860px) {
  .cat-head { padding: 32px 0 20px; }
  .toolbar { top: 68px; }
  .toolbar-right { width: 100%; }
  .search { flex: 1; }
  .search .input { width: 100%; }
}

.filtros { display: grid; gap: 10px; min-width: 0; }
.colores-filtro { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.colores-filtro::-webkit-scrollbar { display: none; }
.color-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px 0 6px;
  background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.color-chip:active { transform: scale(0.97); }
.color-chip span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); }
.color-chip em { font-style: normal; }
.color-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
@media (hover: hover) and (pointer: fine) { .color-chip:hover { color: var(--text); border-color: var(--muted); } }
.toolbar { align-items: flex-start; }

/* Los filtros se llenan al cargar los productos: se reserva su alto para que la lista no salte */
.chips:empty { min-height: 40px; }
.colores-filtro:empty { min-height: 38px; }
