/* ==========================================================================
   Filter tabs — horizontal, scrollable when categories outgrow the width
   The active underline is a single indicator positioned by
   product-catalog.js through --indicator-x / --indicator-width.
   ========================================================================== */

.filter-tabs {
  position: relative;
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tabs__tab {
  flex-shrink: 0;
  padding: 1.3125rem var(--space-xl);   /* 21 32 */
  font-family: var(--font-display);
  font-size: var(--text-tab);
  font-weight: var(--weight-light);
  line-height: 1.125;
  color: var(--color-mist-300);
  white-space: nowrap;
  transition: color var(--duration-fast) ease;
}

.filter-tabs__tab:hover {
  color: var(--color-white);
}

.filter-tabs__tab[aria-pressed="true"] {
  font-weight: var(--weight-regular);
  color: transparent;
  background-image: var(--gradient-tab-active);
  background-clip: text;
  -webkit-background-clip: text;
}

.filter-tabs__indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--indicator-width, 0);
  height: 2px;
  background-color: var(--color-periwinkle-200);
  border-radius: var(--radius-pill);
  transform: translateX(var(--indicator-x, 0));
  transition:
    transform var(--duration-base) var(--ease-out-expo),
    width var(--duration-base) var(--ease-out-expo);
}

@media (max-width: 47.99rem) {
  .filter-tabs__tab {
    padding-inline: var(--space-lg);
  }
}
