/* Shared compact headings. Load after page styles, including responsive rules.
   Brand marks, the homepage hero, product cards and body copy keep their own scale. */
:root {
  --page-title-size: 22px;
  --section-title-size: 18px;
}

.favorites-heading h1,
.category-heading h1,
.product-info h1,
.product-not-found h1,
.account-heading h1,
.sso-intro h1,
.sso-profile-page .sso-intro h1 {
  font-family: var(--sans);
  font-size: var(--page-title-size);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.favorites-empty h2,
.category-directory-group h2,
.category-page-catalog .empty-state h2,
.product-information h2,
.product-information-header h2,
.product-attribute-panel h2,
.product-ratings h2,
.product-next-step h2,
.description-section h3,
.product-use-note strong,
.storefront-home .catalog-heading h2,
.section h2,
.guide h2,
.business h2,
.assortment-card h3,
.empty-state h3,
.detail-dialog h2,
.account-panel h2 {
  font-family: var(--sans);
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.02em;
}

/* Functional pages should reach their content without an oversized title block. */
.favorites-shell { padding-block: 0 36px; }
.breadcrumbs { padding-block: 14px 12px; }
.theme-context { margin: 0 0 12px; }
.favorites-heading,
.category-heading { margin: 0 0 16px; }
.favorites-heading h1,
.category-heading h1 { margin: 0 0 8px; }
.favorites-heading > p:last-child,
.category-heading > p:last-child { font-size: 14px; line-height: 1.65; }
.favorites-heading > p:last-child { max-width: 760px; }
.category-heading .eyebrow { font-size: 10px; margin-bottom: 6px; }
.favorites-summary { margin: 0 0 12px; }
.favorites-empty { padding: 24px; }
.favorites-empty-heart { width: 48px; height: 48px; margin-bottom: 12px; }
.favorites-empty h2 { margin-bottom: 8px; }
.favorites-empty p { margin-bottom: 16px; }
.category-browse { margin: 16px 0; }
.category-page-catalog { margin-top: 16px; }
.category-directory-group { padding: 20px; }
.category-directory-group h2 { margin-bottom: 12px; }
.product-not-found { padding-block: 28px; }
.product-not-found h1 { margin: 8px 0 12px; }
.product-info h1 { margin: 10px 0 16px; }
.product-information-header h2,
.description-section h3,
.product-ratings h2,
.product-next-step h2 { margin-bottom: 10px; }
.section h2,
.guide h2 { max-width: none; }
.section-heading { margin-bottom: 14px; }
.categories .section-heading .eyebrow { margin-bottom: 6px; }
.business h2 { margin: 8px 0 12px; }
.detail-dialog h2 { margin: 8px 0 12px; padding-right: 28px; }

@media (max-width: 560px) {
  .breadcrumbs { padding-block: 10px; }
  .favorites-shell { padding-bottom: 28px; }
  .favorites-empty { padding: 20px 16px; }
  .category-directory-group { padding: 16px; }
}
