/* ==========================================================================
   Section: best-seller  →  assets/section-best-seller.css
   Figma 1089-3099: 1320×596 at 1440, 64px below the hero.
   Header row (cap-trimmed 32px EB Garamond title + shared .tabs, "VIEW ALL")
   → 24px → product carousel → 32px → 400×2 progress bar.
   ========================================================================== */
.best-seller {
  padding-top: 64px;
}

.best-seller__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header row */
.best-seller__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.best-seller__heading-group {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  min-width: 0;
}

.best-seller__title {
  font-family: var(--font-display);
  font-size: var(--text-display-s-size);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-primary);
  white-space: nowrap;
  text-box: trim-both cap alphabetic; /* Figma text-box-trim: 21px box for the 32px face */
}

.best-seller__count {
  font-size: 20.64px;
  line-height: 1;
  vertical-align: 14px; /* baseline raised 14px: "(42)" tops out 7px above the cap line, as in Figma */
}

/* View all — the shared .button--tertiary (see components/button.css); nothing to add here */

/* Panels */
.best-seller__panel[hidden] {
  display: none;
}

@media (max-width: 749px) {
  .best-seller {
    padding-top: 48px;
  }

  .best-seller__header {
    flex-wrap: wrap;
    row-gap: 16px;
  }

  .best-seller__heading-group {
    flex-wrap: wrap;
    row-gap: 12px;
  }
}
