/* Touch-first refinements. Desktop styling remains in site.css. */
.dialog-toolbar {
  height: 0;
  position: sticky;
  top: 0;
  z-index: 5;
}

@media (max-width: 900px) {
  a, button, select, input, textarea { touch-action: manipulation; }
  .quick-view, .dialog-close { width: 44px; height: 44px; }
  .quick-view { right: 10px; bottom: 10px; }
  .product-title-button { min-height: 44px; display: block; }
  .product-name { font-size: 15px; }
  .product-type { font-size: 12px; line-height: 1.65; }
  .product-brand { font-size: 10px; }
  .product-footer { align-items: center; }
  .product-footer > span { font-size: 10px; }
  .product-footer a { min-height: 44px; font-size: 12px; gap: 9px; }
  .button { min-height: 48px; font-size: 12px; }
  .filter { min-height: 44px; font-size: 12px; }
  .image-note { font-size: 9px !important; line-height: 1.7; }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 88px; }
  body { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .header-inner { height: 68px; }
  .nav-toggle { width: 44px; height: 44px; padding: 11px; }
  .main-nav { max-height: calc(100svh - 68px); overflow-y: auto; overscroll-behavior: contain; }
  .main-nav a { padding-block: 16px; min-height: 52px; }
  .hero-copy { padding-block: 30px; }
  .hero h1 { margin-block: 16px 18px; }
  .hero-description { font-size: 14px; line-height: 1.8; }
  .hero .button-row { margin-top: 22px; gap: 8px 17px; }
  .hero .button { font-size: 11px; padding-inline: 14px; gap: 16px; }
  .hero .text-link { font-size: 11px; min-height: 44px; align-items: center; }
  .hero-footnote { font-size: 10px; margin-top: 20px; line-height: 1.65; }
  .hero-visual { height: clamp(280px, 84vw, 360px); }
  .hero-bottom { font-size: 8px; line-height: 1.65; }
  .text-link { min-height: 44px; font-size: 12px; padding-block: 8px; }
  .section-head { align-items: center; gap: 15px; }
  .section-head > .text-link { font-size: 11px; white-space: normal; flex-shrink: 0; max-width: 105px; }
  .section-head h2 { font-size: clamp(35px, 10.5vw, 43px); }
  .section-head .eyebrow, .eyebrow { font-size: 10px; }
  .category-card p { font-size: 12px; }
  .category-card .text-link { font-size: 12px; margin-top: 12px; }
  .category-card .category-copy { max-width: 55%; }
  .category-card .eyebrow { font-size: 9px; }
  .category-number { font-size: 10px; }
  .category-card .image-note { margin-top: 8px; }
  .collection-toolbar { display: block; margin-top: 24px; }
  .filter-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .filter { padding: 10px 8px; border: 1px solid #c9d0c5; }
  .result-count { display: block; font-size: 11px; text-align: right; margin-top: 10px; padding-top: 0; }
  .product-grid { gap: 23px 12px; }
  .product-image { min-height: 218px; }
  .product-tag { font-size: 8px; max-width: calc(100% - 20px); }
  .product-name { font-size: 14px; margin-block: 3px 4px; }
  .product-type { font-size: 12px; }
  .product-footer { flex-wrap: wrap; gap: 2px 8px; padding-top: 8px; }
  .product-footer > span { font-size: 9px; }
  .product-footer a { margin-left: auto; font-size: 12px; }
  .brand-panel p, .ritual-copy > p:not(.eyebrow), .service p { font-size: 13px; line-height: 1.8; }
  .brand-panel .text-link { margin-top: 18px; }
  .trade-banner p { font-size: 13px; }
  .trade-banner .button { min-height: 48px; font-size: 12px; gap: 20px; width: 100%; }
  .footer-brand > p, .footer-column p, .footer-column a { font-size: 12px; }
  .footer-column a { min-height: 44px; display: flex; align-items: center; margin-block: 0; }
  .footer-column h3 { font-size: 12px; }
  .footer-column:last-child { gap: 12px; }
  .footer-bottom { font-size: 10px; gap: 12px; }
  .footer-bottom a { min-height: 44px; display: flex; align-items: center; }
  .footer-legal { font-size: 10px; line-height: 1.85; }
  .page-intro .intro-description, .contact-intro .intro-description, .brand-hero p, .brand-context p, .about-intro .intro-description, .about-story .story-text { font-size: 14px; line-height: 1.8; }
  .breadcrumbs { font-size: 10px; align-items: center; flex-wrap: wrap; }
  .breadcrumbs a { min-height: 44px; display: flex; align-items: center; }
  .catalogue-controls { gap: 16px; }
  .catalogue-controls label { font-size: 12px; }
  .catalogue-controls select { min-height: 44px; font-size: 14px; }
  .catalogue-bottom { font-size: 12px; }
  .catalogue-note { font-size: 12px; }
  .detail-list { grid-template-columns: 1fr; gap: 13px; }
  .detail-list div { padding-top: 13px; }
  .detail-list h3 { font-size: 13px; }
  .detail-list p { font-size: 12px; }
  .faq summary { min-height: 44px; align-items: center; font-size: 14px; line-height: 1.6; }
  .faq details { padding-block: 10px; }
  .faq details p { font-size: 13px; padding-right: 15px; }
  .contact-details p, .contact-checklist li { font-size: 13px; }
  .contact-details a { min-height: 44px; display: inline-flex; align-items: center; }
  .field { font-size: 12px; }
  .field input, .field select { min-height: 48px; }
  .field input::placeholder, .field textarea::placeholder { font-size: 13px; }
  .privacy-check { font-size: 12px; gap: 12px; }
  .privacy-check input { width: 22px; height: 22px; margin-top: 2px; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 7px; }
  .form-actions .button { min-height: 48px; font-size: 13px; }
  .copy-enquiry { min-height: 44px; font-size: 12px; }
  .form-note, .form-status { font-size: 12px; line-height: 1.8; }
  .product-dialog { width: 100%; max-width: 100%; max-height: 92svh; margin: auto auto 0; border-radius: 15px 15px 0 0; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dialog-close { top: 12px; right: 12px; }
  .dialog-art { min-height: 245px; }
  .dialog-art img { height: 225px; }
  .dialog-copy { padding: 28px 25px 30px; }
  .dialog-copy > p:not(.eyebrow) { font-size: 14px; }
  .dialog-meta > div { font-size: 12px; padding-block: 12px; }
  .dialog-copy .button { min-height: 48px; font-size: 12px; }
  .dialog-copy .form-note { font-size: 11px; }
  .dialog-art .image-note { font-size: 9px !important; }
  .privacy-content p { font-size: 14px; }
}

@media (max-width: 370px) {
  .hero-copy { padding-inline: 22px; }
  .hero .button-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .text-link { align-self: flex-start; }
  .hero h1 { font-size: clamp(39px, 12.4vw, 46px); }
  .category-card { padding-inline: 22px; }
  .category-card h3 { font-size: 34px; }
  .category-card img { right: -18px; width: 160px; }
  .category-card.oral img { right: -15px; }
  .category-number { left: 22px; }
  .product-image { min-height: 195px; }
  .product-image img { height: 180px; }
  .product-name { font-size: 13px; }
  .product-type { font-size: 11px; }
  .product-footer > span { flex-basis: 100%; }
}
