/*
 * Toan Farm customer web (PROJECT-STATE §7.8–7.9) — design WEB 1 (máy tính, 1440) / WEB 2 (điện thoại, 390),
 * canvas "Phiếu Đặt Hàng ToanFarm". Mobile first; desktop layout from 1024px.
 */
:root {
  --red: #ED1C24;
  --red2: #E31E24;
  --red-dark: #B3141A;
  --pink: #FFF0F0;
  --pink2: #FFF7F7;
  --pink-line: #F2C4C6;
  --ink: #1C1E21;
  --ink2: #4B4F56;
  --muted: #65676B;
  --faint: #8A8D91;
  --line: #E4E6EB;
  --line2: #F0F1F3;
  --bg: #F4F5F7;
  --green: #1E7B34;
  --green-bg: #F0FAF3;
  --blue: #1877F2;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font: 15px/1.45 var(--font); }
body.tf-gray { background: var(--bg); }
body.tf-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--red); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.tf-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.tf-grow { flex: 1 1 auto; min-width: 0; }
.tf-muted { color: var(--muted); }
.tf-small { font-size: 13px; }
.tf-ink { color: var(--ink); }
.tf-ok { color: var(--green); font-weight: 700; }
.tf-err { color: var(--red2); font-size: 13.5px; font-weight: 600; }
.tf-fine { font-size: 12px; color: var(--faint); line-height: 1.45; margin: 4px 0 0; }
.tf-fine a { color: inherit; }
.tf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tf-ico { flex: none; vertical-align: -3px; }
.tf-iline { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tf-only-lg { display: none !important; }
:focus-visible { outline: 3px solid rgba(237, 28, 36, .35); outline-offset: 2px; }

/* ---------- Buttons & inputs ---------- */
.tf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--red); color: #FFFFFF; font-weight: 800; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.tf-btn:hover { background: #D7141C; }
.tf-btn:disabled, .tf-btn.disabled { opacity: .45; cursor: not-allowed; }
.tf-btn-lg { height: 52px; border-radius: 12px; font-size: 16px; padding: 0 26px; }
.tf-btn-block { display: flex; width: 100%; }
.tf-btn-white { background: #FFFFFF; color: var(--red); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.tf-btn-white:hover { background: #FFF5F5; }
.tf-ghost-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid #DADDE1; border-radius: 10px; background: #FFFFFF; color: var(--blue); font-weight: 800; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.tf-outline-btn { height: 44px; border: 1.5px solid var(--red2); border-radius: 12px; background: #FFFFFF; color: var(--red2); font-weight: 800; font-size: 14.5px; }
.tf-outline-btn:disabled { border: 0; background: #F0F2F5; color: var(--faint); cursor: default; }
.tf-link, .tf-link-btn { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 800; font-size: 14px; text-decoration: none; }
.tf-input { width: 100%; height: 46px; border: 1px solid #DADDE1; border-radius: 10px; padding: 0 12px; background: #FFFFFF; font-size: 15px; }
.tf-input:focus { outline: none; border-color: var(--red2); box-shadow: 0 0 0 3px rgba(227, 30, 36, .15); }
.tf-label { font-size: 13px; font-weight: 800; color: var(--muted); margin: 14px 0 8px; }
.tf-req { color: var(--red2); margin-left: 4px; }
.tf-round { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.tf-round#menuBtn { background: transparent; }

/* ---------- Header (WEB 1: logo · menu · tìm · hotline · đơn · giỏ  /  WEB 2: ☰ · logo · tìm · giỏ) ---------- */
.tf-header { position: sticky; top: 0; z-index: 30; background: #FFFFFF; box-shadow: 0 1px 0 var(--line); }
.tf-header-row { position: relative; height: 58px; display: flex; align-items: center; gap: 6px; padding: 0 10px; max-width: 1520px; margin: 0 auto; }
.tf-logo { flex: none; display: flex; }
.tf-logo img { display: block; width: 120px; height: auto; }
.tf-nav { display: none; }
.tf-nav-open .tf-nav { display: flex; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; padding: 4px 16px 12px; background: #FFFFFF; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0, 0, 0, .06); }
.tf-nav a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 14.5px; letter-spacing: .2px; white-space: nowrap; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.tf-nav a[aria-current="page"] { color: var(--red); }
.tf-nav-hot { padding-top: 10px; font-size: 14px; color: var(--muted); }
.tf-nav-hot a { border: 0; padding: 0; color: var(--red); }
.tf-hotline { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.tf-hotline-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--pink); color: var(--red); display: flex; align-items: center; justify-content: center; }
.tf-hotline small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.tf-hotline strong { display: block; font-size: 16px; font-weight: 900; color: var(--red); line-height: 1.2; white-space: nowrap; }
.tf-pill-btn { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid #DADDE1; border-radius: 999px; background: #FFFFFF; font-weight: 700; font-size: 14.5px; }
.tf-cart-btn { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #FFFFFF; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 14.5px; }
.tf-cart-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #FFFFFF; color: var(--red); border: 1.5px solid var(--red); font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.tf-panel { position: absolute; left: 0; right: 0; top: 100%; background: #FFFFFF; box-shadow: 0 10px 20px rgba(0, 0, 0, .08); border-top: 1px solid var(--line); padding: 14px 0; }
.tf-search { display: flex; gap: 8px; }
.tf-orders-box a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.tf-orders-box #myOrders { margin-top: 6px; }

/* Thanh cách nhận + tìm món */
.tf-modebar { display: flex; flex-direction: column; gap: 10px; padding: 8px 12px 12px; background: #FFFFFF; }
.tf-mode-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 8px 12px; border: 0; border-radius: 12px; background: #FFF1F1; text-align: left; color: var(--ink); }
.tf-mode-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--red2); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.tf-mode-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tf-mode-text > span { font-size: 12px; font-weight: 700; color: var(--red2); }
.tf-mode-text strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-mode-btn > .tf-ico:last-child { color: var(--muted); }
.tf-menu-search { position: relative; display: flex; align-items: center; color: var(--muted); }
.tf-menu-search .tf-ico { position: absolute; left: 14px; }
.tf-menu-search input { width: 100%; height: 44px; border: 0; border-radius: 12px; background: var(--bg); padding: 0 16px 0 42px; font-size: 15px; }

/* ---------- Home: banner ---------- */
.tf-hero { position: relative; overflow: hidden; }
.tf-hero { background: #F4F5F7; }
.tf-slide { display: block; }
/* Old toanfarm.com banners: whole picture on phones; on wide screens at most 560px tall, trimmed top/bottom. */
.tf-slide img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 267; object-fit: cover; }
.tf-slide-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); font-size: 24px; line-height: 1; }
.tf-slide-nav.prev { left: 24px; }
.tf-slide-nav.next { right: 24px; }
.tf-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.tf-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.tf-dots button.on { width: 22px; background: #FFFFFF; }

/* Home: sections */
.tf-sec { max-width: 1200px; margin: 0 auto; padding: 22px 14px 6px; display: flex; flex-direction: column; gap: 14px; }
.tf-h2 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: .5px; display: inline-flex; flex-direction: column; gap: 6px; }
.tf-h2::after { content: ""; width: 48px; height: 3px; border-radius: 2px; background: var(--red); }
.tf-h2-center { align-self: center; align-items: center; }
.tf-sec-head { display: flex; align-items: flex-end; gap: 12px; }
.tf-sec-head .tf-h2 { flex: 1; }
.tf-sec-head a { font-size: 14px; font-weight: 800; text-decoration: none; }
.tf-closed { background: #FFF4E5; color: #8A4B00; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; }
.tf-ptabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tf-ptabs button { height: 38px; padding: 0 6px; border: 1.5px solid var(--line); border-radius: 999px; background: #FFFFFF; font-size: 12.5px; font-weight: 900; letter-spacing: .3px; color: var(--ink); white-space: nowrap; }
.tf-ptabs button[aria-selected="true"] { border-color: var(--red); background: var(--red); color: #FFFFFF; }
.tf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tf-center-btn { align-self: center; height: 40px; background: #FFFFFF; color: var(--red); border: 1.5px solid var(--red); }
.tf-center-btn:hover { background: var(--pink); }
.tf-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px 12px; }

/* Dish card (home) */
.tf-pcard { display: flex; flex-direction: column; border: 1px solid #EEF0F2; border-radius: 14px; overflow: hidden; background: #FFFFFF; }
.tf-pimg { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: #FFF3EE; overflow: hidden; }
.tf-pimg img, .tf-tilebg { width: 100%; height: 100%; object-fit: cover; display: flex; align-items: center; justify-content: center; }
.tf-tilebg img { width: 62%; height: auto; object-fit: contain; }
.tf-noimg { width: 60% !important; height: auto !important; object-fit: contain !important; opacity: .5; }
.tf-tag { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; background: var(--red2); color: #FFFFFF; }
.tf-pbody { padding: 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tf-pname { font-size: 14px; font-weight: 800; line-height: 1.3; }
.tf-pdesc { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tf-pcard .tf-pdesc { display: none; }
.tf-prow { margin-top: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tf-price { font-size: 15px; font-weight: 900; color: var(--red); }
.tf-old { font-size: 11.5px; color: var(--faint); }
.tf-prow > .tf-only-sm { margin-left: auto; }
.tf-add { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--red); color: #FFFFFF; font-size: 20px; font-weight: 800; line-height: 1; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.tf-add.in { border: 1.5px solid var(--red); background: var(--pink); color: var(--red); font-size: 14px; font-weight: 900; }
.tf-add-wide { width: 100%; margin-top: 6px; height: 40px; border: 1.5px solid var(--red); border-radius: 999px; background: #FFFFFF; color: var(--red); font-size: 14px; font-weight: 800; }
.tf-add-wide:hover { background: var(--pink); }
.tf-qty { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--pink-line); border-radius: 18px; background: #FFFFFF; }
.tf-qty button { width: 30px; height: 32px; border: 0; background: transparent; color: var(--red2); font-size: 19px; font-weight: 800; padding: 0; }
.tf-qty span { min-width: 18px; text-align: center; font-size: 14px; font-weight: 800; }
.tf-qty-sm { height: 30px; border-color: #DADDE1; border-radius: 8px; }
.tf-qty-sm button { width: 26px; height: 28px; font-size: 16px; }
.tf-soldout { font-size: 12.5px; font-weight: 700; color: var(--faint); }

/* Tiles "Lựa chọn thực đơn" */
.tf-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tf-tile { position: relative; height: 150px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.tf-tile img { width: 62%; max-width: 160px; height: auto; margin-bottom: 26px; transition: transform .2s; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); }
.tf-tile:hover img { transform: scale(1.06); }
.tf-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #FFFFFF; font-size: 15px; font-weight: 900; text-align: left; }

/* News card */
.tf-news-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tf-news-card { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line2); }
.tf-news-img { position: relative; flex: none; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FFE7DB, #FFC2A6); color: #E35B1F; }
.tf-news-img img { width: 100%; height: 100%; object-fit: cover; }
.tf-news-img .tf-ico { width: 34px; height: 34px; }
.tf-news-cat { display: none; }
.tf-news-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tf-news-title { font-size: 14px; font-weight: 800; line-height: 1.35; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tf-news-title:hover { color: var(--red); }
.tf-news-body p { display: none; margin: 0; }
.tf-news-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.tf-news-foot a { display: none; font-weight: 800; text-decoration: none; margin-left: auto; }

/* ---------- Footer (dark) ---------- */
.tf-footer { background: #1F1F1F; color: #D8DADF; margin-top: 28px; padding-bottom: 64px; font-size: 13px; line-height: 1.5; }
.tf-footer-grid { padding-top: 22px; padding-bottom: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tf-footer-co { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.tf-footer-logo { align-self: flex-start; padding: 6px 10px; border-radius: 8px; background: #FFFFFF; display: flex; }
.tf-footer-logo img { width: 110px; height: auto; display: block; }
.tf-footer h4 { margin: 0 0 6px; color: #FFFFFF; font-size: 14px; font-weight: 900; }
.tf-footer-grid > div { display: flex; flex-direction: column; gap: 6px; }
.tf-footer a { color: #D8DADF; text-decoration: none; }
.tf-footer a:hover { color: #FFFFFF; }
.tf-strong { color: #FFFFFF !important; font-weight: 800; }
.tf-social { display: flex; gap: 8px; }
.tf-social a { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFFFFF !important; font-weight: 900; }
.tf-fb { background: #1877F2; }
.tf-tt { background: #000000; font-size: 12px; }
.tf-moit { align-self: flex-start; margin-top: 4px; padding: 4px 8px; border-radius: 8px; background: #FFFFFF; display: flex; }
.tf-moit img { width: 120px; height: auto; display: block; }
.tf-copy { border-top: 1px solid #333333; padding: 12px 16px; text-align: center; font-size: 12px; color: #9A9DA3; }

/* Nút nổi + thanh dưới */
.tf-float { position: fixed; right: 12px; bottom: 82px; z-index: 24; display: flex; flex-direction: column; gap: 8px; }
.tf-float a, .tf-float button { width: 46px; height: 46px; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFFFFF; text-decoration: none; font-weight: 900; font-size: 11.5px; }
.tf-float-top { background: #4B4F56; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.tf-float-top .tf-ico { transform: rotate(180deg); }
.tf-float-call { background: var(--red); box-shadow: 0 4px 12px rgba(237, 28, 36, .4); }
.tf-float-zalo { background: #0068FF; box-shadow: 0 4px 12px rgba(0, 104, 255, .35); }
.tf-app .tf-float { display: none; }
.tf-bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: 64px; display: grid; grid-template-columns: repeat(3, 1fr); background: #FFFFFF; box-shadow: 0 -1px 0 var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tf-bottombar a, .tf-bottombar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--ink2); font-size: 12px; font-weight: 800; text-decoration: none; }
.tf-bottombar .on { color: var(--red); }

/* ---------- Đặt hàng nhanh ---------- */
.tf-quick { padding: 0 0 100px; background: var(--bg); min-height: 70vh; }
.tf-cats { position: sticky; top: 166px; z-index: 5; background: var(--bg); padding: 8px 12px; }
.tf-cats-title { display: none; }
#catNav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
#catNav::-webkit-scrollbar { display: none; }
#catNav a { flex: none; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border: 1px solid #DADDE1; border-radius: 999px; background: #FFFFFF; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
#catNav a[aria-current="true"] { border-color: var(--red2); background: var(--red2); color: #FFFFFF; }
.tf-cat-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #FFFFFF; }
.tf-quick-main { padding: 10px 12px 0; }
.tf-store-banner { background: #FFFFFF; border-radius: 14px; padding: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.tf-tf-badge { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--red2); color: #FFFFFF; font-size: 13px; font-weight: 900; letter-spacing: .5px; display: flex; align-items: center; justify-content: center; }
.tf-store-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tf-store-banner-text strong { font-size: 17px; font-weight: 800; }
.tf-store-banner-text span { font-size: 13px; }
.tf-promos { display: flex; gap: 8px; overflow-x: auto; width: 100%; }
.tf-promos:empty { display: none; }
.tf-promos span { flex: none; padding: 6px 10px; border-radius: 8px; border: 1px dashed #F2A3A5; background: var(--pink2); color: var(--red-dark); font-size: 12.5px; font-weight: 700; }
.tf-quick-main .tf-closed { margin-top: 10px; }
.tf-msec { margin-top: 10px; background: #FFFFFF; border-radius: 14px; padding: 14px 14px 4px; scroll-margin-top: 220px; }
.tf-msec h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.tf-mgrid { display: flex; flex-direction: column; }
/* Phone row: text left, picture right with the + on it (WEB 2) */
.tf-mcard { display: flex; flex-direction: row-reverse; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.tf-mcard:last-child { border-bottom: 0; }
.tf-mcard.off { opacity: .55; }
.tf-mimg { position: relative; flex: none; width: 104px; height: 104px; }
.tf-mimg .tf-pimg { width: 104px; height: 104px; border-radius: 14px; aspect-ratio: auto; }
.tf-mimg .tf-tag { top: 6px; left: 6px; font-size: 10.5px; padding: 2px 6px; }
.tf-mimg-add { position: absolute; right: -4px; bottom: -4px; }
.tf-mimg-add .tf-add { border: 3px solid #FFFFFF; box-shadow: 0 2px 6px rgba(227, 30, 36, .35); }
.tf-mimg-add .tf-qty { border: 3px solid #FFFFFF; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.tf-mbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; border: 0; background: transparent; padding: 0; text-align: left; color: var(--ink); }
.tf-mbody strong { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.tf-mbody .tf-price { color: var(--ink); font-size: 16px; font-weight: 800; }
.tf-cart { display: none; }
.tf-cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 26; height: 56px; border-radius: 14px; background: var(--red2); color: #FFFFFF; display: flex; align-items: center; gap: 12px; padding: 0 16px; text-decoration: none; box-shadow: 0 8px 20px rgba(227, 30, 36, .35); max-width: 640px; margin: 0 auto; }
.tf-cartbar-ico { position: relative; display: flex; }
.tf-cartbar-ico span { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; border-radius: 9px; background: #FFFFFF; color: var(--red2); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.tf-cartbar strong { flex: 1; font-size: 16px; font-weight: 800; }
.tf-cartbar > span:last-child { font-size: 15px; font-weight: 700; }

/* Cart lines (quick aside, checkout) */
.tf-cline { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line2); }
.tf-cthumb { flex: none; width: 42px; height: 42px; border-radius: 8px; overflow: hidden; display: flex; }
.tf-cthumb img, .tf-cthumb .tf-tilebg { width: 100%; height: 100%; object-fit: cover; }
.tf-cthumb .tf-tilebg img { width: 80%; height: auto; }
.tf-cline-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tf-cline-main strong { font-size: 14px; font-weight: 700; line-height: 1.3; }
.tf-cline-main small { font-size: 12px; color: var(--muted); }
.tf-cline-main b { font-size: 13px; font-weight: 800; }
.tf-cline-sum { width: 96px; text-align: right; font-size: 14.5px; font-weight: 800; }
.tf-cart-empty { color: var(--muted); font-size: 13.5px; text-align: center; padding: 20px 0; margin: 0; }
.tf-dashed { border: 1.5px dashed #DADDE1; border-radius: 12px; padding: 18px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* Sums */
.tf-sum { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink2); padding: 2px 0; }
.tf-sum.total { font-size: 17px; font-weight: 800; color: var(--ink); padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line2); }
.tf-sum.total span:last-child { color: var(--red2); }

/* ---------- Thanh toán ---------- */
.tf-checkout { padding-top: 12px; padding-bottom: 110px; display: grid; gap: 12px; align-items: start; }
.tf-ck-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tf-back { align-self: flex-start; font-size: 14.5px; font-weight: 700; color: var(--blue); text-decoration: none; }
.tf-ck-h1 { margin: 0; font-size: 22px; font-weight: 800; }
.tf-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #E9EBEE; border-radius: 12px; padding: 4px; }
.tf-seg button { height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--ink2); font-size: 14.5px; font-weight: 800; }
.tf-seg button[aria-selected="true"] { background: #FFFFFF; color: var(--red2); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tf-card { background: #FFFFFF; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tf-card-h { margin: 0; font-size: 16.5px; font-weight: 800; }
.tf-card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tf-ck-place { display: flex; align-items: flex-start; gap: 12px; }
.tf-ck-place-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--pink); color: var(--red2); display: flex; align-items: center; justify-content: center; }
.tf-ck-place small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.tf-ck-place strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.35; }
.tf-ck-place .tf-ok { display: block; font-size: 13px; margin-top: 2px; }
.tf-2col { display: grid; gap: 10px; }
.tf-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tf-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tf-chips button { height: 40px; padding: 0 16px; border: 1px solid #DADDE1; border-radius: 999px; background: #FFFFFF; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.tf-chips button[aria-pressed="true"] { border-color: var(--red2); background: var(--red2); color: #FFFFFF; }
.tf-chips-sm button { height: 34px; padding: 0 12px; font-size: 13px; }
.tf-payrow { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 4px; border: 0; border-top: 1px solid var(--line2); background: transparent; text-align: left; }
.tf-payrow:first-child { border-top: 0; }
.tf-payrow strong { display: block; font-size: 14.5px; font-weight: 700; }
.tf-payrow small { display: block; font-size: 12.5px; color: var(--muted); }
.tf-paybadge { flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: #FFFFFF; }
.tf-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #BCC0C4; }
[aria-checked="true"] > .tf-dot, [aria-checked="true"] .tf-dot { border: 7px solid var(--red2); }
.tf-ck-aside { gap: 8px; }
.tf-ck-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #FFFFFF; box-shadow: 0 -1px 0 var(--line), 0 -6px 16px rgba(0, 0, 0, .06); }
.tf-ck-bar > span { flex: 1; display: flex; flex-direction: column; }
.tf-ck-bar small { font-size: 12.5px; color: var(--muted); }
.tf-ck-bar strong { font-size: 19px; font-weight: 800; color: var(--red2); }
.tf-ck-bar .tf-btn { padding: 0 28px; }
.tf-checkout .tf-ck-aside .tf-btn-block { display: none; }

/* ---------- Theo dõi đơn ---------- */
.tf-track { padding-top: 16px; padding-bottom: 40px; }
.tf-track-grid { display: grid; gap: 14px; align-items: start; }
.tf-track-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tf-track-head { gap: 8px; }
.tf-kick-sm { font-size: 13px; font-weight: 800; color: var(--green); letter-spacing: .3px; }
.tf-track-head.off .tf-kick-sm { color: var(--faint); }
.tf-track-head h1 { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.2; }
.tf-track-head > p { margin: 0; font-size: 14.5px; color: var(--ink2); }
.tf-bars { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.tf-bars li { display: grid; grid-template-columns: 6px 1fr auto; align-items: center; gap: 4px 12px; color: var(--faint); }
.tf-barline { grid-row: span 1; width: 6px; height: 22px; border-radius: 999px; background: var(--line); }
.tf-bars li.done { color: #050505; }
.tf-bars li.done .tf-barline { background: var(--green); }
.tf-bars strong { font-size: 13.5px; font-weight: 800; }
.tf-bars small { font-size: 12px; color: var(--faint); }
.tf-contact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: #F7F8FA; }
.tf-contact-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #FFE3E3; color: var(--red2); display: flex; align-items: center; justify-content: center; }
.tf-contact strong { display: block; font-size: 15px; font-weight: 800; }
.tf-contact small { display: block; font-size: 12.5px; color: var(--muted); }
.tf-contact .tf-btn { height: 40px; border-radius: 10px; padding: 0 16px; }
.tf-track-aside { gap: 8px; }
.tf-tline { display: flex; gap: 8px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line2); }
.tf-tline b { color: var(--red2); }
.tf-tline small { display: block; font-size: 12px; color: var(--muted); }
.tf-paid { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; background: #E6F4EA; color: var(--green); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.tf-qr { text-align: center; align-items: center; }
.tf-qr img { width: 100%; max-width: 260px; border-radius: 12px; border: 1px solid var(--line); }
.tf-memo { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--red2); }
.tf-warn { margin: 6px 0 0; color: #8A4B00; background: #FFF4E5; border-radius: 8px; padding: 6px 10px; font-size: 13px; }

/* ---------- Modals: chọn cửa hàng, chi tiết món ---------- */
.tf-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; }
.tf-modal-card { width: 100%; max-width: 780px; max-height: 94vh; background: #FFFFFF; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.tf-modal-head { padding: 16px 16px 0; display: flex; align-items: center; gap: 12px; }
.tf-modal-head h2 { margin: 0; flex: 1; font-size: 18px; font-weight: 900; color: var(--red2); }
.tf-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #050505; color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.tf-close-light { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.tf-mtabs { margin: 12px 16px 0; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--line2); }
.tf-mtabs button { display: flex; align-items: center; justify-content: center; gap: 10px; height: 64px; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; background: transparent; color: var(--ink2); text-align: left; padding: 0 6px; }
.tf-mtabs button[aria-selected="true"] { color: var(--red2); border-bottom-color: var(--red2); }
.tf-mtabs strong { display: block; font-size: 14.5px; font-weight: 900; }
.tf-mtabs small { display: none; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tf-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; }
#shipBox, #pickBox { display: flex; flex-direction: column; gap: 12px; }
.tf-addr { position: relative; display: flex; align-items: center; color: var(--red2); }
.tf-addr > .tf-ico { position: absolute; left: 14px; }
.tf-addr input { width: 100%; height: 52px; border: 2px solid var(--red2); border-radius: 12px; padding: 0 14px 0 44px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.tf-addr input:focus { outline: none; box-shadow: 0 0 0 3px rgba(227, 30, 36, .15); }
.tf-suggest { position: absolute; left: 0; right: 0; top: 56px; z-index: 3; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .12); overflow: hidden; }
.tf-suggest button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line2); background: #FFFFFF; text-align: left; color: var(--faint); }
.tf-suggest strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.tf-suggest small { display: block; font-size: 12.5px; color: var(--muted); }
.tf-gps { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid #C5DAF8; border-radius: 999px; background: #F5F9FF; color: var(--blue); font-size: 14px; font-weight: 800; }
.tf-nearest { border-radius: 16px; border: 2px solid var(--green); background: var(--green-bg); padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.tf-nearest.empty { border: 1.5px dashed #BCC0C4; background: #FAFAFB; }
.tf-nearest.far { border-color: #E8A33D; background: #FFF8EC; }
.tf-nearest-ico { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--green); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.tf-nearest.empty .tf-nearest-ico { background: #DADDE1; color: var(--ink2); }
.tf-nearest > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tf-nearest small { font-size: 12px; font-weight: 900; color: var(--green); letter-spacing: .4px; }
.tf-nearest strong { font-size: 17px; font-weight: 900; }
.tf-nearest span span { font-size: 13.5px; color: var(--ink2); }
.tf-nearest b { font-size: 13.5px; font-weight: 800; color: var(--green); }
.tf-nearest.far b { color: #8A4B00; }
.tf-fee-note { margin: 0; font-size: 12px; color: var(--faint); line-height: 1.45; }
.tf-pick-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tf-pick-filters select, .tf-pick-filters input { height: 46px; border: 1px solid #CED0D4; border-radius: 10px; padding: 0 10px; font-size: 14.5px; font-weight: 700; background: #FFFFFF; min-width: 0; }
.tf-pick-filters input { grid-column: 1 / -1; font-weight: 500; }
.tf-list-title { margin: 0; font-size: 13px; font-weight: 800; color: var(--muted); }
.tf-store-grid { display: grid; gap: 10px; }
.tf-scard { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; text-align: left; color: var(--ink); }
.tf-scard.on { border: 2px solid var(--red2); background: var(--pink2); }
.tf-scard.closed { opacity: .6; }
.tf-scard-top { display: flex; align-items: center; gap: 8px; }
.tf-scard-top strong { flex: 1; font-size: 14.5px; font-weight: 900; }
.tf-scard-top .tf-muted { font-size: 12.5px; font-weight: 800; }
.tf-scard.on .tf-dot { border: 7px solid var(--red2); }
.tf-scard-addr { font-size: 12.5px; color: var(--ink2); }
.tf-scard-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; }
.tf-scard-meta .tf-ok { display: inline-flex; align-items: center; gap: 4px; }
.tf-scard-meta a { font-weight: 800; color: var(--blue); text-decoration: none; }
.tf-modal-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.tf-foot-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tf-foot-text small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-foot-text strong { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-modal-foot .tf-btn { height: 52px; border-radius: 12px; font-weight: 900; letter-spacing: .4px; padding: 0 20px; }
/* Dish sheet */
.tf-item-card { max-width: 520px; }
.tf-item-img { position: relative; flex: none; height: 240px; display: flex; background: #FFF3EE; }
.tf-item-img img, .tf-item-img .tf-tilebg { width: 100%; height: 100%; object-fit: cover; }
.tf-item-body { flex: 1; overflow-y: auto; padding: 16px; }
.tf-item-body h2 { margin: 0 0 4px; font-size: 21px; font-weight: 800; }
.tf-item-body p { margin: 0 0 6px; }
.tf-item-price { font-size: 20px; font-weight: 800; color: var(--red2); }
.tf-item-price s { font-size: 14px; color: var(--faint); font-weight: 400; margin-left: 6px; }
.tf-options { display: flex; flex-direction: column; gap: 8px; }
.tf-options label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.tf-options label:has(input:checked) { border-color: var(--red2); background: var(--pink2); }
.tf-options input { accent-color: var(--red2); width: 18px; height: 18px; }
.tf-item-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.tf-stepper { display: inline-flex; align-items: center; height: 48px; border: 1px solid #DADDE1; border-radius: 12px; }
.tf-stepper button { width: 44px; height: 46px; border: 0; background: transparent; color: var(--red2); font-size: 22px; font-weight: 800; }
.tf-stepper span { min-width: 26px; text-align: center; font-weight: 800; font-size: 16px; }

.tf-toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #FFFFFF; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }

/* ---------- Content pages (giới thiệu, chính sách, tin tức, cửa hàng, liên hệ) ---------- */
.tf-article { max-width: 820px; padding-top: 18px; padding-bottom: 30px; }
.tf-article h1 { font-size: 26px; line-height: 1.25; margin: 6px 0 10px; }
.tf-crumbs { font-size: 13px; color: var(--muted); }
.tf-crumbs a { color: var(--muted); text-decoration: none; }
.tf-prose { background: #FFFFFF; border-radius: var(--radius); line-height: 1.7; font-size: 16px; overflow-wrap: anywhere; }
.tf-prose img, .tf-prose iframe { max-width: 100%; height: auto; border-radius: 10px; }
.tf-prose iframe { aspect-ratio: 16 / 9; width: 100%; }
.tf-prose h2 { font-size: 21px; margin: 22px 0 8px; }
.tf-prose h3 { font-size: 18px; margin: 18px 0 6px; }
.tf-prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.tf-prose td, .tf-prose th { border: 1px solid var(--line); padding: 6px 8px; }
.tf-prose blockquote { border-left: 4px solid var(--red); margin: 12px 0; padding: 4px 14px; color: var(--muted); }
.tf-news { padding-top: 10px; padding-bottom: 20px; }
.tf-news-page h1 { font-size: 22px; margin: 14px 0 10px; }
.tf-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.tf-tabs-static a { flex: none; height: 38px; display: inline-flex; align-items: center; border: 1.5px solid var(--line); background: #FFFFFF; border-radius: 999px; padding: 0 16px; font-weight: 800; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.tf-tabs-static a.on { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.tf-pager { display: flex; justify-content: center; gap: 16px; padding: 18px 0; font-weight: 600; }
.tf-pager a { text-decoration: none; }
.tf-box { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tf-store-cards { display: grid; gap: 12px; padding-bottom: 20px; }
.tf-store-cards .tf-btn { margin-right: 10px; }
.tf-store-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.tf-open { color: var(--green); font-weight: 700; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .tf-grid, .tf-tiles { grid-template-columns: repeat(4, 1fr); }
  .tf-pcard .tf-pdesc { display: -webkit-box; }
  .tf-news-grid { grid-template-columns: repeat(2, 1fr); }
  .tf-2col { grid-template-columns: 1fr 1fr; }
  .tf-store-grid { grid-template-columns: 1fr 1fr; }
  .tf-pick-filters { grid-template-columns: 1fr 1fr 1.3fr; }
  .tf-pick-filters input { grid-column: auto; }
  .tf-mtabs small { display: block; }
  .tf-modal { align-items: center; padding: 20px; }
  .tf-modal-card { border-radius: 22px; max-height: min(780px, 92vh); }
  .tf-store-cards { grid-template-columns: 1fr 1fr; }
  .tf-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; padding-top: 36px; }
  .tf-footer-co { grid-column: auto; }
  .tf-slide img { aspect-ratio: 1920 / 835; max-height: 560px; }
}

/* ---------- Desktop (WEB 1) ---------- */
@media (min-width: 1024px) {
  html { scroll-padding-top: 160px; }
  .tf-only-sm { display: none !important; }
  .tf-only-lg { display: revert !important; }
  span.tf-only-lg, a.tf-only-lg, button.tf-only-lg { display: inline-flex !important; }
  .tf-hotline.tf-only-lg { display: flex !important; }
  .tf-header-row { height: 76px; gap: 18px; padding: 0 40px; }
  .tf-logo img { width: 170px; }
  .tf-nav { display: flex; align-items: stretch; height: 76px; gap: 4px; }
  .tf-nav a { display: flex; align-items: center; padding: 0 12px; border: 0; }
  .tf-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
  .tf-round { width: 44px; height: 44px; }
  .tf-cart-btn { width: auto; height: 44px; padding: 0 18px; border-radius: 999px; }
  .tf-cart-count { position: static; min-width: 22px; height: 22px; border: 0; border-radius: 11px; font-size: 12.5px; }
  .tf-modebar { flex-direction: row; align-items: center; gap: 20px; height: 64px; padding: 0 40px; border-top: 1px solid var(--line2); background: #FFFBFB; }
  .tf-mode-btn { width: auto; max-width: 470px; min-height: 48px; padding: 0 14px; border: 1px solid var(--pink-line); background: #FFF6F6; }
  .tf-menu-search { flex: 1; }
  .tf-menu-search input { height: 46px; }

  .tf-slide-nav { display: block; }
  .tf-dots { bottom: 18px; gap: 8px; }
  .tf-dots button { width: 10px; height: 10px; border-radius: 5px; }
  .tf-dots button.on { width: 28px; }

  .tf-sec { padding: 44px 20px 8px; gap: 22px; }
  .tf-h2 { font-size: 28px; gap: 8px; }
  .tf-h2::after { width: 64px; height: 4px; }
  .tf-ptabs { display: flex; justify-content: center; gap: 10px; }
  .tf-ptabs button { height: 44px; padding: 0 24px; font-size: 15px; letter-spacing: .5px; }
  .tf-grid { gap: 20px; }
  .tf-pcard { border-radius: 16px; }
  .tf-pimg { aspect-ratio: auto; height: 190px; }
  .tf-tag { top: 12px; left: 12px; font-size: 12px; padding: 4px 9px; }
  .tf-pbody { padding: 14px 16px 16px; gap: 6px; }
  .tf-pname { font-size: 16px; }
  .tf-pdesc { font-size: 13px; }
  .tf-price { font-size: 18px; }
  .tf-old { font-size: 13px; }
  .tf-center-btn { height: 44px; padding: 0 26px; background: var(--red); color: #FFFFFF; border: 0; }
  .tf-center-btn:hover { background: #D7141C; }
  .tf-tiles { gap: 20px; }
  .tf-tile { height: 220px; border-radius: 18px; }
  .tf-tile img { max-width: 170px; margin-bottom: 30px; }
  .tf-tile span { padding: 14px; font-size: 18px; }
  .tf-news-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .tf-news-card { flex-direction: column; gap: 0; padding: 0; border: 1px solid #EEF0F2; border-radius: 16px; overflow: hidden; background: #FFFFFF; }
  .tf-news-img { width: 100%; height: 160px; border-radius: 0; }
  .tf-news-img .tf-ico { width: 64px; height: 64px; }
  .tf-news-cat { display: block; position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 6px; background: #FFFFFF; color: var(--red); }
  .tf-news-body { padding: 14px 16px 16px; gap: 8px; flex: 1; }
  .tf-news-title { font-size: 15.5px; }
  .tf-news-body p { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; flex: 1; }
  .tf-news-foot { font-size: 12.5px; }
  .tf-news-foot a { display: inline; }

  .tf-footer { margin-top: 48px; padding-bottom: 0; font-size: 13.5px; line-height: 1.55; }
  .tf-footer-grid { padding: 40px 20px 28px; gap: 36px; }
  .tf-footer-grid > div { gap: 10px; }
  .tf-footer h4 { font-size: 15px; }
  .tf-footer-logo { padding: 8px 12px; border-radius: 10px; }
  .tf-footer-logo img { width: 140px; }
  .tf-social a { width: 34px; height: 34px; }
  .tf-copy { padding: 14px 20px; font-size: 12.5px; }
  .tf-float { right: 24px; bottom: 24px; gap: 10px; }
  .tf-float a, .tf-float button { width: 54px; height: 54px; font-size: 13px; }
  .tf-app .tf-float { display: flex; bottom: 24px; }
  .tf-bottombar { display: none; }

  /* Đặt hàng nhanh: danh mục · món · giỏ */
  .tf-quick { display: flex; gap: 20px; padding: 16px 40px 40px; max-width: 1520px; margin: 0 auto; align-items: flex-start; }
  .tf-cats { position: sticky; top: 156px; width: 210px; flex: none; padding: 0; background: transparent; }
  .tf-cats-title { display: block; margin: 0; padding: 4px 12px 6px; font-size: 13px; font-weight: 800; color: var(--faint); }
  #catNav { flex-direction: column; gap: 4px; overflow: visible; }
  #catNav a { height: 46px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; font-size: 14.5px; font-weight: 600; }
  #catNav a[aria-current="true"] { background: #FFFFFF; color: var(--red2); font-weight: 800; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
  .tf-cat-ico { width: 30px; height: 30px; }
  .tf-quick-main { flex: 1; min-width: 0; padding: 0; }
  .tf-store-banner { border-radius: 16px; padding: 18px 20px; flex-wrap: nowrap; gap: 16px; }
  .tf-tf-badge { width: 64px; height: 64px; border-radius: 16px; font-size: 18px; }
  .tf-store-banner-text strong { font-size: 22px; }
  .tf-store-banner-text span { font-size: 14px; }
  .tf-promos { width: auto; flex: none; max-width: 40%; flex-wrap: wrap; justify-content: flex-end; overflow: visible; }
  .tf-promos span { padding: 8px 12px; border-radius: 10px; font-size: 13px; }
  .tf-msec { margin-top: 16px; background: transparent; padding: 0; scroll-margin-top: 170px; }
  .tf-msec h2 { margin: 0 0 10px; font-size: 20px; }
  .tf-mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .tf-mcard { position: relative; flex-direction: column; gap: 0; padding: 0; border: 1px solid #ECEDEF; border-radius: 14px; overflow: hidden; background: #FFFFFF; }
  .tf-mcard:last-child { border-bottom: 1px solid #ECEDEF; }
  .tf-mimg { width: 100%; height: 150px; }
  .tf-mimg .tf-pimg { width: 100%; height: 150px; border-radius: 0; }
  .tf-mimg .tf-tag { top: 10px; left: 10px; font-size: 11.5px; padding: 3px 8px; }
  .tf-mbody { padding: 10px 12px 12px; gap: 3px; flex: 1; }
  .tf-mbody strong { font-size: 15px; }
  .tf-mbody .tf-prow { padding-right: 52px; min-height: 36px; margin-top: 6px; }
  .tf-mcard-add { position: absolute; right: 12px; bottom: 12px; }
  .tf-mcard-add .tf-add { width: 36px; height: 36px; font-size: 22px; }
  .tf-mcard-add .tf-qty { height: 36px; }
  .tf-cart { position: sticky; top: 156px; width: 340px; flex: none; max-height: calc(100vh - 176px); background: #FFFFFF; border-radius: 16px; border: 1px solid #ECEDEF; display: flex; flex-direction: column; overflow: hidden; }
  .tf-cart-head { padding: 16px 18px 10px; display: flex; align-items: center; }
  .tf-cart-head strong { flex: 1; font-size: 18px; font-weight: 800; }
  .tf-cart-head span { font-size: 13px; }
  .tf-cart-note { margin: 0 18px 8px; padding: 10px 12px; border-radius: 12px; background: #FFF5F5; border: 1px solid #F8D3D4; display: flex; flex-direction: column; gap: 8px; }
  .tf-cart-note strong { font-size: 13px; font-weight: 800; color: var(--red-dark); line-height: 1.4; }
  .tf-bar { position: relative; height: 8px; border-radius: 999px; background: #F3D5D6; overflow: hidden; }
  .tf-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--red2); }
  .tf-cart-lines { flex: 1; overflow-y: auto; padding: 0 18px; }
  .tf-cart-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
  .tf-cart-foot .tf-btn { margin-top: 6px; }
  .tf-cartbar { display: none; }

  /* Thanh toán: 2 cột */
  .tf-checkout { max-width: 1140px; padding: 18px 0 40px; grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; }
  .tf-ck-h1 { font-size: 26px; }
  .tf-card { padding: 16px 18px; }
  .tf-ck-aside { position: sticky; top: 160px; margin-top: 74px; padding: 18px 20px; }
  .tf-ck-aside .tf-card-h { font-size: 17px; }
  .tf-checkout .tf-ck-aside .tf-btn-block { display: flex; height: 54px; font-size: 17px; margin-top: 6px; }

  /* Theo dõi đơn: 2 cột */
  .tf-track { max-width: 1140px; padding: 20px 0 40px; }
  .tf-track-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; }
  .tf-track-head { padding: 20px 22px; gap: 10px; }
  .tf-bars { grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; margin: 10px 0; }
  .tf-bars li { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
  .tf-barline { width: auto; height: 6px; }
  .tf-track-aside { padding: 18px 20px; }

  .tf-article h1 { font-size: 32px; }
  .tf-news-page h1 { font-size: 28px; }
  .tf-toast { top: 130px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Khuyến mại trên Website: the program line and the "add …đ more" hint. */
.tf-promo { color: #B3141A; font-weight: 700; }

/* Points online (29/11): SMS code, then how many points. */
.tf-points { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; padding: 10px 12px; border: 1px dashed #D0D4DA; border-radius: 12px; background: #FFFBF0; }
.tf-points .tf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tf-points input { flex: 1 1 140px; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #D0D4DA; border-radius: 10px; font-size: 15px; }
.tf-points .tf-btn { height: 44px; }

/* Website › Giao diện (design FBWebQT, 29/11): thanh thông báo, chính sách bán hàng, ảnh banner, giá theo màu giá, mạng xã hội thêm. */
.tf-topbar { background: var(--red2); color: #FFFFFF; text-align: center; font-size: 13.5px; font-weight: 700; padding: 7px 12px; }
.tf-topbar a { color: #FFFFFF; text-decoration: none; }
.tf-policy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tf-policy > div { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--pink2); border: 1px solid var(--pink-line); }
.tf-policy b { display: block; font-size: 14.5px; color: var(--red-dark); }
.tf-policy span { font-size: 13px; color: var(--muted); }
.tf-policy i { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 900; flex-shrink: 0; }
@media (min-width: 1024px) { .tf-policy { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tf-abanner { display: block; border-radius: var(--radius); overflow: hidden; }
.tf-abanner img { display: block; width: 100%; height: auto; }
.tf-social .tf-zl { background: #0068FF; } .tf-social .tf-yt { background: #FF0000; }
