/* Shared reading scale, loaded after theme and commerce styles. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 16px; line-height: 1.65; }
button, input, select, textarea { font-family: var(--sans); }

/* Supporting text stays readable at every breakpoint, including 320px. */
small, .prototype-bar, .header-search, .header-search span, .main-nav a,
.breadcrumbs, .eyebrow, [data-gender="men"] .eyebrow,
.search-label, .search-hint, .search-hint button, .search-suggestions-group,
.suggestion small, .subtle-link, .browse-tabs button, .browse-option small,
.filter-heading h2, .text-button, .mobile-filter-footer .text-button,
.facet summary, .filters-dialog .facet summary, .facet-option,
.filters-dialog .facet-option, .facet-option span:last-child, .facet-no-match,
.price-fields label, .price-error, .result-count, .sort-label select,
.filter-button, .filter-chip, .active-filters > .text-button, .search-summary,
.product-image-brand, .product-brand, .product-kind, .product-meta,
.price-prefix, .stock-label, .details-link, .load-more > p,
.footer-inner > div > p:last-child, .footer-demo, .back-top,
.detail-breadcrumbs, .detail-breadcrumbs button, .detail-art-label,
.detail-facts > div, .detail-facts dd button, .volume-label, .detail-hint,
.detail-links button, .related-link small, .order-product-info > p,
.order-form-label, .field-error, .order-consent, .order-footnote, .demo-hint,
.order-success .eyebrow, .max-preview summary, .toast,
.official-source-link, .gender-switch button, .audience-note,
.information-tabs button, .information-facts div, .cart-line small,
.cart-line span, .cart-line label, .checkout-form p, .checkout-consent,
.cart-footnote, .checkout-extras summary small, .checkout-required-note,
.checkout-next-step, .detail-zoom-hint, .saved-products-nav button,
.order-buyer-link > span, .shop-directory a, .card-volume {
  font-size: 14px;
  line-height: 1.55;
}
.intro-copy, .suggestion strong, .browse-option-name, .product-name,
.detail-description, .detail-extra p, .related-link strong,
.order-product-info h3, .order-success > p, .empty-results > p,
.callback-note p, .volume-option, .cart-line strong, .receiving-info,
.checkout-form label:not(.checkout-consent), .information-panel p {
  font-size: 16px;
  line-height: 1.65;
}
.button, .order-button, .detail-purchase .button, .order-form .button,
.empty-actions .button, .cart-open, .clinic-return-link {
  font-size: 14px;
  line-height: 1.5;
}
.search-box input, .search-box input::placeholder, .facet-search,
.filters-dialog .facet-search, .price-fields input, .card-volume select,
.card-volume-single, .order-input {
  font-size: 16px;
  line-height: 1.5;
}
.source-date { font-size: 14px !important; }
.manufacturer-excerpt, .max-preview pre { font-size: 16px !important; line-height: 1.75; }
.price-unknown { font-size: 16px !important; }
.detail-purchase .price-unknown { font-size: 20px !important; }
.product-price { font-size: 22px; line-height: 1.4; }
.product-name { min-height: 0; font-weight: 600; }
.product-brand, .product-image-brand { letter-spacing: .06em; }
.eyebrow { letter-spacing: .12em; }
.product-body { padding: 18px 16px; }
.product-meta { overflow-wrap: anywhere; }
.card-volume { min-height: 76px; }
.browse-option-name { overflow-wrap: anywhere; }
.browse-panel[data-mode="brand"] .browse-option-name { font-size: 17px; line-height: 1.4; }
.browse-panel[data-mode="brand"] { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.browse-heading, .result-heading, .catalog-toolbar, .catalog-actions,
.detail-breadcrumbs, .detail-purchase { flex-wrap: wrap; }
.result-count { white-space: normal; }
.subtle-link { white-space: normal; }
.browse-tabs { flex-wrap: wrap; gap: 8px 24px; }
.browse-tabs button, .browse-tabs button:last-child { max-width: 100%; }
.information-tabs button { white-space: normal; text-align: left; }
.sort-label { min-width: 0; }
.sort-label select { max-width: 100%; }
.filter-button > span { font-size: 14px; min-width: 24px; height: 24px; }
.detail-facts > div { flex-wrap: wrap; gap: 6px 14px; }
.detail-description, .information-panel p, .detail-extra p { max-width: 68ch; }
.footer-demo { max-width: 360px; }
.cart-line .quantity-control input { font-size: 16px; }
/* Existing fixed secondary colors were too faint against the light paper. */
html[data-gender="women"] :is(.breadcrumbs, .search-hint, .browse-option small,
.product-brand, .product-meta, .product-kind, .details-link, .result-count,
.facet-option span:last-child, .load-more > p,
.source-date) { color: #535b4d !important; }
html[data-gender="women"] :is(.footer-demo, .back-top,
.footer-inner > div > p:last-child) { color: #c3c8b8; }

@media (max-width: 1150px) {
  .main-nav { display: none; }
}
@media (max-width: 680px) {
  .browse-panel, .browse-panel[data-mode="type"], .browse-panel[data-mode="brand"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-body { padding: 16px 12px; }
  .product-grid { gap: 18px 12px; }
  .catalog-actions { gap: 8px; }
  .sort-label { flex: 1; text-align: right; }
  .browse-heading h2 { max-width: none; }
  .detail-breadcrumbs .clinic-return-link { white-space: normal; text-align: left; }
  .detail-purchase { gap: 14px; }
  .cart-line .quantity-slot { margin-left: 0; }
  .cart-line > .text-button { margin-left: auto; }
  .footer-demo { max-width: 100%; }
  .footer-inner { gap: 20px; }
}
@media (max-width: 440px) {
  /* Give product names room instead of shrinking text to fit two columns. */
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-image-link { height: 240px; }
  .product-body { padding: 18px; }
}

/* The site-wide notice is also readable inside the shop. */
body .clinic-service-notice p { font-size: 14px; line-height: 1.55; }

/* Recommendations must shrink around long names on narrow phones. */
.related-link, .related-link > span, .related-link > div { min-width: 0; }
.related-link strong, .related-link small { overflow-wrap: anywhere; }
