/* Responsive refinements for catalogue, product, story and enquiry pages. */
img, video, iframe { max-width: 100%; }
.product, .product > *, .catalogue > *, .mandir-intro-layout > *, .split > * { min-width: 0; }
.product h1, .page-intro h1, .story-intro h1, .card h3, .guide-editorial h1 { overflow-wrap: anywhere; }
button, input, select, textarea { max-width: 100%; }
@media (max-width: 800px) {
  .product { padding: 1.1rem 5% 3rem; gap: .55rem; }
  /* Bring the enquiry controls ahead of the longer description on phones. */
  .product > div:first-child { display: contents; }
  .product #product-main { order: 0; }
  .product > div:first-child > .note { order: 1; margin: .25rem 0; }
  .product .thumbs { order: 2; margin: .15rem 0 .75rem; }
  .product .product-copy { order: 3; }
  .product .product-description { order: 4; margin-top: 1.35rem; }
  .product .main-image { height: auto; aspect-ratio: 4 / 5; max-height: min(62vh, 31rem); }
  .product h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); line-height: 1.12; letter-spacing: -.025em; margin: .65rem 0 1rem; }
  .product-copy p, .product-description p { font-size: 1rem; line-height: 1.6; }
  .product-copy .note { font-size: .875rem; }
  .product-copy .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 1rem; }
  .product-copy .actions .button { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: .7rem .6rem; line-height: 1.3; }
  .product-copy .actions .button:first-child { grid-column: 1 / -1; }
  .product-copy .mandir-guide { margin-top: 1.4rem; }
  .crumbs { overflow-wrap: anywhere; line-height: 1.5; }
  input, select, textarea { font-size: 16px; }
  .filter-toggle, .mobile-close, .loadmore, .thumbs button, .collection-availability summary { min-height: 44px; }
  .product-grid, .category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid .card h3 { font-size: clamp(1rem, 4.4vw, 1.25rem); line-height: 1.25; overflow-wrap: anywhere; }
  .mobile-bar { padding-bottom: env(safe-area-inset-bottom); }
  html { scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .product-copy .actions { grid-template-columns: 1fr; }
  .product-copy .actions .button:first-child { grid-column: auto; }
  .mandir-guide-links a { flex-basis: 100%; }
}
