.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.menu-page {
  width: 100%;
  max-width: var(--page-max);
  min-height: 100dvh;
  margin: 0 auto;
  background: #f5f2ee;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-page > header,
.menu-page > .cart-top,
.menu-page > .profile-top,
.menu-main > *,
.tabbar,
.cart-checkout:not([hidden]) {
  animation: page-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-page > header,
.menu-page > .cart-top,
.menu-page > .profile-top {
  animation-delay: 40ms;
}

.menu-main > *:nth-child(1) {
  animation-delay: 100ms;
}

.menu-main > *:nth-child(2) {
  animation-delay: 150ms;
}

.menu-main > *:nth-child(3) {
  animation-delay: 200ms;
}

.menu-main > *:nth-child(4) {
  animation-delay: 250ms;
}

.menu-main > *:nth-child(5) {
  animation-delay: 300ms;
}

.menu-main > *:nth-child(n + 6) {
  animation-delay: 340ms;
}

.tabbar {
  animation-delay: 260ms;
}

.cart-checkout:not([hidden]) {
  animation-delay: 300ms;
}

.menu-header {
  --header-ink: #000;
  --header-roast: #0a0a0a;
  --header-foam: #c4a484;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: calc(18px + env(safe-area-inset-top)) 20px 36px;
  border-radius: 0 0 36px 36px;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.menu-header__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.menu-header__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.menu-header__orb--a {
  top: -28%;
  right: -8%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 68%);
}

.menu-header__orb--b {
  bottom: -40%;
  left: -12%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
}

.menu-header__ring {
  position: absolute;
  top: 18%;
  right: 14%;
  width: 72px;
  height: 72px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  opacity: 0.9;
}

.menu-header__ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.menu-header__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-header__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

.menu-header__eyebrow {
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.menu-header__title {
  margin: 0;
  font-size: clamp(1.08rem, 4.6vw, 1.3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: balance;
}

.menu-header__title span {
  font-weight: 800;
  color: #fff;
}

#header-user[hidden] {
  display: none !important;
}

.menu-main {
  position: relative;
  z-index: 2;
  padding: 0 16px;
}

.menu-search {
  position: relative;
  z-index: 3;
  margin-top: -18px;
  margin-bottom: 14px;
}

.stories {
  position: relative;
  z-index: 2;
  margin: 0 -16px 16px;
}

.stories__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 16px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.stories__track::-webkit-scrollbar {
  display: none;
}

.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition-property: transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.story:active {
  transform: scale(0.96);
}

.story__ring {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #111 0%, #6b4a33 42%, #111 78%, #c4a484 100%);
}

.story.is-seen .story__ring {
  background: #d7d2cc;
}

.story__avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px #f5f2ee;
}

.story__avatar img {
  width: 118%;
  height: 118%;
  object-fit: cover;
  outline: none;
}

.story__avatar--warm img {
  filter: saturate(1.05) contrast(1.04);
}

.story__avatar--cool img {
  filter: saturate(0.85) brightness(1.08);
}

.story__avatar--mark {
  background: #111;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.story__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 650;
  color: #5f5a55;
  text-align: center;
}

.menu-location {
  position: relative;
  z-index: 2;
  overflow: visible;
  margin-bottom: 14px;
}

.load-section {
  margin-bottom: 22px;
}

.load-panel {
  --load-accent: #8a8a8a;
  --load-glow: rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  padding: 16px 16px 18px;
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--load-glow), transparent 55%),
    #111;
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.load-panel.is-low {
  --load-accent: #45c078;
  --load-glow: rgba(69, 192, 120, 0.22);
}

.load-panel.is-medium {
  --load-accent: #e6b84a;
  --load-glow: rgba(230, 184, 74, 0.2);
}

.load-panel.is-high {
  --load-accent: #e05a5a;
  --load-glow: rgba(224, 90, 90, 0.22);
}

.load-panel.is-idle {
  --load-accent: #8a8a8a;
  --load-glow: rgba(255, 255, 255, 0.06);
}

.load-panel__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.load-panel__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--load-accent);
  box-shadow: 0 0 0 0 var(--load-accent);
  animation: load-pulse 1.8s ease-out infinite;
}

.load-panel__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: end;
}

.load-panel__wait {
  min-width: 96px;
}

.load-panel__time {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 0.9;
}

.load-panel__time strong {
  font-size: clamp(2.6rem, 12vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.load-panel__unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.load-panel__wait-label {
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.5);
}

.load-panel__side {
  min-width: 0;
}

.load-panel__status {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--load-accent);
  text-wrap: balance;
}

