/* Shared mobile chrome: keep navigation outside the scrolling page content. */
@media (max-width: 767px) {
  html:has(body.esnaf-store .esnaf-mast) { overscroll-behavior-y: none; background: #fafbf8; }
  body.esnaf-store:has(.esnaf-mast) { overscroll-behavior-y: none; }
  body.esnaf-store:has(.esnaf-mast:not(.esnaf-mast-catalog)) > #container {
    padding-top: var(--esnaf-shell-header-height, 72px);
  }
  .esnaf-store .esnaf-mast:not(.esnaf-mast-catalog) {
    position: fixed; inset: 0 var(--esnaf-overlay-gutter, 0px) auto 0;
    z-index: 39; touch-action: pan-x; background: #fff;
  }
  .esnaf-store .esnaf-mast:not(.esnaf-mast-catalog).esnaf-cart-pinned .esnaf-mast-cart {
    position: static; inset: auto; width: 100%; box-shadow: none;
  }
  .esnaf-store .esnaf-account-tabs { top: var(--esnaf-shell-header-height, 72px); }
  .esnaf-store .esnaf-dock { touch-action: pan-x; }
  html:has(body.esnaf-store .esnaf-mast) { scroll-padding-top: calc(var(--esnaf-shell-header-height, 72px) + 12px); }
  .esnaf-shell-refresh {
    position: fixed; top: calc(var(--esnaf-shell-header-height, 72px) + 8px);
    left: 50%; transform: translateX(-50%); z-index: 38;
    max-width: 85vw; padding: 9px 16px; border-radius: 24px;
    background: #fff; color: #075335; box-shadow: 0 3px 16px #0002;
    text-align: center; font-size: 13px; pointer-events: none;
  }
  .esnaf-shell-refresh[hidden] { display: none; }
}
