/* lâuphai ship — giao diện khách (viết lại 11/2026). Mobile-first.
   Mục lục: 1 Nền tảng · 2 Nút & form · 3 Header · 4 Hero · 5 Nhận món · 6 Thực đơn · 7 Vì sao/FAQ/Footer
            8 Thanh giỏ · 9 Hộp thoại/sheet · 10 Trang giỏ hàng · 11 Trang theo dõi đơn & chính sách */

/* ============ 1. Nền tảng ============ */
:root {
  --brown-900: #2A150D; --brown-800: #3B1F14; --brown-600: #6B3A26;
  --cream: #F3E9D7; --orange: #C8693A; --orange-d: #A9532B; --tint: #FCEFE6;
  --paper: #FAF5EC; --card: #FFFFFF; --ink: #2A1810; --muted: #7B6B5F; --line: #EADFCF;
  --ok: #2F7D4F; --warn: #8A5200; --warn-bg: #FFF1D6; --err: #B3261E; --err-bg: #FBEAE8;
  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --sh-1: 0 1px 2px rgba(59,31,20,.05), 0 6px 18px rgba(59,31,20,.06);
  --sh-2: 0 10px 34px rgba(59,31,20,.16);
  --well: radial-gradient(circle at 50% 42%, #6E402C 0%, #4A2819 55%, #3B1F14 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 90%; /* toàn trang nhỏ hơn 10% (chủ quán yêu cầu 14/11) */ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 128px; }
body { margin: 0; background: var(--paper) radial-gradient(rgba(107,58,38,.045) 1px, transparent 1.2px) 0 0 / 14px 14px; color: var(--ink); font: 400 15.3px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--brown-600); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.22; color: var(--brown-800); margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 .6em; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.ic { flex: none; vertical-align: -3px; }
:focus-visible { outline: 3px solid rgba(200,105,58,.55); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ============ 2. Nút & form ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px;
  border: 1.5px solid var(--orange); background: var(--orange); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { min-height: 38px; padding: 6px 16px; font-size: .9rem; }
.btn.lg { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.btn.big { display: flex; width: 100%; min-height: 54px; margin: 14px 0 0; font-size: 1.08rem; box-shadow: 0 8px 20px rgba(200,105,58,.28); }
.btn.ghost { background: #fff; color: var(--brown-600); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange-d); background: #fff; }
.btn.line { background: transparent; color: var(--cream); border-color: rgba(243,233,215,.45); }
.btn.line:hover { background: rgba(243,233,215,.1); border-color: var(--cream); }
.back { background: none; border: 0; padding: 8px 0; color: var(--brown-600); font: 600 1rem var(--sans); cursor: pointer; }
.back:hover { color: var(--orange-d); }

.fld { display: block; margin: 14px 0; font-weight: 500; font-size: .95rem; }
.fld input, .fld textarea, select { display: block; width: 100%; margin-top: 6px; padding: 14px; border: 1.5px solid #DCCDB8; border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font: 400 1.05rem var(--sans); }
.fld input:focus, .fld textarea:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(200,105,58,.16); }
.fld input[readonly] { background: #F6F0E6; }
.chk { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: 12px 14px; border-radius: var(--r-sm); background: #F4ECDF; margin: 10px 0; }
.msg.warn { background: var(--warn-bg); color: var(--warn); }
.msg.err { background: var(--err-bg); color: var(--err); }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--orange-d); }
.tag.gray { background: #EEE9E2; color: #6F6259; }

/* ============ 3. Header ============ */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--brown-900); color: var(--cream); }
.hdr-in { display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "logo loc user langs" "cats cats cats cats";
  align-items: center; gap: 4px 10px; max-width: 1200px; margin-inline: auto; padding: 8px 16px 0; }
.logo { grid-area: logo; display: block; line-height: 0; }
.logo img { height: 42px; width: auto; }
.cats { grid-area: cats; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 6px 16px 10px; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--cream); opacity: .78; text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; transition: background .15s, opacity .15s; }
.cats a:hover { opacity: 1; background: rgba(243,233,215,.1); }
.cats a.on { opacity: 1; background: var(--cream); color: var(--brown-800); font-weight: 600; }
.locbtn { grid-area: loc; justify-self: end; display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; min-height: 44px; padding: 5px 14px 5px 10px;
  background: rgba(243,233,215,.08); border: 1px solid rgba(243,233,215,.22); border-radius: 999px; color: var(--cream); font: inherit; text-align: left; cursor: pointer; }
.locbtn:hover { background: rgba(243,233,215,.16); }
.locbtn .ic { color: var(--orange); }
.loc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.loc-text small { font-size: .7rem; opacity: .7; }
.loc-text b { font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 44vw; }
.userbtn { grid-area: user; display: flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; padding: 6px 9px;
  background: none; border: 1px solid rgba(243,233,215,.22); border-radius: 999px; color: var(--cream); font: 600 .86rem var(--sans); cursor: pointer; }
.userbtn:hover { border-color: rgba(243,233,215,.6); }
.userbtn.in { background: var(--cream); color: var(--brown-800); padding-right: 14px; }
.langs { grid-area: langs; display: flex; }
.langs button { background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 7px; color: var(--cream); opacity: .6; font: 600 .78rem var(--sans); cursor: pointer; }
.langs button.on { opacity: 1; border-color: rgba(243,233,215,.45); }

/* ============ 4. Hero: ảnh hộp cơm làm nền, chữ theo giọng fanpage ============ */
.hero { position: relative; overflow: hidden; background: var(--brown-900); color: var(--cream); padding: 120px 0 34px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 auto 0; height: 260px; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(.92) contrast(1.02); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(42,21,13,.15) 0px, rgba(42,21,13,.55) 140px, var(--brown-900) 250px); }
.hero-in { position: relative; }
.kicker { font: italic 500 .95rem var(--serif); color: #E8C9A6; margin: 0 0 8px; }
.hero h1 { color: var(--cream); font-size: clamp(2rem, 8.4vw, 4rem); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; }
.hero h1 .em { font-style: italic; font-weight: 600; color: #F6D9B5; }
.hero h1::after { content: ""; display: block; width: 130px; height: 12px; margin-top: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c12-8 20 6 32 0s20-8 32-1 22 5 34-2 12-2 18 1' fill='none' stroke='%23C8693A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain; }
.hero-sub { margin: 14px 0 0; opacity: .92; font-size: 1rem; max-width: 30em; }
.hero-occ { margin: 8px 0 0; font-size: .86rem; color: #D9B996; letter-spacing: .01em; }
.hero-cta { display: none; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-art, .slide, .dots { display: none; }
.stamp { position: absolute; right: 16px; top: -100px; width: 64px; height: 64px; animation: spin 26s linear infinite; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 5. Nhận món: tấm vé giấy ============ */
.fulfil { position: relative; margin-top: 16px; background: #FFFDF8; border-radius: 18px; box-shadow: var(--sh-1), 0 0 0 1px var(--line); padding: 12px 14px; display: grid; gap: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #F1E6D6; border-radius: 14px; }
.seg button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: 600 .98rem var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.seg button.on { background: var(--brown-800); color: var(--cream); box-shadow: 0 3px 10px rgba(59,31,20,.28); }
.ff-addr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; height: 84px; margin-top: 12px; padding: 0 2px; border: 0; border-top: 2px dashed var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ff-pin { width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--orange-d); display: grid; place-items: center; transition: transform .2s; }
.ff-addr:hover .ff-pin { transform: translateY(-3px); }
.ff-addr:hover .ff-change { background: var(--orange); color: #fff; }
@media (max-width: 420px) { .ff-change #ff-change { display: none; } .ff-change { padding: 10px; } }
.ff-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ff-text small { color: var(--muted); font-size: .78rem; }
.ff-text b, .ff-text em { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-text b { font-weight: 600; font-size: 1.02rem; }
.ff-text em { font-style: normal; color: var(--orange-d); font-size: .86rem; font-weight: 500; }
.ff-change { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--orange); border-radius: 999px; background: #fff; text-decoration: none !important; color: var(--orange-d); font-weight: 600; font-size: .92rem; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.facts { list-style: none; margin: 0; padding: 12px 2px 2px; border-top: 2px dashed var(--line); display: grid; gap: 4px; color: #6A5A4E; font-size: .86rem; }
.facts li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.facts li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts .ic { color: var(--orange); }
.loc-banner { display: none !important; }

/* ============ 6. Thực đơn: thẻ món đứng, ảnh nhô khỏi thẻ ============ */
.menu { padding-top: 34px; }
.menu-head { display: flex; flex-direction: column; gap: 12px; }
.menu-head h2, .why h2, .faq h2 { font-size: 1.75rem; }
.menu-head h2::after, .why h2::after, .faq h2::after { content: ""; display: block; width: 84px; height: 10px; margin-top: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c12-8 20 6 32 0s20-8 32-1 22 5 34-2 12-2 18 1' fill='none' stroke='%23C8693A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain; }
.search { position: relative; display: block; }
.search .ic { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search input { width: 100%; min-height: 48px; padding: 10px 16px 10px 46px; border: 1.5px solid var(--line); border-radius: 14px; background: #FFFDF8; font: 400 1rem var(--sans); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(200,105,58,.16); }
.cat-title { display: inline-block; font-size: 1.15rem; margin: 26px 0 14px; padding: 6px 16px 6px 14px; background: var(--brown-800); color: var(--cream); border-radius: 4px 14px 14px 4px; position: relative; }
.cat-title::before { content: ""; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); translate: 0 -50%; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 6px; }
/* Thẻ món dạng ngang: ảnh trái · tên, mô tả · giá + nút thêm. Ít món nên ưu tiên nhìn hết, bấm nhanh */
.pcard { position: relative; display: flex; gap: 12px; min-width: 0; padding: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; background: #FFFDF8; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-1); transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, border-color .22s; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(59,31,20,.12); border-color: #E2D2BC; }
.pcard.off { opacity: .55; }
.pcard:active { transform: scale(.985); }
.pmedia { position: relative; flex: none; width: 120px; }
.pimg { display: block; position: relative; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 14px; background: var(--well); cursor: pointer; overflow: visible; }
.pimg img { position: absolute; left: 2%; top: -7%; width: 96%; height: 104%; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0,0,0,.42)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.pcard:hover .pimg img { transform: translateY(-4px) scale(1.05) rotate(-3deg); }
.pstamp { position: absolute; top: 6px; right: 6px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: 999px;
  background: var(--orange); color: #fff; font: 600 .72rem/1 var(--sans); letter-spacing: .01em; white-space: nowrap; pointer-events: none; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.22); }
.pstamp svg { flex: none; color: #FFE3B8; }
.pstamp-new { background: #2F7D5B; }
.pstamp::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 62% { left: -60%; } 85%, 100% { left: 130%; } }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cream); font: italic 500 .95rem var(--serif); opacity: .5; }
.pzoom { position: absolute; top: 6px; left: 6px; z-index: 2; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,253,248,.9); color: var(--brown-800); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: background .15s, transform .15s; }
.pzoom:hover { background: #fff; transform: scale(1.08); }
.pzoom::after { content: ""; position: absolute; inset: -10px; }
.padd { position: absolute; right: 6px; bottom: -20px; display: inline-flex; align-items: center; gap: 2px; z-index: 2; }
.plus, .minus { width: 44px; height: 44px; border-radius: 50%; font: 400 1.5rem/1 var(--sans); cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; transition: background .15s, transform .12s; }
.plus { border: 3px solid #FFFDF8; background: var(--orange); color: #fff; box-shadow: 0 6px 14px rgba(200,105,58,.4); }
.plus:hover { background: var(--orange-d); transform: scale(1.08); }
.plus:active, .minus:active { transform: scale(.9); }
.plus:disabled { background: #C9BFB5; box-shadow: none; cursor: not-allowed; }
.minus { border: 1.5px solid var(--orange); background: #fff; color: var(--orange-d); width: 38px; height: 38px; }
.padd.stepper { background: #FFFDF8; border-radius: 999px; padding: 3px 0 3px 4px; box-shadow: 0 6px 16px rgba(59,31,20,.2); }
.padd.stepper .plus { border-width: 0; width: 38px; height: 38px; box-shadow: none; margin-right: 3px; }
.pq { min-width: 26px; text-align: center; font-size: 1.05rem; font-weight: 700; }
.pbadge, .cb-ico i { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--brown-800); color: #fff;
  font: 700 .76rem/1 var(--sans); display: grid; place-items: center; border: 2px solid #fff; pointer-events: none; }
.pinfo { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 2px 0 0; cursor: pointer; }
.pname { font: 600 1rem/1.3 var(--sans); color: var(--ink); letter-spacing: 0; }
.palt { font-style: italic; color: var(--muted); font-size: .76rem; line-height: 1.3; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pdesc { margin: 6px 0 0; font-size: .82rem; line-height: 1.4; color: #5E4E42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.pprice { font: 700 1.12rem var(--serif); color: var(--orange-d); white-space: nowrap; }
.pcard .padd { position: relative; right: auto; bottom: auto; flex: none; cursor: default; }
.pcard .plus { width: 40px; height: 40px; border-width: 0; box-shadow: 0 4px 10px rgba(200,105,58,.35); }
.pcard .padd.stepper { box-shadow: none; border: 1.5px solid var(--line); padding: 2px 0 2px 3px; }
.pcard .padd.stepper .plus, .pcard .minus { width: 34px; height: 34px; font-size: 1.3rem; }
.pcard .minus { border-width: 0; background: var(--tint); }
.fly { position: fixed; z-index: 90; pointer-events: none; }
.fly img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); }

/* ============ 7. Vì sao · FAQ · Footer ============ */
.why, .faq { margin-top: 64px; }
.why h2, .faq h2 { font-size: 1.6rem; margin-bottom: 10px; }
/* Tiêu đề mục căn giữa, nét gạch tay cũng ra giữa */
.why h2, .faq-side h2 { text-align: center; }
.why h2::after, .faq-side h2::after { margin-inline: auto; }
.sec-lead, .faq-lead { text-align: center; color: var(--muted); max-width: 34em; margin: 0 auto 22px; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.why-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.why-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--tint); color: var(--orange-d); display: grid; place-items: center; }
.why-ico svg { width: 24px; height: 24px; }
.why-card h3 { font: 600 1.02rem var(--sans); color: var(--ink); letter-spacing: 0; align-self: center; }
.why-card p { margin: 0; font-size: .9rem; color: #5E4E42; }
.faq-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.faq-cta .btn { min-width: 150px; }
.faq-list { max-width: 860px; margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -54%; font-size: 1.5rem; font-weight: 400; color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: #5E4E42; }
main { padding-bottom: 40px; }
.site-foot { position: relative; overflow: hidden; background: var(--brown-900); color: var(--cream); margin-top: 72px; padding: 0 20px calc(110px + env(safe-area-inset-bottom)); font-size: .93rem; line-height: 1.6; }
.site-foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: repeating-linear-gradient(90deg, var(--orange) 0 28px, transparent 28px 40px); opacity: .55; }
.fz { position: relative; max-width: 1200px; margin-inline: auto; }
.fz-top { display: flex; flex-direction: column; gap: 24px; padding: 48px 0 36px; border-bottom: 1px solid rgba(243,233,215,.12); }
.fz-logo img { display: block; height: 76px; width: auto; }
.fz-kick { margin: 0 0 4px; font: 600 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.site-foot a.fz-phone { display: inline-block; font: 600 2.4rem/1.1 var(--serif); letter-spacing: -.01em; color: var(--cream); text-decoration: none; }
.site-foot a.fz-phone:hover { color: #fff; }
.fz-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fz-btns .btn { padding: 11px 20px; font-size: .95rem; }
.site-foot .fz-btns a.btn { color: #fff; text-decoration: none; }
.site-foot .fz-btns a.btn.line { color: var(--cream); }
.fz-cols { display: grid; gap: 28px; padding: 32px 0; }
.fz-cols h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--cream); font: 600 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.fz-cols h4 .ic { color: var(--orange); opacity: 1; }
.site-foot p { margin: 0 0 8px; color: rgba(243,233,215,.88); }
.fh-row { display: flex; align-items: baseline; gap: 10px; }
.fh-row strong { font-weight: 600; color: var(--cream); font-variant-numeric: tabular-nums; }
.fh-row > span { color: rgba(243,233,215,.6); font-size: .86rem; }
.fz-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: rgba(243,233,215,.88); text-decoration: none; transition: color .15s; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.site-foot a.fz-more { color: var(--orange); font-weight: 600; }
.site-foot a.fz-more:hover { color: #E08A5C; }
.fz-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 18px 0 26px; border-top: 1px solid rgba(243,233,215,.12); color: rgba(243,233,215,.5); font-size: .8rem; }


/* ============ 7b. Quy trình đơn ship (dải nâu, icon nét kem, đường nối ô-liu) ============ */
.flow { margin-top: 56px; padding: 44px 0 48px; color: var(--cream);
  background: radial-gradient(120% 90% at 85% 110%, rgba(200,105,58,.35), transparent 60%), var(--brown-900); }
.flow-kicker { margin: 0; font: italic 500 1rem var(--serif); color: #E7C9A3; text-align: center; }
.flow h2 { color: var(--cream); font-size: 1.6rem; margin: 2px 0 26px; text-align: center; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.flow-step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 2px 16px; padding-bottom: 26px; }
.flow-step:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 66px; bottom: 4px; border-left: 2px dashed rgba(170,160,90,.7); }
.flow-ico { grid-row: span 2; position: relative; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(243,233,215,.35); display: grid; place-items: center; color: #F3E3C3; background: rgba(243,233,215,.05); }
.flow-ico i { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 .72rem/22px var(--sans); text-align: center; font-style: normal; }
.flow-step h3 { font: 700 .95rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--cream); margin-top: 8px; }
.flow-step p { margin: 4px 0 0; font-size: .92rem; line-height: 1.55; color: rgba(243,233,215,.82); max-width: 32em; }
@media (min-width: 1000px) {
  .flow { padding: 64px 0 70px; }
  .flow h2 { font-size: 2rem; margin-bottom: 44px; }
  .flow-list { grid-template-columns: repeat(3, 1fr); gap: 46px 40px; }
  .flow-step { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; padding: 0 6px; }
  .flow-step:not(:last-child)::before { left: calc(50% + 50px); right: calc(-50% + 30px); top: 40px; bottom: auto; border-left: 0; border-top: 2px dashed rgba(170,160,90,.7); }
  .flow-step:nth-child(3)::before { display: none; }
  .flow-step:not(:last-child)::after { content: ""; position: absolute; top: 35px; right: calc(-50% + 26px); width: 9px; height: 9px; border-top: 2px solid rgba(170,160,90,.9); border-right: 2px solid rgba(170,160,90,.9); transform: rotate(45deg); }
  .flow-step:nth-child(3)::after { display: none; }
  .flow-ico { grid-row: auto; width: 82px; height: 82px; }
  .flow-ico svg { width: 42px; height: 42px; }
  .flow-step h3 { margin-top: 16px; }
  .flow-step p { margin-top: 8px; }
}

/* ============ 8. Thanh giỏ: túi giấy kraft ============ */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,253,248,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(59,31,20,.1); }
.cb-row { display: flex; gap: 6px; max-width: 640px; margin-inline: auto; align-items: stretch; }
.cb-act { flex: none; width: 50px; height: 58px; border-radius: 16px; background: #FFFDF8; border: 1px solid var(--line); color: var(--brown-800);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: .68rem; font-weight: 600; line-height: 1; }
.cb-act:active { transform: scale(.96); }
.cb-act svg { color: var(--orange); }
.cb-zalo b { display: grid; place-items: center; height: 20px; padding: 0 6px; border-radius: 6px; background: #0068FF; color: #fff; font: 800 .66rem var(--sans); letter-spacing: .02em; }
.cartbar.empty .cb-ico i { display: none; }
.cartbar.empty .cb-text b { display: none; }
@media (max-width: 999px) {
  .cartbar #btn-cart { padding: 0 7px 0 6px; gap: 8px; }
  .cartbar .cb-ico { width: 50px; }
  .cartbar .cb-ico .bag { width: 54px; height: 58px; }
  .cartbar .cb-text { white-space: nowrap; }
  .cartbar .cb-text b { font-size: 1rem; }
  .cartbar .cb-go { padding: 9px 10px; font-size: .84rem; }
  .cartbar .cb-ico { margin-right: -2px; }
}
.cartbar button { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; max-width: 640px; margin-inline: auto; height: 58px; padding: 0 20px 0 10px;
  border: 0; border-radius: 16px; background: var(--brown-800); color: var(--cream); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 8px 20px rgba(59,31,20,.3); transition: background .15s; }
.cartbar button:hover { background: var(--brown-900); }
.cb-ico { position: relative; width: 58px; height: 58px; margin-top: -26px; }
.cb-ico .bag { width: 62px; height: 66px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); transform-origin: 50% 90%; }
.cb-ico i { top: 2px; right: -8px; background: var(--orange); }
.cartbar.pop .bag { animation: bag .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bag { 30% { transform: scale(1.18) rotate(-8deg); } 60% { transform: scale(.96) rotate(5deg); } }
.cb-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cb-text small { opacity: .75; font-size: .8rem; }
.cb-text b { font: 700 1.2rem var(--serif); }
.cb-go { font-weight: 600; white-space: nowrap; color: #fff; background: var(--orange); padding: 9px 14px; border-radius: 11px; font-size: .92rem; }

/* ============ 9. Hộp thoại · sheet · toast ============ */
.modal { position: fixed; inset: 0; z-index: 100; isolation: isolate; transform: translateZ(0); background: rgba(30,14,8,.55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); animation: rise .28s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { transform: translateY(40px); opacity: .5; } }
.modal-box h2 { font-size: 1.4rem; padding-right: 44px; margin-bottom: 6px; }
.x { position: absolute; right: 10px; top: 10px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #F4ECDF; color: var(--brown-600); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.x:hover { background: var(--tint); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.modes button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 8px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); font: 600 .96rem var(--sans); cursor: pointer; }
.modes button.on { border-color: var(--orange); background: var(--tint); color: var(--orange-d); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.help { background: #F4ECDF; border-radius: var(--r-sm); padding: 12px; margin: 8px 0; font-size: .9rem; }
.map { height: 250px; border-radius: var(--r-md); overflow: hidden; background: #EEE7DC; margin-top: 12px; }
.quote-box { margin: 12px 0 4px; }
.quote-box .addr { font-weight: 600; }
.quote-box .km { color: var(--orange-d); font-weight: 500; }
.store-card { background: #F8F1E6; border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 3px; }
.saved { margin: 12px 0 4px; }
.saved-btn { display: block; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin: 6px 0; font: inherit; cursor: pointer; }
.saved-btn:hover { border-color: var(--orange); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#g-btn { display: flex; justify-content: center; min-height: 44px; }
.order-row { display: block; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin: 8px 0; }
.order-row.active { border-color: var(--orange); background: var(--tint); }
.or-top { display: flex; justify-content: space-between; gap: 8px; }
.addr-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.sheet-bg { position: fixed; inset: 0; background: rgba(30,14,8,.5); z-index: 70; animation: fade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-width: 560px; max-height: 88vh; margin-inline: auto; overflow: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); animation: rise .28s cubic-bezier(.2,.8,.2,1); }
.sheet h3 { font-size: 1.35rem; margin: 12px 0 4px; }
.detail-img { display: block; width: 100%; max-height: 320px; object-fit: contain; background: var(--well); border-radius: var(--r-lg); padding: 12px; }
.vbtn { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; margin: 8px 0; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; font: inherit; text-align: left; cursor: pointer; }
.vbtn:hover { border-color: var(--orange); background: var(--tint); }
.vbtn b { color: var(--orange-d); white-space: nowrap; }
.toast { position: fixed; left: 50%; top: 84px; z-index: 80; translate: -50% 0; width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: .92rem; box-shadow: var(--sh-2); }

/* Popup thêm món: lưới ô nhỏ vừa một màn hình */
.modal-box.pick-box { max-width: 980px; height: min(88vh, 860px); max-height: none; display: flex; flex-direction: column; padding-bottom: 0; }
.pick-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -18px 0; padding: 4px 18px 10px; border-bottom: 1px solid var(--line); flex: none; }
.pick-cats::-webkit-scrollbar { display: none; }
.pc { flex: none; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .88rem var(--sans); cursor: pointer; }
.pc.on { background: var(--brown-800); border-color: var(--brown-800); color: var(--cream); }
.pick-grid { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; padding: 22px 2px 16px; align-content: start; }
.ptile { display: flex; flex-direction: column; min-width: 0; }
.ptile.off { opacity: .5; }
.pt-img { position: relative; aspect-ratio: 1 / .78; border-radius: 14px; background: var(--well); }
.pt-img img { position: absolute; left: 6%; top: -8%; width: 88%; height: 104%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0,0,0,.4)); }
.pt-img.tap { cursor: pointer; transition: transform .12s; }
.pt-img.tap:active { transform: scale(.97); }
.pt-img .padd { right: 4px; bottom: -16px; }
.pt-img .plus { width: 38px; height: 38px; font-size: 1.3rem; border-width: 2px; }
.pt-img .padd.stepper .plus, .pt-img .minus { width: 32px; height: 32px; font-size: 1.15rem; }
.pt-name { margin-top: 20px; font-weight: 600; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-price { margin-top: 2px; color: var(--orange-d); font: 700 .95rem var(--serif); }
.pick-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #FFFDF8; border-radius: 0 0 24px 24px; }
.pick-foot span { font-weight: 700; color: var(--brown-800); }
@media (min-width: 560px) { .pick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 820px) { .pick-grid { grid-template-columns: repeat(5, 1fr); gap: 26px 16px; } .pick-cats, .pick-foot { margin-inline: -26px; padding-inline: 26px; } }

/* ============ 10. Trang giỏ hàng ============ */
body.page-cart main, body.page-cart .cartbar { display: none !important; }
body.page-cart .cats { display: none; }
body.page-cart .hdr-in { grid-template-areas: "logo loc user langs"; padding-bottom: 8px; }
.cartpage { padding-bottom: 120px; }
.cp-head { padding-top: 10px; }
.cp-head h1 { font-size: 1.75rem; }
.cp-head h1 small { font: 500 .85rem var(--sans); letter-spacing: .04em; }
.cp-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 14px; }
.cp-card, .cp-right #order-form, .cp-done #cart-done { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 18px; }
.cp-sub { font: 600 1.08rem var(--sans); color: var(--ink); letter-spacing: 0; margin-bottom: 4px; }
.cp-left .bill { margin-top: 16px; }
.bill h3 { font: 600 1.08rem var(--sans); color: var(--ink); letter-spacing: 0; }

.cline { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cl-img { position: relative; width: 72px; height: 72px; padding: 4px; border-radius: var(--r-sm); background: var(--well); display: grid; place-items: center; overflow: hidden; }
.cl-img img { width: 100%; height: 100%; object-fit: contain; }
.cl-img { overflow: visible; }
.cl-rm { position: absolute; top: -8px; left: -8px; z-index: 1; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,253,248,.92); color: var(--brown-600); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); opacity: .9; transition: background .15s, color .15s, opacity .15s; }
.cl-rm:hover { background: #fff; color: var(--err); opacity: 1; }
.cl-rm::after { content: ""; position: absolute; inset: -10px; } /* vùng bấm rộng hơn cho ngón tay */
.cl-img .noimg { font-size: .7rem; }
.cl-body { min-width: 0; }
.cl-top { display: flex; justify-content: space-between; gap: 12px; }
.cl-top b { white-space: nowrap; color: var(--orange-d); }
.cl-nm { min-width: 0; }
.cl-name { font-weight: 600; line-height: 1.3; }
.cl-ctl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qbtn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.qbtn:hover { border-color: var(--orange); color: var(--orange-d); }
.qty { min-width: 24px; text-align: center; font-weight: 700; }
.cl-note { flex: 1; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 400 .9rem var(--sans); }
.cl-note:focus { outline: none; border-color: var(--orange); }
.totals { margin-top: 8px; }
.trow { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.trow.total { font-weight: 700; font-size: 1.2rem; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.trow.due { color: var(--orange-d); font-weight: 700; }
.trow.warn { color: var(--warn); font-size: .9rem; }
.trow.muted { font-size: .9rem; }
.step { display: flex; align-items: center; gap: 10px; font: 600 1.08rem var(--sans); color: var(--ink); letter-spacing: 0; margin: 26px 0 12px; }
.step:first-child { margin-top: 0; }
.step > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brown-800); color: var(--cream); font-size: .85rem; }
.deliver-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--orange); border-radius: var(--r-md); background: var(--tint); }
.deliver-box.pickup { border-color: var(--line); background: #fff; }
.db-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; }
.deliver-box.pickup .db-ico { background: var(--brown-800); }
.db-text { flex: 1 1 200px; min-width: 0; }
.db-text > small:first-child { color: var(--orange-d); font-weight: 600; font-size: .8rem; }
.db-text .addr { font-size: 1.05rem; font-weight: 700; margin: 2px 0; line-height: 1.35; }
.db-text .addr.muted { font-weight: 500; }
.db-hint { display: block; color: var(--muted); font-size: .8rem; }
.grid2f { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.grid2f .fld { margin: 8px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; }
.chip:has(input:checked) { border-color: var(--orange); background: var(--tint); color: var(--orange-d); font-weight: 600; }
.chip:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.chip input { accent-color: var(--orange); margin: 0; width: 18px; height: 18px; }
.slot-picker { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #FDFAF5; }
.day-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.day-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.day-btn:disabled { opacity: .3; cursor: default; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); font: 600 1rem var(--sans); cursor: pointer; }
.slot:hover { border-color: var(--orange); }
.slot.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.pay-options { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--orange); background: var(--tint); }
.pay-opt input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--orange); }
.pay-opt span { display: flex; flex-direction: column; gap: 2px; }
.pay-opt small { font-size: .86rem; }
/* QR nằm ngay dưới lựa chọn đang chọn, nối liền thẻ lựa chọn */
.pay-box.pay-qr { margin: -8px 0 0; border-color: var(--orange); border-width: 0 1.5px 1.5px; background: var(--tint); border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); padding-top: 20px; }
.pay-box.pay-qr .qr { max-width: 240px; }
.pay-opt:has(input:checked):has(+ .pay-qr:not([hidden])) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.more { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.more-title { font: 600 1.02rem var(--sans); color: var(--ink); letter-spacing: 0; }
.consent { font-size: .9rem; margin-top: 18px; }
.cp-done { max-width: 620px; }
.cp-done #cart-done { margin-top: 14px; }
.done-ico { width: 60px; height: 60px; margin: 6px auto 12px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 1.9rem; }
.pay-box { border: 2px solid var(--orange); border-radius: var(--r-md); padding: 16px; margin: 14px 0; background: #fff; }
.pay-box h3 { font: 600 1.08rem var(--sans); color: var(--ink); text-align: center; margin-bottom: 8px; }
.qr { display: block; width: 100%; max-width: 280px; margin: 0 auto 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 8px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.submit-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(59,31,20,.1); }
.submit-bar span { display: flex; flex-direction: column; line-height: 1.2; }
.submit-bar small { color: var(--muted); font-size: .8rem; }
.submit-bar b { font-size: 1.25rem; color: var(--orange-d); }
.submit-bar .btn { min-height: 52px; padding-inline: 30px; font-size: 1.05rem; }
#cart-main #btn-submit { display: none; }

/* Tờ bill giấy (cột trái trang giỏ) */
.cp-left { filter: drop-shadow(0 10px 22px rgba(59,31,20,.16)); }
body.noscroll .cp-left { filter: none; } /* tránh lỗi vẽ đè lên popup trên Chrome desktop */
.receipt { --z: 14px; background: #FFFDF8; padding: 30px 20px 34px; font-variant-numeric: tabular-nums;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x; }
.rc-head { display: grid; justify-items: center; gap: 2px; padding-bottom: 14px; border-bottom: 2px dashed #D9C9B3; text-align: center; }
.rc-brand { display: block; line-height: 0; }
.rc-brand img { width: auto; height: 72px; }
.rc-title { font: 600 .78rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.rc-meta { color: var(--muted); font-size: .8rem; letter-spacing: .04em; }
.receipt .cline { border-bottom: 1px dotted #D9C9B3; }
.rc-add { display: block; width: 100%; margin: 12px 0 0; padding: 10px; border: 1.5px dashed #D2B99B; border-radius: 10px; background: none; color: var(--orange-d); font: 600 .95rem var(--sans); cursor: pointer; }
.rc-add:hover { background: var(--tint); border-color: var(--orange); }
.rc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.rc-actions .rc-add { margin: 0; font-family: 'Be Vietnam Pro', system-ui, sans-serif; }
.rc-clear { color: #8A7563; border-color: #DCCDBB; font-weight: 500; }
.rc-clear:hover { color: var(--err); border-color: var(--err); background: #FDF1EE; }
.rc-clear.arm { color: #fff; background: var(--err); border-style: solid; border-color: var(--err); }
.receipt .totals { margin-top: 16px; padding-top: 12px; border-top: 2px dashed #D9C9B3; }
.receipt .trow span:first-child { flex: 1; display: flex; align-items: baseline; gap: 6px; }
.receipt .trow span:first-child::after { content: ""; flex: 1; border-bottom: 1px dotted #CDBBA3; translate: 0 -4px; }
.receipt .trow.total { border-top: 2px solid var(--brown-800); font: 700 1.3rem var(--serif); color: var(--brown-800); }
.receipt .trow.total span:first-child::after { display: none; }
.rc-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.rc-thanks { margin-top: 14px; padding-top: 14px; border-top: 2px dashed #D9C9B3; text-align: center; font: italic 500 1rem var(--serif); color: var(--brown-600); }

/* ============ 11. Trang theo dõi đơn & chính sách ============ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 20px; margin: 16px auto; max-width: 660px; }
.card h2 { font-size: 1.35rem; margin-bottom: 8px; }
.card .btn.big { margin-top: 16px; }
.steps { list-style: none; padding: 0; margin: 18px 0 6px; }
.steps li { position: relative; padding: 4px 0 18px 38px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.steps li::after { content: ""; position: absolute; left: 13px; top: 26px; bottom: -4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--orange); border-color: var(--orange); box-shadow: inset 0 0 0 3px #fff; }
.steps li.done::after { background: var(--orange); }
.steps li.now { font-weight: 700; color: var(--brown-800); }
.steps li.now::before { box-shadow: inset 0 0 0 3px #fff, 0 0 0 5px rgba(200,105,58,.22); }
.steps li.now::after { background: var(--line); }
.policy { padding-inline: 16px; }
.policy .card { max-width: 800px; }

/* ============ Màn hình ≥ 700px ============ */
@media (min-width: 700px) {
  /* Thẻ dọc, ảnh to: màn rộng có chỗ thì khoe ảnh món */
  /* Thẻ dọc, ảnh to nổi ra khỏi mép trên thẻ */
  .grid { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; padding-top: 14px; }
  .pcard { flex-direction: column; padding: 0 12px 14px; gap: 14px; }
  .pcard:hover { transform: translateY(-5px); }
  .pmedia { width: 100%; margin-top: -16px; }
  .pimg { aspect-ratio: 1 / .84; border-radius: 18px; }
  .pimg img { left: 3%; top: -9%; width: 94%; height: 109%; filter: drop-shadow(0 12px 12px rgba(0,0,0,.42)); }
  .pzoom { width: 26px; height: 26px; top: 10px; left: 10px; }
  .pstamp { top: 10px; right: 10px; padding: 5px 11px 5px 9px; font-size: .78rem; }
  .pinfo { padding: 0 2px; }
  .pname { font-size: 1.05rem; }
  .palt { font-size: .8rem; }
  .pdesc { font-size: .86rem; }
  .pprice { font-size: 1.22rem; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .menu-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .search { width: 320px; }
  .modal { align-items: center; padding: 20px; }
  .modal-box { border-radius: 24px; padding: 26px 26px 22px; }
  .sheet { bottom: 50%; translate: 0 50%; border-radius: 24px; }
  .hero { padding: 72px 0 70px; min-height: 440px; display: flex; align-items: center; }
  .hero-in { width: 100%; }
  .hero-bg { inset: 0 0 0 auto; width: 64%; height: auto; }
  .hero-bg img { object-position: 50% 45%; }
  .hero::before { background: linear-gradient(90deg, var(--brown-900) 36%, rgba(42,21,13,.86) 50%, rgba(42,21,13,.35) 72%, rgba(42,21,13,.12) 100%),
                              linear-gradient(0deg, rgba(42,21,13,.5), transparent 30%); }
  .hero-copy { max-width: 560px; }
  .hero-cta { display: flex; }
  .hero-sub { font-size: 1.12rem; }
  .kicker { font-size: 1.08rem; }
  .hero h1::after { width: 180px; height: 16px; }
  .stamp { width: 104px; height: 104px; right: 16px; top: auto; bottom: -34px; }
  .fz-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .fz-call { text-align: right; }
  .fz-btns { justify-content: flex-end; }
  .fz-cols { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding: 40px 0; }
  .site-foot { padding-bottom: 96px; }
  .grid2f { grid-template-columns: 1fr 1fr; }
}

/* ============ Màn hình ≥ 1100px: 4 cột thẻ dọc ============ */
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 44px 22px; }
}

/* ============ Màn hình ≥ 1000px ============ */
@media (min-width: 1000px) {
  html { scroll-padding-top: 96px; }
  .hdr-in { grid-template-columns: auto 1fr auto auto auto; grid-template-areas: "logo cats loc user langs"; padding: 12px 16px; gap: 14px; }
  .cats { margin: 0; padding: 0; justify-content: center; }
  .loc-text b { max-width: 240px; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .why-card { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; gap: 10px; padding: 28px 22px 26px; border-top: 3px solid var(--orange); }
  .why-ico { grid-row: auto; width: 60px; height: 60px; margin-bottom: 4px; }
  .why-ico svg { width: 28px; height: 28px; }
  .why-card h3 { font-size: 1.08rem; }
  /* FAQ: cột trái giới thiệu + nút gọi/Zalo (dính khi cuộn), cột phải danh sách câu hỏi */
  .faq { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
  .faq-side { position: sticky; top: 110px; }
  .faq-side h2, .faq-lead { text-align: left; }
  .faq-side h2::after { margin-inline: 0; }
  .faq-lead { margin: 0 0 20px; }
  .faq-cta { justify-content: flex-start; }
  .faq-list { max-width: none; margin: 0; }
  /* Vé nhận món: 3 phần ngang, ngăn bằng đường răng cưa + khuyết tròn, chiều cao cố định */
  .fulfil { grid-template-columns: 300px minmax(0, 1fr) minmax(0, 250px); align-items: center; height: 96px; padding: 0 22px; margin-top: 22px; }
  .ff-addr { height: 96px; margin: 0 0 0 22px; padding: 0 30px 0 22px; border-top: 0; border-left: 2px dashed var(--line); position: relative; }
  .facts { height: 96px; padding: 0 0 0 22px; border-top: 0; border-left: 2px dashed var(--line); align-content: center; position: relative; }
  .ff-addr::before, .ff-addr::after, .facts::before, .facts::after { content: ""; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
  .ff-addr::before, .facts::before { top: -9px; }
  .ff-addr::after, .facts::after { bottom: -9px; }
  /* Giỏ thành nút nổi góc phải, không che thực đơn */
  .cb-act { display: none; }
  .cartbar.empty { display: none; }
  .cartbar { left: auto; right: 26px; bottom: 26px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
  .cartbar button { width: auto; min-width: 350px; height: 64px; border-radius: 18px; box-shadow: 0 16px 36px rgba(59,31,20,.4), 0 0 0 4px #FFFDF8; }
  .cb-ico { width: 66px; height: 66px; margin-top: -34px; }
  .cb-ico .bag { width: 74px; height: 78px; }
  /* Trang giỏ: trái tờ bill, phải các bước */
  .cp-grid { grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
  .cp-left { position: sticky; top: 92px; }
  .cp-head h1 { font-size: 2.1rem; }
  .cartpage { padding-bottom: 60px; }
  .submit-bar { display: none; }
  #cart-main #btn-submit { display: flex; }
  .receipt { padding: 34px 28px 38px; }
}

/* Trang đơn của khách: bill sau khi gửi (/thanh-toan) + theo dõi */
.don-wrap { max-width: 640px; margin: 0 auto; padding: 18px 16px 40px; }
.don-wrap .card { margin: 14px 0; }
.don-head h1 { font-size: 1.6rem; margin: 4px 0 6px; }
.don-head p { max-width: 30em; margin: 0 auto 16px; }
.don-bill { margin-top: 8px; }
/* bóng đổ đặt ở khung ngoài: đặt trên .receipt thì bị mask răng cưa cắt mất */
.don-left { filter: drop-shadow(0 2px 3px rgba(59,31,20,.10)) drop-shadow(0 14px 28px rgba(59,31,20,.18)); }
.bill-kv { margin: 14px 0 6px; font-size: .95rem; }
.bill-items { padding: 6px 0 2px; border-top: 1px dotted #D9C9B3; }
.don-bill .trow { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.bill-pay { margin-top: 10px; padding-top: 8px; border-top: 2px dashed #D9C9B3; }
.bill-pay .trow span:first-child::after { display: none; }
.bill-pay .paid span:last-child { color: var(--ok); font-weight: 600; }
.bill-qr { margin-top: 14px; padding: 16px 0 4px; border-top: 2px dashed #D9C9B3; text-align: center; }
.bill-qr h2 { font: 600 1.15rem var(--sans); color: var(--ink); margin-bottom: 10px; }
.bill-qr .kv { text-align: left; max-width: 360px; margin: 12px auto; }
.bill-qr .due { color: var(--orange-d); font-size: 1.15rem; }
.don-actions { display: grid; gap: 10px; margin-top: 22px; }
.don-actions .btn.big { width: 100%; margin: 0; }
.pay-due { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); border-color: var(--orange); background: var(--tint); }
.pay-due small { display: block; color: var(--muted); }
.pay-due-go { color: var(--orange-d); font-weight: 700; white-space: nowrap; }

/* Trang thanh toán: 50% bill | 50% quy trình + hỗ trợ */
.don-wrap.wide { max-width: 1120px; }
.don-grid { display: grid; gap: 22px; }
.don-right { display: grid; gap: 16px; align-content: start; }
.flow-card, .help-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 22px; }
.flow-card h2 { font-size: 1.3rem; margin-bottom: 14px; }
.flow-steps { list-style: none; margin: 0 0 18px; padding: 0; }
.flow-steps li { position: relative; display: flex; gap: 14px; padding: 0 0 16px; color: var(--muted); }
.flow-steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; border-left: 2px dashed var(--line); }
.flow-steps li.done:not(:last-child)::before { border-left: 2px solid var(--orange); }
.fs-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 .9rem var(--sans); border: 2px solid var(--line); background: #fff; color: var(--muted); }
.flow-steps li.done .fs-dot { background: var(--orange); border-color: var(--orange); color: #fff; }
.flow-steps li.now .fs-dot { border-color: var(--orange); color: var(--orange-d); box-shadow: 0 0 0 5px rgba(200,105,58,.18); }
.fs-txt { display: grid; gap: 1px; padding-top: 6px; }
.fs-txt b { font-weight: 600; color: inherit; }
.flow-steps li.done .fs-txt b, .flow-steps li.now .fs-txt b { color: var(--ink); }
.flow-steps li.now .fs-txt b { color: var(--brown-800); font-weight: 700; }
.fs-txt small { font-size: .84rem; }
.flow-steps li:not(.now) .fs-txt small { display: none; }
.flow-card .btn.big { width: 100%; margin: 0; }
.help-card p { margin: 0 0 12px; color: var(--muted); }
.help-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help-btn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); background: #fff; }
.help-btn:hover { border-color: var(--orange); background: var(--tint); }
.help-btn svg { color: var(--orange-d); flex: none; }
.help-btn span { display: grid; line-height: 1.25; min-width: 0; }
.help-btn b { white-space: nowrap; }
.help-btn small { color: var(--muted); font-size: .82rem; }
.help-btn.zalo i { flex: none; font: 700 .72rem var(--sans); font-style: normal; color: #fff; background: #0068FF; border-radius: 6px; padding: 4px 6px; }
@media (min-width: 900px) {
  .don-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .don-right { position: sticky; top: 96px; margin-top: 24px; } /* thấp hơn bill để bill là tâm điểm */
}

/* Box khách hàng trên cột phải trang thanh toán */
.cust-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 16px 18px; }
.cust-ava { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--orange-d); font: 700 1.2rem var(--serif); }
.cust-info { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.cust-info small { color: var(--muted); font-size: .8rem; }
.cust-info b { font-size: 1.08rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-info a { color: var(--brown-600); text-decoration: none; font-weight: 500; letter-spacing: .02em; }
.cust-zalo { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #0068FF; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; }
.cust-zalo:hover { background: #0052CC; }
.cust-zalo i { font: 700 .7rem var(--sans); font-style: normal; background: #fff; color: #0068FF; border-radius: 5px; padding: 2px 5px; }
.shop-ava { background: #FFFDF8; border: 1px solid var(--line); }
.shop-ava img { width: auto; height: 30px; }
.toast-copy { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px; background: var(--brown-900); color: var(--cream); font-size: .92rem; box-shadow: var(--sh-2); text-align: center; }
