/* HxH Store mobile repair: reserve a real scroll runway below the floating dock. */
@media (max-width: 1000px) {
  html body[data-page] .content {
    padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body[data-page] nav.mobile-nav {
    box-sizing: border-box !important;
    min-height: 76px !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    align-items: center !important;
  }
  html body[data-page] nav.mobile-nav a {
    min-width: 0 !important;
    min-height: 52px !important;
    flex: 1 1 0 !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 2px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }
  html body[data-page] nav.mobile-nav a svg {
    flex: 0 0 auto !important;
    width: 22px !important;
    height: 22px !important;
  }
  html body[data-page] .catalog-toolbar,
  html body[data-page] .catalog-toolbar .tabs {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html body[data-page] .catalog-toolbar .tabs {
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  html body[data-page] .products-grid {
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  html body[data-page] .product,
  html body[data-page] .product-body,
  html body[data-page] .product-title,
  html body[data-page] .product .product-title-trigger {
    min-width: 0 !important;
    overflow-wrap: anywhere;
  }
  html body[data-page] .product-bottom {
    min-width: 0;
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  html body[data-page] .products-grid { gap: 9px !important; }
  html body[data-page] .product-body { padding: 12px !important; }
  html body[data-page] .product-bottom .btn { padding-inline: 10px !important; }
}