.load-panel__place {
  margin: 0 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.55);
}

.load-panel__segments {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 12px;
}

.load-panel__segments span {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 280ms ease-out;
}

.load-panel__segments span.is-on {
  background: var(--load-accent);
}

.load-panel__orders {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

@keyframes load-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--load-accent) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .load-panel__pulse {
    animation: none;
  }

  .load-panel__segments span {
    transition: none;
  }
}

.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: stretch;
}

.story-viewer[hidden] {
  display: none !important;
}

.story-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.story-viewer__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, var(--page-max));
  height: min(100dvh, 820px);
  margin: auto;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.story-viewer__progress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: calc(12px + env(safe-area-inset-top)) 12px 0;
}

.story-viewer__bar {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.story-viewer__bar > span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: #fff;
}

.story-viewer__bar.is-done > span {
  transform: scaleX(1);
}

.story-viewer__bar.is-active > span {
  animation: story-progress var(--story-duration, 4.2s) linear forwards;
}

.story-viewer__close {
  position: absolute;
  top: calc(28px + env(safe-area-inset-top));
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.story-viewer__media {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 24px 24px 8px;
}

.story-viewer__media img {
  width: min(72%, 280px);
  height: auto;
  object-fit: contain;
  outline: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.story-viewer__media-mark {
  display: grid;
  place-items: center;
  width: min(56vw, 220px);
  aspect-ratio: 1;
  border-radius: 32px;
  background: linear-gradient(160deg, #2a2a2a, #111);
  font-size: clamp(2.8rem, 12vw, 4rem);
  font-weight: 800;
}

.story-viewer__copy {
  padding: 8px 20px calc(28px + env(safe-area-inset-bottom));
}

.story-viewer__eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.story-viewer__title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.story-viewer__text {
  margin: 0;
  max-width: 34ch;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: pretty;
}

.story-viewer__hit {
  position: absolute;
  top: 56px;
  bottom: 0;
  width: 42%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.story-viewer__hit--prev {
  left: 0;
}

.story-viewer__hit--next {
  right: 0;
}

@keyframes story-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-viewer__bar.is-active > span {
    animation: none;
    transform: scaleX(1);
  }
}

.location-banner {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  overflow: visible;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.location-banner:focus,
.location-banner:focus-visible,
.location-banner:active {
  outline: none;
  box-shadow: none;
}

.location-banner__art {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  outline: none;
  border: 0;
}

/* Covers the white pill in Frame 6 (543,214 417×90 within 1115×399) */
.location-banner__cta {
  position: absolute;
  left: 47.2%;
  top: 51.5%;
  width: 40.5%;
  height: 26.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 3.5%;
  border-radius: 999px;
  background: #fff;
  color: #121212;
  box-sizing: border-box;
}

.location-banner__pin {
  flex-shrink: 0;
  width: 0.95em;
  height: 0.95em;
  min-width: 12px;
  min-height: 12px;
}

.location-banner__cta-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-size: clamp(0.7rem, 2.9vw, 0.92rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.location-sheet {
  padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
}

.location-sheet__title {
  margin: 0 36px 16px 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.location-list {
  display: grid;
  gap: 10px;
}

.location-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition-property: border-color, background-color, transform, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.location-option:active {
  transform: scale(0.98);
}

.location-option.is-selected {
  border-color: #111;
  background: #f7f7f7;
  box-shadow: inset 0 0 0 1px #111;
}

.location-option__name {
  display: block;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.location-option__addr {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #6b6b6b;
}

.location-option__meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a8a8a;
}

.modal__sheet--location {
  max-height: min(80dvh, 640px);
}

.menu-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  color: #6b6b6b;
  transition-property: border-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.menu-search__field:focus-within {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  color: #111;
}

.menu-search__field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111;
}

.menu-search__field input::-webkit-search-cancel-button {
  appearance: none;
}

.menu-section {
  margin-bottom: 22px;
}

.menu-section__title {
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.menu-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-right: -16px;
  padding-right: 16px;
  scrollbar-width: none;
}

.menu-cats::-webkit-scrollbar {
  display: none;
}

.menu-cats__btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition-property: background-color, color, border-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.menu-cats__btn:active {
  transform: scale(0.96);
}

.menu-cats__btn.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.menu-cats__btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition-property: transform, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.card:active {
  transform: scale(0.98);
}

.card.is-hidden {
  display: none;
}

.card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition-property: transform, background-color, color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.card__fav svg {
  width: 16px;
  height: 16px;
}

.card__fav:active {
  transform: scale(0.92);
}

.card__fav.is-on {
  background: #111;
  color: #fff;
}

.card__fav.is-on path {
  fill: currentColor;
}

.card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.9;
  background: transparent;
}

.card__media img {
  width: 76%;
  height: 76%;
  object-fit: cover;
  border-radius: 50%;
}

.card__media--a img {
  filter: contrast(1.05) saturate(0.9);
}

.card__media--b img {
  filter: brightness(1.08) saturate(0.85);
}

.card__media--c img {
  filter: saturate(0.7) brightness(1.1);
}

.card__media--mark {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.5rem;
  font-weight: 800;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  flex: 1;
}

.card__cat {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.card__name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.card__desc {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: #6b6b6b;
  text-wrap: pretty;
}

.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.card__price {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.card__add {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition-property: transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.card__add::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.card__add:active {
  transform: scale(0.96);
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
}

.modal.is-open {
  display: grid;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition-property: opacity;
  transition-duration: 200ms;
  transition-timing-function: ease-out;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 430px);
  max-height: min(90dvh, 740px);
  overflow: auto;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(40px);
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: 250ms, 200ms;
  transition-timing-function: var(--ease), ease-out;
}

.modal.is-open .modal__sheet {
  transform: translateY(0);
  opacity: 1;
}

.modal.is-closing .modal__sheet {
  transform: translateY(24px);
  opacity: 0;
  transition-duration: 150ms;
}

.modal.is-closing .modal__backdrop {
  opacity: 0;
  transition-duration: 150ms;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #111;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition-property: transform, background-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.modal__close:active {
  transform: scale(0.96);
}

.modal__fav {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #111;
  cursor: pointer;
  transition-property: transform, background-color, color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.modal__fav svg {
  width: 20px;
  height: 20px;
}

.modal__fav:active {
  transform: scale(0.96);
}

.modal__fav.is-on {
  background: #111;
  color: #fff;
}

.modal__fav.is-on path {
  fill: currentColor;
}

.modal__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px 8px;
  text-align: center;
}

.modal__media {
  display: grid;
  place-items: center;
  width: min(200px, 54vw);
  height: min(200px, 54vw);
  margin-bottom: 10px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  outline: none;
}

.modal__media span {
  color: #111;
  font-size: 2rem;
  font-weight: 800;
}

.modal__cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.modal__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.modal__desc {
  max-width: 28ch;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: #6b6b6b;
  text-wrap: pretty;
}

.modal__form {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 0;
}

.modal__group {
  margin: 0 0 16px;
  border: 0;
  padding: 0;
}

.modal__group[hidden] {
  display: none;
}

.modal__group legend {
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

.modal__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal__options label {
  cursor: pointer;
}

.modal__options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modal__options span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  transition-property: background-color, color, border-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.modal__options label:active span {
  transform: scale(0.96);
}

.modal__options input:checked + span {
  background: #111;
  border-color: #111;
  color: #fff;
}

.modal__options input:focus-visible + span {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.modal__bar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px -20px 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.modal__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b6b6b;
}

.modal__total strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.modal__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition-property: transform, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.modal__buy:active {
  transform: scale(0.96);
}

.modal__buy:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

body.modal-open {
  overflow: hidden;
}

/* Glass tabbar only */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  width: min(calc(100% - 24px), 400px);
  translate: -50% 0;
  padding: 8px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tabbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.5), transparent 55%);
}

.tabbar__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 4px;
  border-radius: 20px;
  color: rgba(40, 40, 40, 0.55);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 650;
  transition-property: color, background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.tabbar__item:active {
  transform: scale(0.96);
}

.tabbar__item.is-active {
  color: #111;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.35));
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tabbar__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 22px;
}

.tabbar__badge {
  position: absolute;
  top: -6px;
  right: -10px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.tabbar__badge[hidden] {
  display: none !important;
}

.tabbar__badge.is-pop {
  animation: tabbar-badge-pop 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tabbar-badge-pop {
  0% {
    transform: scale(0.7);
  }
  45% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabbar__badge.is-pop {
    animation: none;
  }
}

@media (min-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .tabbar {
    display: none;
  }

  .menu-page {
    padding-bottom: 32px;
  }

  .menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .modal {
    place-items: center;
    padding: 24px;
  }

  .modal__sheet {
    width: min(100%, 460px);
    border-radius: 24px;
  }
}

@media (max-width: 360px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
