/* Mobile cart dock and bottom sheet; the desktop drawer is unchanged. */
.mobile-cart-bar { display: none; }
.nh-cart-scroll { display: contents; }
@media (max-width: 760px) {
  .menu-page { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .menu-page .scroll-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .menu-page .nav .order-trigger { display: none; }
  .mobile-cart-bar { display: block; position: fixed; inset: auto 0 0; z-index: 4; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--green); }
  .mobile-cart-bar button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 68px; padding: 12px clamp(16px, 9.5vw, 44px); border: 0; border-radius: 0; background: var(--green); color: white; font: 500 14px/1.5 Inter, sans-serif; cursor: pointer; }
  .mobile-cart-icon { flex: 0 0 30px; width: 30px; height: 30px; margin-right: 10px; filter: brightness(0) invert(1); }
  .mobile-cart-label { white-space: nowrap; }
  .mobile-cart-count { display: grid; place-items: center; flex: none; min-width: 20px; height: 20px; padding-inline: 4px; background: var(--sage); border-radius: 50%; font-size: 12px; }
  .mobile-cart-price { margin-left: auto; white-space: nowrap; font-size: 14px; font-weight: 500; }
  .mobile-cart-arrow { flex: 0 0 21px; width: 21px; height: 16px; margin-left: 10px; object-fit: contain; }
  .mobile-cart-bar button:focus-visible { outline: 2px solid white; outline-offset: -5px; }
  .menu-page.menu-open .mobile-cart-bar { visibility: hidden; }
  .nh-cart { inset: auto 0 0; width: 100%; height: 92dvh; max-height: 92dvh; border-radius: 22px 22px 0 0; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 24px #00000024; }
  .nh-cart::before { content: ''; flex: none; width: 40px; height: 4px; margin: 12px auto 0; border-radius: 2px; background: var(--sage); }
  .nh-cart { overflow: hidden; }
  .nh-cart-scroll { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--sage) transparent; }
  .nh-cart-content { padding: 0 31px; }
  .nh-cart-header { position: sticky; top: 0; z-index: 2; margin-inline: -31px; padding: 20px 31px 24px; background: var(--paper, #eae9e2); }
  .nh-cart-close { top: 15px; right: 25px; width: 44px; height: 44px; }
  .nh-cart-back { min-height: 44px; padding-right: 48px; justify-content: flex-start; font-size: 16px !important; }
  .nh-cart-back img, .nh-cart-is-empty .nh-cart-back img { width: 26px; height: 16px; }
  .nh-cart-bag { right: 26px; top: 108px; width: 58px; height: 44px; }
  .nh-cart-greeting { font-size: 28px; padding-right: 65px; }
  .nh-cart-intro { font-size: 22px; line-height: 1.35; margin-top: 14px; }
  .nh-cart-item h3 { grid-column: 2 / 4; font-size: 18px; line-height: 1.35; }
  .nh-cart-edit { grid-column: 2 / 4; justify-self: start; font-size: 12px !important; }
  .nh-cart-photo { grid-row: 1 / 5; }
  .nh-cart-clear { flex-direction: row-reverse; font-size: 15px !important; min-height: 46px; }
  .nh-cart-clear picture { display: flex; flex: 0 0 22px; }
  .nh-cart-clear img { width: 22px; height: 22px; }
  .nh-cart-footer { min-height: 160px; margin-top: 24px; padding: 42px 24px 28px; }
  .nh-cart-is-empty .nh-cart-footer { margin-top: 24px; }
  .nh-cart-wave { height: 160px; }
  .nh-cart-heart { bottom: 109px; }
  .nh-cart-footer p { font-size: 28px; }
  .nh-cart-footer small { font-size: 18px; margin-top: 5px; }
  .nh-cart-is-empty .nh-cart-header { padding-bottom: 16px; }
  .nh-cart::backdrop { background: #172e2580; }
  /* Override the existing horizontal entry transition for this one surface. */
  html.menu-pointer-motion .nh-cart[open] { transition: none; }
  @media (prefers-reduced-motion: no-preference) {
    html.menu-pointer-motion .nh-cart[open] { animation: mobile-cart-enter 280ms cubic-bezier(.16, 1, .3, 1); }
    @keyframes mobile-cart-enter { from { translate: 0 100%; } to { translate: 0 0; } }
  }
}
@media (max-width: 359px) {
  .nh-cart-content { padding-inline: 20px; }
  .nh-cart-header { margin-inline: -20px; padding-inline: 20px; }
  .nh-cart-close { right: 14px; }
  .mobile-cart-bar button { padding-inline: 16px; gap: 6px; }
  .mobile-cart-icon { margin-right: 6px; }
  .mobile-cart-arrow { margin-left: 6px; }
}
