/* Catalog touch layouts. Keep the established desktop presentation above 900px. */
@media (max-width: 900px) {
  :root { --gutter: clamp(16px, 4.6vw, 32px); }

  .catalog-header { min-height: 72px; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
  .catalog-wordmark { font-size: 25px; }
  .catalog-nav { display: none; }
  .catalog-menu-toggle { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; margin-right: -8px; padding: 10px; }
  .catalog-mobile-nav a { min-height: 44px; padding: 10px 0; }

  .collection-intro-inner { min-height: 0; padding-top: 28px; padding-bottom: 28px; }
  .collection-intro-copy { max-width: 100%; }
  .collection-intro h1 { font-size: clamp(34px, 6vw, 40px); }
  .collection-intro-copy > p { font-size: 16px; }
  .collection-intro-copy .collection-service-line { font-size: 14px; }
  .collection-hero-image { display: none; }

  .category-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: visible; white-space: normal; }
  .category-tabs a { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 52px; padding: 13px 2px; font-size: 14px; text-align: center; }
  .catalog-toolbar { padding: 24px 0 20px; }
  .catalog-toolbar > p:last-child { display: none; }
  .catalog-toolbar #product-count { font-size: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .product-card h2, .product-card h3 { margin: 12px 0 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
  .product-card p { margin-top: 6px; font-size: 12px; }

  .pagination { flex-wrap: nowrap; gap: 3px; margin: 36px 0; }
  .pagination a, .pagination span { min-width: 0; width: 44px; min-height: 44px; padding: 5px 0; }
  .catalog-custom-note { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 0 34px; }
  .catalog-custom-note h2 { font-size: 24px; }
  .catalog-custom-note p { font-size: 16px; }
  .catalog-custom-note .catalog-button { width: 100%; }

  .product-breadcrumbs { gap: 9px; padding: 20px 0; font-size: 13px; }
  .product-breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }
  .product-detail { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-bottom: 38px; }
  .product-gallery { width: 100%; max-width: 640px; margin-inline: auto; }
  .product-information { min-width: 0; }
  .product-main-frame { aspect-ratio: 1; }
  .product-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(100%, 300px); margin-top: 16px; }
  .product-thumbnail { width: 100%; aspect-ratio: 1; }
  .product-thumbnail img { width: 100%; height: 100%; }
  .product-view-status { margin-top: 10px; font-size: 13px; }
  .product-information h1 { font-size: clamp(28px, 4.8vw, 36px); line-height: 1.22; }
  .product-reference { font-size: 14px; }
  .product-description { font-size: 16px; }
  .product-specs { table-layout: fixed; margin-top: 22px; font-size: 14px; }
  .product-specs th { width: 33%; }
  .product-specs th, .product-specs td { padding: 12px; overflow-wrap: anywhere; }
  .product-enquiry { padding: 18px; }
  .product-enquiry p { font-size: 15px; }
  .product-enquiry .catalog-button { min-height: 50px; padding-inline: 14px; }
  .product-enquiry .enquiry-help { font-size: 13px; }
  .product-service-notes { gap: 10px 20px; }
  .product-service-notes li { font-size: 14px; }
  .related-products { padding-top: 28px; padding-bottom: 38px; }
  .related-products > h2 { margin-bottom: 24px; font-size: 25px; }

  .site-footer nav { gap: 2px; }
  .site-footer nav a { display: flex; align-items: center; min-height: 44px; padding-block: 7px; }
  .site-footer .footer-contact > a { align-items: center; min-height: 44px; }
  .site-footer .footer-contact > a svg { margin-top: 0; }
  .site-footer .footer-whatsapp .whatsapp-button { min-height: 50px; }
}

@media (max-width: 380px) {
  .product-grid { column-gap: 12px; }
  .pagination { gap: 2px; }
  .pagination a, .pagination span { width: calc((100% - 12px) / 7); max-width: 44px; }
  .product-specs th, .product-specs td { padding: 10px; }
  .product-enquiry { padding: 16px; }
}

/* A menu opened on a phone must not duplicate desktop navigation after resizing. */
@media (min-width: 901px) {
  .catalog-mobile-nav { display: none; }
}
