/* Customer-facing QR menu */
.menu-body { background: var(--bg); padding-bottom: 110px; }
.container-m { width: 100%; max-width: 780px; margin-inline: auto; padding-inline: 16px; }
.m-hero { position: relative; }
.m-cover { position: relative; height: 230px; overflow: hidden; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 40%, #fbbf24)); }
.m-cover-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s ease, opacity .6s, filter .6s; }
.m-cover:hover .m-cover-img { transform: scale(1.1); }
.m-cover-ph { height: 100%; display: grid; place-items: center; font-size: 80px; opacity: .35; }
.m-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 40%, rgba(0, 0, 0, .25)); }
.m-top { position: absolute; top: 14px; inset-inline: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.m-lang { display: flex; gap: 4px; background: rgba(0, 0, 0, .3); backdrop-filter: blur(10px); border-radius: 12px; padding: 4px; }
.m-lang a { color: #fff; font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 9px; }
.m-lang a.active { background: #fff; color: #111; }
.m-icon { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(0, 0, 0, .3); backdrop-filter: blur(10px); color: #fff; font-size: 18px; cursor: pointer; }
.m-info { position: relative; margin-top: -54px; text-align: center; }
.m-logo { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 28px; background: var(--card); padding: 6px; box-shadow: var(--shadow-lg); animation: popIn .7s var(--ease) both; position: relative; z-index: 2; }
.m-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.m-logo span { width: 100%; height: 100%; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 38px; font-weight: 800; }
.m-info h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; animation: fadeUp .6s .1s var(--ease) both; }
.m-desc { color: var(--muted); max-width: 520px; margin: 0 auto 12px; animation: fadeUp .6s .15s var(--ease) both; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; animation: fadeUp .6s .2s var(--ease) both; }
.m-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: all .2s; }
.m-chip:hover { border-color: var(--primary); color: var(--primary); }
.m-chip i { color: var(--primary); }
.m-chip-hl { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-600); }
.m-chip-icon { padding: 7px 10px; }
.m-branch { display: flex; align-items: center; gap: 8px; max-width: 340px; margin: 14px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding-inline-start: 14px; }
.m-branch i { color: var(--primary); }
.m-branch select { border: 0; box-shadow: none !important; background-color: transparent; font-weight: 700; }
.m-notice { margin: 14px auto 0; max-width: 460px; padding: 10px 14px; border-radius: 12px; background: var(--amber-50); color: var(--amber); font-size: 13.5px; font-weight: 600; }
.m-cats { position: sticky; top: 0; z-index: 30; margin-top: 18px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); padding: 10px 0 8px; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.m-cats.stuck { box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .25); }
.m-search { max-width: 780px; margin: 0 auto 8px; padding-inline: 16px; position: relative; }
.m-search i { position: absolute; inset-inline-start: 30px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.m-search input { padding-inline-start: 40px; border-radius: 14px; background: var(--card); }
.m-cats-scroll { max-width: 780px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 4px; scrollbar-width: none; scroll-behavior: smooth; }
.m-cats-scroll::-webkit-scrollbar { display: none; }
.m-cat { flex: 0 0 auto; padding: 8px 15px; border-radius: 30px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; transition: all .3s var(--ease); }
.m-cat.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 70%, transparent); }
.m-main { padding-top: 10px; }
.m-section { padding-top: 22px; scroll-margin-top: 120px; }
.m-section-title { font-size: 20px; font-weight: 800; display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.m-section-title i { color: var(--primary); }
.m-section-desc { color: var(--muted); margin-top: -6px; }
.m-featured { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.m-featured::-webkit-scrollbar { display: none; }
.m-feat-card { flex: 0 0 200px; scroll-snap-align: start; background: var(--card); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.m-feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.m-feat-img { height: 130px; background: var(--primary-50); display: grid; place-items: center; overflow: hidden; }
.m-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.m-feat-body { padding: 12px 14px; }
.m-feat-body h3 { font-size: 15px; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-items { display: grid; gap: 12px; }
.m-item { display: flex; gap: 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; animation: fadeUp .5s var(--ease) both; }
.m-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.m-item:active { transform: scale(.99); }
.m-item.unavailable { opacity: .55; cursor: default; }
.m-item.hide { display: none; }
.m-item-body { flex: 1; min-width: 0; }
.m-item-body h3 { font-size: 16px; margin: 0 0 4px; font-weight: 700; }
.m-item-body p { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; line-height: 1.5; }
.m-item-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.m-price { color: var(--primary-600); font-weight: 800; font-size: 15px; }
.m-price small { color: var(--muted); font-weight: 600; font-size: 12px; }
.m-badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 20px; background: var(--gray-50); color: var(--ink-2); }
.m-badge-spicy { background: var(--red-50); color: var(--red); } .m-badge-new { background: var(--blue-50); color: var(--blue); } .m-badge-vegan { background: var(--green-50); color: var(--green); } .m-badge-best { background: var(--amber-50); color: var(--amber); } .m-badge-out { background: var(--ink); color: var(--card); }
.m-item-img { position: relative; width: 108px; height: 108px; flex: 0 0 auto; border-radius: 16px; overflow: hidden; background: var(--primary-50); display: grid; place-items: center; }
.m-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .6s, filter .6s; }
.m-item:hover .m-item-img img { transform: scale(1.08); }
.m-ph { font-size: 38px; opacity: .6; }
.m-add { position: absolute; bottom: 6px; inset-inline-end: 6px; width: 34px; height: 34px; border-radius: 11px; border: 0; background: var(--primary); color: #fff; font-size: 20px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--primary) 70%, transparent); transition: transform .25s var(--ease); }
.m-add:hover { transform: scale(1.12) rotate(90deg); }
.m-about { margin-top: 30px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.m-about p { margin: 0 0 6px; }
.m-powered { display: block; text-align: center; margin: 30px 0 0; color: var(--muted); font-size: 13px; }
.m-cartbar { position: fixed; bottom: 16px; left: 50%; transform: translate(-50%, 140%); z-index: 60; display: flex; align-items: center; gap: 12px; width: min(560px, calc(100% - 32px)); padding: 14px 18px; border: 0; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff; font: 700 15px var(--font); cursor: pointer; box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--primary) 80%, transparent); transition: transform .5s var(--ease); }
.m-cartbar.show { transform: translate(-50%, 0); }
.m-cartbar.bump { animation: bump .5s var(--ease); }
.m-cartbar b { margin-inline-start: auto; }
.m-cart-count { min-width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, .25); display: grid; place-items: center; font-size: 14px; }
@keyframes bump { 0%, 100% { transform: translate(-50%, 0) scale(1); } 40% { transform: translate(-50%, -6px) scale(1.04); } }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* Bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 12, 24, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel { position: absolute; bottom: 0; left: 50%; width: min(620px, 100%); max-height: 92vh; display: flex; flex-direction: column; background: var(--card); border-radius: 28px 28px 0 0; transform: translate(-50%, 100%); transition: transform .5s var(--ease); box-shadow: var(--shadow-lg); overflow: hidden; }
.sheet.open .sheet-panel { transform: translate(-50%, 0); }
.sheet-panel::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 44px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .7); z-index: 3; }
.sheet-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 20px; cursor: pointer; backdrop-filter: blur(6px); }
.sheet-img { height: 240px; background: var(--primary-50); display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet-img.empty { height: 70px; }
.sheet-body { padding: 20px 20px 10px; overflow-y: auto; flex: 1; }
.sheet-body h2 { font-size: 21px; display: flex; gap: 10px; align-items: center; }
.sheet-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; background: var(--card); }
.is-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.opt-group { margin-top: 16px; }
.opt-group:empty { display: none; }
.opt-title { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.opt-title small { font-weight: 600; color: var(--muted); font-size: 12px; background: var(--gray-50); padding: 2px 8px; border-radius: 20px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; transition: all .2s var(--ease); }
.opt:hover { border-color: var(--primary-100); }
.opt input { accent-color: var(--primary); width: 18px; height: 18px; }
.opt span { flex: 1; font-weight: 600; }
.opt b { color: var(--primary-600); font-size: 14px; }
.opt:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.opt.without:has(input:checked) { border-color: var(--red); background: var(--red-50); }
.opt.without:has(input:checked) span { text-decoration: line-through; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--gray-50); border-radius: 14px; padding: 4px; }
.qty button { width: 38px; height: 38px; border-radius: 11px; border: 0; background: var(--card); color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s; }
.qty button:active { transform: scale(.9); }
.qty span { min-width: 30px; text-align: center; font-weight: 800; }
.qty.sm button { width: 30px; height: 30px; font-size: 15px; border-radius: 9px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); animation: fadeUp .35s var(--ease); }
.cart-line .cl-img { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; background: var(--primary-50); display: grid; place-items: center; flex: 0 0 auto; font-size: 24px; }
.cart-line .cl-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .cl-body { flex: 1; min-width: 0; }
.cart-line b { display: block; }
.cart-line small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.cart-line .cl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line .cl-rm { border: 0; background: none; color: var(--red); cursor: pointer; font-size: 12px; font-weight: 700; }
.cart-sum { margin-top: 16px; padding: 14px 16px; background: var(--gray-50); border-radius: 16px; }
.cart-sum div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.cart-sum .grand { font-size: 17px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.seg { display: flex; gap: 8px; background: var(--gray-50); padding: 5px; border-radius: 16px; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; font-weight: 700; font-size: 13.5px; color: var(--muted); transition: all .3s var(--ease); text-align: center; }
.seg input:checked + span { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }
.pay-list { display: grid; gap: 8px; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: all .25s var(--ease); }
.pay-card > i { font-size: 22px; color: var(--primary); width: 40px; height: 40px; border-radius: 12px; background: var(--primary-50); display: grid; place-items: center; flex: 0 0 auto; }
.pay-card b { display: block; }
.pay-card small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pay-card .pay-proof { color: var(--blue); font-weight: 600; }
.pay-opt input:checked + .pay-card { border-color: var(--primary); background: var(--primary-50); }
.m-empty-search { padding: 20px 0; }
@media (min-width: 720px) {
  .m-cover { height: 300px; border-radius: 0 0 36px 36px; }
  .sheet-panel { bottom: auto; top: 50%; border-radius: 28px; transform: translate(-50%, -45%) scale(.96); opacity: 0; transition: transform .45s var(--ease), opacity .3s; max-height: 88vh; }
  .sheet.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-panel::before { display: none; }
  .m-items { grid-template-columns: 1fr 1fr; }
  .m-item { flex-direction: column-reverse; }
  .m-item-img { width: 100%; height: 170px; }
}
@media (min-width: 720px) and (max-width: 99999px) { .m-items .m-item-body p { min-height: 40px; } }
