/* Beds & Sheets v1.0.53 - Mobile end-of-content spacing correction.
   The fixed four-item navigation is the ONLY bottom spacer. It is not a page footer.
   No checkout, pricing, ordering, or desktop behavior changes. */
@media (max-width:767px) {
  :root { --bs153-nav-clearance: calc(60px + env(safe-area-inset-bottom, 0px)); }

  /* Previously: 73px/92px root clearance PLUS 85-105px page padding,
     40-48vh sheet minimums and 75-100vh page minimums. */
  body:has(.bs128-bottom-nav) #store-root {
    padding-bottom: var(--bs153-nav-clearance) !important;
  }
  body:has(.bs128-bottom-nav) .bs-footer { display:none !important; }

  /* Home: finish immediately after the final inspiration carousel. */
  .bs128-mobile-home { min-height:0 !important; padding-bottom:0 !important; }
  .bs128-mobile-home > .bs128-mobile-section:last-child {
    margin-bottom:0 !important;
    padding-bottom:10px !important;
  }

  /* Shop, Categories, category types, and product lists: allow content to
     determine the page height instead of adding artificial viewport-height tails. */
  .bs129-shop-route .bs129-mobile-route,
  .bs129-shop-route .bs129-mobile-shop,
  .bs129-shop-route .bs129-shop-surface,
  .bs129-shop-route .bs129-list-panel {
    min-height:0 !important;
  }
  .bs129-shop-route .bs129-mobile-route,
  .bs129-shop-route .bs129-mobile-shop {padding-bottom:0 !important;}
  .bs129-shop-route .bs129-shop-surface {padding-bottom:14px !important;}
  .bs129-shop-route .bs129-list-panel {padding-bottom:14px !important;}
  .bs129-shop-route .bs129-products-grid {padding-bottom:12px !important;}

  /* Login, Register, Wishlist, About and older mobile account pages. */
  .bs130-mobile-page {min-height:0 !important; padding-bottom:0 !important;}
  .bs130-mobile-page .bs130-sheet {min-height:0 !important;}
  .bs152-auth-page.bs130-mobile-page {min-height:0 !important; padding-bottom:0 !important;}
  .bs152-auth-page .bs152-auth-card {min-height:0 !important;}
  .bs152-auth-page .bs152-auth-layout {padding-bottom:0 !important;}
  .bs151-account {min-height:0 !important; padding-bottom:16px !important;}

  /* Product pages deliberately have no global nav and use their own
     purchase dock, whose safe-area clearance is controlled by v1.0.38. */
  body:has(.bs137-product-route) #store-root {padding-bottom:0 !important;}
}
