:root {
  --maroon: #821518;
  --maroon-dk: #5e0e10;
  --gold: #E9AB22;
  --cream: #F5F1E8;
  --card: #FCFAF4;
  --ink: #1a1310;
  --muted: #6b6056;
  --line: #e6dcc7;
  --red: #b42318;
  --r: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --sans: "Archivo", system-ui, -apple-system, "PingFang SC", "Apple SD Gothic Neo", sans-serif;
  --serif: "Bodoni Moda", Georgia, serif;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--ink); font: 16px/1.4 var(--sans);
  padding-bottom: calc(90px + var(--safe-b)); }
h2 { font-family: var(--serif); font-weight: 700; margin: 0 0 6px; line-height: 1.15; }
button { font: inherit; color: inherit; cursor: pointer; }
.gap { flex: 1; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  background: var(--maroon); color: #fff; height: 58px; padding: 0 16px; }
.logo { height: 30px; width: auto; }
.table-pill { background: var(--gold); color: var(--maroon-dk); font-weight: 800; border-radius: 999px;
  padding: 6px 14px; font-size: 15px; white-space: nowrap; }
.lang { border: 1px solid rgba(255,255,255,.4); background: none; color: #fff; border-radius: 999px;
  padding: 5px 10px; font-size: 13px; font-weight: 700; }

.banner { background: var(--maroon-dk); color: #fff; text-align: center; padding: 10px 16px; font-weight: 700; font-size: 14px; }
.gnav { position: sticky; top: 58px; z-index: 19; display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 16px; background: var(--cream); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.gnav::-webkit-scrollbar { display: none; }
.gnav button { flex: 0 0 auto; border: 1.5px solid var(--maroon); background: #fff; color: var(--maroon);
  border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.gnav button.on { background: var(--maroon); color: #fff; }

.menu { padding: 4px 16px 16px; max-width: 760px; margin: 0 auto; }
.status { text-align: center; color: var(--muted); padding: 48px 0; }
.gtitle { scroll-margin-top: 124px; margin: 22px 0 10px; }
.gtitle h2 { font-size: 26px; color: var(--maroon); margin: 0; }

.card { display: flex; gap: 12px; width: 100%; text-align: left; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 10px; }
.card:active { transform: scale(.99); }
.card.off { opacity: .5; }
.card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card-name { font-weight: 800; font-size: 16px; }
.card-desc { color: var(--muted); font-size: 13px; margin: 3px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--maroon); }
.card-img { flex: 0 0 96px; height: 96px; border-radius: 12px; object-fit: cover; background: #eee5d3; }
.mono { flex: 0 0 96px; height: 96px; border-radius: 12px; background: var(--maroon); color: var(--gold);
  display: grid; place-items: center; font: 700 38px var(--serif); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px;
  background: #eee; color: #555; margin-left: 6px; vertical-align: 2px; }
.tag.t18 { background: var(--maroon); color: #fff; }

.cartbar { position: fixed; left: 16px; right: 16px; bottom: calc(12px + var(--safe-b)); z-index: 30;
  display: flex; align-items: center; gap: 10px; max-width: 728px; margin: 0 auto;
  background: var(--maroon); color: #fff; border: 0; border-radius: 999px; padding: 14px 20px;
  font-weight: 800; font-size: 17px; box-shadow: 0 6px 20px rgba(130,21,24,.35); }
.cart-count { background: var(--gold); color: var(--maroon-dk); border-radius: 999px; min-width: 28px;
  height: 28px; display: grid; place-items: center; font-size: 15px; }

.sheet { position: fixed; inset: 0; z-index: 50; }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh;
  background: #fff; border-radius: 20px 20px 0 0; display: flex; flex-direction: column;
  max-width: 760px; margin: 0 auto; overflow: hidden; }
.panel.small { max-height: 60vh; }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.pad { padding: 18px 16px 20px; }
.center { text-align: center; }
.x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); font-size: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.hero { width: 100%; height: 240px; object-fit: cover; display: block; background: #eee5d3; }
.desc { color: var(--muted); margin: 0 0 8px; }
.idcheck { background: #fbefd5; color: #6b4a00; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.foot { display: flex; gap: 12px; padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); }

.mgroup { margin: 16px 0 6px; }
.mhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.req { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--maroon-dk); }
.req.ok { background: #e8f1ea; color: #2c6b3c; }
.opt { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.opt input { width: 20px; height: 20px; accent-color: var(--maroon); margin: 0; }
.opt span { flex: 1; }
.opt em { font-style: normal; color: var(--muted); font-weight: 700; }
.opt.dis { opacity: .45; }

.field { display: block; margin-top: 14px; }
.field span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.field input { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; }
.field input:focus { outline: none; border-color: var(--maroon); }

.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 44px; height: 48px; border: 0; background: none; font-size: 22px; font-weight: 800; color: var(--maroon); }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }
.primary { flex: 1; border: 0; border-radius: 999px; background: var(--maroon); color: #fff; font-weight: 800;
  font-size: 17px; padding: 14px 18px; min-height: 50px; width: 100%; }
.primary:disabled { background: #b9a9a2; }
.ghost { display: block; margin: 10px auto; color: var(--maroon); font-weight: 800; }

.line { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.line-qty { font-weight: 800; color: var(--maroon); min-width: 26px; }
.line-main { flex: 1; min-width: 0; }
.line-name { font-weight: 800; }
.line-sub { color: var(--muted); font-size: 13px; }
.line-del { border: 0; background: none; color: var(--red); font-weight: 700; padding: 4px 0 0; font-size: 13px; }
.line-price { font-weight: 800; }

.block { margin-top: 18px; }
.label { font-weight: 800; margin-bottom: 8px; }
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tips button { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 4px; font-weight: 800; }
.tips button.on { border-color: var(--maroon); background: #f7e9e5; color: var(--maroon); }

.sumrow { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); }
.totalrow { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px;
  padding-top: 12px; border-top: 2px solid var(--ink); font-size: 18px; }
.totalrow strong { font-size: 22px; }

.pay { background: #faf6ee; border-radius: 16px; padding: 14px; }
.apple-pay { -webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy; -apple-pay-button-style: black;
  height: 50px; width: 100%; border-radius: 12px; margin-bottom: 10px; cursor: pointer; }
.gpay { height: 50px; margin-bottom: 10px; }
.or { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
#cardBox { min-height: 90px; }
.secure { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.error { color: var(--red); font-weight: 700; background: #fdecea; border-radius: 12px; padding: 10px 12px; }

.tick { width: 72px; height: 72px; border-radius: 50%; background: var(--maroon); color: var(--gold);
  font-size: 40px; display: grid; place-items: center; margin: 6px auto 12px; }
.big { font: 700 26px var(--serif); color: var(--maroon); margin: 4px 0; }
#langList button { display: block; width: 100%; text-align: left; padding: 14px; border: 0; border-bottom: 1px solid var(--line);
  background: none; font-size: 17px; }
#langList button.on { color: var(--maroon); font-weight: 800; }

.paying { position: fixed; inset: 0; z-index: 80; background: rgba(255,255,255,.9); display: grid;
  place-content: center; text-align: center; font-weight: 800; }
.spin { width: 44px; height: 44px; border: 4px solid #eadbd3; border-top-color: var(--maroon); border-radius: 50%;
  margin: 0 auto 12px; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* Bấm ảnh món -> xem phóng to toàn màn hình; chạm bất kỳ đâu để đóng. */
.zoom { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); display: flex;
  align-items: center; justify-content: center; padding: 16px; }
.zoom[hidden] { display: none !important; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.zoom-x { position: absolute; top: 14px; right: 16px; color: #fff; font-size: 26px; }
.zoomable { cursor: zoom-in; }
