@media (max-width: 600px) {
  html,
  body {
    overflow-x: hidden;
  }

  .hero {
    display: block;
  }

  .hero-brand > div:last-child {
    min-width: 0;
  }

  .hero h1,
  .hero p,
  .kicker {
    overflow-wrap: anywhere;
  }

  .hero-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px 4px;
    border: 1px solid var(--line);
    font-size: 11px;
    line-height: 1.2;
  }

  .table-entry {
    min-height: 44px;
    padding: 6px 4px;
  }

  .hero-links .table {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    min-height: 34px;
    text-align: center;
  }

  .categories button,
  .add,
  .cart button,
  .location-row button {
    min-height: 44px;
  }

  .add {
    padding: 6px 12px;
  }

  .cart {
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    align-content: start;
  }

  .cart-items {
    max-height: min(30vh, 240px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.cart-items { display: grid; gap: 6px; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 10px; padding: 7px 0; border-bottom: 1px solid #514a44; }
.cart-item__name { min-width: 0; overflow-wrap: anywhere; }
.cart-item__price { white-space: nowrap; }
.cart-item__controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.cart-item__controls button { min-width: 38px; min-height: 38px; border: 1px solid #d89f59; background: transparent; color: #fff; }
.cart-item__controls .cart-item__remove { margin-left: auto; border-color: #9d6b62; color: #f2c7be; }
.cart-item__controls button:disabled { opacity: .5; }
.cart-empty { margin: 0; color: #e6ddd4; font-size: 13px; }

.dish-photo { position: relative; overflow: hidden; }
.dish-photo--legacy-menu::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 29%;
  height: 26%;
  min-width: 42px;
  min-height: 36px;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-top-left-radius: 12px;
  pointer-events: none;
}

.member-entry { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: inherit; border-radius: 999px; padding: .55rem .8rem; cursor: pointer; }
.payment-row, .member-pricing { display: block; margin: .65rem 0; font-size: .92rem; }
.payment-row select { margin-left: .5rem; padding: .35rem; }
.member-pricing { background: rgba(216,159,89,.15); padding: .65rem; border-radius: .5rem; line-height: 1.6; }
.member-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: rgba(20,14,8,.6); }
.member-modal[hidden] { display: none; }
.member-modal__panel { position: relative; width: min(100%, 32rem); max-height: 90vh; overflow: auto; background: #fffaf0; color: #2b2017; border-radius: 1rem; padding: 1.4rem; box-shadow: 0 1rem 4rem rgba(0,0,0,.35); }
.member-modal__close { position: absolute; top: .5rem; right: .7rem; border: 0; background: none; font-size: 1.6rem; cursor: pointer; }
.member-modal form { display: grid; gap: .6rem; }
.member-modal input, .member-modal form button { padding: .7rem; border-radius: .45rem; border: 1px solid #cbbda8; }
.member-modal form button, #memberLogout { background: #6f3e25; color: #fff; cursor: pointer; }
.member-summary { padding: .8rem; background: #f2e5d0; border-radius: .6rem; line-height: 1.7; }
.member-tabs { display: flex; gap: .4rem; margin: .8rem 0; flex-wrap: wrap; }
.member-tabs button { border: 1px solid #cbbda8; background: #fff; border-radius: 999px; padding: .45rem .7rem; cursor: pointer; }
.member-panel { min-height: 5rem; }
.member-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #e3d6c3; }
.member-pager { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .8rem 0 .2rem; }
.member-pager button { border: 1px solid #cbbda8; background: #fff; border-radius: .45rem; padding: .4rem .7rem; cursor: pointer; }
.member-pager button:disabled { cursor: not-allowed; opacity: .45; }
#memberLogout { border: 0; padding: .6rem .9rem; border-radius: .45rem; margin-top: .8rem; }
.favorite-button { border: 0; background: transparent; color: #b9894a; font-size: 1.25rem; cursor: pointer; padding: 0 .3rem; }
/* Keep the full 1200x1000 menu-photo frame visible on customer cards. */
.dish { align-items: start; min-height: 0; }
.dish-photo { width: 100%; min-height: 0; aspect-ratio: 6 / 5; align-self: start; background: var(--paper); }
.dish-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; background: var(--paper); }

/* Let translated controls wrap cleanly on narrow phones. */
.language-switcher { z-index: 60; max-width: calc(100vw - 20px); }
.language-switcher button { min-height: 36px; }
@media (max-width: 600px) {
  .hero { display: grid; gap: 14px; padding-top: 64px; }
  .hero-brand, .hero-brand > div:last-child { min-width: 0; }
  .kicker { letter-spacing: 1px; overflow-wrap: anywhere; }
  .hero-links { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-links a { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; border: 1px solid var(--line); padding: 7px; text-align: center; overflow-wrap: anywhere; }
  .hero-links button { min-width: 0; min-height: 44px; padding-inline: 8px; white-space: normal; overflow-wrap: anywhere; }
  .table { grid-column: 1 / -1; margin: 0; text-align: center; white-space: normal; }
  .member-row > span, .member-row > strong { min-width: 0; overflow-wrap: anywhere; }
}

.service-fee-notice { width:min(1100px,calc(100% - 32px)); margin:14px auto 18px; padding:14px 16px; border:1px solid #c79242; border-left:6px solid #9d3f36; border-radius:10px; background:#fff3d3; color:#552b18; box-shadow:0 4px 14px #30271d16; font-size:15px; font-weight:750; line-height:1.5; }
.cart-item--service-fee { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0 4px; border-top:1px dashed #d89f59; color:#ffe0a8; font-weight:700; }
.cart-item--service-fee .cart-item__name { color:#ffe0a8; }
.cart-item--service-fee .cart-item__price { color:#fff; white-space:nowrap; }
@media (max-width:600px) { .service-fee-notice { width:calc(100% - 24px); margin:10px auto 14px; padding:12px 13px; font-size:14px; } }
@media (max-width:600px) { .language-switcher { position:sticky; top:0; right:auto; margin:0 8px 0 auto; } }

main {
  padding-bottom: var(--cart-content-reserve, 170px);
  scroll-padding-bottom: var(--cart-content-reserve, 170px);
}

@media (max-width: 600px) {
  main {
    padding-bottom: var(--cart-content-reserve, 24px);
    scroll-padding-bottom: var(--cart-content-reserve, 24px);
  }

  .cart,
  .cart-fab {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px) + var(--cart-keyboard-inset, 0px));
  }

  .cart {
    max-height: calc(var(--cart-available-height, 100dvh) - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
}
.cart__summary { align-items: center; }
.cart .cart__collapse {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #d89f59;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}
.cart__summary #total { margin-left: auto; }
.cart .cart__collapse:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.dish-member-price{display:grid;gap:5px;margin-top:10px;padding-top:10px;border-top:1px solid #e7ded0;font-size:13px;overflow-wrap:anywhere}.dish-member-price>span,.dish-member-price>small{color:#756c60}.dish-member-price>strong{color:#783244;font-weight:600}.member-pricing p{font-size:12px;line-height:1.5}
