/* Final runtime stabilization: event-driven cart state and collision-safe mobile controls. */
@media (max-width: 767.98px) {
  body.mobile-ux-shell { padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important; }
  .ps-mobile-quick-search {
    position: fixed !important;
    right: 16px !important;
    bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 1985 !important;
    transition: opacity .2s ease, transform .2s ease !important;
    will-change: transform, opacity;
  }
  .ps-mobile-quick-search.is-hidden-by-scroll,
  .ps-mobile-quick-search.is-obstructing-cta {
    opacity: 0 !important;
    transform: translateY(18px) scale(.86) !important;
    pointer-events: none !important;
  }
  .ps-mobile-bottom-nav {
    padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }
  .ps-mobile-bottom-nav__link {
    min-width: 48px !important;
    min-height: 52px !important;
  }
  .ps-home-newsletter,
  footer,
  .site-footer {
    scroll-margin-bottom: calc(132px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ps-mobile-quick-search { transition: none !important; }
}
