/* ============================
   CHIPS — filters (no horizontal scroll)
   ============================ */

.gg-chipbar {
  padding: 6px 0;
  border-bottom: none !important;
  background: transparent !important;
  text-align: left;
}

/* Chip container — always multi-line, never scroll */
.gg-chips,
#subcatChips,
#subfilterChips {
  display: flex;
  flex-wrap: wrap;               /* ✅ always wrap instead of scroll */
  gap: 4px;
  overflow-x: visible !important; /* ✅ disable horizontal scrolling */
  padding: 0 3px;
  justify-content: flex-start;
  text-align: left;
}

/* Remove scrollbar settings (no longer needed) */
.gg-chips.rail,
#subfilterChips .gg-chips {
  overflow-x: visible !important;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gg-chips.rail::-webkit-scrollbar,
#subfilterChips .gg-chips::-webkit-scrollbar {
  display: none;
}

/* Base chip */
.gg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 9999px;
  background: var(--chip, #161616);
  border: 1px solid var(--line, #1f1f1f);
  color: var(--ink, #fff);
  font-weight: 600;
  font-size: 0.80rem;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Active chip */
.gg-chip.is-active {
  background: var(--brand, #2cd38d);
  border-color: var(--brand, #2cd38d);
  color: var(--ink-inv, #0a0a0a);
}

/* No hover effects for mobile */
.gg-chip:hover { filter: none; }

/* Focus styles (for accessibility) */
.gg-chip:focus { outline: none; }
.gg-chip:focus-visible {
  outline: 2px solid rgba(44,211,141,.8);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(10,10,10,.85);
}

/* Cleanup stray dividers under chipbars */
.gg-chipbar + hr,
.gg-chipbar + .divider,
.gg-chipbar + .gg-divider,
.gg-chipbar + .gg-rule {
  display: none !important;
  border: none !important;
}

/* Category tabs boldness */
.gg-tab { font-weight: 700 !important; letter-spacing: .2px; }
.gg-tab.is-active { font-weight: 800 !important; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gg-chips, #subcatChips, #subfilterChips { scroll-behavior: auto; }
}
