/* Shared narrow-screen safeguards for every public page. */
@media (max-width: 680px) {
  html { overflow-x: hidden; scroll-padding-top: 74px; }
  body { overflow-x: hidden; }
  img, svg, video, iframe { max-width: 100%; }
  h1, h2, h3, p, a, button, dd, th, td { overflow-wrap: anywhere; }
  input, select, textarea, button { max-width: 100%; min-width: 0; }
  .header-inner, .catalog-header .header-inner, .filter-controls,
  .map-layout, .detail-panel, .guidance-main, .reference-card { min-width: 0; }
  .catalog-logo, .brand { min-width: 0; }
  .product-card h3, .related-card strong, .blog-card h2, .blog-cta h2 { overflow-wrap: anywhere; }
  .product-actions a, .hero-actions .button, .action-button {
    justify-content: center;
    max-width: 100%;
    text-align: center;
  }
  .seo-hero h1 {
    font-size: clamp(2.25rem, 11.5vw, 3.1rem) !important;
    overflow-wrap: anywhere;
  }
  .blog-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.35rem) !important;
    line-height: .9;
    overflow-wrap: anywhere;
  }
  .blog-hero h1 em { display: inline; }
  .info-hero h1 {
    font-size: clamp(2.3rem, 11.5vw, 3.2rem) !important;
    overflow-wrap: anywhere;
  }
  .check-table { table-layout: fixed; }
  .check-table th, .check-table td { hyphens: auto; overflow-wrap: anywhere; }
  .info-tabs { scrollbar-width: none; }
  .info-tabs::-webkit-scrollbar { display: none; }
  .store-card dl div { grid-template-columns: 76px minmax(0, 1fr); }
  .mobile-contact-bar {
    height: calc(67px + env(safe-area-inset-bottom)) !important;
    padding-bottom: env(safe-area-inset-bottom);
  }
  body:has(.mobile-contact-bar) {
    padding-bottom: calc(67px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 420px) {
  .catalog-shell, .shell { padding-left: 14px; padding-right: 14px; }
  .catalog-hero h1 {
    font-size: clamp(2.65rem, 14.5vw, 3.55rem);
    overflow-wrap: anywhere;
  }
  .product-copy h1 {
    font-size: clamp(2.1rem, 11.5vw, 2.75rem) !important;
    overflow-wrap: anywhere;
  }
  .product-grid, .related-grid, .collection-grid { grid-template-columns: 1fr !important; }
  .collection-grid .collection-card:first-child { grid-column: auto !important; }
  .collection-card { min-height: 245px !important; }
  .product-image, .related-card img {
    height: auto !important;
    aspect-ratio: 3 / 2;
  }
  .product-actions a, .hero-actions .button {
    flex: 1 1 100%;
    width: 100%;
  }
  .filter-controls { grid-template-columns: 1fr !important; }
  .filter-controls label, .filter-controls select, .filter-controls button {
    grid-column: 1 !important;
    width: 100%;
  }
  .filter-controls button {
    justify-self: stretch !important;
    min-height: 38px;
    text-align: right;
  }
  .blog-header .header-inner { gap: 9px; }
  .blog-header .brand { max-width: 160px; }
  .blog-header nav { gap: 10px !important; }
}

@media (max-width: 360px) {
  .blog-header nav a:not(.active) { display: none; }
  .mobile-contact-bar a { font-size: 7px !important; }
}
