/* Giao diện Mì cay Chinnoo by SASIN – Thanh Hóa, theo ảnh mẫu chinnoo.vn (14/11/2026).
   Thiết kế cho điện thoại trước: hàng logo nền trắng, banner phủ ngang, Danh mục trượt từ phải, thanh thao tác ở đáy.
   Font Roboto tự lưu trữ (public/fonts, giấy phép SIL OFL 1.1), đủ bộ ký tự tiếng Việt. */
@font-face { font-family: "Roboto"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/roboto-vietnamese-wght-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Roboto"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/roboto-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/roboto-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Hệ màu đã xác minh từ CSS chinnoo.vn (khai báo tập trung) ---------- */
/* Bộ màu nhận diện Chinnoo (dùng chung cho header, khối tiêu đề, thanh 3 nút) */
:root {
  --chinnoo-yellow: #FED430;
  --chinnoo-black: #282425;
  --chinnoo-red: #E71923;
  --chinnoo-orange: #DA3A06;
  --chinnoo-white: #FFFFFF;
  --chinnoo-bg: #FBFBFB;
}
:root {
  --c-white: #ffffff;        /* nền trang, hàng logo, Danh mục, ô tìm kiếm, thẻ món */
  --c-text: #333333;         /* tiêu đề, tên món, điều hướng */
  --c-yellow: #ffd530;       /* nút Xem menu (chữ #333333) */
  --c-red: #d93a10;          /* giá món, nút Chọn món, nút Giỏ hàng (chữ trắng) */
  --c-zalo: #1272e8;         /* nút Nhắn Zalo (chữ trắng) */
  --c-call: #e81a23;         /* nút Gọi quán (chữ trắng) */
  --c-divider: #eeeeee;      /* đường phân cách */
  --c-search-border: #eaeaea;/* viền 1px ô tìm món bo tròn */
  --c-card-border: #f1f1f1;  /* viền 1px thẻ món */
  --c-footer-text: #000000;  /* chữ trên ảnh nền vàng chân trang */
  --c-copy-bg: #1d1d1d;      /* dải bản quyền */
  --c-copy-text: #ffffff;
  --c-overlay: rgba(0, 0, 0, .5); /* lớp phủ khi mở Danh mục */
  --c-store-bg: #fbfbfb;     /* nền xám rất nhạt khối thông tin quán dưới banner */
  /* Ảnh nền vàng gốc (assets/brand/chinnoo-footer-bg.jpg, thu về 1920px); dải màu dự phòng lấy mẫu từ chính ảnh */
  --footer-bg: url("/img/brand/chinnoo-footer-bg.jpg") center / cover no-repeat, linear-gradient(180deg, #fee86d, #ffd636);

  /* Màu phụ trợ (trạng thái, thông báo) */
  --c-red-dark: #b8300c;
  --c-muted: #666666;
  --c-soft: #f7f7f7;
  --yellow-soft: #fff6cc;
  --ok: #1d7a3a;
  --radius: 12px;
  --gutter: 16px;
  --hd-stick: 0px;         /* chiều cao đầu trang khi dính (máy tính); điện thoại: đầu trang cuộn đi */
  --toolbar-h: 112px;
  --font: "Roboto", sans-serif;
}
* { box-sizing: border-box; }
/* Thuộc tính hidden luôn thắng các quy tắc display (nút Zalo/gọi chỉ hiện khi đã cấu hình) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* Khóa cuộn chỉ dùng cho chuột/bàn di (site.js). Màn cảm ứng: lớp phủ tự chặn bằng touch-action, không đổi overflow trang
   => đóng lớp phủ là khách cuộn tiếp từ đúng vị trí cũ. */
html.scroll-lock { overflow: hidden; }
body.page { --toolbar-h: 0px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--c-text); background: var(--c-white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--c-zalo); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
/* Nội dung rộng tối đa 1.200px, căn giữa */
.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 3px solid var(--c-zalo); outline-offset: 2px; }

/* ---------- Dải thông báo vàng (~32px, chữ trắng như chinnoo.vn) ---------- */
.notice { background: var(--c-yellow); color: var(--c-white); }
.notice-inner { display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 32px; padding: 0 4px; }
.notice-track { flex: 1; min-width: 0; text-align: center; }
.notice-msg { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 1px rgba(0,0,0,.2); }
.notice-arrow { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; color: var(--c-white); flex-shrink: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.notice-arrow svg { width: 16px; height: 16px; }

/* ---------- Hàng logo trắng (~56px): logo chữ CHINNOO trái; nút tìm món + ba gạch phải ---------- */
.site-header { background: var(--c-white); color: var(--c-text); position: relative; z-index: 35; border-bottom: 1px solid var(--c-divider); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.hd { position: relative; display: flex; align-items: center; gap: 0; height: 74px; }
.brand { display: flex; align-items: center; flex-shrink: 0; min-width: 0; margin-right: auto; border-radius: 6px; }
.brand-logo { width: 156px; height: auto; display: block; }
.nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 -8px 0 -2px; border: 0; background: none; color: var(--chinnoo-black); border-radius: 10px; flex-shrink: 0; }
.nav-toggle svg { width: 24px; height: 24px; }
.site-nav, .hd-actions { display: none; }
.nav-link { color: var(--c-text); text-decoration: none; font-weight: 500; font-size: 15px; padding: 0 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; white-space: nowrap; }
.hd-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; color: var(--c-white); }
.hd-btn svg { width: 22px; height: 22px; flex-shrink: 0; fill: currentColor; }
/* Đồng bộ với thanh 3 nút: Nhắn Zalo nền đen (logo Zalo trên vòng trắng), Giỏ hàng nền đỏ Chinnoo */
.hd-zalo { background: var(--chinnoo-black); color: var(--chinnoo-white); }
.hd-cart { background: var(--chinnoo-red); color: var(--chinnoo-white); }
.hd-ico-zalo { width: 26px; height: 26px; border-radius: 50%; background: var(--chinnoo-white); display: grid; place-items: center; flex-shrink: 0; }
.hd-ico-zalo img { width: 20px; height: 20px; display: block; object-fit: contain; }
.hd-cart svg { width: 21px; height: 21px; fill: none; stroke: currentColor; }
.hd-btn { transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hd-btn:active { transform: translateY(1px) scale(0.98); filter: brightness(0.94); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.16); }
@media (hover: hover) { .hd-btn:hover { filter: brightness(1.08); } }
@media (prefers-reduced-motion: reduce) { .hd-btn { transition: none; } .hd-btn:active { transform: none; } }
.ico-wrap { position: relative; display: inline-flex; flex-shrink: 0; margin-right: 8px; } /* chừa chỗ cho số món, không đè lên chữ */
.count-badge { position: absolute; top: -7px; right: -11px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--c-white); color: var(--c-red); font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center; box-shadow: 0 0 0 1.5px var(--c-red); }

/* ---------- Danh mục: khung trắng trượt từ phải, rộng 85% (tối đa 480px) ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: var(--c-overlay); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; touch-action: none; }
.drawer-backdrop.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: 85%; max-width: 480px; background: var(--c-white); color: var(--c-text); display: flex; flex-direction: column; transform: translateX(102%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; box-shadow: -8px 0 24px rgba(0,0,0,.18); }
.drawer.open { transform: none; visibility: visible; transition: transform .28s ease; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px 10px 20px; min-height: 64px; border-bottom: 1px solid var(--c-divider); touch-action: none; }
.drawer-title { margin: 0; font-size: 24px; font-weight: 700; }
.drawer-close { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: var(--c-text); border-radius: 10px; }
.drawer-close svg { width: 28px; height: 28px; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); }
.drawer-search { display: flex; align-items: center; gap: 4px; border: 1px solid var(--c-search-border); border-radius: 999px; padding: 0 4px 0 18px; min-height: 50px; margin-bottom: 8px; background: var(--c-white); }
.drawer-search:focus-within { border-color: var(--c-text); }
.drawer-search input { flex: 1; min-width: 0; border: 0; outline: 0; height: 46px; font-size: 16px; background: transparent; }
.drawer-search input::placeholder { color: #9a9a9a; }
.drawer-search button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--c-text); border-radius: 50%; }
.drawer-search svg { width: 24px; height: 24px; fill: currentColor; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { display: flex; align-items: center; min-height: 52px; font-size: 18px; font-weight: 500; color: var(--c-text); text-decoration: none; }
.drawer-nav a[aria-current="page"] { color: var(--c-red); font-weight: 700; }
.drawer-contact { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--c-divider); }
.drawer-contact .btn { min-height: 48px; font-size: 16px; }

/* ---------- Banner đầu trang ---------- */
/* Khung giữ tỉ lệ cố định => chiều cao không đổi khi chuyển ảnh, nội dung bên dưới không bị nhảy.
   Điện thoại: phủ ngang toàn màn hình, 16:9 (ảnh 800x450). Từ 768px: 8:3 (ảnh 1200x450), tối đa 1200x450. */
