/**
 * Section: Category Strip
 * Ported from .docs/mockup/css/sections.css (CATEGORY STRIP block, lines
 * 842-917) and its rules in the shared responsive block (980px turns the
 * strip into a horizontal scroller with hidden scrollbars, 480px shrinks the
 * chips). Tokens only — no hardcoded colours or fonts.
 */

.category-strip {
  background: var(--off-white);
  padding-block: var(--space-m);
  padding-inline: var(--space-gutter);
  border-bottom: 1px solid var(--hairline);
}

.category-strip-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  background: var(--pebble);
  padding: var(--space-2xs) var(--space-s) var(--space-2xs) var(--space-2xs);
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  transition: border-color var(--duration-fast),
              background var(--duration-fast),
              transform var(--duration-normal) var(--ease-out);
}

.category-chip:hover {
  border-color: var(--deep-ocean);
  background: var(--off-white);
  transform: translateY(-2px);
}

.category-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--deep-ocean);
  border-radius: 50%;
  color: var(--off-white);
}

.category-chip-icon .material-symbols-outlined {
  font-size: 18px;
}

.category-chip-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-right: var(--space-2xs);
}

.category-chip-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--deep-ocean);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.category-chip-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.2px;
}


/* === RESPONSIVE === */
@media (max-width: 980px) {
  /* Category strip — scroll horizontally on tablet */
  .category-strip-inner {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-2xs);
  }

  .category-strip-inner::-webkit-scrollbar {
    display: none;
  }

  .category-chip {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  /* Category strip — compact chips on mobile */
  .category-chip {
    padding: var(--space-3xs) var(--space-xs) var(--space-3xs) var(--space-3xs);
  }

  .category-chip-icon {
    width: 32px;
    height: 32px;
  }

  .category-chip-icon .material-symbols-outlined {
    font-size: 16px;
  }

  .category-chip-name {
    font-size: 12px;
  }

  .category-chip-price {
    font-size: 10px;
  }
}
