/* Cửa hàng online 2.7.0 - giao diện kiểu app giao đồ ăn: đỏ #C8161D, nền xám ấm, thẻ trắng bo tròn. */
:root {
  --r: #C8161D; --r-d: #8F0E13; --r-t: #A3121A; --r-w: #FFF1F0; --r-l: #F4C9C7;
  --ink: #1E1E1E; --ink2: #4E4E4E; --ink3: #5E5E5E; --bg: #F4F2F2; --ln: #ECE6E6; --ln2: #E4DCDC;
  --g: #1E6B35; --g-w: #E7F5EC; --y: #FFD23F; --y-ink: #5A0A0E;
  --stamp: #C8161D; --focus: #C8161D; --nav-h: 66px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html, body { max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; -webkit-text-size-adjust: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
input, select, textarea, .in { font-size: 16px !important; font-family: inherit; }
a { color: var(--r); text-decoration: none; }
button { font-family: inherit; }
.svg { display: block; flex: none; }
.muted { color: var(--ink3); } .center { text-align: center; display: block; } .pad { padding: 0 14px; } .pad-x { padding: 0 14px; }
.sp { flex: 1; } .green { color: var(--g); font-weight: 700; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); position: relative; }
@media (min-width: 600px) { body { background: #E9E4E4; } .wrap { box-shadow: 0 0 40px rgba(0,0,0,.08); } }

/* ---------- Đầu trang ---------- */
.head { position: sticky; top: 0; z-index: 30; }
.head.none { position: static; }
.head.red { background: var(--r); color: #fff; padding: calc(env(safe-area-inset-top) + 12px) 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.head.white { background: #fff; border-bottom: 1px solid var(--ln); padding-top: env(safe-area-inset-top); }
.hrow { display: flex; align-items: center; gap: 10px; }
.addr { flex: 1; display: flex; flex-direction: column; color: #fff; min-width: 0; }
.addr small { font-size: 12px; font-weight: 500; opacity: .9; }
.addr b { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; }
.addr b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib { position: relative; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; flex: none; }
.ib em { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--y); border: 2px solid var(--r); }
.ib i, .pd-cart i { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--y); color: var(--y-ink); font: 800 12px/20px var(--font); font-style: normal; text-align: center; }
.sbox { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: #fff; color: var(--r); }
.sbox input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.thead { height: 58px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 4px; }
.thead h1 { margin: 0 0 0 8px; font-size: 19px; font-weight: 800; }
.ib0 { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); border: 0; background: none; cursor: pointer; border-radius: 12px; }

/* ---------- Nội dung ---------- */
.main { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 12px 0 calc(env(safe-area-inset-bottom) + 110px); }
body.has-nav .main { padding-bottom: calc(env(safe-area-inset-bottom) + var(--nav-h) + 86px); }
.card { background: #fff; border-radius: 18px; margin: 0 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.card.flush { padding: 0; overflow: hidden; gap: 0; }
.card h2 { margin: 0; font-size: 15.5px; font-weight: 800; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 16px; }
.sec-h.tight { margin: 0; }
.sec-h h2 { margin: 0; font-size: 18px; font-weight: 800; }
.sec-h a { font-size: 13.5px; font-weight: 700; }
.empty { text-align: center; color: var(--ink3); padding: 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty b { color: var(--ink); font-size: 16px; }
.empty.big { padding-top: 70px; }
.e-ic { width: 80px; height: 80px; border-radius: 50%; background: var(--r-w); color: var(--r); display: grid; place-items: center; }
.err { margin: 0 12px; background: var(--r-w); color: var(--r-d); border: 1px solid var(--r-l); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.err[hidden] { display: none; }

/* Nút */
.btn-red, .btn-line { min-height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 800 16px var(--font); cursor: pointer; padding: 0 20px; border: 1.5px solid transparent; }
.btn-red { background: var(--r); color: #fff; box-shadow: 0 6px 16px rgba(200,22,29,.25); }
.btn-red:active { background: var(--r-d); }
.btn-red:disabled { opacity: .6; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--ln2); font-weight: 700; font-size: 15px; }
.btn-line.danger { color: var(--r-t); border-color: var(--r-l); }
.btn-red.sm, .btn-line.sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; border-radius: 11px; box-shadow: none; }
.grow { flex: 1; }
.link { font-size: 13.5px; font-weight: 700; padding: 8px; }
.plus { width: 34px; height: 34px; border: 0; border-radius: 11px; background: var(--r); color: #fff; font: 700 22px/1 var(--font); cursor: pointer; display: grid; place-items: center; flex: none; }
.plus.big { width: 38px; height: 38px; }
.stp { display: inline-flex; align-items: center; border: 1.5px solid var(--r-l); border-radius: 11px; overflow: hidden; background: #fff; flex: none; }
.stp button { width: 36px; height: 36px; border: 0; background: var(--r-w); color: var(--r); font: 700 20px var(--font); cursor: pointer; }
.stp span { min-width: 52px; text-align: center; font-weight: 800; font-size: 13.5px; padding: 0 4px; white-space: nowrap; }
.stp.big button { width: 50px; height: 50px; font-size: 24px; }
.stp.big .q { min-width: 80px; font-size: 17px; }

/* ---------- Trang chủ ---------- */
.live-list { display: flex; flex-direction: column; gap: 8px; margin: 0 12px; }
.live { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--r-l); border-radius: 16px; padding: 12px; color: var(--ink); }
.live.delivering { border-color: var(--r); }
.lv-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--r-w); color: var(--r); display: grid; place-items: center; flex: none; }
.lv-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lv-t b { font-size: 14.5px; color: var(--r-d); } .lv-t small { font-size: 12.5px; color: var(--ink2); }
.lv-bar { height: 5px; border-radius: 3px; background: #F1E6E6; overflow: hidden; margin-top: 4px; }
.lv-bar i { display: block; height: 100%; background: var(--r); border-radius: inherit; }
.live > .svg { color: var(--r); }
.promo { margin: 0 12px; border-radius: 20px; background: var(--r-d); color: #fff; padding: 18px; display: flex; gap: 12px; align-items: center; position: relative; overflow: hidden; min-height: 132px; }
.promo.img { padding: 0; align-items: flex-end; min-height: 180px; }
.promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo.img .promo-t { position: relative; width: 100%; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.promo-t { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.promo .tag { align-self: flex-start; background: var(--y); color: var(--y-ink); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }
.promo h2 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 800; }
.promo p { margin: 0; font-size: 13px; opacity: .92; }
.promo-ic { color: #fff; opacity: .9; }
.perks { margin: 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.perks > div { background: #fff; border-radius: 14px; padding: 10px 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1.25; }
.perks .svg { color: var(--r); }
.cats { margin: 0 12px; background: #fff; border-radius: 20px; padding: 14px 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
.cats button { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: var(--ink); }
.cats b { font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.25; }
.cat-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; transition: transform .1s; }
.cat-ic.t0 { background: var(--r-w); color: var(--r); } .cat-ic.t1 { background: #FFF4E2; color: #B5651D; } .cat-ic.t2 { background: #FDF6D8; color: #9A6A00; } .cat-ic.t3 { background: #F1F6EC; color: #3D7A2A; }
.cats button[aria-pressed="true"] .cat-ic { background: var(--r); color: #fff; }
.cats button[aria-pressed="true"] b { color: var(--r); }
.again { margin: 0 12px; background: #fff; border: 0; border-radius: 18px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; color: var(--ink); }
.ag-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--r-w); color: var(--r); display: grid; place-items: center; flex: none; }
.ag-t { flex: 1; display: flex; flex-direction: column; } .ag-t b { font-size: 14.5px; } .ag-t small { font-size: 12.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-go { background: var(--r); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 10px; flex: none; }
.hot { display: flex; flex-direction: column; gap: 10px; }
.hscroll { display: flex; gap: 10px; padding: 0 12px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hscroll::-webkit-scrollbar { display: none; }
.hcard { flex: none; width: 142px; background: #fff; border-radius: 16px; overflow: hidden; color: var(--ink); display: flex; flex-direction: column; scroll-snap-align: start; }
.hc-img { height: 106px; position: relative; display: block; }
.hc-img .pic { width: 100%; height: 100%; }
.hc-img em { position: absolute; left: 8px; top: 8px; background: var(--r); color: #fff; font: 800 10.5px var(--font); font-style: normal; padding: 2px 6px; border-radius: 6px; }
.hc-b { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.hc-b > b { font-size: 13.5px; line-height: 1.3; height: 35px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hc-r { display: flex; align-items: center; justify-content: space-between; }
.hc-r strong { font-size: 14.5px; font-weight: 800; color: var(--r); }
.hc-r .plus { width: 28px; height: 28px; border-radius: 9px; font-size: 19px; }
.pic { display: grid; place-items: center; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.all { background: #fff; border-radius: 22px 22px 0 0; padding: 16px 0 8px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 140px; }
.chips { display: flex; gap: 8px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; padding: 8px 14px; border-radius: 20px; font: 700 13px var(--font); background: #fff; color: var(--ink); border: 1px solid var(--ln2); cursor: pointer; }
.chips button[aria-selected="true"] { background: var(--r); color: #fff; border-color: var(--r); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #F0ECEC; }
.row:last-child { border-bottom: 0; }
.r-img { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex: none; display: block; }
.r-img .pic { width: 100%; height: 100%; }
.r-b { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.r-n { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.r-b small { font-size: 12.5px; color: var(--ink3); }
.r-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.r-f strong { font-size: 16px; font-weight: 800; color: var(--r); white-space: nowrap; }
.r-f strong span { font-size: 12px; font-weight: 500; color: var(--ink3); }

/* Thanh giỏ + thanh dưới */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; justify-content: center; pointer-events: none; }
.dock > * { pointer-events: auto; width: min(560px, 100%); }
body.has-nav .dock { bottom: calc(env(safe-area-inset-bottom) + var(--nav-h)); }
.cartbar { margin: 0 12px 10px; width: calc(min(560px, 100%) - 24px) !important; height: 58px; border-radius: 16px; background: var(--r); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px; box-shadow: 0 10px 24px rgba(143,14,19,.35); }
.cb-ic { position: relative; display: grid; place-items: center; }
.cb-ic i { position: absolute; top: -9px; right: -11px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--y); color: var(--y-ink); font: 800 11px/18px var(--font); font-style: normal; text-align: center; padding: 0 4px; }
.cb-t { flex: 1; display: flex; flex-direction: column; line-height: 1.2; } .cb-t b { font-size: 16px; } .cb-t small { font-size: 12px; opacity: .92; }
.cb-go { font-size: 15px; font-weight: 800; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--ln); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); max-width: 560px; margin: 0 auto; }
.nav[hidden] { display: none; }
.nav a { position: relative; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink3); font-size: 11px; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--r); font-weight: 800; }
.nav i { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--r); color: #fff; font: 800 11px/18px var(--font); font-style: normal; text-align: center; }

/* ---------- Chi tiết món ---------- */
.main:has(.pd), .main:has(.tk), .main:has(.done) { padding-top: 0; }
.pd { display: flex; flex-direction: column; }
.pd-img { height: 330px; display: grid; place-items: center; position: relative; overflow: hidden; }
.pd-img > img { width: 100%; height: 100%; object-fit: cover; }
.pd-top, .tk-bar { position: absolute; top: calc(env(safe-area-inset-top) + 12px); left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; }
.fab { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.14); cursor: pointer; flex: none; }
.fab[aria-pressed="true"] { color: var(--r); }
.pd-top .fab:last-child { color: var(--r); }
.pd-b { margin-top: -24px; position: relative; background: #fff; border-radius: 24px 24px 0 0; padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; }
.pd-b h1 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; }
.pd-price strong { font-size: 25px; font-weight: 800; color: var(--r); } .pd-price span { font-size: 14px; color: var(--ink3); margin-left: 4px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { background: var(--bg); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; }
.tags .red { background: var(--r-w); color: var(--r-t); font-weight: 700; }
.desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: #3E3E3E; white-space: pre-line; }
.pd-q { border-top: 1px solid #F0ECEC; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.pd-q > b { font-size: 15px; }
.qrow { display: flex; align-items: center; gap: 12px; } .qrow small { font-size: 13.5px; color: var(--ink3); }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.quick button { min-height: 42px; border-radius: 10px; border: 1.5px solid var(--ln2); background: #fff; font: 700 13.5px var(--font); color: var(--ink); cursor: pointer; }
.quick button[aria-pressed="true"] { background: var(--r); border-color: var(--r); color: #fff; }
.pd-dock, .ck-dock { background: #fff; border-top: 1px solid var(--ln); padding: 12px 14px calc(env(safe-area-inset-bottom) + 12px); display: flex; align-items: center; gap: 10px; box-shadow: 0 -6px 16px rgba(0,0,0,.05); }
.pd-cart { position: relative; width: 54px; height: 54px; border-radius: 14px; border: 1.5px solid var(--r-l); color: var(--r); display: grid; place-items: center; flex: none; }
.pd-cart i { background: var(--r); color: #fff; }
.pd-dock .btn-red { min-height: 54px; }

/* ---------- Giỏ hàng + thanh toán ---------- */
.addr-card { flex-direction: row; align-items: flex-start; gap: 12px; }
.ac-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--r-w); color: var(--r); display: grid; place-items: center; flex: none; }
.ac-b { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ac-b small { font-size: 11.5px; font-weight: 800; color: var(--r-t); letter-spacing: .05em; }
.ac-b b { font-size: 15px; } .ac-b span { font-size: 13.5px; color: var(--ink2); line-height: 1.4; }
.ac-go { font-size: 14px; font-weight: 700; padding: 10px 2px; }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.days button { min-height: 56px; border-radius: 12px; border: 1.5px solid var(--ln2); background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); }
.days b { font-size: 13px; } .days small { font-size: 12px; color: var(--ink3); }
.days button[aria-pressed="true"] { background: var(--r-w); border-color: var(--r); color: var(--r-t); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; }
.seg button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; font: 700 14px var(--font); color: #3E3E3E; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--r); color: #fff; }
.ci { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #F0ECEC; position: relative; }
.ci-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; display: block; } .ci-img .pic { width: 100%; height: 100%; }
.ci-b { flex: 1; display: flex; flex-direction: column; gap: 2px; padding-right: 26px; }
.ci-b b { font-size: 14.5px; } .ci-b small { font-size: 12.5px; color: var(--ink3); }
.ci-f { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 8px; } .ci-f strong { font-size: 15px; }
.ci-x { position: absolute; right: -6px; top: 6px; width: 36px; height: 36px; border: 0; background: none; color: #8A8080; display: grid; place-items: center; cursor: pointer; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; }
.fld input, .fld select { height: 46px; border: 1.5px solid var(--ln2); border-radius: 12px; padding: 0 12px; font-weight: 400; background: #fff; color: var(--ink); }
.fld input:focus, .fld select:focus { outline: 2px solid var(--r); outline-offset: 0; border-color: var(--r); }
.pay { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border-radius: 14px; border: 1.5px solid var(--ln2); background: #fff; cursor: pointer; color: var(--ink); }
.pay i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #B9AEAE; flex: none; }
.pay .svg { color: var(--r); }
.pay > span { flex: 1; display: flex; flex-direction: column; gap: 1px; } .pay b { font-size: 14.5px; } .pay small { font-size: 12.5px; color: var(--ink3); }
.pay[aria-pressed="true"] { background: var(--r-w); border-color: var(--r); } .pay[aria-pressed="true"] i { border: 7px solid var(--r); }
.sum { gap: 8px; font-size: 14px; }
.sum > div { display: flex; justify-content: space-between; gap: 10px; }
.sum > div > span:first-child { color: var(--ink2); }
.sum .tot { padding-top: 8px; border-top: 1px dashed var(--ln2); align-items: baseline; }
.sum .tot strong { font-size: 20px; font-weight: 800; color: var(--r); }
.ck-t { flex: 1; display: flex; flex-direction: column; line-height: 1.2; } .ck-t small { font-size: 12.5px; color: var(--ink3); } .ck-t strong { font-size: 20px; font-weight: 800; color: var(--r); }
.ck-dock .btn-red { padding: 0 28px; }

/* ---------- Đặt thành công + chuyển khoản ---------- */
.done-h { background: var(--r); color: #fff; padding: calc(env(safe-area-inset-top) + 34px) 20px 64px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.done-h h1 { margin: 4px 0 0; font-size: 22px; font-weight: 800; } .done-h p { margin: 0; font-size: 14px; opacity: .95; }
.ok-ic { width: 70px; height: 70px; border-radius: 50%; background: #fff; color: var(--g); display: grid; place-items: center; }
.done > .card:first-of-type, .card.float { margin-top: -44px; position: relative; box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.done .stack.pad { margin-top: 12px; padding: 0 12px; }
.bank h3 { margin: 0; font-size: 15.5px; font-weight: 800; }
.bank .qr { width: min(240px, 100%); align-self: center; background: #fff; border: 1px solid var(--ln); border-radius: 14px; padding: 8px; }
.bank .qr svg { width: 100%; height: auto; display: block; }
.kv > div { display: grid; grid-template-columns: 104px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid #F0ECEC; font-size: 14px; }
.kv span { color: var(--ink3); } .kv b { overflow-wrap: anywhere; } .kv .red { color: var(--r); }
.cp { min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--r-l); background: var(--r-w); color: var(--r-t); font: 700 12.5px var(--font); cursor: pointer; }

/* ---------- Theo dõi đơn ---------- */
.tk { display: flex; flex-direction: column; }
.tk-media { position: relative; height: 360px; }
.tk-map { height: 100%; border-radius: 0; border: 0; }
.tk-top { height: 100%; display: grid; place-items: center; background: var(--r); color: #fff; }
.tk-top.green { background: var(--g); } .tk-top.gray { background: #5B6470; }
.tk-bar .pill { background: #fff; border-radius: 22px; padding: 10px 14px; font-size: 14px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.tk-note { position: absolute; right: 12px; bottom: 36px; background: rgba(255,255,255,.94); font-size: 11.5px; color: var(--ink2); padding: 4px 8px; border-radius: 8px; z-index: 5; }
.tk-sheet { margin-top: -26px; position: relative; z-index: 6; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.tk-sheet .stack { padding: 0 12px; }
.grab { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #D3CACA; }
.eta { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.eta small { display: block; font-size: 13px; color: var(--ink3); font-weight: 600; }
.eta strong { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--r); }
.eta strong.st { font-size: 22px; }
.eta-r { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; color: var(--ink2); text-align: right; }
.eta-r b { color: var(--ink); }
.steps4 { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 6px; }
.steps4 .ln { position: absolute; left: 12%; right: 12%; top: 16px; height: 4px; background: #F0E6E6; border-radius: 2px; }
.steps4 .ln.on { right: auto; background: var(--r); }
.steps4 > div { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; text-align: center; color: #6A6060; font-size: 11.5px; font-weight: 600; }
.steps4 i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--ln2); font: 800 13px var(--font); font-style: normal; color: #8A8080; }
.steps4 .done i { background: var(--r); border-color: var(--r); color: #fff; } .steps4 .done { color: var(--ink); }
.steps4 .now i { border: 3px solid var(--r); color: var(--r); } .steps4 .now { color: var(--r-t); font-weight: 800; }
.steps4 small { font-size: 11px; color: var(--ink3); font-weight: 500; }
.otp { margin: 0 12px; background: #FFF8DC; border: 1.5px dashed #E2B93B; border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 12px; }
.otp > div { flex: 1; display: flex; flex-direction: column; } .otp b { font-size: 12.5px; color: #6B4B00; } .otp small { font-size: 12.5px; color: #6B4B00; }
.otp strong { font-size: 28px; font-weight: 800; letter-spacing: .25em; color: #3A2A00; }
.drv { flex-direction: row; align-items: center; gap: 12px; }
.drv > div { flex: 1; display: flex; flex-direction: column; } .drv b { font-size: 15px; } .drv small { font-size: 12.5px; color: var(--ink3); }
.av { width: 48px; height: 48px; border-radius: 50%; background: var(--r); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800; flex: none; }
.av.big { width: 60px; height: 60px; font-size: 25px; }
.rb { width: 44px; height: 44px; border-radius: 50%; background: var(--r); color: #fff; display: grid; place-items: center; flex: none; }
.rb.light { background: var(--r-w); color: var(--r); }

/* ---------- Đơn hàng ---------- */
.otabs { position: sticky; top: calc(env(safe-area-inset-top) + 58px); z-index: 20; background: #fff; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -12px; border-bottom: 1px solid var(--ln); }
.otabs button { min-height: 48px; border: 0; background: none; font: 600 14.5px var(--font); color: var(--ink3); border-bottom: 3px solid transparent; cursor: pointer; }
.otabs button[aria-selected="true"] { color: var(--r); font-weight: 800; border-bottom-color: var(--r); }
.oc { margin: 0; }
.oc-h { display: flex; align-items: center; justify-content: space-between; } .oc-h b { font-size: 14px; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 9px; }
.chip.red { background: var(--r-w); color: var(--r-t); } .chip.blue { background: #E8F0FD; color: #1D4FA8; } .chip.green { background: var(--g-w); color: var(--g); } .chip.gray { background: #EEE; color: var(--ink2); }
.oc-b { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.oc-img { width: 52px; height: 52px; border-radius: 12px; background: #FFF4E2; color: #B5651D; display: grid; place-items: center; flex: none; }
.oc-t { flex: 1; display: flex; flex-direction: column; gap: 2px; } .oc-t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .oc-t small { font-size: 12.5px; color: var(--ink3); }
.oc-b strong { font-size: 15px; }
.oc-live { background: var(--r-w); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--r-d); font-weight: 600; }
.oc-a { display: flex; gap: 8px; justify-content: flex-end; }
.oc-a:empty { display: none; }

/* ---------- Thông báo, tài khoản ---------- */
.note { flex-direction: row; gap: 12px; align-items: flex-start; background: #FFF8DC; } .note .svg { color: #9A6A00; } .note div { display: flex; flex-direction: column; font-size: 13.5px; }
.nt { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid #F0ECEC; color: var(--ink); }
.nt:last-child { border-bottom: 0; }
.nt-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--r-w); color: var(--r); display: grid; place-items: center; flex: none; }
.nt-ic.delivered { background: var(--g-w); color: var(--g); } .nt-ic.cancelled { background: #EEE; color: var(--ink2); }
.nt-t { display: flex; flex-direction: column; gap: 2px; } .nt-t b { font-size: 14px; font-weight: 600; } .nt-t small { font-size: 12.5px; color: var(--ink3); }
.me { flex-direction: row; align-items: center; gap: 14px; } .me b { display: block; font-size: 18px; } .me span { color: var(--ink3); }
.mi { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border: 0; border-bottom: 1px solid #F0ECEC; background: #fff; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.mi:last-child { border-bottom: 0; }
.mi-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--r-w); color: var(--r); display: grid; place-items: center; flex: none; }
.mi-t { flex: 1; display: flex; flex-direction: column; } .mi-t b { font-size: 15px; font-weight: 600; } .mi-t small { font-size: 12.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi > .svg:last-child { color: #A89C9C; }
.pad-x .stack { padding: 4px 0 14px; }
.auth { gap: 12px; } .auth h2 { font-size: 20px; color: var(--r-d); } .auth p { margin: -6px 0 0; }
.sub { margin: 4px 0 0; font-size: 14px; text-transform: uppercase; color: var(--r-d); }
/* Ô địa chỉ (dùng chung) */
.col { display: flex; flex-direction: column; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.in { width: 100%; height: 46px; border: 1.5px solid var(--ln2); border-radius: 12px; padding: 0 12px; background: #fff; color: var(--ink); }
.closed { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; background: var(--r); color: #fff; }
.closed img { width: 72px; background: #fff; border-radius: 16px; padding: 6px; } .closed h1 { color: #fff; text-transform: uppercase; }

/* Bảng giá */
.ptable { margin: 0 12px; overflow-x: auto; background: #fff; border-radius: 14px; }
.ptable table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th { background: var(--r); color: #fff; font-size: 12px; text-transform: uppercase; padding: 9px 6px; }
.ptable td { border-top: 1px solid var(--ln); padding: 10px 6px; }
.ptable td.c { text-align: center; color: var(--ink2); } .ptable td.r { text-align: right; font-weight: 800; color: var(--r); white-space: nowrap; }
.ptable tbody tr { cursor: pointer; } .ptable tbody tr:nth-child(even) { background: #FDF8F8; }
@media print { .head, .nav, .dock, #toasts { display: none !important; } .main { padding: 0 !important; } .ptable th { background: #eee !important; color: #000 !important; } .ptable td.r { color: #000; } }
@media (max-width: 350px) { .cats b { font-size: 11.5px; } .cat-ic { width: 50px; height: 50px; } .days { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.seg button:disabled { color: #9A8F8F; cursor: not-allowed; text-decoration: line-through; }

/* ===== 2.10.0: ảnh quảng cáo, khung giờ giao, danh sách sản phẩm gọn ===== */
.ads { margin: 0 12px; position: relative; border-radius: 18px; overflow: hidden; background: #f1e6e6; box-shadow: 0 6px 18px rgba(143,14,19,.15); }
.ads-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ads-track::-webkit-scrollbar { display: none; }
.ad-slide { position: relative; flex: 0 0 100%; aspect-ratio: 2 / 1; scroll-snap-align: start; overflow: hidden; background: #f1e6e6; }
.ad-slide img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ad-slide .bg { object-fit: cover; filter: blur(18px) brightness(1.02); transform: scale(1.15); }
.ad-slide .fg { object-fit: contain; }
.ads-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.ads-dots:empty { display: none; }
.ads-dots button { pointer-events: auto; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.12); cursor: pointer; transition: width .2s, background .2s; }
.ads-dots button[aria-current="true"] { width: 20px; background: #fff; }
.promo:not(.img) { min-height: 96px; }
.gic { object-fit: contain; }
.cat-ic .gic { width: 32px; height: 32px; }
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot-g > small { display: block; font-size: 12px; font-weight: 800; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.slot-c { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.slot-c button { min-height: 44px; border-radius: 11px; border: 1.5px solid var(--ln2); background: #fff; font: 700 13.5px var(--font); color: var(--ink); cursor: pointer; }
.slot-c button[aria-pressed="true"] { background: var(--r); border-color: var(--r); color: #fff; }
.slot-c button:disabled { color: #9a8f8f; background: #f6f2f2; text-decoration: line-through; cursor: not-allowed; }
.staff-link { display: block; text-align: center; font-size: 12.5px; color: var(--ink3); padding: 6px 0 2px; }

/* Danh sách sản phẩm gọn: ảnh nhỏ, chữ vừa, nút + nhỏ gọn */
.all { gap: 8px; padding-top: 14px; }
.row { gap: 10px; padding: 9px 14px; align-items: center; }
.r-img { width: 66px; height: 66px; border-radius: 12px; }
.r-n { font-size: 14.5px; }
.r-b { gap: 1px; } .r-b small { font-size: 12px; }
.r-f strong { font-size: 15px; } .r-f strong span { font-size: 11.5px; }
.plus.big { width: 34px; height: 34px; border-radius: 10px; }
.stp button { width: 32px; height: 32px; } .stp span { min-width: 46px; font-size: 13px; }
.cats { padding: 12px 6px; row-gap: 10px; }
.cat-ic { width: 50px; height: 50px; border-radius: 16px; } .cats b { font-size: 12px; }
.hcard { width: 124px; } .hc-img { height: 92px; } .hc-b > b { font-size: 13px; height: 33px; } .hc-r strong { font-size: 14px; }
.chips button { padding: 6px 12px; font-size: 12.5px; }
