/* Mobile layout fixes, version 1.0.1. Desktop styles stay unchanged. */
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
  .site-branding { min-width: 0; text-align: center; }
  .site-branding .custom-logo-link { display: inline-block; max-width: 100%; }
  .site-branding img { max-width: 100%; max-height: 42px; }
  .site-title { font-size: clamp(16px, 4.5vw, 26px); overflow-wrap: anywhere; }
  .header-actions { gap: 6px; }
  .header-action, .menu-toggle { min-width: 44px; min-height: 44px; }
  .menu-toggle { padding: 0; background: transparent; color: var(--color-foreground); border: 0; border-radius: 0; }
  .primary-nav { max-height: 75vh; max-height: 75dvh; overflow-y: auto; padding: 16px; }
  .primary-menu, .primary-menu li { width: 100%; }
  .primary-menu a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
  .primary-menu .sub-menu { display: none; position: static; width: auto; list-style: none; margin: 0; padding: 0 0 0 16px; }
  .primary-menu .submenu-open > .sub-menu { display: block; }
  .primary-menu .submenu-toggle { float: right; min-width: 44px; min-height: 44px; padding: 0; background: transparent; color: inherit; border: 0; border-radius: 0; }
  .product-card-title { overflow-wrap: anywhere; }
  .woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
  .single-product div.product div.images, .single-product div.product div.summary { float: none; width: 100%; }
  .single-product .product { padding: 28px 14px; }
  .single-product .product_title { font-size: clamp(26px, 7vw, 40px); overflow-wrap: anywhere; }
  .woocommerce div.product form.cart .variations select { min-width: 0; max-width: 100%; }
}
@media (max-width: 520px) {
  .ld-hero { min-height: 360px; height: 65vh; height: 65svh; }
  .ld-hero-content { padding-bottom: 36px; }
  .ld-hero-content h1 { font-size: clamp(32px, 10vw, 48px); overflow-wrap: anywhere; }
  .ld-hero-content p { font-size: 15px; }
  .ld-media { min-height: 280px; }
  .ld-media-copy { min-height: 0; padding: 32px 20px; }
  .ld-media-copy h2 { font-size: 30px; }
  .ld-quote { min-height: 0; padding: 44px 0; }
  .ld-eyebrow { margin-bottom: 24px; }
  .ld-quote h2 { font-size: 28px; }
  .woocommerce input.input-text, .woocommerce select, .woocommerce textarea { font-size: 16px; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ld-marquee-track { animation: none; }
}

@media (min-width: 901px) { .primary-menu .submenu-toggle { display: none; } }

@media (max-width: 900px) {
 .primary-menu li > .sub-menu { position: static; min-width: 0; box-shadow: none; background: transparent; }
 .primary-menu li:not(.submenu-open) > .sub-menu { display: none; }
 .primary-menu li.submenu-open > .sub-menu { display: block; }
 .primary-menu .sub-menu li a { white-space: normal !important; }
}
@media (max-width: 520px) {
 .home .ld-hero { height: auto; min-height: 0; aspect-ratio: 1600 / 759; }
 .home .ld-hero-media { background-size: contain; }
 .home .ld-hero-content { display: none; }
}