.promo { background: var(--c-white); }
.promo-wrap { padding: 0; max-width: none; } /* banner phủ sát hai mép ở mọi chiều rộng */
.promo-frame { position: relative; overflow: hidden; background: #f4f4f4; aspect-ratio: 767 / 850; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.promo-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; display: block; }
.promo-slide.on { opacity: 1; visibility: visible; transition: opacity .6s ease; z-index: 1; }
.promo-slide picture, .promo-slide img { display: block; width: 100%; height: 100%; }
.promo-slide img { object-fit: cover; -webkit-user-drag: none; }
/* Slide thiếu ảnh dọc: trên điện thoại ảnh ngang nằm trọn trong cùng khung (không cắt giá), các slide khác không đổi */
@media (max-width: 767px) { .promo-slide.no-mobile { background: var(--c-yellow); } .promo-slide.no-mobile img { object-fit: contain; } }
a.promo-slide { cursor: pointer; }
.promo-ui { position: absolute; left: 0; right: 0; bottom: 4px; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 0 8px; pointer-events: none; } /* không phủ tối đáy ảnh */
.promo-dots { display: flex; gap: 2px; pointer-events: auto; }
.promo-dot { width: 24px; height: 24px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.promo-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 1px rgba(0,0,0,.3); transition: width .2s; }
.promo-dot[aria-current="true"]::before { width: 18px; border-radius: 4px; background: var(--c-white); }
.promo-pause { pointer-events: auto; position: absolute; right: 8px; bottom: 0; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; }
.promo-pause svg { width: 12px; height: 12px; fill: #fff; }
@media (prefers-reduced-motion: reduce) { .promo-slide, .promo-slide.on { transition: none; } }

/* ---------- Khối tiêu đề Combo ngay dưới banner: 2 dòng cân bằng, căn giữa trên nền #FBFBFB ---------- */
.combo-intro { width: 100%; padding: 58px 16px 72px; text-align: center; background: var(--chinnoo-bg); }
.ch-kicker { margin: 0 0 12px; color: var(--chinnoo-orange); font-family: Roboto, Arial, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: .02em; }
#comboTitle { width: min(100%, 680px); max-width: none; margin: 0 auto; font-family: Roboto, Arial, sans-serif; font-size: clamp(22px, 6.2vw, 32px); font-weight: 700; line-height: 1.28; letter-spacing: 0.06em; color: var(--chinnoo-black); text-wrap: balance; }
#comboTitle .nw { white-space: nowrap; } /* giữ "21K" liền nhau (khoảng trắng trước là &nbsp; => "ĐẾN 21K" không tách) */
.open-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.open-badge.is-open { background: #dff3e5; color: #155228; }
.open-badge.is-closed { background: #fde3dc; color: #8c1d18; }

/* ---------- Thanh tìm kiếm + nhóm món (dính trên cùng khi cuộn) ---------- */
.toolbar { position: sticky; top: var(--hd-stick); z-index: 20; background: var(--c-white); padding: 10px 0 0; box-shadow: 0 1px 0 var(--c-divider), 0 8px 14px -10px rgba(0,0,0,.2); }
.search { display: flex; align-items: center; gap: 8px; background: var(--c-white); border: 1px solid var(--c-search-border); border-radius: 999px; padding: 0 16px; min-height: 48px; }
.search:focus-within { border-color: var(--c-text); }
.search svg { width: 20px; height: 20px; fill: #777; flex-shrink: 0; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; height: 44px; font-size: 16px; background: transparent; color: var(--c-text); }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.cats::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; border: 1px solid var(--c-search-border); background: var(--c-white); color: var(--c-text); border-radius: 999px; padding: 7px 14px; font-size: 15px; font-weight: 500; min-height: 40px; white-space: nowrap; }
.chip[aria-current="true"] { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-text); font-weight: 700; }

/* ---------- Danh sách món ---------- */
.layout { display: block; padding-top: 12px; padding-bottom: 12px; }
#menu, .section { scroll-margin-top: calc(var(--hd-stick) + var(--toolbar-h) + 10px); }
.menu-head { margin: 4px 0 10px; }
.menu-title { font-size: 22px; line-height: 1.25; margin: 0; color: var(--c-text); font-weight: 700; }
.menu-sub { margin: 4px 0 0; color: var(--c-muted); font-size: 14px; }
.loading, .empty { text-align: center; color: var(--c-muted); padding: 32px 0; }
.section, .about, .space { margin-bottom: 24px; }
.section h2, .about h2, .space h2 { font-size: 20px; margin: 8px 0 12px; display: flex; align-items: center; gap: 8px; color: var(--c-text); font-weight: 700; text-transform: uppercase; letter-spacing: .2px; }
.section h2::before, .about h2::before, .space h2::before { content: ""; width: 5px; height: 20px; background: var(--c-red); border-radius: 3px; flex-shrink: 0; }
.sec-note { margin: -4px 0 10px; color: var(--c-muted); font-size: 14px; }
/* Điện thoại: 2 cột; màn hình rất hẹp (<340px): 1 cột dạng ngang để tên món và nút chọn không bị chật */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* Thẻ món: nền trắng, viền mảnh, ảnh vuông giữ trọn món, tên đậm */
.card { background: var(--c-white); border: 1px solid var(--c-card-border); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.card .media { aspect-ratio: 1 / 1; background: var(--c-white); position: relative; }
.card .media img { width: 100%; height: 100%; object-fit: contain; }
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--c-soft); color: var(--c-muted); font-size: 13px; text-align: center; padding: 8px; }
.ph svg { width: 28px; height: 28px; fill: #c8c8c8; }
.badge { position: absolute; left: 6px; top: 6px; background: var(--c-text); color: var(--c-yellow); font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.card .info { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 15.5px; line-height: 1.3; margin: 0; font-weight: 700; overflow-wrap: anywhere; color: var(--c-text); }
.card .desc { font-size: 13px; color: var(--c-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Giá một dòng, nút Chọn món rộng hết thẻ (luôn bấm được) */
.card .row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-weight: 700; color: var(--c-red); font-size: 16.5px; }
.price.na { color: var(--c-muted); font-weight: 500; font-size: 13px; }
.in-cart { font-size: 12.5px; color: var(--ok); font-weight: 700; }
.in-cart:empty { display: none; }
.choose { border: 0; background: var(--c-red); color: var(--c-white); font-weight: 700; border-radius: 8px; padding: 0 12px; min-height: 44px; font-size: 15px; white-space: nowrap; }
@media (hover: hover) { .choose:hover { background: var(--c-red-dark); } }
.choose:disabled { background: #e3e3e3; color: #666; cursor: not-allowed; }
@media (max-width: 339px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card { flex-direction: row; }
  .card .media { width: 108px; flex-shrink: 0; aspect-ratio: 1 / 1; align-self: center; }
}

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; min-height: 52px; padding: 0 18px; font-weight: 700; font-size: 17px; text-decoration: none; text-align: center; }
.btn-block { width: 100%; }
.btn-primary { background: var(--c-red); color: var(--c-white); }
@media (hover: hover) { .btn-primary:hover { background: var(--c-red-dark); } }
.btn-primary:disabled { background: #bdbdbd; color: #fff; cursor: not-allowed; }
.btn-ghost { background: var(--c-white); border: 1.5px solid var(--c-text); color: var(--c-text); }
.btn-call { background: var(--c-call); color: var(--c-white); }
.btn-dark { background: var(--c-text); color: var(--c-white); }
.btn-zalo { background: var(--c-zalo); color: var(--c-white); }
.icon-btn { border: 0; background: #f2f2f2; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; color: var(--c-text); }
.link-btn { border: 0; background: none; color: var(--c-zalo); font-weight: 500; padding: 10px 0; min-height: 44px; text-align: left; }
.link-btn.small { font-size: 14px; }

/* ---------- Giới thiệu ---------- */
.about-grid { display: grid; gap: 14px; }
.about-text { background: var(--c-white); border: 1px solid var(--c-card-border); border-radius: var(--radius); padding: 14px 16px; }
.about-text p { margin: 0 0 10px; }
.about-text p:last-child { margin-bottom: 0; }
.info-card { background: var(--c-text); color: #fff; border-radius: var(--radius); padding: 16px; }
.info-card dl { margin: 0 0 12px; display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; font-size: 15px; }
.info-card dt { color: var(--c-yellow); font-weight: 700; }
.info-card dd { margin: 0; overflow-wrap: anywhere; }
.info-card a { color: #fff; font-weight: 700; }
.info-actions { display: grid; gap: 8px; }
.info-actions .btn { min-height: 48px; font-size: 16px; }
.info-actions .btn-ghost { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Thư viện ảnh ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.g-item { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--c-soft); aspect-ratio: 4 / 3; cursor: zoom-in; }
.g-item.tall { grid-row: span 2; aspect-ratio: auto; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .g-item img { transition: transform .25s ease; } .g-item:hover img { transform: scale(1.03); } }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); text-align: left; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(15,14,14,.94); display: flex; align-items: center; justify-content: center; touch-action: pinch-zoom; overscroll-behavior: contain; }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 56px 12px 16px; }
.lb-fig img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 8px; background: #222; }
.lb-fig figcaption { color: #fff; margin-top: 10px; font-size: 15px; text-align: center; }
.lb-count { color: #bbb; font-size: 13px; margin-left: 6px; }
.lb-close { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; z-index: 2; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(255,255,255,.15); color: #fff; font-size: 36px; line-height: 1; z-index: 2; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* ---------- Giỏ hàng: điện thoại trượt từ dưới lên; từ 600px là ngăn kéo bên phải ---------- */
.cart-panel { position: fixed; inset: auto 0 0 0; z-index: 50; background: var(--c-white); border-radius: 18px 18px 0 0; max-height: 92dvh; display: flex; flex-direction: column; transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: 0 -8px 24px rgba(0,0,0,.2); touch-action: none; }
.cart-panel.open { transform: none; visibility: visible; transition: transform .25s ease; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--c-divider); }
.cart-head h2 { margin: 0; font-size: 19px; color: var(--c-text); }
.cart-body { overflow-y: auto; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.backdrop { position: fixed; inset: 0; background: var(--c-overlay); z-index: 40; touch-action: none; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { padding: 12px 0; border-bottom: 1px solid var(--c-divider); }
.cl-top { display: flex; justify-content: space-between; gap: 10px; }
.cl-name { font-weight: 700; overflow-wrap: anywhere; color: var(--c-text); }
.cl-total { font-weight: 700; white-space: nowrap; color: var(--c-red); }
.cl-meta { font-size: 14px; color: var(--c-muted); margin: 2px 0 0; overflow-wrap: anywhere; }
.cl-spice { list-style: none; margin: 4px 0 0; padding: 0; }
.cl-spice li { font-size: 14px; font-weight: 700; color: var(--c-red-dark); }
.cl-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cl-actions .link-btn { padding: 8px 6px; min-height: 40px; }
.cl-actions .del { color: #b3261e; }
.cart-empty { color: var(--c-muted); text-align: center; padding: 24px 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--c-search-border); border-radius: 10px; overflow: hidden; background: var(--c-white); }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--c-soft); font-size: 22px; font-weight: 700; color: var(--c-text); }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; font-size: 17px; }
.totals { margin: 12px 0; font-size: 15px; }
.totals .t-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.totals .t-row.grand { font-size: 18px; font-weight: 700; border-top: 1px dashed var(--c-divider); margin-top: 4px; padding-top: 8px; }
.totals .t-row .pending { color: #7a4f00; font-weight: 700; text-align: right; }
.totals .t-note { font-size: 13px; color: var(--c-muted); margin: 4px 0 0; }

/* ---------- Biểu mẫu ---------- */
#checkoutForm h3 { margin: 4px 0 12px; font-size: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=radio]), .field textarea { width: 100%; border: 1px solid #cfcfcf; border-radius: 10px; padding: 12px; font-size: 16px; background: var(--c-white); min-height: 48px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--c-text); outline: 2px solid var(--c-yellow); }
.field .invalid { border-color: #b3261e !important; background: #fff7f6 !important; }
.req { color: #b3261e; }
.opt { color: var(--c-muted); font-weight: 400; font-size: 14px; }
.ferr { color: #b3261e; font-size: 14px; margin: 4px 0 0; }
.ferr:empty { display: none; }
.hint { font-size: 13px; color: var(--c-muted); margin: 4px 0 0; }
.hint.center { text-align: center; margin-top: 10px; }
.checkbox { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; cursor: pointer; min-height: 44px; padding-top: 8px; }
.checkbox input { width: 24px; height: 24px; margin: 0; flex-shrink: 0; accent-color: var(--c-red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ship-box { background: var(--yellow-soft); border: 1px solid #f0d97a; border-radius: 12px; padding: 12px; margin: 8px 0 14px; }
.ship-notice { margin: 0; font-size: 14px; }
.form-error { background: #fdecea; color: #8c1d18; border-radius: 10px; padding: 10px 12px; font-weight: 500; }
.consent { font-size: 13.5px; color: var(--c-muted); margin: 0 0 10px; }
.consent a { font-weight: 700; }
/* Bước kiểm tra lại yêu cầu đặt món (trước nút GỬI YÊU CẦU ĐẶT MÓN) */
.review .rv-title { margin: 0 0 8px; font-size: 16px; }
.rv-lines { list-style: none; margin: 0 0 4px; padding: 0; }
.rv-line { padding: 8px 0; border-bottom: 1px dashed #e8d48a; }
.rv-line:first-child { padding-top: 0; }
.rv-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; }
.rv-name { min-width: 0; overflow-wrap: anywhere; }
.rv-total { white-space: nowrap; }
.rv-meta { margin: 2px 0 0; font-size: 13.5px; color: #4a4a4a; overflow-wrap: anywhere; }
.rv-meta .muted { color: var(--c-muted); }
.rv-tax { margin: 2px 0 6px; font-size: 13px; color: var(--c-muted); }
/* Nhãn "MÓN ĐÃ CHỌN" dài hơn "GIỎ HÀNG": màn hình rất hẹp (≤ 345px) thu chữ một chút để không bị cắt */
@media (max-width: 345px) { .bb-cart .bb-txt { font-size: 9px; letter-spacing: -0.4px; } }
.totals .t-row.grand > span:first-child { white-space: nowrap; }
.totals .t-row.grand .pending { font-size: 15px; line-height: 1.3; }
.totals .t-row.t-sur { align-items: flex-start; }
.totals .t-row.t-sur .sur { text-align: right; font-size: 13px; color: #7a4f00; max-width: 62%; line-height: 1.35; }
.consent-check { margin: 4px 0 2px; font-size: 14.5px; line-height: 1.45; }
.consent-check a { font-weight: 700; }
.consent-check input.invalid { outline: 2px solid #b3261e; outline-offset: 2px; }
.manual-box { margin-top: 16px; border: 2px dashed var(--c-zalo); border-radius: 12px; padding: 12px; background: #f2f7ff; display: grid; gap: 8px; }
.manual-box h4 { margin: 0; font-size: 16px; color: var(--c-text); }
.manual-box[data-kind="failed"] { border: 2px solid var(--c-red); background: #fff4f0; }
.manual-box[data-kind="unknown"] { border: 2px solid #e0a100; background: #fffaeb; }
.manual-box .mb-code { font-size: 15px; }
.manual-box .mb-code strong { font-size: 18px; letter-spacing: .5px; color: var(--c-red); }
.manual-box p { margin: 0; font-size: 14px; }

/* ---------- Hoàn tất ---------- */
.done { text-align: center; padding: 8px 0; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 8px auto; }
.done h3 { margin: 6px 0; font-size: 21px; }
.done-code { font-size: 16px; }
.done .totals { text-align: left; background: var(--c-soft); border-radius: 12px; padding: 10px 12px; }
.note-box { background: var(--yellow-soft); border-left: 4px solid var(--c-yellow); padding: 10px 12px; text-align: left; border-radius: 8px; font-weight: 500; }
.done .btn { margin-top: 10px; }

/* ---------- Thanh 3 nút cố định dưới màn hình: XEM MENU · NHẮN ZALO · GIỎ HÀNG ----------
   NGUỒN CSS DUY NHẤT của component này (không có quy tắc nào khác cho .bbar / .bb ở nơi khác).
   Điện thoại: thanh 46px, phần nền màu của nút 34px. Từ 768px: thanh 54px, nút 40px, cụm nút tối đa 900px.
   Chiều cao chưa tính vùng an toàn iPhone (safe-area). */
:root {
  --bottom-bar-height: 46px;
  --bottom-button-height: 34px;
  --bottom-icon-size: 26px;
  --bottom-icon-glyph: 16px;
  --bottom-zalo-logo: 18px;
  --bottom-gap: 3px;
  --bottom-font: 10px;
}
.bbar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  box-sizing: border-box;
  height: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px));
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  transition: transform .2s ease, visibility 0s linear 0s;
}
.bbar-in {
  width: 100%; height: var(--bottom-button-height); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: var(--bottom-gap);
}
/* Ba nút bằng nhau tuyệt đối: lưới 3 cột, cùng chiều cao; trong nút: cột icon + cột chữ */
.bb {
  position: relative; box-sizing: border-box; width: 100%; min-width: 0; height: var(--bottom-button-height);
  display: grid; grid-template-columns: var(--bottom-icon-size) minmax(0, 1fr); align-items: center; column-gap: 4px;
  padding: 0 6px; border: 0; border-radius: 999px; text-decoration: none; overflow: visible;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10);
  transition: transform 120ms ease, filter 120ms ease;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.bb::before { content: ""; position: absolute; inset: -5px 0; } /* vùng bấm cao 44px, nền màu vẫn 34px */
.bb:active { transform: translateY(1px) scale(0.985); filter: brightness(0.94); }
.bb-ico {
  position: relative; box-sizing: border-box; width: var(--bottom-icon-size); height: var(--bottom-icon-size);
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1.25px solid currentColor; background: transparent;
}
.bb-ico svg { display: block; width: var(--bottom-icon-glyph); height: var(--bottom-icon-glyph); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bb-txt {
  min-width: 0; overflow: hidden; font-family: inherit; font-size: var(--bottom-font); font-weight: 700; line-height: 1;
  letter-spacing: -0.1px; text-align: center; white-space: nowrap; text-overflow: clip; text-transform: uppercase;
  padding: 4px 0; margin: -4px 0; /* chừa chỗ cho dấu tiếng Việt (Ắ, Ỏ, À) – line-height 1 + overflow hidden sẽ cắt mất dấu */
}
.bb-menu { background: var(--chinnoo-yellow); color: var(--chinnoo-black); }  /* viền + icon đen, khung trong suốt */
.bb-zalo { background: var(--chinnoo-black); color: var(--chinnoo-white); }
.bb-zalo .bb-ico { background: var(--chinnoo-white); border-color: var(--chinnoo-white); } /* logo Zalo xanh giữa vòng trắng */
.bb-zalo .bb-ico img { display: block; width: var(--bottom-zalo-logo); height: var(--bottom-zalo-logo); object-fit: contain; }
.bb-cart { background: var(--chinnoo-red); color: var(--chinnoo-white); }  /* viền + icon trắng, khung trong suốt */
.bb .count-badge { top: -6px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; }
/* Mở hộp chọn món, giỏ hàng / form nhận hàng, Danh mục, hoặc đang gõ => ẩn thanh */
html.overlay-open .bbar, html.kb-open .bbar { transform: translateY(115%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
@media (min-width: 768px) {
  :root { --bottom-bar-height: 54px; --bottom-button-height: 40px; --bottom-icon-size: 30px; --bottom-icon-glyph: 18px; --bottom-zalo-logo: 21px; --bottom-font: 12px; }
  .bbar { padding: 7px 12px calc(7px + env(safe-area-inset-bottom, 0px)); }
  .bbar-in { width: min(100%, 900px); }
  .bb { column-gap: 7px; padding: 0 12px; }
}
/* Không che nội dung: chừa đáy trang bằng chiều cao thanh + 8px + vùng an toàn */
html { scroll-padding-bottom: calc(var(--bottom-bar-height) + 8px + env(safe-area-inset-bottom, 0px)); }
body { padding-bottom: calc(var(--bottom-bar-height) + 8px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) {
  .bbar, html.overlay-open .bbar, html.kb-open .bbar, .bb { transition: none; }
  .bb:active { transform: none; }
  .drawer, .drawer.open, .drawer-backdrop, .drawer-backdrop.open { transition: none; }
}

/* ---------- Hộp chọn món ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: var(--c-overlay); touch-action: none; }
.modal[hidden] { display: none; }
.modal-card { position: relative; background: var(--c-white); width: 100%; max-width: 560px; max-height: 92dvh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.modal-close { position: absolute; right: 10px; top: 10px; z-index: 2; background: rgba(255,255,255,.95); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.m-media { aspect-ratio: 16 / 9; background: var(--c-white); flex-shrink: 0; max-height: 30dvh; }
.m-media img { width: 100%; height: 100%; object-fit: contain; }
.m-body { padding: 14px 16px 4px; overflow-y: auto; flex: 1; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.m-body h3 { margin: 0 44px 4px 0; font-size: 20px; color: var(--c-text); }
.m-price { margin: 0; font-weight: 700; color: var(--c-red); font-size: 18px; }
.m-desc { color: var(--c-muted); margin: 6px 0 10px; font-size: 15px; }
.m-desc:empty { display: none; }
.m-foot { display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-divider); background: var(--c-white); }
.m-foot .btn { flex: 1; }
.spice-group { border: 1px solid var(--c-search-border); border-radius: 12px; padding: 10px; margin: 0 0 14px; min-width: 0; }
.spice-group.need { border-color: #b3261e; background: #fff7f6; }
.spice-group legend { font-weight: 700; padding: 0 6px; color: var(--c-text); }
.sp-status { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; background: #fde3dc; color: #8c1d18; }
.sp-status.done { background: #dff3e5; color: #1d5b2d; }
.spice-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.spice-opt { position: relative; }
.spice-opt input { position: absolute; opacity: 0; inset: 0; }
.spice-opt span { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #cfcfcf; border-radius: 10px; min-height: 52px; padding: 4px; font-weight: 700; text-align: center; background: var(--c-white); font-size: 15px; color: var(--c-text); }
.spice-opt span small { font-weight: 500; font-size: 11px; color: var(--c-muted); line-height: 1.15; }
.spice-opt input:checked + span { background: var(--c-red); border-color: var(--c-red); color: #fff; box-shadow: 0 0 0 2px var(--c-text) inset; }
.spice-opt input:checked + span small { color: #fff; }
.spice-opt input:focus-visible + span { outline: 3px solid var(--c-zalo); outline-offset: 2px; }
.spice-opt.wide { grid-column: 1 / -1; }
.spice-desc { font-size: 13px; color: var(--c-muted); margin: 6px 0 0; min-height: 18px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--bottom-bar-height) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #1d1d1d; color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 90; font-weight: 500; max-width: calc(100% - 32px); text-align: center; pointer-events: none; /* chỉ là chữ thông báo: không chặn cú chạm vào nút "Xác nhận gửi đơn" nằm bên dưới */ }

/* ---------- Chân trang (bản gọn 24/11/2026): khối vàng 3 cột + thanh pháp lý đen một dòng ----------
   Điện thoại: thông tin quán luôn hiện; ba nhóm Khám phá / Hỗ trợ & chính sách / Kết nối bấm để mở (mặc định đóng),
   vùng bấm ≥ 44px, chữ ≥ 14px, lề hai bên 20px. Từ 768px: 3 cột luôn mở; hàng liên hệ nằm dưới thông tin quán. */
.site-footer { margin-top: 24px; color: var(--chinnoo-black); font-size: 15px; line-height: 1.5; }
.site-footer .wrap { padding-left: 20px; padding-right: 20px; }
.site-footer a { color: var(--chinnoo-black); }
.foot-main { background: var(--footer-bg); padding: 22px 0 8px; }
.ft-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: .1px; }
.fcol-store .ft-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* điện thoại: tên quán đã là dòng đầu */
.ft-name { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.ft-info { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.ft-info li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.ft-info li > span { min-width: 0; overflow-wrap: anywhere; }
.ft-info svg, .ft-contact svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--chinnoo-red); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ft-info svg { margin-top: 2px; }
/* Số hotline: vùng bấm cao 44px mà không làm dòng cao thêm */
.ft-info a { display: inline-block; padding: 11px 0; margin: -11px 0; font-weight: 700; text-underline-offset: 3px; }
/* Nhóm bấm để mở (điện thoại) */
.fgroup { border-top: 1px solid rgba(40, 36, 37, .18); }
.fg-toggle { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; }
.fg-toggle svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.fgroup.open .fg-toggle svg { transform: rotate(180deg); }
.fgroup:not(.open) .fg-body { display: none; }
.fg-links { list-style: none; margin: 0; padding: 0 0 8px; }
.fg-links a { display: flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }
.ft-contact { list-style: none; margin: 0; padding: 0 0 10px; display: flex; flex-wrap: wrap; gap: 0 22px; }
.ft-contact li:has(> [hidden]) { display: none; } /* Messenger chỉ hiện khi đã cấu hình fanpage */
.ft-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.ft-contact img { width: 20px; height: 20px; flex-shrink: 0; }
.ft-contact svg .fill { fill: #0a7cff; stroke: none; }
@media (hover: hover) {
  .fg-links a:hover, .ft-contact a:hover { color: var(--chinnoo-red); }
}
.site-footer a:focus-visible, .fg-toggle:focus-visible { outline: 2px solid var(--chinnoo-black); outline-offset: 2px; border-radius: 2px; }
/* Thanh pháp lý: nền đen, chữ sáng, một dòng (điện thoại tự xuống dòng gọn) */
.foot-legal { background: var(--chinnoo-black); color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.5; padding: 10px 0; }
.fl-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 20px; }
.fl-copy { margin: 0; }
.fl-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-footer .fl-links a { color: #fff; font-weight: 500; display: inline-block; padding: 12px 0; margin: -7px 0; text-underline-offset: 3px; }
.site-footer .fl-links a:hover, .site-footer .fl-links a:focus-visible { color: var(--chinnoo-yellow); outline-color: var(--chinnoo-yellow); }
.fl-badge { flex-basis: 100%; }
@media (min-width: 768px) {
  .site-footer .wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
  .foot-main { padding: 30px 0 22px; }
  .foot-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "store explore support" "connect explore support"; column-gap: 40px; row-gap: 4px; align-items: start; }
  .fcol-store { grid-area: store; } .fcol-explore { grid-area: explore; } .fcol-support { grid-area: support; } .fcol-connect { grid-area: connect; }
  .fcol-store .ft-title { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin: 0 0 10px; }
  .ft-name { font-size: 15px; margin-bottom: 6px; }
  .ft-info { margin: 0; gap: 4px; }
  .fgroup { border-top: 0; }
  .fg-toggle { min-height: 0; padding: 0 0 10px; cursor: default; }
  .fg-toggle svg { display: none; }
  .fgroup .fg-body, .fgroup:not(.open) .fg-body { display: block; padding: 0; }
  .fcol-connect .ft-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* máy tính: hàng liên hệ dưới thông tin quán, không cần tiêu đề */
  .fgroup .fg-body.ft-contact, .fgroup:not(.open) .fg-body.ft-contact { display: flex; padding: 6px 0 0; }
  .fg-links a { min-height: 32px; }
  .ft-contact a { min-height: 40px; }
  .foot-legal { padding: 9px 0; }
}
.close-cart { display: inline-block; }

/* ---------- Trang chính sách (sinh từ layout/chinh-sach) ---------- */
/* Trang tổng hợp /chinh-sach/ */
.hub-intro { color: var(--c-text); }
.hub { display: grid; gap: 6px; }
.hub-group h2 { margin-top: 14px; }
.doc .hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc .hub-list li { margin: 0; }
.hub-list a { display: block; padding: 11px 14px; border: 1px solid #e6e6e6; border-left: 3px solid var(--chinnoo-yellow); border-radius: 8px; background: #fff; color: var(--c-text); text-decoration: none; }
.hub-list strong { display: block; font-size: 16px; line-height: 1.35; }
.hub-list span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--c-muted); }
.hub-list small { display: block; margin-top: 4px; font-size: 14px; color: #777; }
@media (hover: hover) { .hub-list a:hover { border-left-color: var(--chinnoo-red); } .hub-list a:hover strong { color: var(--chinnoo-red); } }
.hub-help { margin-top: 18px; }
@media (min-width: 768px) { .doc .hub-list { grid-template-columns: 1fr 1fr; } .hub-list a { height: 100%; } }
.policy .policy-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--c-muted); font-size: 14px; margin: 0 0 6px; }
.policy .policy-owner { font-size: 14.5px; color: var(--c-muted); margin: 0 0 14px; }
.policy .toc { background: var(--c-soft); border: 1px solid var(--c-divider); border-left: 4px solid var(--c-yellow); border-radius: 10px; padding: 10px 14px 4px; margin: 0 0 14px; }
.policy .toc-title { margin: 0 0 4px; font-weight: 700; font-size: 15px; }
.policy .toc ol { margin: 0; padding-left: 20px; }
.policy .toc li { margin: 0; font-size: 15px; }
.policy .toc a { display: inline-block; padding: 5px 0; text-decoration: none; color: var(--c-text); }
.policy .toc a:hover, .policy .toc a:focus-visible { color: var(--c-red); text-decoration: underline; }
.policy h2 { scroll-margin-top: 84px; }
.policy .tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 12px; }
.policy .tbl-scroll table { margin: 0; min-width: 0; }
.policy table.kv th { width: 38%; background: var(--c-soft); font-weight: 600; }
.policy td, .policy th { overflow-wrap: anywhere; }
.policy .policy-contact { margin-top: 22px; border-top: 1px solid var(--c-divider); padding-top: 4px; }
.policy .policy-contact dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 12px; margin: 8px 0 14px; font-size: 15.5px; }
.policy .policy-contact dt { font-weight: 700; }
.policy .policy-contact dd { margin: 0; overflow-wrap: anywhere; }
.policy .lx-live { background: #fdecec; border-left: 4px solid var(--chinnoo-red); padding: 10px 12px; border-radius: 8px; }
.policy-others { margin: 14px 0 0; background: var(--c-white); border: 1px solid var(--c-card-border); border-radius: var(--radius); padding: 12px 16px; }
.policy-others .po-title { margin: 0 0 6px; font-weight: 700; }
.policy-others ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.policy-others a { display: flex; align-items: center; min-height: 38px; font-size: 15px; }
.policy-others a[aria-current="page"] { font-weight: 700; color: var(--c-red); text-decoration: none; }
@media (max-width: 560px) {
  .policy .policy-contact dl { grid-template-columns: 1fr; gap: 0; }
  .policy .policy-contact dd { margin-bottom: 8px; }
  .policy table.kv th { width: 42%; }
  .policy .doc, .policy article { padding-inline: 14px; }
}
/* Link chính sách ở bước đặt món / màn hình đã gửi yêu cầu */
.policy-links { font-size: 13.5px; color: var(--c-muted); margin: 0 0 10px; line-height: 1.6; }
.policy-links a { font-weight: 600; white-space: nowrap; }
.done-links { margin: 2px 0 0; font-size: 14px; line-height: 1.6; }
.done-links a { font-weight: 600; white-space: nowrap; }

/* ---------- Trang nội dung (giới thiệu, không gian, chính sách, điều khoản) ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 16px 16px 32px; }
.doc-wide { max-width: calc(1200px + 2 * var(--gutter)); padding-inline: var(--gutter); }
.doc article { background: var(--c-white); border: 1px solid var(--c-card-border); border-radius: var(--radius); padding: 18px 18px 8px; }
.doc h1, .page-title { font-size: 24px; margin: 4px 0 4px; color: var(--c-text); line-height: 1.25; font-weight: 700; }
.doc .updated { color: var(--c-muted); font-size: 14px; margin: 0 0 14px; }
.doc h2 { font-size: 18px; margin: 22px 0 8px; color: var(--c-text); display: flex; gap: 8px; align-items: center; }
.doc h2::before { content: ""; width: 5px; height: 18px; background: var(--c-red); border-radius: 3px; }
.doc p, .doc li { font-size: 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .callout { background: var(--yellow-soft); border-left: 4px solid var(--c-yellow); padding: 10px 12px; border-radius: 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 12px; }
.doc th, .doc td { border: 1px solid var(--c-divider); padding: 8px; text-align: left; vertical-align: top; }
.doc th { background: var(--c-soft); }
.doc-hero { margin: 0 0 14px; }
.doc-hero img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; background: var(--c-soft); }
.doc-hero figcaption { font-size: 13.5px; color: var(--c-muted); margin-top: 6px; }
.mural img { aspect-ratio: 1344 / 565; height: auto; max-height: none; object-fit: contain; background: var(--c-yellow); }
.doc .info-card { margin: 16px 0; }
.next-links { display: grid; gap: 8px; margin: 16px 0 10px; }

/* ---------- Điện thoại nhỏ ---------- */
@media (max-width: 380px) {
  .brand-logo { width: 150px; }
  .card .info { padding: 8px 8px 10px; }
  .info-card dl { grid-template-columns: 1fr; gap: 2px; }
  .info-card dd { margin-bottom: 6px; }
}

/* ---------- Máy tính bảng ---------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .modal { align-items: center; padding: 24px; }
  .modal-card { border-radius: 18px; }
  .cart-panel { left: auto; right: 0; top: 0; bottom: 0; width: 420px; max-height: none; border-radius: 0; transform: translateX(105%); }
  .cart-panel.open { transform: none; }
  .next-links { grid-template-columns: 1fr 1fr; }
  .lb-nav { width: 56px; height: 72px; }
}
/* Từ 768px: banner ngang 1200x450 (8:3) nằm trong khung nội dung; chân trang 3 cột luôn mở */
@media (min-width: 768px) {
  .promo-frame { aspect-ratio: 12 / 5; } /* ảnh ngang 1920x800, vẫn phủ sát hai mép */
}

/* ---------- Máy tính (từ 1.024px): logo, điều hướng, Zalo, giỏ hàng trên một hàng; không dùng thanh đáy ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 24px; --hd-stick: 73px; }
  .site-header .wrap { max-width: calc(1180px + 2 * var(--gutter)); }
  .site-header { position: sticky; top: 0; }
  .hd { height: 72px; gap: 10px; }
  .brand { margin-right: 0; }
  .brand-logo { width: 150px; }
  .nav-toggle, .drawer, .drawer-backdrop { display: none; }
  .site-nav { display: flex; flex: 1; justify-content: center; }
  .site-nav .nav-link { padding: 0 6px; font-size: 14.5px; }
  .site-nav .nav-link[aria-current="page"] { color: var(--c-red); box-shadow: inset 0 -3px 0 var(--c-yellow); border-radius: 0; }
  .hd-actions { display: flex; gap: 8px; flex-shrink: 0; }
  .hd-btn { padding: 0 12px; font-size: 14.5px; }
  .toolbar .wrap { display: flex; align-items: center; gap: 16px; }
  .toolbar { padding: 10px 0; }
  .search { width: 340px; flex-shrink: 0; }
  .cats { padding: 0; flex: 1; }
  .layout { padding-top: 16px; padding-bottom: 24px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu-title { font-size: 25px; }
}
@media (min-width: 1024px) and (hover: hover) { .site-nav .nav-link:hover { color: var(--c-red); } }
/* 1.024–1.279px: Zalo và Giỏ hàng thành nút tròn chỉ có biểu tượng (có nhãn cho trình đọc màn hình) để cả hàng vừa */
@media (min-width: 1024px) and (max-width: 1279px) { .hd-btn-txt { display: none; } .hd-btn { width: 44px; padding: 0; justify-content: center; } .hd-btn .ico-wrap { margin-right: 0; } }
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .hd { gap: 12px; } /* khung header 1180px: logo + 5 mục + 2 icon + 2 nút vừa một hàng */
  .brand-logo { width: 170px; }
  .site-nav .nav-link { padding: 0 8px; font-size: 15.5px; }
  .hd-btn { padding: 0 14px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .cart-panel { transition: none !important; } .g-item img { transition: none !important; } }

/* ---------- Cụm biểu tượng nét mảnh trên hàng logo: kính lúp → tài khoản → (Danh mục) ---------- */
:root { --c-input-bg: #f6f6f6; --c-messenger: #0084ff; }
.hd-icons { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.hd-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: var(--chinnoo-black); border-radius: 10px; text-decoration: none; }
.hd-icon + .hd-icon { margin-left: -2px; } /* icon 24px trong vùng bấm 40px => hai icon cách nhau 14px */
.hd-icon svg { width: 24px; height: 24px; }
.hd-icon svg, .nav-toggle svg { stroke-width: 1.8; } /* cùng độ dày nét */
.hd-icon[aria-expanded="true"] { color: var(--c-red); }

/* ---------- Hộp trắng có mũi nhọn ngay dưới biểu tượng (Tìm kiếm, Tài khoản) ---------- */
.pop { position: absolute; z-index: 45; background: var(--c-white); color: var(--c-text); border: 1px solid #e5e5e5; border-radius: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.12); padding: 18px 18px 16px; overflow-y: auto; overscroll-behavior: contain; }
.pop:focus { outline: none; }
.pop::before { content: ""; position: absolute; top: -7px; left: calc(var(--arrow-x, 50%) - 7px); width: 12px; height: 12px; background: var(--c-white); border-left: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5; transform: rotate(45deg); }
.pop-close { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; background: none; color: #777; display: grid; place-items: center; border-radius: 8px; }
.pop-close svg { width: 20px; height: 20px; }
.pop-title { margin: 0 32px 4px; text-align: center; font-size: 18px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #555; }
.pop-sub { margin: 0 0 14px; text-align: center; font-size: 14.5px; color: var(--c-text); padding-bottom: 12px; border-bottom: 1px solid var(--c-divider); }
.pop-form { display: flex; align-items: center; background: var(--c-input-bg); border: 1px solid var(--c-divider); border-radius: 2px; margin-top: 12px; }
.pop-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 46px; padding: 0 14px; font-size: 16px; color: var(--c-text); }
.pop-form input::placeholder { color: #666; }
.pop-form button { width: 46px; height: 46px; border: 0; background: none; color: #888; display: grid; place-items: center; }
.pop-form button svg { width: 22px; height: 22px; }
.pop-form:focus-within { border-color: #bbb; }
/* Gợi ý khi gõ: ảnh, tên, giá */
.sugg { list-style: none; margin: 8px 0 0; padding: 0; }
.sugg:empty { display: none; }
.sg-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--c-divider); background: none; text-align: left; color: var(--c-text); }
.sg-item img, .sg-ph { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; border: 1px solid var(--c-card-border); border-radius: 4px; background: var(--c-white); }
.sg-ph { display: block; background: var(--c-soft); }
.sg-txt { display: flex; flex-direction: column; min-width: 0; }
.sg-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.sg-price { color: var(--c-red); font-weight: 700; font-size: 14.5px; }
.sg-na { color: var(--c-muted); font-size: 13px; }
.sg-all { width: 100%; border: 0; background: none; color: var(--c-red); font-weight: 600; padding: 12px 4px 4px; text-align: center; font-size: 14.5px; }
.sg-empty { color: var(--c-muted); text-align: center; padding: 14px 0 4px; font-size: 14.5px; }
@media (hover: hover) { .sg-item:hover { background: #fafafa; } }
/* Form tài khoản */
.acc-form { display: grid; gap: 12px; }
.acc-form input:not([type=checkbox]):not([type=radio]) { width: 100%; height: 46px; border: 1px solid #cfcfcf; border-radius: 3px; padding: 0 12px; font-size: 16px; background: var(--c-white); color: var(--c-text); }
.acc-form input:not([type=checkbox]):not([type=radio]):focus { outline: 2px solid var(--c-yellow); border-color: var(--c-text); }
.acc-form .btn { min-height: 48px; font-size: 16px; border-radius: 3px; }
.acc-msg { margin: 0; padding: 8px 10px; border-radius: 6px; background: #fdecea; color: #8c1d18; font-size: 14px; }
.acc-msg.ok { background: #dff3e5; color: #155228; }
.acc-links { margin: 12px 0 0; font-size: 14px; color: var(--c-text); }
.acc-links + .acc-links { margin-top: 4px; }
.acc-link { border: 0; background: none; padding: 4px 0; color: var(--c-red); font-size: 14px; cursor: pointer; }
.acc-hello { margin: 8px 0 2px; text-align: center; font-size: 16px; }
.acc-email { margin: 0 0 14px; text-align: center; color: var(--c-muted); font-size: 14px; overflow-wrap: anywhere; }

/* ---------- Nút nổi Liên hệ (góc phải, trên thanh đặt món) + bảng Hỗ trợ khách hàng ---------- */
.fab-contact { position: fixed; right: 17px; bottom: calc(var(--bottom-bar-height) + 72px + env(safe-area-inset-bottom)); z-index: 31; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--c-red); color: var(--c-white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; box-shadow: 0 0 0 5px rgba(217,58,16,.18), 0 6px 16px rgba(0,0,0,.25); transition: transform .2s ease, visibility 0s linear 0s; }
.fab-contact svg { width: 24px; height: 24px; fill: currentColor; }
.fab-contact span { font-size: 10.5px; font-weight: 600; line-height: 1; }
html.overlay-open .fab-contact, html.kb-open .fab-contact { transform: scale(0); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
.contact-panel { position: fixed; right: 12px; bottom: calc(var(--bottom-bar-height) + 144px + env(safe-area-inset-bottom)); z-index: 46; width: min(320px, calc(100vw - 24px)); background: var(--c-white); border: 1px solid #e5e5e5; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 18px 16px 14px; }
.contact-panel .pop-title { text-transform: none; color: var(--c-text); font-size: 18px; }
.contact-panel .pop-sub { margin-bottom: 12px; padding-bottom: 10px; }
.cp-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--c-divider); text-decoration: none; color: var(--c-text); margin-top: 8px; }
.cp-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.cp-ico svg { width: 24px; height: 24px; }
.cp-zalo .cp-ico { background: var(--c-zalo); }
.cp-messenger .cp-ico { background: var(--c-messenger); }
.cp-txt { display: flex; flex-direction: column; line-height: 1.3; }
.cp-txt strong { font-size: 16px; }
.cp-txt small { color: var(--c-muted); font-size: 13px; }
@media (hover: hover) { .cp-opt:hover { background: #fafafa; } }
.drawer-link { display: flex; align-items: center; width: 100%; min-height: 52px; font-size: 18px; font-weight: 500; color: var(--c-text); background: none; border: 0; padding: 0; text-align: left; }
.reset-box { max-width: 480px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .fab-contact, html.overlay-open .fab-contact, .fab-store, html.overlay-open .fab-store { transition: none; } }
@media (min-width: 1024px) {
  .hd-icons { gap: 0; }
  .fab-contact { right: 18.5px; } /* cùng trục giữa với nút CỬA HÀNG (67px, cách mép 16px) */
  .contact-panel { right: 24px; }
}

/* Nút Nhắn Messenger (fanpage chi nhánh) */
.btn-messenger { background: var(--c-messenger, #0084ff); color: #fff; }

/* ---------- Màu thanh 3 nút, tiêu đề combo, nút CỬA HÀNG (theo ảnh mẫu) ---------- */
:root {
  --c-kicker: #d33d1e;      /* dòng COMBO TIẾT KIỆM */
  --c-pin-1: #ffcc73;       /* vòng tròn ghim: vàng chuyển */
  --c-pin-2: #f4ac24;
  --c-store-label: #eb1b17; /* nhãn CỬA HÀNG */
}

/* ---------- Nút CỬA HÀNG: bên phải, ngay trên thanh 3 nút; mở Google Maps chỉ đường tới quán ---------- */
.fab-store { position: fixed; right: 10px; bottom: calc(var(--bottom-bar-height) + 10px + env(safe-area-inset-bottom)); z-index: 31; width: 67px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .2s ease, opacity .15s ease, visibility 0s linear 0s; }
.fs-pin { box-sizing: border-box; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(180deg, var(--c-pin-1), var(--c-pin-2)); border: 1.5px solid var(--c-white); box-shadow: 0 2px 5px rgba(0,0,0,.11); display: grid; place-items: center; }
.fs-pin svg { width: 16px; height: 16px; fill: var(--c-white); }
.fs-label { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 17px; padding: 0 8px; background: var(--c-store-label); color: var(--c-white); font-size: 10px; font-weight: 600; line-height: 1; border-radius: 999px; white-space: nowrap; }
/* Màn hình thấp: khi nút đè lên chữ tiêu đề Combo thì tạm ẩn, cuộn qua sẽ hiện lại (site.js) */
.fab-store.is-covering { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility 0s linear .15s; }
@media (min-width: 1024px) { .fab-store { right: 16px; } } /* đặt SAU quy tắc gốc để không bị ghi đè */
.fab-store:focus-visible { outline: none; }
.fab-store:focus-visible .fs-pin { outline: 3px solid var(--c-zalo); outline-offset: 2px; }
html.overlay-open .fab-store, html.kb-open .fab-store { transform: scale(0); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
/* Cuối trang (thanh pháp lý đen đang hiện): ẩn nút nổi để không che chữ; bảng Liên hệ đang mở thì giữ nút */
html.foot-end .fab-store, html.foot-end .fab-contact[aria-expanded="false"] { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility 0s linear .15s; }
/* Máy tính: nút Liên hệ / CỬA HÀNG nổi ở góc phải => đưa nút tạm dừng banner sang trái để không bị che */
@media (min-width: 1024px) { .promo-pause { right: auto; left: 16px; } }


/* ---------- Phương thức liên hệ (Zalo / Messenger) ---------- */
.contact-pick { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.contact-pick legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.field .cm-opt { display: flex; font-weight: 400; margin-bottom: 0; } /* thắng .field label { display:block } */
.cm-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--c-search-border); border-radius: 10px; margin-top: 8px; cursor: pointer; background: var(--c-white); }
.cm-opt input[type=radio] { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--c-red); flex-shrink: 0; }
.cm-opt input[type=radio]:focus-visible { outline: 3px solid var(--c-zalo); outline-offset: 2px; }
.cm-opt > span { display: flex; flex-direction: column; line-height: 1.35; }
.cm-opt small span { white-space: nowrap; }
.cm-opt small { color: var(--c-muted); font-size: 13.5px; }
.cm-opt:has(input:checked) { border-color: var(--c-red); background: #fff7f4; }
.cm-hint { margin: -4px 0 14px; }

/* ---------- Gửi thành công: một khung gọn ---------- */
.done-box { border: 1.5px solid #bfe3c8; background: #f3fbf5; border-radius: 12px; padding: 16px; display: grid; gap: 8px; }
.done-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--c-text); }
.done-title strong { white-space: nowrap; }
.done-text { margin: 0; font-size: 15px; line-height: 1.45; }
.done-msg { display: grid; gap: 6px; margin-top: 4px; }
.done-hint { margin: 0; font-size: 13.5px; color: var(--c-muted); }
.done-copy { margin: 0; padding: 8px 10px; border: 1px dashed #b9c9e6; border-radius: 8px; background: var(--c-white); font-size: 14px; user-select: all; overflow-wrap: anywhere; }
.done-text strong { white-space: nowrap; }


/* ---------- Nút Liên hệ nổi: bỏ trên điện thoại / máy tính bảng (Liên hệ vẫn có trong Danh mục, chân trang, bảng hỗ trợ) ---------- */
@media (max-width: 1023px) {
  .fab-contact { display: none; }
  .contact-panel { bottom: calc(var(--bottom-bar-height) + 12px + env(safe-area-inset-bottom)); }
}
.promo-slide img { object-position: center; }

/* =====================================================================
   THÀNH VIÊN + VÍ LÌ XÌ (15/11/2026)
   Khung đăng nhập theo bố cục chinnoo.vn: nền trắng, tiêu đề viết hoa căn giữa, ô nhập viền xám mảnh,
   nút đỏ Chinnoo, link đỏ. Thẻ số dư dùng bộ màu nhận diện vàng / đen / đỏ / trắng.
   ===================================================================== */
:root { --c-login-red: #E13212; --c-input-border: #dcdcdc; }
.pop-account { padding: 22px 20px 18px; }
.pop-account .pop-title, .acc-card .pop-title { font-size: 18px; font-weight: 600; letter-spacing: .5px; color: #555; margin: 0 28px 4px; line-height: 1.35; }
.pop-account .pop-sub, .acc-card .pop-sub { color: #444; font-size: 14.5px; margin-bottom: 16px; padding-bottom: 14px; }
.acc-form { display: grid; gap: 12px; }
.acc-form > input, .acc-form .pw-wrap input, .acc-card .field input:not([type=checkbox]):not([type=radio]), .acc-card .field select,
.acc-box .field input:not([type=checkbox]):not([type=radio]), .acc-box .field select, .acc-box .field textarea {
  width: 100%; height: 46px; min-height: 46px; border: 1px solid var(--c-input-border); border-radius: 2px; padding: 0 12px; font-size: 16px; background: var(--c-white); color: var(--c-text); font-family: inherit;
}
.acc-box .field textarea { height: auto; padding: 10px 12px; }
.acc-form > input::placeholder, .acc-form .pw-wrap input::placeholder { color: #8a8a8a; }
.acc-form > input:focus, .acc-form .pw-wrap input:focus, .acc-card .field input:focus, .acc-card .field select:focus, .acc-box .field input:focus, .acc-box .field select:focus, .acc-box .field textarea:focus { border-color: #9a9a9a; outline: 2px solid rgba(225, 50, 18, .18); outline-offset: 0; }
.acc-card .field label, .acc-box .field label { font-weight: 600; font-size: 14.5px; margin-bottom: 5px; }
.acc-box .field input[readonly] { background: #f6f6f6; color: #666; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px !important; }
.pw-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: none; color: #8a8a8a; display: grid; place-items: center; border-radius: 4px; }
.pw-eye svg { width: 20px; height: 20px; }
.pw-eye.on { color: var(--c-login-red); }
.acc-submit { width: 100%; min-height: 46px !important; border-radius: 3px !important; background: var(--c-login-red); color: var(--c-white); font-size: 15.5px !important; font-weight: 600; letter-spacing: .2px; }
.acc-submit:hover { filter: brightness(.95); }
.acc-submit:disabled { background: #e78a76; cursor: progress; }
.acc-submit.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); border-top-color: #fff; animation: acc-spin .7s linear infinite; }
@keyframes acc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .acc-submit.is-loading::after { animation-duration: 2s; } }
.acc-links { margin: 2px 0 0; font-size: 14px; color: #333; }
.acc-links + .acc-links { margin-top: -6px; }
.acc-links.center { text-align: center; }
.acc-link, a.acc-link { border: 0; background: none; padding: 4px 0; color: var(--c-login-red); font-size: 14px; cursor: pointer; text-decoration: none; font-family: inherit; }
.acc-link:hover { text-decoration: underline; }
.acc-msg { margin: 0; padding: 9px 11px; border-radius: 4px; background: #fdecea; color: #8c1d18; font-size: 14px; line-height: 1.45; }
.acc-msg.ok { background: #e6f4ea; color: #155228; }
.acc-hello { margin: 4px 0 12px; text-align: center; font-size: 16px; }
.acc-nav { display: grid; margin-top: 12px; border-top: 1px solid var(--c-divider); }
.acc-nav a, .acc-nav button { display: flex; align-items: center; min-height: 46px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--c-divider); background: none; color: var(--c-text); text-decoration: none; font-size: 15px; text-align: left; font-family: inherit; }
.acc-nav button { color: var(--c-login-red); }
@media (hover: hover) { .acc-nav a:hover { background: #fafafa; } }
.acc-dot { position: absolute; right: 7px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: #1d7a3a; box-shadow: 0 0 0 2px var(--c-white); }

/* ---------- Thẻ số dư Lì xì ---------- */
.lx-card { position: relative; display: grid; align-content: start; gap: 2px; padding: 16px 16px 14px; border-radius: 14px; background: var(--chinnoo-black); color: var(--chinnoo-white); text-decoration: none; overflow: hidden; isolation: isolate; box-shadow: 0 6px 18px rgba(40,36,37,.18); }
.lx-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--chinnoo-yellow); }
.lx-badge { justify-self: start; align-self: start; background: var(--chinnoo-red); color: var(--chinnoo-white); font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.lx-label { font-size: 13.5px; color: rgba(255,255,255,.78); }
.lx-amount { font-size: 30px; line-height: 1.15; font-weight: 800; color: var(--chinnoo-yellow); letter-spacing: .2px; }
.lx-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(255,255,255,.85); padding-top: 6px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.12); max-width: calc(100% - 64px); }
.lx-row b { color: var(--chinnoo-white); white-space: nowrap; }
.lx-link { margin-top: 8px; color: var(--chinnoo-yellow); font-size: 14px; font-weight: 600; text-decoration: none; justify-self: start; }
.lx-env { position: absolute; right: 12px; top: 16px; width: 54px; height: 54px; z-index: -1; transform: rotate(8deg); opacity: .95; }
.lx-mini { padding: 12px 14px; }
.lx-mini .lx-amount { font-size: 24px; }
.lx-mini .lx-sub { font-size: 13.5px; color: rgba(255,255,255,.85); }
.lx-mini .lx-sub b { color: #fff; }
.lx-mini .lx-env { width: 44px; height: 44px; top: 10px; }

/* ---------- Trang tài khoản ---------- */
.acc-page { max-width: 1120px; padding-bottom: 40px; }
.acc-card { max-width: 440px; margin: 8px auto 0; background: var(--c-white); border: 1px solid #e5e5e5; border-radius: 4px; padding: 22px 18px 18px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.acc-card-wide { max-width: 640px; }
.acc-card h1.pop-title { text-transform: uppercase; text-align: center; }
.acc-card.center, .center { text-align: center; }
.acc-success h1 { font-size: 22px; margin: 6px 0 8px; }
.acc-success p { margin: 0 0 8px; }
.acc-success .lx-card { text-align: left; margin: 14px 0; }
.ok-ico { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: #e6f4ea; color: #1d7a3a; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn-row.center { justify-content: center; }
.acc-page .btn { min-height: 46px; font-size: 15.5px; border-radius: 4px; }
.form-grid { display: grid; gap: 4px; }
.form-grid .field { margin-bottom: 8px; }
.form-grid .checkbox { padding-top: 4px; min-height: 36px; font-size: 14.5px; }
.form-grid .checkbox a { color: var(--c-login-red); }
.form-grid > .ferr { margin: -6px 0 4px 34px; }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.acc-dash { display: grid; gap: 16px; }
.acc-hi h1 { font-size: 22px; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.acc-hi p { margin: 2px 0 12px; color: var(--c-muted); font-size: 14px; }
.acc-side .lx-card { margin-bottom: 12px; }
.acc-menu { display: grid; background: var(--c-white); border: 1px solid #ececec; border-radius: 12px; overflow: hidden; }
.acc-menu a, .acc-menu button { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--c-divider); background: none; color: var(--c-text); text-decoration: none; font-size: 15.5px; text-align: left; font-family: inherit; }
.acc-menu a::after { content: "\203A"; color: #aaa; font-size: 20px; }
.acc-menu a[aria-current] { color: var(--c-login-red); font-weight: 600; background: #fff7f4; }
.acc-menu button { color: var(--c-login-red); border-bottom: 0; }
.acc-box { background: var(--c-white); border: 1px solid #ececec; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.acc-box h2 { font-size: 18px; margin: 0 0 12px; }
.acc-box h3 { font-size: 16px; margin: 16px 0 8px; }
/* Xóa tài khoản / quyền dữ liệu */
.btn-danger { background: var(--chinnoo-red); color: var(--chinnoo-white); border: 1.5px solid var(--chinnoo-red); }
.acc-danger { border-color: #f1c6c6; background: #fffafa; }
.acc-box ul { padding-left: 20px; margin: 6px 0 10px; }
.acc-box ul li { margin-bottom: 4px; }
.acc-notice { background: #fff8db; border: 1px solid #f4dc7a; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.acc-notice p { margin: 4px 0; }
.acc-notice small { color: var(--c-muted); white-space: nowrap; }
.addr-list { list-style: none; margin: 0 0 6px; padding: 0; }
.addr { border: 1px solid var(--c-divider); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.addr p { margin: 2px 0; overflow-wrap: anywhere; }
.addr-act .link-btn { margin-right: 14px; min-height: 36px; padding: 4px 0; color: var(--c-login-red); }
.addr-act .del { color: #8c1d18; }
.addr-form { border-top: 1px solid var(--c-divider); margin-top: 10px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: #f1f1f1; color: #555; vertical-align: middle; white-space: nowrap; }
.chip-pending, .chip-pending_confirm, .chip-reserved { background: #fff3cd; color: #7a4f00; }
.chip-done, .chip-converted, .chip-completed { background: #e6f4ea; color: #155228; }
.chip-cancelled, .chip-released, .chip-refunded { background: #f1f1f1; color: #666; }
.crumb { margin: 0 0 6px; font-size: 14px; }
.crumb a { color: var(--c-login-red); text-decoration: none; }
.wl-top { display: grid; gap: 14px; margin: 10px 0 14px; }
.wl-top .acc-box { margin: 0; }
.wl-prog p { margin: 0 0 8px; }
.rules { margin: 0; padding-left: 20px; }
.rules li { margin-bottom: 6px; }
.tx-list { list-style: none; margin: 0; padding: 0; }
.tx { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-divider); }
.tx:last-child { border-bottom: 0; }
.tx-l, .tx-r { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tx-l .chip { align-self: flex-start; }
.tx-r { align-items: flex-end; text-align: right; flex-shrink: 0; }
.amt { font-weight: 700; white-space: nowrap; }
.amt.plus { color: #1d7a3a; }
.amt.minus { color: #b3261e; }
.amt.zero { color: #7a4f00; }
.chip-outstanding { background: #fde7e7; color: #8c1d18; }
.chip-recovered { background: #e6f4ea; color: #155228; }
/* Nhóm giao dịch Lì xì: Cộng / Chờ cộng / Sử dụng / Hoàn lại / Thu hồi / Điều chỉnh / Hết hạn */
.tx-cat { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-right: 4px; background: #282425; color: #FED430; vertical-align: 1px; }
.tx-cat.cat-cong, .tx-cat.cat-hoan_lai { background: #1d7a3a; color: #fff; }
.tx-cat.cat-thu_hoi, .tx-cat.cat-het_han { background: #b3261e; color: #fff; }
.tx-cat.cat-cho_cong { background: #FED430; color: #282425; }
.tx-l > .muted { overflow-wrap: anywhere; }
.tx-l { flex: 1 1 0; }
@media (max-width: 520px) { .tx { gap: 8px; } .tx-r { max-width: 31%; } .tx-r .small { font-size: 12px; } }
.small { font-size: 13px; }
.muted { color: var(--c-muted); }
.ord-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ord-code { font-size: 17px; }
.ord p { margin: 4px 0; }
.ord-items { overflow-wrap: anywhere; }
.ord-sum { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--c-divider); font-size: 14.5px; }
.ord-sum dt { color: var(--c-muted); }
.ord-sum dd { margin: 0; text-align: right; }
@media (min-width: 900px) {
  .acc-dash { grid-template-columns: 340px minmax(0, 1fr); align-items: start; gap: 24px; }
  .acc-side { position: sticky; top: calc(var(--hd-stick) + 16px); }
  .wl-top { grid-template-columns: 360px minmax(0, 1fr); }
  .acc-card { margin-top: 24px; padding: 26px 26px 22px; }
}

/* ---------- Giỏ hàng: thành viên + dùng Lì xì ---------- */
.mb-box { border: 1px solid #f0d97a; background: #fffbea; border-radius: 12px; padding: 12px; margin: 4px 0 14px; font-size: 14.5px; }
.mb-box p { margin: 0 0 6px; }
.mb-box a { color: var(--c-login-red); font-weight: 600; }
.mb-head { display: flex; justify-content: space-between; align-items: center; gap: 4px 8px; flex-wrap: wrap; }
.mb-bal { font-weight: 700; color: var(--chinnoo-black); white-space: nowrap; }
.mb-box .checkbox { padding-top: 2px; min-height: 36px; }
.mb-amount { display: flex; align-items: center; gap: 8px; margin: 4px 0 0 34px; flex-wrap: wrap; }
.field .mb-amount input { width: 140px; min-height: 42px; padding: 8px 10px; border-radius: 6px; font-size: 16px; }
.mb-amount .link-btn { min-height: 36px; padding: 4px 0; color: var(--c-login-red); white-space: nowrap; }
.mb-box .ferr { margin-left: 34px; }
.totals .t-row.lixi { color: #155228; }
.totals .t-row.lixi-earn { color: #7a4f00; font-size: 14px; }
.done-lixi { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fff8db; border: 1px solid #f4dc7a; font-size: 14.5px; }

.ok-text { color: #1d7a3a; font-weight: 600; }
.acc-dash > #accNotices { grid-column: 1 / -1; }
.acc-dash > #accNotices:empty { display: none; }
#lxAmount { width: 150px !important; flex: 0 0 auto; }
.mb-amount > span { font-weight: 500; }
.form-grid .checkbox input { width: 22px; height: 22px; margin-top: 1px; }
.acc-box .field input[readonly]:not([type=checkbox]):not([type=radio]) { background: #f6f6f6; color: #666; cursor: default; }

/* =====================================================================
   BẢN ĐỒ GOONG – gợi ý địa chỉ, định vị, ghim, khoảng cách (16/11/2026)
   ===================================================================== */
.ac-wrap { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; list-style: none; margin: 0; padding: 4px 0; background: var(--c-white); border: 1px solid #d9d9d9; border-radius: 10px; box-shadow: 0 8px 22px rgba(0,0,0,.14); max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.ac-list li { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--c-divider); line-height: 1.3; }
.ac-list li:last-child { border-bottom: 0; }
.ac-list li strong { font-size: 15px; font-weight: 600; color: var(--c-text); }
.ac-list li span { font-size: 13px; color: var(--c-muted); }
.ac-list li.on, .ac-list li:hover { background: #fff4ef; }
.ac-list li.ac-note { cursor: default; color: var(--c-muted); font-size: 13.5px; background: none; }
.loc-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--c-login-red, #E13212); border-radius: 999px; background: var(--c-white); color: var(--c-login-red, #E13212); font-weight: 600; font-size: 14.5px; }
.loc-btn:disabled { opacity: .6; }
#locHint[data-kind="warn"] { color: #8c1d18; }
.saved-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.sa-title { font-size: 13.5px; color: var(--c-muted); }
.sa-chip { min-height: 34px; padding: 0 12px; border: 1px solid #e3c86a; border-radius: 999px; background: #fffbea; color: var(--c-text); font-size: 14px; font-weight: 600; }
.dmap { margin-top: 10px; }
.dmap-canvas { width: 100%; height: 220px; border-radius: 12px; overflow: hidden; border: 1px solid #e5e5e5; background: #eef1f3; touch-action: none; }
@media (min-width: 768px) { .dmap-canvas { height: 260px; } }
.dmap-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dmap-tools button { min-height: 36px; padding: 0 10px; border: 1px solid #d9d9d9; border-radius: 8px; background: var(--c-white); color: var(--c-text); font-size: 13.5px; font-weight: 500; }
.dmap-tools button:disabled { opacity: .6; }
.dmap .hint { margin-top: 4px; }
.dmap-steps { margin: 8px 0 0; padding: 8px 10px 8px 28px; font-size: 13.5px; background: #fafafa; border-radius: 8px; max-height: 220px; overflow-y: auto; }
.dmap-steps li { margin: 2px 0; }
.dmap-steps .dm-sum { list-style: none; margin-left: -18px; font-weight: 700; }
.dinfo { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f3fbf5; border: 1px solid #bfe3c8; font-size: 14.5px; }
.dinfo p { margin: 2px 0; display: flex; justify-content: space-between; gap: 10px; }
.dinfo p.muted, .dinfo .dinfo-note { display: block; color: var(--c-muted); font-size: 13px; }
.dinfo[data-kind="warn"], .dinfo[data-kind="pending"] { background: #fff8db; border-color: #f4dc7a; }
.dinfo[data-kind="warn"] p { display: block; }
/* Ghim trên bản đồ */
.gm-pin { width: 30px; height: 40px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cpath d='M15 0C6.7 0 0 6.6 0 14.8 0 25.9 15 40 15 40s15-14.1 15-25.2C30 6.6 23.3 0 15 0z' fill='%23E13212'/%3E%3Ccircle cx='15' cy='14.5' r='5.5' fill='%23fff'/%3E%3C/svg%3E"); cursor: grab; }
.gm-store { display: grid; place-items: center; min-width: 46px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--chinnoo-black, #282425); color: var(--chinnoo-yellow, #FED430); font-size: 12px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.gm-store::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--chinnoo-black, #282425); border-bottom: 0; }
.chip-label { background: #282425; color: #FED430; }

/* Tài khoản: nhận thông báo Lì xì qua Zalo */
.zalo-steps { margin: 6px 0 12px; padding-left: 20px; }
.zalo-steps li { margin: 4px 0; }
.zalo-ok { background: #e6f4ea; border: 1px solid #b9dfc4; color: #155228; border-radius: 10px; padding: 10px 12px; }
.zalo-code { margin-top: 14px; background: #fff8db; border: 1px solid #f4dc7a; border-radius: 12px; padding: 12px 14px; }
.zalo-code .code-big { font-size: 30px; font-weight: 800; letter-spacing: 6px; margin: 4px 0; font-family: ui-monospace, Consolas, monospace; color: #282425; }
.zalo-box .btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
