/* Category navigation owns its layout at every viewport size. */
.category-nav {
  position: sticky;
  top: 56px;
  z-index: 95;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  padding: 8px 0;
  border-bottom: 1px solid #252528;
  background: #0f0f0f;
}
.category-nav .chips {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: auto;
  scroll-behavior: auto;
  scroll-padding-inline: 4px;
  user-select: none;
  cursor: grab;
}
.category-nav .chips::-webkit-scrollbar { display: none; }
/* Pill chips: one line icon (Lucide, 16px) plus label. Icons stay muted until the chip is hovered or active. */
.category-nav .chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px 0 13px;
  border: 1px solid #2b2b30;
  border-radius: 999px;
  background: #161619;
  color: #c4c4cc;
  font: 600 .875rem/1 var(--c-sans);
  letter-spacing: -.02em;
  white-space: nowrap;
  cursor: inherit;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.category-nav .chip i {
  flex: none;
  color: #85858f;
  font-size: 16px;
  line-height: 1;
  transition: color .18s ease;
}
.category-nav .chip.active {
  border-color: #f04a5c;
  background: #dc293e;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px -12px rgba(220, 41, 62, .9);
}
.category-nav .chip.active i { color: #fff; }
.category-nav-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #2b2b30;
  border-radius: 999px;
  background: #161619;
  color: #eeeef2;
  font-size: 18px;
  cursor: pointer;
}
.category-nav-arrow:disabled { border-color: transparent; background: transparent; color: #505057; cursor: default; }
.category-nav .chip:focus-visible,
.category-nav-arrow:focus-visible { outline: 2px solid #ff7284; outline-offset: 2px; }
.category-nav .chips.is-dragging,
.category-nav .chips.is-dragging .chip { cursor: grabbing; }
@media (hover: hover) {
  .category-nav .chip:not(.active):hover { background: #202024; border-color: #47474e; color: #fff; }
  .category-nav .chip:not(.active):hover i { color: #ff7a88; }
  .category-nav-arrow:not(:disabled):hover { background: #302027; border-color: #9b3947; }
}
@media (max-width: 767px) {
  .category-nav { top: calc(56px + var(--nox-promotion-height, 0px)); width: 100%; gap: 5px; padding: 7px 12px; }
  .category-nav .chip { gap: 6px; padding: 0 14px 0 11px; }
  .category-nav .chip i { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .category-nav .chip, .category-nav .chip i { transition: none; }
}
