/* =====================================================================
   THEME "MẶC ĐỊNH" v2 — Shop.donloc
   Màu chủ đạo / màu nhấn / bo góc / phông đọc từ cài đặt theme (layout/theme.liquid đặt biến CSS).
   Thứ tự: token → nền tảng → nút, nhãn → đầu trang → ngăn kéo, giỏ mini, nav dưới, nút nổi → trang chủ
   → lưới & thẻ sản phẩm → danh mục/tìm kiếm → chi tiết → giỏ → thanh toán → đơn → chân trang → di động.
   ===================================================================== */
:root {
  --nen: #f4f6f9; --the: #ffffff; --chu: #0f172a; --chu-2: #475569; --chu-mo: #8b95a5; --vien: #e6e9ef; --vien-dam: #d3d9e2;
  --bong-1: 0 1px 2px rgba(15,23,42,.05), 0 2px 6px -2px rgba(15,23,42,.06);
  --bong-2: 0 14px 34px -14px rgba(15,23,42,.22);
  --bong-3: 0 28px 60px -22px rgba(15,23,42,.32);
  --chinh-nhat: color-mix(in srgb, var(--mau-chinh) 10%, #fff);
  --chinh-dam: color-mix(in srgb, var(--mau-chinh) 82%, #000);
  --nhan-nhat: color-mix(in srgb, var(--mau-nhan) 12%, #fff);
  --xanh: #16a34a; --do: #dc2626; --vang: #d97706;
  --dau-cao: 128px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--chu); background: var(--nen); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mau-chinh); }
button { font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
ul { margin: 0; padding: 0; list-style: none; }
.bao { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.mo { color: var(--chu-mo); font-size: 13.5px; }
.mono { font-family: ui-monospace, Consolas, 'SF Mono', monospace; }
.xanh { color: var(--xanh) !important; }
.nhan-mau { color: var(--mau-nhan) !important; }
.i { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.noi-dung { min-height: 60vh; padding-bottom: 56px; }
[hidden] { display: none !important; }
.an-di-dong { }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--mau-chinh) 45%, transparent); outline-offset: 2px; border-radius: 4px; }

/* ---------- nút ---------- */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--goc-nho); font-weight: 700; font-size: 14.5px; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease, filter .2s; white-space: nowrap; line-height: 1.2; text-decoration: none !important; }
.nut:active { transform: translateY(1px); }
.nut .i { width: 17px; height: 17px; }
.nut--nhan { background: var(--mau-nhan); color: #fff; box-shadow: 0 10px 22px -12px var(--mau-nhan); }
.nut--nhan:hover { filter: brightness(1.07); color: #fff; box-shadow: 0 14px 28px -12px var(--mau-nhan); }
.nut--chinh { background: var(--mau-chinh); color: #fff; }
.nut--chinh:hover { filter: brightness(1.07); color: #fff; }
.nut--vien { background: #fff; color: var(--mau-chinh); border-color: var(--mau-chinh); }
.nut--vien:hover { background: var(--chinh-nhat); color: var(--mau-chinh); }
.nut--sang { background: var(--chinh-nhat); color: var(--mau-chinh); }
.nut--sang:hover { background: color-mix(in srgb, var(--mau-chinh) 18%, #fff); color: var(--mau-chinh); }
.nut--lon { padding: 14px 26px; font-size: 15.5px; }
.nut--nho { padding: 7px 13px; font-size: 13px; }
.nut--rong { width: 100%; }
.nut[disabled] { opacity: .6; cursor: wait; }
.nut-dong { width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--nen); display: grid; place-items: center; cursor: pointer; }
.nut-dong:hover { background: var(--vien); }

/* ---------- nhãn, thông báo, toast ---------- */
.nhan { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; letter-spacing: .03em; text-transform: uppercase; }
.nhan--hot { background: var(--mau-nhan); }
.nhan--moi { background: var(--mau-chinh); }
/* Nhãn giảm giá (22/09/2026): đỏ đậm, chữ to hơn Hot/Mới một nấc — trên trang danh mục nó là thứ phải đập vào mắt trước. */
.nhan--giam { background: var(--do); font-size: 11.5px; padding: 3px 8px; letter-spacing: 0; }
.tb { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--goc-nho); margin: 14px 0; font-weight: 500; line-height: 1.5; }
.tb .i { margin-top: 2px; }
.tb--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.tb--loi { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.thong-bao-bao { padding-top: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #0f172a; color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; box-shadow: var(--bong-3); max-width: calc(100% - 32px); }
.toast.hien { opacity: 1; transform: translate(-50%, 0); }
body.co-nav-duoi .toast { bottom: 84px; }

/* ---------- thanh trên cùng ---------- */
.thanh-tren { background: var(--mau-chinh); color: rgba(255,255,255,.92); font-size: 12.5px; }
.thanh-tren__hang { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 34px; }
.thanh-tren a, .thanh-tren span { display: inline-flex; align-items: center; gap: 6px; color: inherit; white-space: nowrap; }
.thanh-tren a:hover { color: #fff; }
.thanh-tren .i { width: 15px; height: 15px; }
.thanh-tren__trai { display: flex; gap: 18px; }
.thanh-tren__giua { flex: 1; text-align: center; overflow: hidden; }
.thanh-tren__tb { font-weight: 600; color: #fff; }
.thanh-tb { background: var(--mau-chinh); color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; font-weight: 600; }

/* ---------- đầu trang ---------- */
.dau { background: var(--the); position: sticky; top: 0; z-index: 60; transition: box-shadow .2s; }
.dau.cuon { box-shadow: 0 6px 24px -14px rgba(15,23,42,.35); }
.dau__hang { display: flex; align-items: center; gap: 22px; height: 78px; }
.dau__menu { display: none; border: 0; background: transparent; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; place-items: center; }
.dau__menu .i { width: 26px; height: 26px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none !important; }
.logo img { height: 46px; width: auto; max-width: 200px; object-fit: contain; }
.logo__mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--mau-chinh), var(--chinh-dam)); color: #fff; font-weight: 800; font-size: 20px; display: grid; place-items: center; box-shadow: 0 8px 18px -10px var(--mau-chinh); }
.logo__chu { font-weight: 800; font-size: 21px; color: var(--chu); letter-spacing: -.02em; white-space: nowrap; }
.logo:hover .logo__chu { color: var(--mau-chinh); }
.tim { flex: 1; position: relative; max-width: 620px; margin: 0 auto; }
.tim__form { display: flex; align-items: center; background: var(--nen); border: 1.5px solid var(--vien); border-radius: 999px; padding: 4px 4px 4px 16px; transition: .2s; }
.tim__form:focus-within { border-color: var(--mau-chinh); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--mau-chinh) 12%, transparent); }
.tim__icon { color: var(--chu-mo); width: 20px; height: 20px; }
.tim input { flex: 1; border: 0; background: transparent; padding: 9px 12px; font: inherit; font-size: 14.5px; outline: none; min-width: 0; }
.tim input::-webkit-search-cancel-button { -webkit-appearance: none; }
.tim__nut { border: 0; background: var(--mau-chinh); color: #fff; font-weight: 700; padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.tim__nut:hover { filter: brightness(1.07); }
.tim__goi-y { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--vien); border-radius: var(--goc-nho); box-shadow: var(--bong-3); z-index: 70; overflow: hidden; }
.tim__goi-y a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--vien); }
.tim__goi-y a:last-child { border-bottom: 0; }
.tim__goi-y a:hover { background: var(--chinh-nhat); }
.tim__goi-y img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--nen); flex-shrink: 0; }
.tim__goi-y .goi-y__ten { flex: 1; font-size: 14px; color: var(--chu); }
.tim__goi-y .goi-y__gia { font-weight: 700; color: var(--mau-nhan); font-size: 13.5px; }
.tim__goi-y .goi-y__nhom { padding: 8px 14px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--chu-mo); background: #fafbfc; }
.tim__goi-y .goi-y__dm { color: var(--mau-chinh); font-weight: 600; }
.tim__goi-y .goi-y__nhan { display: inline-block; vertical-align: 1px; margin-left: 4px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--mau-nhan); border-radius: 999px; padding: 1px 7px; }
.tim--trang { max-width: 720px; margin: 0 0 22px; }
.tim--trang .tim__form { background: #fff; padding: 6px 6px 6px 18px; }
/* Tìm thông minh (01/12/2026): ô gợi ý do /js/tim-goi-y.js của máy chủ vẽ VÀO .tim__goi-y — dòng đang chọn bằng phím ↑/↓, chữ khớp tô đậm, nhãn gợi ý gần đúng;
   trang tìm kiếm: khối «Không có sản phẩm khớp đủ — gợi ý gần đúng» khi không món nào khớp đủ mọi từ. */
.tim__goi-y a.dl-tgy__muc--chon { background: var(--chinh-nhat); }
.tim__goi-y .dl-tgy__khop { background: none; color: inherit; font-weight: 700; }
.tim__goi-y .dl-tgy__nhan-gan { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--chu); background: var(--chinh-nhat); }
.tim-gan__nhan { display: flex; gap: 12px; align-items: flex-start; background: var(--chinh-nhat); border: 1px solid color-mix(in srgb, var(--mau-chinh) 22%, transparent); border-radius: var(--goc-nho); padding: 14px 16px; margin: 4px 0 18px; }
.tim-gan__nhan .i { width: 22px; height: 22px; color: var(--mau-chinh); flex: none; margin-top: 2px; }
.tim-gan__nhan h2 { font-size: 16px; margin: 0 0 4px; }
.tim-gan__nhan p { margin: 0; font-size: 14px; }
.dau__phai { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.dau__ho-tro { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--chu); }
.dau__ho-tro-icon { width: 42px; height: 42px; border-radius: 999px; background: var(--chinh-nhat); color: var(--mau-chinh); display: grid; place-items: center; }
.dau__ho-tro-icon .i { width: 22px; height: 22px; }
.dau__ho-tro small { display: block; font-size: 11.5px; color: var(--chu-mo); line-height: 1.2; }
.dau__ho-tro b { font-size: 15px; letter-spacing: -.01em; }
.dau__gio { position: relative; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--vien); background: #fff; padding: 9px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px; transition: .2s; }
.dau__gio:hover { border-color: var(--mau-chinh); color: var(--mau-chinh); }
.dau__gio .i { width: 22px; height: 22px; }
.dau__gio-so { position: absolute; top: -6px; left: 26px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--mau-nhan); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; transition: transform .2s; }
.dau__gio-so.nhay { animation: nhay .45s ease; }
@keyframes nhay { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.dau__nav-bao { border-top: 1px solid var(--vien); border-bottom: 1px solid var(--vien); }
.dau__nav { display: flex; align-items: center; gap: 8px; height: 50px; }
.dm-menu { position: relative; flex-shrink: 0; }
.dm-menu__nut { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border: 0; background: var(--chinh-nhat); color: var(--mau-chinh); font-weight: 700; font-size: 14px; cursor: pointer; margin-left: -20px; padding-left: 20px; border-right: 1px solid color-mix(in srgb, var(--mau-chinh) 18%, transparent); }
.dm-menu__nut:hover, .dm-menu.mo .dm-menu__nut { background: color-mix(in srgb, var(--mau-chinh) 16%, #fff); }
.dm-menu__nut .i { width: 20px; height: 20px; }
.dm-menu__mui { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s; }
.dm-menu.mo .dm-menu__mui { transform: rotate(-90deg); }
.dm-menu__bang { position: absolute; top: 100%; left: -20px; min-width: 760px; max-width: calc(100vw - 40px); background: #fff; border: 1px solid var(--vien); border-radius: 0 0 var(--goc) var(--goc); box-shadow: var(--bong-3); padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; z-index: 65; }
.dm-menu__trong { color: var(--chu-mo); padding: 10px; }
.dm-menu__cot { min-width: 0; }
.dm-menu__cha { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--chu); padding: 6px 8px; border-radius: 10px; }
.dm-menu__cha:hover { background: var(--chinh-nhat); color: var(--mau-chinh); }
.dm-menu__cha small { display: block; font-weight: 400; font-size: 11.5px; color: var(--chu-mo); }
.dm-menu__anh { width: 40px; height: 40px; border-radius: 10px; background: var(--nen); overflow: hidden; display: grid; place-items: center; flex-shrink: 0; }
.dm-menu__anh img { width: 100%; height: 100%; object-fit: cover; }
.dm-menu__anh i { font-style: normal; font-weight: 800; color: var(--mau-chinh); }
.dm-menu__cot ul { padding: 4px 0 0 58px; display: flex; flex-direction: column; gap: 2px; }
.dm-menu__cot li a { display: block; font-size: 13px; color: var(--chu-2); padding: 3px 0; }
.dm-menu__cot li a:hover { color: var(--mau-chinh); }
.nav-chinh { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-chinh::-webkit-scrollbar { display: none; }
.nav-chinh a { display: block; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--chu-2); border-radius: 999px; white-space: nowrap; }
.nav-chinh a:hover { background: var(--nen); color: var(--chu); }
.nav-chinh a.dang-chon { color: var(--mau-chinh); background: var(--chinh-nhat); }
.dau__nav-phai { margin-left: auto; flex-shrink: 0; }
.nav-lien-ket { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--chu-2); }
.nav-lien-ket:hover { color: var(--mau-chinh); }

/* ---------- ngăn kéo menu di động ---------- */
.ngan-keo { position: fixed; inset: 0; z-index: 120; }
.ngan-keo__nen, .gio-mini__nen { position: absolute; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); animation: hien .2s; }
@keyframes hien { from { opacity: 0; } }
.ngan-keo__hop { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); background: #fff; box-shadow: var(--bong-3); display: flex; flex-direction: column; animation: truot-trai .22s ease-out; }
@keyframes truot-trai { from { transform: translateX(-100%); } }
.ngan-keo__dau { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--vien); font-size: 16px; }
.ngan-keo__than { overflow-y: auto; padding: 8px 10px 24px; flex: 1; }
.ngan-keo__nhom { padding: 16px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--chu-mo); font-weight: 700; }
.ngan-keo li > a { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; font-weight: 600; font-size: 14.5px; }
.ngan-keo li > a:hover { background: var(--nen); }
.ngan-keo li > a small { margin-left: auto; color: var(--chu-mo); font-weight: 400; }
.ngan-keo__anh { width: 36px; height: 36px; border-radius: 9px; background: var(--nen); overflow: hidden; display: grid; place-items: center; flex-shrink: 0; }
.ngan-keo__anh img { width: 100%; height: 100%; object-fit: cover; }
.ngan-keo__anh i { font-style: normal; font-weight: 800; color: var(--mau-chinh); }
.ngan-keo__con { padding-left: 58px; }
.ngan-keo__con a { display: block; padding: 6px 0; font-size: 13.5px; color: var(--chu-2); }

/* ---------- giỏ mini ---------- */
.gio-mini { position: fixed; inset: 0; z-index: 130; }
.gio-mini__hop { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: #fff; box-shadow: var(--bong-3); display: flex; flex-direction: column; animation: truot-phai .22s ease-out; }
@keyframes truot-phai { from { transform: translateX(100%); } }
.gio-mini__dau { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--vien); font-size: 17px; }
.gio-mini__dem { color: var(--chu-mo); font-weight: 500; font-size: 14px; }
.gio-mini__than { flex: 1; overflow-y: auto; padding: 8px 20px; }
.gio-mini__trong { text-align: center; padding: 60px 10px; color: var(--chu-mo); }
.gio-mini__trong .i { width: 52px; height: 52px; color: var(--vien-dam); margin-bottom: 8px; }
.gm-dong { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--vien); align-items: center; }
.gm-dong img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--nen); }
.gm-dong__ten { font-weight: 600; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gm-dong__gia { font-size: 13px; color: var(--chu-mo); margin-top: 2px; }
.gm-dong__duoi { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.gm-dong__tong { font-weight: 800; font-size: 14px; text-align: right; }
.gm-dong__xoa { border: 0; background: transparent; color: var(--chu-mo); cursor: pointer; padding: 4px; margin-top: 6px; }
.gm-dong__xoa:hover { color: var(--do); }
.gio-mini__chan { border-top: 1px solid var(--vien); padding: 16px 20px 20px; background: #fff; }
.gio-mini__tong { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }
.gio-mini__tong b { font-size: 18px; color: var(--mau-nhan); }
.gio-mini__nut { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gio-mini__nut .nut { padding: 12px; }

/* ---------- thanh điều hướng dưới (di động) ---------- */
.nav-duoi { display: none; position: fixed; left: 0; right: 0; bottom: 0; height: 64px; background: #fff; border-top: 1px solid var(--vien); z-index: 110; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px -18px rgba(15,23,42,.35); }
.nav-duoi a, .nav-duoi button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--chu-2); border: 0; background: transparent; position: relative; cursor: pointer; }
.nav-duoi .i { width: 23px; height: 23px; }
.nav-duoi a.dang-chon, .nav-duoi button:active { color: var(--mau-chinh); }
.nav-duoi__so { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--mau-nhan); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
body.co-nav-duoi .noi-dung { padding-bottom: 56px; }

/* ---------- nút liên hệ nổi ---------- */
.lien-he-noi { position: fixed; right: 18px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
body.co-nav-duoi .lien-he-noi { bottom: 80px; }
.lien-he-noi__nut { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 999px; color: #fff; box-shadow: var(--bong-2); transition: transform .15s; text-decoration: none !important; }
.lien-he-noi__nut:hover { transform: translateY(-2px) scale(1.04); color: #fff; }
.lien-he-noi__nut .i { width: 24px; height: 24px; }
.lien-he-noi__nut span { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); background: #0f172a; color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.lien-he-noi__nut:hover span { opacity: 1; }
.lien-he-noi__nut--zalo { background: #0068ff; }
.lien-he-noi__nut--goi { background: var(--xanh); }
.lien-he-noi__nut--goi .i { animation: rung 2.4s infinite; }
@keyframes rung { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(14deg); } 88% { transform: rotate(-12deg); } 92% { transform: rotate(10deg); } 96% { transform: rotate(-6deg); } }

/* ---------- trang chủ: hero ---------- */
.hero-vung { margin-top: 20px; }
.hero { position: relative; }
.hero__ray { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--goc); box-shadow: var(--bong-2); }
.hero__ray::-webkit-scrollbar { display: none; }
.hero__the { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 21/8; background: var(--nen) center/cover no-repeat; display: flex; align-items: flex-end; }
.hero__chu { padding: 36px 44px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0)); width: 100%; }
.hero__chu h2 { font-size: calc(clamp(22px, 3.6vw, 42px) * var(--tl-hero, 1)); font-weight: 800; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero__chu p { margin: 8px 0 16px; font-size: clamp(14px, 1.5vw, 18px); max-width: 600px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero__mui { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); color: var(--chu); box-shadow: var(--bong-2); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: .2s; }
.hero:hover .hero__mui { opacity: 1; }
.hero__mui--trai { left: 14px; } .hero__mui--trai .i { transform: rotate(180deg); }
.hero__mui--phai { right: 14px; }
.hero__cham { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.hero__cham button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: .2s; }
.hero__cham button.dang-chon { background: #fff; width: 26px; }
.hero-md { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; background: radial-gradient(900px 400px at 0% 0%, var(--chinh-nhat), transparent 60%), radial-gradient(600px 300px at 100% 100%, var(--nhan-nhat), transparent 60%), #fff; border-radius: var(--goc); padding: 48px 48px; border: 1px solid var(--vien); box-shadow: var(--bong-1); }
.hero-md__nhan { display: inline-flex; align-items: center; gap: 6px; background: var(--nhan-nhat); color: color-mix(in srgb, var(--mau-nhan) 80%, #000); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero-md__chu h1 { font-size: calc(clamp(28px, 3.6vw, 46px) * var(--tl-hero, 1)); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.hero-md__chu p { font-size: 16.5px; color: var(--chu-2); margin: 16px 0 24px; max-width: 520px; }
.hero-md__nut { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-md__diem { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.hero-md__diem li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--chu-2); font-weight: 500; }
.hero-md__diem .i { color: var(--xanh); width: 16px; height: 16px; }
.hero-md__anh-lon { border-radius: var(--goc); box-shadow: var(--bong-3); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-md__luoi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-md__o { background: #fff; border-radius: var(--goc-nho); overflow: hidden; box-shadow: var(--bong-2); border: 1px solid var(--vien); display: flex; flex-direction: column; transition: transform .2s; }
.hero-md__o:hover { transform: translateY(-3px); }
.hero-md__o img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--nen); }
.hero-md__o span { display: block; padding: 8px 10px; font-size: 12.5px; font-weight: 600; color: var(--chu); }
.hero-md__o span b { display: block; color: var(--mau-nhan); font-size: 13px; }
.hero-md__luoi--trong .hero-md__o { aspect-ratio: 1; background: var(--nen); }

/* ---------- cam kết ---------- */
.cam-ket { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 16px; }
.cam-ket__o { display: flex; align-items: center; gap: 12px; background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc-nho); padding: 12px 14px; font-size: 13.5px; font-weight: 600; color: var(--chu); box-shadow: var(--bong-1); }
.cam-ket__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--chinh-nhat); color: var(--mau-chinh); display: grid; place-items: center; flex-shrink: 0; }
.cam-ket__icon .i { width: 22px; height: 22px; }

/* ---------- khối ---------- */
.khoi { margin-top: 44px; }
.khoi__dau { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.khoi__dau h2 { font-size: calc(23px * var(--tl-td, 1)); font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.khoi__dau--giua { justify-content: center; text-align: center; }
.khoi__icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--chinh-nhat); color: var(--mau-chinh); font-size: 16px; }
.khoi__icon--nhan { background: var(--nhan-nhat); color: var(--mau-nhan); }
.khoi__xem { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--mau-chinh); font-size: 14px; white-space: nowrap; }
.khoi__xem .i { width: 16px; height: 16px; }
.dm-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.dm-o { background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); padding: 18px 12px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: .2s; box-shadow: var(--bong-1); }
.dm-o:hover { border-color: var(--mau-chinh); box-shadow: var(--bong-2); transform: translateY(-3px); }
.dm-o__anh { width: 76px; height: 76px; border-radius: 999px; background: var(--chinh-nhat); display: grid; place-items: center; overflow: hidden; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--vien); }
.dm-o__anh img { width: 100%; height: 100%; object-fit: cover; }
.dm-o__anh i { font-style: normal; font-weight: 800; font-size: 28px; color: var(--mau-chinh); }
.dm-o__ten { font-weight: 700; font-size: 14px; color: var(--chu); margin-top: 4px; }
.dm-o small { color: var(--chu-mo); font-size: 12px; }
.dai-banner { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 40px; }
.dai-banner a { position: relative; border-radius: var(--goc); overflow: hidden; box-shadow: var(--bong-2); display: block; }
.dai-banner img { width: 100%; aspect-ratio: 3/1; object-fit: cover; transition: transform .5s; }
.dai-banner a:hover img { transform: scale(1.04); }
.dai-banner__chu { position: absolute; left: 22px; bottom: 18px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.dai-banner__chu b { display: block; font-size: 20px; font-weight: 800; }
.dai-banner__chu small { font-size: 13px; }
.vi-sao__luoi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vi-sao__o { background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); padding: 24px 20px; text-align: center; box-shadow: var(--bong-1); }
.vi-sao__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--chinh-nhat); color: var(--mau-chinh); display: grid; place-items: center; margin: 0 auto 12px; }
.vi-sao__icon .i { width: 28px; height: 28px; }
.vi-sao__o b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.vi-sao__o p { margin: 0; color: var(--chu-2); font-size: 13.5px; }

/* ---------- lưới + thẻ sản phẩm ---------- */
.luoi-sp { display: grid; grid-template-columns: repeat(var(--so-cot), minmax(0, 1fr)); gap: 16px; }
.sp { background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; box-shadow: var(--bong-1); }
.sp:hover { box-shadow: var(--bong-2); transform: translateY(-4px); border-color: transparent; }
.sp__anh { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; display: block; border-bottom: 1px solid var(--vien); }
.sp__anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sp:hover .sp__anh img { transform: scale(1.05); }
.sp__nhan { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.sp__het { position: absolute; inset: auto 0 0 0; background: rgba(15,23,42,.72); color: #fff; font-size: 12px; font-weight: 700; text-align: center; padding: 7px; }
.sp--het .sp__anh img { filter: grayscale(.6); opacity: .8; }
.sp__than { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sp__dm { font-size: 11.5px; color: var(--chu-mo); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.sp__ten { font-size: 14.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.sp__ten a:hover { color: var(--mau-chinh); }
/* Giá trên thẻ. CỐ Ý để nguyên khối chữ chảy (không display:flex): ở lưới 2 cột trên điện thoại, mỗi đoạn thành một
   flex item sẽ bị bóp đến mức "249,000" và "đ" rơi hai dòng. Giá gốc là thẻ inline, tự xuống dòng như chữ thường. */
.sp__gia { font-weight: 800; color: var(--mau-nhan); font-size: 17px; margin-top: 4px; letter-spacing: -.01em; }
.sp__gia small { font-weight: 500; color: var(--chu-mo); font-size: 12px; }
.sp__gia-goc { display: inline-block; margin-left: 6px; font-weight: 500; color: var(--chu-mo); font-size: 13px; letter-spacing: 0; white-space: nowrap; }
/* Đang giảm giá (29/09/2026) — kiểu Shopee: giá bán đổi sang đỏ cho nổi, giá niêm yết gạch ngang xám ngay sau, nhãn -xx% đỏ trên ảnh. */
.sp__gia--giam { color: var(--do); }
.sp__ts { display: flex; gap: 5px; overflow: hidden; margin-top: 4px; min-width: 0; }
.sp__ts span { flex: 0 1 auto; min-width: 0; font-size: 11.5px; line-height: 1.5; padding: 2px 8px; border-radius: 999px; background: var(--nen); color: var(--chu-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp__mua { margin: auto 0 0; padding-top: 10px; }
.sp__nut { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: var(--goc-nho); border: 1.5px solid var(--mau-chinh); background: #fff; color: var(--mau-chinh); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: .2s; text-decoration: none !important; }
@media (hover: hover) { .sp__nut:hover { background: var(--mau-chinh); color: #fff; } }
.sp__nut .i { width: 17px; height: 17px; }
.sp__nut--mo { border-color: var(--vien); color: var(--chu-2); margin-top: 10px; }
.sp__nut--mo:hover { background: var(--nen); color: var(--chu); }

/* ---------- trang danh mục / tìm kiếm ---------- */
.duong-dan { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--chu-mo); padding: 16px 0 10px; flex-wrap: wrap; }
.duong-dan .i { width: 14px; height: 14px; }
.duong-dan a:hover { color: var(--mau-chinh); }
.duong-dan span { color: var(--chu-2); }
.trang-dau { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0 14px; }
.trang-dau h1, .tieu-de-trang { font-size: calc(28px * var(--tl-td, 1)); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 14px; }
.trang-dau h1 { margin: 0; }
.tieu-de-trang small { font-weight: 500; color: var(--chu-mo); font-size: 15px; margin-left: 6px; }
.trang-dau__mo-ta { color: var(--chu-2); max-width: 760px; margin: 6px 0 0; }
.trang-dau__anh { width: 88px; height: 88px; border-radius: var(--goc); object-fit: cover; box-shadow: var(--bong-2); }
.chip-dm { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-dm--giua { justify-content: center; margin-top: 16px; }
.chip { padding: 8px 15px; border-radius: 999px; background: var(--the); border: 1.5px solid var(--vien); font-size: 13.5px; font-weight: 600; transition: .15s; color: var(--chu-2); }
.chip:hover { border-color: var(--mau-chinh); color: var(--mau-chinh); }
.chip.dang-chon { border-color: var(--mau-chinh); color: var(--mau-chinh); background: var(--chinh-nhat); }
.chip small { color: var(--chu-mo); font-weight: 500; }
.chip--nho { padding: 4px 11px; font-size: 12px; }
.sap-xep { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc-nho); padding: 10px 14px; }
.sap-xep__dem { color: var(--chu-2); font-size: 13.5px; }
.sap-xep__chon { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--chu-2); }
.sap-xep select { padding: 8px 12px; border-radius: 8px; border: 1.5px solid var(--vien); background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--chu); }
.phan-trang { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.phan-trang__so, .phan-trang__nut { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: var(--goc-nho); border: 1.5px solid var(--vien); background: #fff; font-weight: 700; font-size: 14px; }
.phan-trang__so:hover, .phan-trang__nut:hover { border-color: var(--mau-chinh); color: var(--mau-chinh); }
.phan-trang__so.hien-tai { background: var(--mau-chinh); color: #fff; border-color: var(--mau-chinh); }
.trong { text-align: center; padding: 56px 20px; background: var(--the); border: 1px dashed var(--vien-dam); border-radius: var(--goc); margin: 20px 0; }
.trong__icon { width: 72px; height: 72px; border-radius: 999px; background: var(--nen); color: var(--chu-mo); display: grid; place-items: center; margin: 0 auto 14px; }
.trong__icon .i { width: 34px; height: 34px; }
.trong h1, .trong h2 { font-size: 22px; margin-bottom: 8px; }
.trong p { color: var(--chu-2); max-width: 520px; margin: 0 auto 18px; }
.trong__nut { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.trong--cao { padding: 90px 20px; }
.so-404 { font-size: 88px; font-weight: 800; color: var(--mau-chinh); line-height: 1; margin-bottom: 8px; opacity: .2; letter-spacing: -.05em; }

/* ---------- chi tiết sản phẩm ---------- */
.ct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); padding: 28px; margin-top: 6px; box-shadow: var(--bong-1); }
.ct__anh-lon { position: relative; aspect-ratio: 1; background: #fff; border-radius: var(--goc-nho); overflow: hidden; border: 1px solid var(--vien); }
.ct__anh-lon img { width: 100%; height: 100%; object-fit: contain; }
.ct__thumb { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.ct__thumb button { width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--goc-xiu); border: 2px solid var(--vien); padding: 0; overflow: hidden; background: #fff; cursor: pointer; transition: .15s; }
.ct__thumb button:hover, .ct__thumb button.dang-chon { border-color: var(--mau-chinh); }
.ct__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Video sản phẩm (30/09/2026). Cùng khung với ảnh lớn; luôn contain — video dọc / ngang đều hiện ĐỦ, thừa thì viền đen (cắt video là mất hình).
   Kể cả body.anh-doc (khung 4:5, ảnh cover) cũng không cắt video. Thuộc tính hidden do [hidden] ở đầu tệp lo. */
.ct__video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.ct__phat { position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; padding: 0; border: 2px solid rgba(255,255,255,.85); border-radius: 999px; background: rgba(0,0,0,.55); cursor: pointer; transition: background .15s; }
.ct__phat:hover { background: rgba(0,0,0,.75); }
.ct__phat::after { content: ''; position: absolute; top: 50%; left: 50%; margin: -13px 0 0 -8px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
.ct__thumb .ct__thumb-video { position: relative; background: #000; }
.ct__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.3); }
.ct__play::after { content: ''; margin-left: 3px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.ct__tren { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--chu-mo); }
.ct__dm { color: var(--mau-chinh); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.ct__ten { font-size: calc(27px * var(--tl-td, 1)); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 10px; line-height: 1.25; }
.ct__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--chu-mo); align-items: center; }
.tinh-trang { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.tinh-trang .i { width: 14px; height: 14px; }
.tinh-trang.con { background: #ecfdf5; color: #047857; }
.tinh-trang.het { background: #fef2f2; color: #b91c1c; }
.ct__gia-hop { background: var(--nen); border-radius: var(--goc-nho); padding: 16px 18px; margin: 18px 0 14px; }
.ct__gia { font-size: 32px; font-weight: 800; color: var(--mau-nhan); letter-spacing: -.02em; line-height: 1.1; }
.ct__gia small { font-size: 14px; color: var(--chu-mo); font-weight: 500; letter-spacing: 0; }
/* Hàng giảm giá dưới giá bán ở trang sản phẩm (22/09/2026): gạch ngang · -x% · tiết kiệm bao nhiêu.
   flex-wrap BẮT BUỘC — ba mẩu này trên máy 360px không đủ chỗ một hàng, thiếu nó là chữ vỡ từng từ. */
.ct__giam { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 7px; }
.ct__gia-goc { font-size: 16px; color: var(--chu-mo); font-weight: 500; white-space: nowrap; }
.ct__giam-pt { font-size: 13px; font-weight: 800; color: #fff; background: var(--do); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.ct__giam-tien { font-size: 13px; color: var(--xanh); font-weight: 600; white-space: nowrap; }
.ct__gia-hop--giam { background: #fff5f5; box-shadow: inset 0 0 0 1px #fecaca; }
.ct__gia-hop--giam .ct__gia { color: var(--do); }

.ct__freeship { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--chu-2); font-weight: 500; }
.ct__freeship .i { color: var(--xanh); }
.ct__dac-diem { color: var(--chu-2); margin-bottom: 12px; }
/* Thông số theo ngành hàng (21/09/2026): hàng "điểm nhấn" cạnh giá + bảng "Chi tiết sản phẩm" phía trên mô tả */
.ct__diem-nhan { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.ct__diem-nhan li { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 12px; border: 1px solid var(--vien); border-radius: var(--goc-nho); background: var(--the); }
.ct__diem-nhan small { font-size: 11.5px; color: var(--chu-mo); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ct__diem-nhan b { font-size: 14px; font-weight: 700; color: var(--chu); line-height: 1.35; overflow-wrap: anywhere; }
.bang-ts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 48px; max-width: 760px; }
.bang-ts--hai-cot { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.bang-ts__dong { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 14px; padding: 11px 2px; border-bottom: 1px solid var(--vien); font-size: 14.5px; line-height: 1.55; break-inside: avoid; }
.bang-ts__dong dt { color: var(--chu-mo); font-weight: 500; }
.bang-ts__dong dd { margin: 0; color: var(--chu); font-weight: 600; overflow-wrap: anywhere; }
/* Website nhiều cửa hàng (21/09/2026): món có ở nhiều nơi */
.ct__cua-hang { margin: 6px 0 16px; padding: 12px 14px; background: var(--nen); border-radius: var(--goc-nho); }
.ct__cua-hang .ct__nhan { display: inline-flex; align-items: center; gap: 6px; }
.ct__cua-hang .ct__nhan .i { width: 14px; height: 14px; }
.ct__cua-hang .chip-dm { margin-bottom: 6px; }
.ct__cua-hang-ghi { font-size: 12.5px; margin: 0; }
/* Lượt đặt tách thành nhiều đơn */
.don-nhom { background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); padding: 16px 20px; margin: 0 0 18px; box-shadow: var(--bong-1); }
.don-nhom__dau { display: flex; align-items: flex-start; gap: 8px; color: var(--chu-2); line-height: 1.5; }
.don-nhom__dau .i { flex-shrink: 0; margin-top: 3px; color: var(--mau-chinh); }
.don-nhom__ds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.don-nhom__o { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border: 1px solid var(--vien); border-radius: var(--goc-nho); text-decoration: none; color: inherit; min-width: 150px; }
.don-nhom__o small { color: var(--chu-mo); font-size: 12px; }
.don-nhom__o--hien { border-color: var(--mau-chinh); background: var(--chinh-nhat); }
a.don-nhom__o:hover { border-color: var(--mau-chinh); }
.ct__nhan { font-size: 12.5px; font-weight: 700; color: var(--chu-2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.ct__phan-loai { margin: 6px 0 16px; }
/* Phân loại + ô khách chọn (29/09/2026) */
.chip--pl { text-decoration: none !important; }
.chip--het { border-style: dashed; color: var(--chu-mo); }
.chip--het small { font-size: 11px; }
.ct__chon { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.ct__chon legend { padding: 0; }
.ct__chon .chip-dm { margin-bottom: 0; }
.chip--chon { position: relative; cursor: pointer; display: inline-flex; align-items: center; }
.chip--chon input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip--chon:has(input:checked) { border-color: var(--mau-chinh); color: var(--mau-chinh); background: var(--chinh-nhat); }
.chip--chon:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--mau-chinh) 45%, transparent); outline-offset: 2px; }
/* Hết size / hết màu bên trong combo (15/10/2026): ô hết ở mọi tổ hợp bị khoá (input disabled); ô chỉ hết với lựa chọn của nhóm kia mờ đi nhưng vẫn bấm được (app.js bỏ lựa chọn nhóm kia). */
.chip--chon.chip--het { opacity: .62; }
.chip--chon.chip--het > span { text-decoration: line-through; text-decoration-thickness: 1px; }
.chip--chon.chip--het small { margin-left: 4px; font-weight: 700; }
.chip--chon.chip--het.dang-chon { opacity: 1; }
/* Luật có :has tách riêng (trình duyệt không hiểu :has bỏ cả luật gộp). */
.chip--chon:has(input:disabled) { cursor: not-allowed; }
.chip--chon.chip--het:has(input:checked) { opacity: 1; }
.cbct__chon-bao { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #b45309; }
.cbct__chon-bao:empty { margin: 0; }
.sp__ton { font-size: 12px; color: var(--chu-mo); margin-top: 4px; }
.gio-dong__pl { font-size: 12.5px; color: var(--chu-2); margin-top: 2px; }
.gm-dong__pl { font-size: 12px; color: var(--chu-2); margin-top: 1px; }
.gm-dong__loi, .tt__loi { font-size: 12px; color: var(--do); margin-top: 3px; font-weight: 600; line-height: 1.4; }
.tt__loi { display: block; }
.tt__sp-ten small { display: block; font-size: 12px; color: var(--chu-mo); margin-top: 2px; }
.don__pl { font-size: 12px; color: var(--chu-2); background: var(--nen); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
/* Trạng thái chuyển khoản + thanh toán cả lượt đặt */
.ck { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--nen); color: var(--chu-2); white-space: nowrap; }
.ck--1 { background: #fef3c7; color: #92400e; }
.ck--2 { background: #dcfce7; color: #166534; }
.luot { border: 1px solid var(--vien); border-radius: var(--goc-nho); margin-bottom: 18px; overflow: hidden; }
.luot__dau { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 12px 16px; background: var(--nen); }
.luot__dau small { display: block; font-size: 12px; color: var(--chu-mo); }
.luot__dau b { font-size: 18px; }
.luot__don { list-style: none; margin: 0; padding: 0; }
.luot__don li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--vien); font-size: 14px; }
.luot__ma { min-width: 0; }
.luot__ma small { display: block; font-size: 12px; color: var(--chu-mo); }
.luot__tk { font-weight: 700; color: var(--chu); }
.qr--luot .qr__hop + .qr__hop, .qr--luot .qr__hop + .tb, .qr--luot .tb + .qr__hop { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--vien-dam); }
@media (max-width: 600px) { .luot__don li { grid-template-columns: minmax(0, 1fr) auto; } .luot__don li .ck { grid-column: 1 / -1; justify-self: start; } }
.ct__mua { margin: 6px 0 20px; }
.ct__so-luong { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ct__so-luong .ct__nhan { margin: 0; }
.so-luong { display: inline-flex; align-items: center; border: 1.5px solid var(--vien-dam); border-radius: var(--goc-nho); overflow: hidden; background: #fff; }
.so-luong button { width: 42px; height: 44px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--chu); }
.so-luong button:hover { background: var(--nen); }
.so-luong input { width: 54px; height: 44px; border: 0; border-left: 1px solid var(--vien); border-right: 1px solid var(--vien); text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.so-luong input::-webkit-outer-spin-button, .so-luong input::-webkit-inner-spin-button { -webkit-appearance: none; }
.so-luong input:focus { outline: none; }
.so-luong--nho button { width: 32px; height: 36px; font-size: 17px; }
.so-luong--nho input { width: 44px; height: 36px; }
.ct__nut { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct__chinh-sach { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 14px 16px; background: var(--nen); border-radius: var(--goc-nho); font-size: 13px; color: var(--chu-2); }
.ct__chinh-sach li { display: flex; align-items: center; gap: 8px; }
.ct__chinh-sach .i { color: var(--mau-chinh); width: 18px; height: 18px; }
.ct__the { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.ct__mo-ta { background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); padding: 28px; margin-top: 20px; box-shadow: var(--bong-1); position: relative; }
.ct__mo-ta-dau { border-bottom: 2px solid var(--vien); margin-bottom: 18px; }
.ct__mo-ta-dau h2 { display: inline-block; font-size: 17px; font-weight: 800; padding-bottom: 12px; margin-bottom: -2px; border-bottom: 2px solid var(--mau-chinh); }
.ct__mo-ta .van-ban.thu-gon { max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ct__xem-them { display: flex; align-items: center; gap: 4px; margin: 8px auto 0; border: 1.5px solid var(--vien); background: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--mau-chinh); }
.ct__xem-them .i { transform: rotate(90deg); width: 16px; height: 16px; }
.van-ban { line-height: 1.75; color: #1f2937; max-width: 900px; font-size: 15px; }
.van-ban img { border-radius: var(--goc-nho); margin: 12px 0; }
.van-ban h2 { font-size: 20px; margin: 24px 0 8px; }
.van-ban h3 { font-size: 17px; margin: 18px 0 6px; }
.van-ban ul, .van-ban ol { padding-left: 22px; margin: 0 0 12px; list-style: disc; }
.van-ban ol { list-style: decimal; }
.van-ban iframe { max-width: 100%; border-radius: var(--goc-nho); }
.van-ban table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.van-ban td, .van-ban th { border: 1px solid var(--vien); padding: 8px 10px; }
.van-ban a { color: var(--mau-chinh); text-decoration: underline; }
.trang-tinh { background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); padding: 36px; max-width: 920px; box-shadow: var(--bong-1); }
.trang-tinh h1 { font-size: 30px; font-weight: 800; margin-bottom: 18px; letter-spacing: -.02em; }
.trang-tinh__chan { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--vien); }
.thanh-mua { display: none; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--vien); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px; align-items: center; z-index: 115; box-shadow: 0 -8px 24px -18px rgba(15,23,42,.35); }
.thanh-mua__gia { flex: 1; min-width: 0; }
.thanh-mua__gia small { display: block; font-size: 11.5px; color: var(--chu-mo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thanh-mua__gia b { color: var(--mau-nhan); font-size: 17px; }
/* Giá gốc trên thanh mua dính đáy điện thoại: nhỏ và mờ, tuyệt đối không xuống dòng (thanh chỉ cao một hàng). */
.thanh-mua__gia b s { color: var(--chu-mo); font-size: 12.5px; font-weight: 500; margin-left: 5px; white-space: nowrap; }
.thanh-mua .nut { padding: 11px 14px; font-size: 13.5px; }

/* ---------- bước mua ---------- */
.buoc { display: flex; align-items: center; justify-content: center; gap: 0; margin: 6px 0 18px; padding: 0; list-style: none; counter-reset: b; }
.buoc li { display: flex; align-items: center; gap: 10px; color: var(--chu-mo); font-weight: 600; font-size: 13.5px; }
.buoc li + li::before { content: ''; width: 56px; height: 2px; background: var(--vien); margin: 0 14px; border-radius: 2px; }
.buoc li.xong + li::before { background: var(--mau-chinh); }
.buoc__so { width: 30px; height: 30px; border-radius: 999px; background: var(--vien); color: var(--chu-mo); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.buoc__so .i { width: 16px; height: 16px; }
.buoc li.xong .buoc__so { background: var(--mau-chinh); color: #fff; }
.buoc li.xong { color: var(--chu); }
.buoc li.hien-tai .buoc__so { box-shadow: 0 0 0 4px var(--chinh-nhat); }

/* ---------- giỏ hàng ---------- */
.gio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.gio__dong { background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); overflow: hidden; box-shadow: var(--bong-1); }
.gio-dong { display: grid; grid-template-columns: 90px 1fr auto auto 40px; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--vien); }
.gio-dong.het { opacity: .75; }
.gio-dong__anh img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--goc-xiu); background: var(--nen); border: 1px solid var(--vien); }
.gio-dong__ten { font-weight: 600; display: block; line-height: 1.4; }
.gio-dong__ten:hover { color: var(--mau-chinh); }
.gio-dong__gia { color: var(--chu-mo); font-size: 13.5px; margin-top: 3px; }
.gio-dong__het { font-size: 12.5px; color: var(--do); margin-top: 4px; font-weight: 600; }
.gio-dong__sl { margin: 0; }
.gio-dong__tong { font-weight: 800; min-width: 100px; text-align: right; font-size: 15.5px; }
.gio-dong__xoa { margin: 0; }
.gio-dong__xoa button { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--vien); background: #fff; cursor: pointer; color: var(--chu-mo); display: grid; place-items: center; }
.gio-dong__xoa button:hover { color: var(--do); border-color: #fecaca; background: #fef2f2; }
.gio__tiep { display: inline-flex; align-items: center; gap: 6px; padding: 14px 18px; font-weight: 600; font-size: 14px; color: var(--chu-2); }
.gio__tiep .i { width: 16px; height: 16px; }
.tom-tat, .tt__phai, .don__phai { background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); padding: 22px; position: sticky; top: calc(var(--dau-cao) + 12px); box-shadow: var(--bong-1); }
.tom-tat h2, .tt__phai h2, .don__phai h2, .tt__khoi h2, .don__hang h2, .qr h2 { font-size: 17px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.tt__phai h2 small { margin-left: auto; font-weight: 500; color: var(--chu-mo); font-size: 13px; }
.hang { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; align-items: baseline; }
.don__hang .hang > b, .tom-tat .hang > b, .tt__phai .hang > b { white-space: nowrap; flex-shrink: 0; }
.hang--tong { border-top: 1px solid var(--vien); margin-top: 8px; padding-top: 14px; font-size: 16px; font-weight: 700; }
.hang--tong b { color: var(--mau-nhan); font-size: 22px; letter-spacing: -.01em; }
.tom-tat .nut { margin-top: 14px; }
.tom-tat__freeship { display: flex; align-items: center; gap: 8px; background: var(--chinh-nhat); color: var(--chinh-dam); padding: 10px 12px; border-radius: var(--goc-xiu); font-size: 13px; margin: 8px 0; }
.tom-tat__freeship .i { color: var(--mau-chinh); }
.tom-tat__an-tam { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.tom-tat__an-tam li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--chu-mo); }
.tom-tat__an-tam .i { width: 16px; height: 16px; color: var(--mau-chinh); }

/* ---------- thanh toán ---------- */
.tt { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.tt__khoi { background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); padding: 24px; margin-bottom: 16px; box-shadow: var(--bong-1); }
.tt__so { width: 28px; height: 28px; border-radius: 999px; background: var(--mau-chinh); color: #fff; display: inline-grid; place-items: center; font-size: 13px; }
.o { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.o label { font-size: 13px; font-weight: 700; color: #334155; }
.o label i { color: var(--do); font-style: normal; }
.o label small { font-weight: 400; color: var(--chu-mo); }
.o input, .o textarea, .ma-gg input { padding: 12px 14px; border: 1.5px solid var(--vien-dam); border-radius: var(--goc-nho); font: inherit; font-size: 15px; background: #fff; width: 100%; transition: .15s; }
.o input::placeholder, .o textarea::placeholder { color: #b0b8c4; }
.o input:focus, .o textarea:focus, .ma-gg input:focus { outline: none; border-color: var(--mau-chinh); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mau-chinh) 12%, transparent); }
.o-hang { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.lua-chon { display: grid; grid-template-columns: 22px 44px 1fr auto; grid-template-areas: 'o icon ten gia' 'o icon phu gia'; gap: 2px 12px; align-items: center; padding: 13px 16px; border: 1.5px solid var(--vien); border-radius: var(--goc-nho); margin-bottom: 10px; cursor: pointer; transition: .15s; background: #fff; }
.lua-chon:hover { border-color: var(--vien-dam); }
.lua-chon:has(input:checked) { border-color: var(--mau-chinh); background: var(--chinh-nhat); box-shadow: 0 0 0 1px var(--mau-chinh); }
.lua-chon input { grid-area: o; width: 18px; height: 18px; accent-color: var(--mau-chinh); margin: 0; }
.lua-chon__icon { grid-area: icon; width: 44px; height: 44px; border-radius: 12px; background: var(--nen); color: var(--mau-chinh); display: grid; place-items: center; }
.lua-chon__icon .i { width: 22px; height: 22px; }
.lua-chon__ten { grid-area: ten; font-weight: 700; }
.lua-chon__phu { grid-area: phu; font-size: 12.5px; color: var(--chu-mo); }
.lua-chon__gia { grid-area: gia; font-weight: 800; color: var(--mau-nhan); }
.dich-vu { margin: 4px 0 8px; padding: 14px 16px; background: var(--nen); border-radius: var(--goc-nho); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dich-vu__ds { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.dich-vu__ds label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; background: #fff; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--vien); }
.dich-vu__ds input { accent-color: var(--mau-chinh); }
.dich-vu__ds b { margin-left: auto; color: var(--mau-nhan); }
.dich-vu__tb { font-size: 12.5px; color: var(--chu-mo); }
.tt__dong { max-height: 320px; overflow-y: auto; margin-bottom: 8px; }
.tt__sp { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--vien); font-size: 13.5px; }
.tt__sp-anh { position: relative; flex-shrink: 0; }
.tt__sp-anh img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--nen); border: 1px solid var(--vien); }
.tt__sp-anh i { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--chu-2); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.tt__sp-ten { flex: 1; line-height: 1.35; }
.tt__sua { display: inline-block; font-size: 13px; color: var(--mau-chinh); font-weight: 600; margin-bottom: 12px; }
.ma-gg { display: flex; gap: 8px; margin-bottom: 4px; }
.ma-gg input { text-transform: uppercase; padding: 10px 12px; font-size: 14px; }
.ma-gg__tb { font-size: 12.5px; color: var(--xanh); min-height: 18px; margin-bottom: 8px; font-weight: 500; }
.ma-gg__tb.loi { color: var(--do); }
.tt__phai .nut { margin-top: 14px; }
.tt__ghi-chu { margin-top: 12px; display: flex; align-items: flex-start; gap: 6px; }
.tt__ghi-chu .i { width: 15px; height: 15px; margin-top: 2px; }

/* ---------- đơn hàng ---------- */
.thanh-cong { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, #ecfdf5, #fff); border: 1px solid #a7f3d0; border-radius: var(--goc); padding: 22px 26px; margin: 8px 0 18px; }
.thanh-cong__icon { width: 60px; height: 60px; border-radius: 999px; background: var(--xanh); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 10px 24px -10px var(--xanh); }
.thanh-cong__icon .i { width: 30px; height: 30px; }
.thanh-cong h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.thanh-cong p { margin: 0; color: var(--chu-2); }
.don { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-top: 8px; }
.don__trai { display: flex; flex-direction: column; gap: 16px; }
.don__dau, .don__hang, .qr, .tien-trinh { background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); padding: 22px 24px; box-shadow: var(--bong-1); }
.don__dau { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.don__ma { font-size: 26px; font-weight: 800; font-family: ui-monospace, Consolas, monospace; letter-spacing: -.01em; }
.trang-thai { padding: 7px 16px; border-radius: 999px; font-weight: 800; font-size: 13px; background: #fef3c7; color: #92400e; }
.trang-thai--1, .trang-thai--2 { background: #dbeafe; color: #1d4ed8; }
.trang-thai--3 { background: #dcfce7; color: #166534; }
.trang-thai--4, .trang-thai--5 { background: #fee2e2; color: #b91c1c; }
.tien-trinh { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; margin: 0; counter-reset: b; padding: 24px 22px 18px; }
.tien-trinh li { position: relative; text-align: center; font-size: 13px; color: var(--chu-mo); padding-top: 38px; font-weight: 600; }
.tien-trinh li::before { counter-increment: b; content: counter(b); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 999px; background: var(--vien); color: var(--chu-mo); font-weight: 800; display: grid; place-items: center; font-size: 12px; z-index: 1; }
.tien-trinh li::after { content: ''; position: absolute; top: 14px; left: 50%; width: 100%; height: 2px; background: var(--vien); }
.tien-trinh li:last-child::after { display: none; }
.tien-trinh li.xong { color: var(--chu); }
.tien-trinh li.xong::before { background: var(--mau-chinh); color: #fff; content: '✓'; }
.tien-trinh li.xong::after { background: var(--mau-chinh); }
.qr__hop { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.qr__ma svg { width: 100%; height: auto; border: 1px solid var(--vien); border-radius: var(--goc-nho); padding: 10px; background: #fff; }
.qr b[data-chep] { cursor: copy; border-bottom: 1px dashed var(--vien-dam); }
.don__phai p { margin: 0 0 12px; }
.don__nguoi { line-height: 1.6; }
.don__phai .nut { margin-top: 10px; }
.hop-nho { max-width: 500px; margin: 24px auto; background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); padding: 32px; text-align: center; box-shadow: var(--bong-1); }
.hop-nho__icon { width: 64px; height: 64px; border-radius: 999px; background: var(--chinh-nhat); color: var(--mau-chinh); display: grid; place-items: center; margin: 0 auto 12px; }
.hop-nho__icon .i { width: 30px; height: 30px; }
.hop-nho h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.hop-nho .form-nho { text-align: left; margin-top: 18px; }
.hop-nho__chan { margin: 16px 0 0; }

/* ---------- chân trang ---------- */
.chan { background: #0f172a; color: #cbd5e1; margin-top: 56px; font-size: 14px; }
.chan__luoi { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; padding: 48px 20px 32px; }
.chan__ten { display: block; font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.chan__ten img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.chan__cot p { color: #94a3b8; line-height: 1.6; }
.chan__tieu-de { font-weight: 800; color: #fff; margin-bottom: 14px; text-transform: uppercase; font-size: 12.5px; letter-spacing: .08em; }
.chan__cot ul { display: flex; flex-direction: column; gap: 9px; }
.chan__cot a:hover { color: #fff; }
.chan__lien-he li { display: flex; gap: 10px; align-items: flex-start; }
.chan__lien-he .i { color: var(--mau-nhan); margin-top: 2px; width: 17px; height: 17px; }
.chan__mxh { display: flex; gap: 8px; margin-top: 16px; }
.chan__mxh a { width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: .2s; }
.chan__mxh a:hover { background: var(--mau-chinh); }
.chan__mxh .i { width: 20px; height: 20px; }
.chan__cam-ket li { display: flex; align-items: center; gap: 8px; }
.chan__cam-ket .i { color: var(--xanh); width: 16px; height: 16px; }
.chan__tt { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chan__tt-o { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 6px 10px; border-radius: 8px; font-size: 12px; color: #e2e8f0; }
.chan__tt-o .i { width: 16px; height: 16px; }
.chan__duoi { border-top: 1px solid rgba(255,255,255,.08); }
.chan__duoi-hang { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; font-size: 12.5px; color: #94a3b8; flex-wrap: wrap; }
.chan__duoi a { color: #fff; font-weight: 600; }

/* ---------- di động & máy tính bảng ---------- */
@media (max-width: 1100px) { .luoi-sp { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vi-sao__luoi { grid-template-columns: 1fr 1fr; } .chan__luoi { grid-template-columns: 1fr 1fr; } .dm-menu__bang { grid-template-columns: 1fr 1fr; min-width: 560px; } .dau__nav-phai { display: none; } .nav-chinh { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); } }
@media (max-width: 900px) {
  :root { --dau-cao: 110px; }
  .thanh-tren__trai .an-di-dong, .dau__ho-tro, .dau__gio-chu, .dau__nav-bao, .thanh-tren__giua { display: none; }
  .thanh-tren__hang { justify-content: space-between; }
  .dau__menu { display: grid; }
  .dau__hang { height: auto; padding: 10px 0; gap: 10px; flex-wrap: wrap; }
  .logo { flex: 1; min-width: 0; }
  .logo img { height: 38px; }
  /* Tên shop dài (vd "Công Ty TNHH TM&DV …") không được đẩy cả trang tràn ngang — cắt bằng dấu … (29/09/2026) */
  .logo__chu { font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .dau__gio { padding: 8px 10px; border: 0; }
  .dau__gio-so { left: 22px; }
  .tim { order: 3; flex-basis: 100%; max-width: none; }
  .tim__form { padding: 3px 3px 3px 14px; }
  .tim input { padding: 8px 10px; font-size: 14px; }
  .tim__nut { padding: 8px 16px; }
  .nav-duoi { display: flex; }
  .thanh-mua { display: flex; }
  body.co-nav-duoi .thanh-mua { bottom: 64px; }
  .hero-md { grid-template-columns: 1fr; padding: 28px 22px; gap: 22px; }
  .hero-md__chu h1 { font-size: calc(28px * var(--tl-hero, 1)); }
  .hero__the { aspect-ratio: 16/9; }
  .hero__chu { padding: 18px 20px; }
  .hero__mui { display: none; }
  .ct, .gio, .tt, .don { grid-template-columns: 1fr; }
  .ct { padding: 16px; gap: 22px; }
  .tom-tat, .tt__phai, .don__phai { position: static; }
  .gio-dong { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: 'anh tt xoa' 'anh sl tong'; gap: 10px 12px; padding: 14px; }
  .gio-dong__xoa { justify-self: end; }
  .gio-dong__tong { white-space: nowrap; justify-self: end; }
  .gio-dong__anh { grid-area: anh; } .gio-dong__anh img { width: 72px; height: 72px; } .gio-dong__tt { grid-area: tt; } .gio-dong__sl { grid-area: sl; } .gio-dong__tong { grid-area: tong; min-width: 0; } .gio-dong__xoa { grid-area: xoa; }
  .qr__hop { grid-template-columns: 1fr; }
  .qr__ma { max-width: 260px; margin: 0 auto; }
  .o-hang { grid-template-columns: 1fr; }
  .ct__nut { grid-template-columns: 1fr; }
  .ct__chinh-sach { grid-template-columns: 1fr; }
  .ct__diem-nhan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bang-ts--hai-cot { grid-template-columns: minmax(0, 1fr); }
  .bang-ts__dong { font-size: 14px; padding: 10px 0; gap: 10px; }
  .buoc li + li::before { width: 28px; margin: 0 8px; }
  .buoc__ten { display: none; }
  .buoc li.hien-tai .buoc__ten { display: inline; }
  .lien-he-noi__nut span { display: none; }
  .lien-he-noi__nut { width: 46px; height: 46px; }
  .lien-he-noi { right: 12px; }
  .tien-trinh li { font-size: 11.5px; }
  .thanh-cong { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .bao { padding: 0 14px; }
  .luoi-sp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sp__than { padding: 10px 11px 12px; }
  .sp__ten { font-size: 13.5px; }
  .sp__gia { font-size: 15.5px; }
  .sp__gia-goc { font-size: 12px; margin-left: 5px; }
  .sp__nut { height: 36px; font-size: 12.5px; }
  .khoi { margin-top: 30px; }
  .khoi__dau h2 { font-size: calc(19px * var(--tl-td, 1)); }
  .dm-luoi { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .dm-o { padding: 12px 8px; }
  .dm-o__anh { width: 60px; height: 60px; }
  .cam-ket { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cam-ket__o { font-size: 12.5px; padding: 10px; gap: 8px; }
  .cam-ket__icon { width: 34px; height: 34px; }
  .vi-sao__luoi { grid-template-columns: 1fr; }
  .chan__luoi { grid-template-columns: 1fr; gap: 24px; padding: 32px 14px 24px; }
  .trang-dau h1, .tieu-de-trang { font-size: calc(23px * var(--tl-td, 1)); }
  .ct__ten { font-size: calc(22px * var(--tl-td, 1)); }
  .ct__gia { font-size: 26px; }
  .ct__gia-goc { font-size: 14.5px; }
  .ct__giam { gap: 5px 8px; }
  .thanh-tren__hang { height: 30px; font-size: 12px; }
  .hop-nho { padding: 24px 18px; }
  .trang-tinh { padding: 22px 18px; }
}

/* =====================================================================
   BIẾN THỂ PHONG CÁCH — lớp trên <body> đặt từ cài đặt theme (layout/theme.liquid):
   chu-*, dau-{sang|toi|gon}, hero-{truot|toan-man|tap-chi|hai-cot}, the-{khung|phang|noi},
   tieu-de-{trai|giua|hoa}, nut-{bo|pill|vuong}, toi (nền tối), anh-doc (ảnh 4:5).
   ===================================================================== */
:root { --nen-anh: #f3f4f6; }
h1, h2, .hero__chu h2, .hero-md__chu h1, .ct__ten, .trang-dau h1, .tieu-de-trang, .khoi__dau h2, .vi-sao__o b, .trang-tinh h1, .thanh-cong h1 { font-family: var(--font-tieu-de); }

/* ---------- nút ---------- */
body.nut-pill .nut, body.nut-pill .sp__nut, body.nut-pill .tim__nut, body.nut-pill .dau__gio, body.nut-pill .dm-menu__nut--gon, body.nut-pill .phan-trang__so, body.nut-pill .phan-trang__nut { border-radius: 999px; }
body.nut-vuong .nut, body.nut-vuong .sp__nut, body.nut-vuong .tim__form, body.nut-vuong .tim__nut, body.nut-vuong .dau__gio, body.nut-vuong .chip, body.nut-vuong .phan-trang__so, body.nut-vuong .phan-trang__nut, body.nut-vuong .so-luong, body.nut-vuong .o input, body.nut-vuong .o textarea, body.nut-vuong .lua-chon, body.nut-vuong .tinh-trang, body.nut-vuong .nhan, body.nut-vuong .cam-ket__icon, body.nut-vuong .dm-o__anh, body.nut-vuong .hero-md__nhan { border-radius: 2px; }
body.nut-vuong .nut { letter-spacing: .06em; text-transform: uppercase; font-size: 13px; font-weight: 700; }
body.nut-vuong .nut--lon { font-size: 13.5px; padding: 15px 28px; }

/* ---------- tiêu đề khối ---------- */
body.tieu-de-giua .khoi__dau { flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 26px; }
body.tieu-de-giua .khoi__dau h2 { font-size: calc(30px * var(--tl-td, 1)); padding: 0; }
body.tieu-de-giua .khoi__dau h2::after { content: ''; display: block; width: 44px; height: 2px; background: var(--mau-nhan); margin: 12px auto 0; }
body.tieu-de-giua .khoi__icon { display: none; }
body.tieu-de-giua .khoi__xem { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
body.tieu-de-hoa .khoi__dau h2 { font-size: calc(14px * var(--tl-td, 1)); letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--chu); }
body.tieu-de-hoa .khoi__icon { display: none; }
body.tieu-de-hoa .khoi__dau { border-bottom: 1px solid var(--vien); padding-bottom: 12px; }
body.tieu-de-hoa .khoi__xem { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
/* Tinh chỉnh theo FONT TIÊU ĐỀ THẬT SỰ đang hiện (27/09/2026): lớp tde-{mã} + tde-{loại} do phần mềm giải từ cài đặt
   (FontLq.LopBody), không theo mã BỘ font (chu-*) — chủ shop tự đổi riêng font tiêu đề thì tinh chỉnh vẫn đúng.
   ĐẶT SAU khối kiểu tiêu đề (tieu-de-giua / tieu-de-hoa) có chủ ý: cùng độ ưu tiên thì quy tắc sau thắng — chữ viết tay
   không bao giờ bị viết hoa + giãn chữ (đứt nét nối, không đọc nổi) dù chủ shop chọn kiểu tiêu đề "hoa".
   CỠ CHỮ không đè trực tiếp mà qua HỆ SỐ --tl-td (tiêu đề khối, tiêu đề trang, tên sản phẩm chi tiết) và --tl-hero (băng
   rôn): mọi khai báo cỡ tiêu đề gốc đã nhân sẵn hệ số (mặc định 1 ⇒ font cũ không đổi một pixel), nên font mắt nhỏ /
   font bè ngang tự co giãn ĐÚNG với mọi kiểu tiêu đề, mọi kiểu băng rôn, cả bản điện thoại — trước đây đè cỡ tuyệt đối
   thì Unbounded to hơn mọi font trên điện thoại, còn "font-size: .88em" làm tiêu đề băng rôn teo còn 13px. */
body.tde-co-chan .khoi__dau h2 { font-weight: 600; letter-spacing: 0; }
body.tde-co-chan .hero-md__chu h1, body.tde-co-chan .hero__chu h2, body.tde-co-chan .hero-tc__chu h1 { font-weight: 600; }
/* Chữ có chân mắt nhỏ (x-height thấp): cùng cỡ chữ trông bé hơn hẳn chữ không chân — nâng hệ số cho cân. */
body.tde-cormorant, body.tde-eb-garamond { --tl-td: 1.3; --tl-hero: 1.08; }
body.tde-cormorant .hero-md__chu h1, body.tde-cormorant .hero__chu h2, body.tde-cormorant .hero-tc__chu h1,
body.tde-eb-garamond .hero-md__chu h1, body.tde-eb-garamond .hero__chu h2, body.tde-eb-garamond .hero-tc__chu h1 { letter-spacing: -.01em; }
/* Tên sản phẩm bằng font tiêu đề — chỉ với các bộ có chân sang trọng, nơi chữ tên hàng là một phần của vẻ đẹp. */
body.tde-cormorant .sp__ten, body.tde-playfair .sp__ten, body.tde-eb-garamond .sp__ten, body.tde-prata .sp__ten { font-family: var(--font-tieu-de); font-size: 16px; }
/* Chữ cao hẹp: viết hoa, giãn nhẹ. */
body.tde-oswald .khoi__dau h2, body.tde-oswald .hero-md__chu h1, body.tde-oswald .hero__chu h2,
body.tde-anton .khoi__dau h2, body.tde-anton .hero-md__chu h1, body.tde-anton .hero__chu h2,
body.tde-big-shoulders .khoi__dau h2, body.tde-big-shoulders .hero-md__chu h1, body.tde-big-shoulders .hero__chu h2 { text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
/* Font CHỈ CÓ MỘT độ đậm (Anton, Prata): CẤM trình duyệt tô đậm giả (nét nhoè, dấu tiếng Việt dính vào chữ) ở MỌI chỗ
   dùng font tiêu đề — tiêu đề, khối "Vì sao", ô phụ băng rôn tạp chí, tên sản phẩm… "style" vẫn cho nghiêng giả. Thuộc
   tính kế thừa nên đặt ở body là phủ hết; font nội dung đi kèm (Inter, Mulish) có đủ độ đậm thật nên không đổi gì. */
body.tde-anton, body.tde-prata { font-synthesis: style; }
/* Unbounded rất bè ngang: cùng cỡ chữ là tràn dòng — co hệ số, khít chữ lại. */
body.tde-unbounded { --tl-td: .9; --tl-hero: .86; }
body.tde-unbounded .khoi__dau h2, body.tde-unbounded .hero-md__chu h1, body.tde-unbounded .hero__chu h2, body.tde-unbounded .hero-tc__chu h1 { letter-spacing: -.02em; }
/* Viết tay: to hơn, KHÔNG viết hoa, KHÔNG giãn chữ — kể cả khi kiểu tiêu đề là "hoa". */
body.tde-viet-tay { --tl-td: 1.3; --tl-hero: 1.1; }
body.tde-viet-tay .khoi__dau h2, body.tde-viet-tay .hero-md__chu h1, body.tde-viet-tay .hero__chu h2, body.tde-viet-tay .hero-tc__chu h1 { font-weight: 700; letter-spacing: 0; text-transform: none; }

/* ---------- thẻ sản phẩm: phẳng ---------- */
body.the-phang .sp { border: 0; background: transparent; box-shadow: none; border-radius: 0; }
body.the-phang .sp:hover { transform: none; box-shadow: none; }
body.the-phang .sp__anh { border: 0; border-radius: var(--goc-xiu); background: var(--nen-anh); }
body.the-phang .sp__than { padding: 14px 0 0; text-align: center; align-items: center; }
body.the-phang .sp__dm { letter-spacing: .12em; font-size: 11px; }
body.the-phang .sp__ten { font-weight: 500; min-height: 0; }
body.the-phang .sp__gia { color: var(--chu); font-weight: 600; font-size: 15.5px; }
body.the-phang .sp__gia--giam { color: var(--do); }
/* Kiểu phẳng: bỏ hết mảng màu, nên khung giá đỏ và nhãn tròn phải nhạt theo — chỉ còn gạch ngang và một chữ nhỏ. */
body.the-phang .ct__gia-hop--giam { background: var(--nen); box-shadow: none; }
body.the-phang .ct__giam-pt { background: none; color: var(--do); padding: 0; font-weight: 700; }
body.the-phang .nhan--giam { background: var(--do); }
body.the-phang .sp__mua { width: 100%; }
body.the-phang .sp__nut { border: 1px solid var(--chu); color: var(--chu); background: transparent; height: 42px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: .2s; }
body.the-phang .sp:hover .sp__nut { opacity: 1; transform: none; }
@media (hover: hover) { body.the-phang .sp__nut:hover { background: var(--chu); color: var(--the); } }
body.the-phang .nhan { border-radius: 2px; background: var(--chu); }
body.the-phang .nhan--hot { background: var(--mau-nhan); }
@media (hover: none) { body.the-phang .sp__nut { opacity: 1; transform: none; } }

/* ---------- thẻ sản phẩm: nổi ---------- */
body.the-noi .sp { border: 0; box-shadow: var(--bong-2); border-radius: 22px; }
body.the-noi .sp:hover { box-shadow: var(--bong-3); }
body.the-noi .sp__anh { padding: 12px 12px 0; border: 0; background: transparent; }
body.the-noi .sp__anh img { border-radius: 14px; }
body.the-noi .sp__nhan { top: 22px; left: 22px; }
body.the-noi .sp__het { left: 12px; right: 12px; border-radius: 0 0 14px 14px; }
body.the-noi .sp__nut { background: var(--mau-nhan); border-color: var(--mau-nhan); color: #fff; }
body.the-noi .sp__nut:hover { filter: brightness(1.07); }
body.the-noi .sp__than { padding: 14px 16px 16px; }
body.the-noi .dm-o { border: 0; box-shadow: var(--bong-2); }
body.the-noi .cam-ket__o { border: 0; box-shadow: var(--bong-2); }

/* ---------- ảnh dọc 4:5 ---------- */
body.anh-doc .sp__anh { aspect-ratio: 4/5; }
body.anh-doc .ct__anh-lon { aspect-ratio: 4/5; }
body.anh-doc .ct__anh-lon img { object-fit: cover; }
body.anh-doc .hero-md__o img { aspect-ratio: 4/5; }

/* ---------- đầu trang tối ---------- */
body.dau-toi .dau { background: #0f172a; color: #fff; }
body.dau-toi .dau.cuon { box-shadow: 0 6px 24px -14px rgba(0,0,0,.6); }
body.dau-toi .logo__chu { color: #fff; }
body.dau-toi .logo:hover .logo__chu { color: var(--mau-nhan); }
body.dau-toi .logo img { filter: brightness(0) invert(1); }
body.dau-toi .tim__form { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
body.dau-toi .tim__form:focus-within { background: rgba(255,255,255,.12); box-shadow: 0 0 0 4px rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
body.dau-toi .tim input { color: #fff; }
body.dau-toi .tim input::placeholder { color: rgba(255,255,255,.55); }
body.dau-toi .tim__icon { color: rgba(255,255,255,.6); }
body.dau-toi .tim__nut { background: var(--mau-nhan); }
body.dau-toi .dau__ho-tro { color: #fff; }
body.dau-toi .dau__ho-tro small { color: rgba(255,255,255,.6); }
body.dau-toi .dau__ho-tro-icon { background: rgba(255,255,255,.1); color: #fff; }
body.dau-toi .dau__gio { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
body.dau-toi .dau__gio:hover { border-color: var(--mau-nhan); color: var(--mau-nhan); }
body.dau-toi .dau__gio-so { border-color: #0f172a; }
body.dau-toi .dau__menu, body.dau-toi .dau__icon { color: #fff; }
body.dau-toi .dau__nav-bao { border-color: rgba(255,255,255,.1); background: #0b1220; }
body.dau-toi .dm-menu__nut { background: var(--mau-nhan); color: #fff; border-right: 0; }
body.dau-toi .dm-menu__nut:hover, body.dau-toi .dm-menu.mo .dm-menu__nut { background: var(--mau-nhan); filter: brightness(1.08); }
body.dau-toi .nav-chinh a { color: rgba(255,255,255,.8); }
body.dau-toi .nav-chinh a:hover { background: rgba(255,255,255,.08); color: #fff; }
body.dau-toi .nav-chinh a.dang-chon { background: rgba(255,255,255,.12); color: #fff; }
body.dau-toi .nav-lien-ket { color: rgba(255,255,255,.75); }
body.dau-toi .nav-lien-ket:hover { color: #fff; }
body.dau-toi .thanh-tren { background: #000; }
body.dau-toi .dau__nav-gon .nav-chinh a { color: rgba(255,255,255,.85); }
body.dau-toi .dm-menu__nut--gon { color: #fff; }

/* ---------- đầu trang gọn (một hàng) ---------- */
body.dau-gon .dau__hang { height: 74px; gap: 28px; }
.dau__nav-gon { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.dau__nav-gon .nav-chinh { flex: 1; }
.dau__nav-gon .nav-chinh a { padding: 8px 12px; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; border-radius: 0; border-bottom: 2px solid transparent; }
.dau__nav-gon .nav-chinh a:hover, .dau__nav-gon .nav-chinh a.dang-chon { background: transparent; border-bottom-color: var(--mau-nhan); color: var(--chu); }
.dm-menu__nut--gon { height: auto; padding: 8px 12px; margin: 0; background: transparent; color: var(--chu); border: 0; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; }
.dm-menu__nut--gon:hover, .dm-menu.mo .dm-menu__nut--gon { background: transparent; color: var(--mau-nhan); }
body.dau-gon .dm-menu__bang { left: 0; top: calc(100% + 16px); border-radius: var(--goc-nho); }
.dau__icon { width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--chu); }
.dau__icon:hover { background: var(--nen); }
.dau__icon .i { width: 22px; height: 22px; }
body.dau-gon .dau__gio { border: 0; padding: 8px 6px; }
body.dau-gon .dau__gio-chu { display: none; }
body.dau-gon .dau__gio-so { left: 22px; }
.dau__tim-hang { border-top: 1px solid var(--vien); padding: 12px 0; background: var(--the); }
.dau__tim-hang .tim { max-width: 720px; }
body.dau-toi .dau__tim-hang { background: #0b1220; border-color: rgba(255,255,255,.1); }
body.dau-gon .thanh-tren { font-size: 12px; letter-spacing: .04em; }

/* ---------- băng rôn: tràn màn hình ---------- */
.hero-vung--tran { margin-top: 0; }
.hero--toan-man .hero__ray { border-radius: 0; box-shadow: none; }
.hero--toan-man .hero__the { aspect-ratio: 21/9; min-height: 420px; align-items: center; justify-content: center; }
.hero--toan-man .hero__chu { text-align: center; max-width: 820px; padding: 40px 24px; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.25)); border-radius: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: none; }
.hero--toan-man .hero__chu h2 { font-size: calc(clamp(30px, 5vw, 60px) * var(--tl-hero, 1)); line-height: 1.08; }
.hero--toan-man .hero__chu p { margin: 14px auto 22px; font-size: clamp(15px, 1.6vw, 19px); max-width: 640px; }
.hero--toan-man .hero__cham { bottom: 22px; }
.hero--toan-man .hero__mui { opacity: .9; }
body.hero-toan-man .cam-ket { margin-top: -28px; position: relative; z-index: 2; }

/* ---------- băng rôn: tạp chí ---------- */
.hero-tc { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.hero-tc__anh { position: absolute; inset: 0; background: var(--nen-anh) center/cover no-repeat; }
.hero-tc__anh::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 55%, transparent 100%); }
.hero-tc__chu { position: relative; color: #fff; padding: 0 20px 56px; width: 100%; }
.hero-tc__nhan { display: inline-block; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; opacity: .9; }
.hero-tc__chu h1 { font-size: calc(clamp(36px, 7vw, 92px) * var(--tl-hero, 1)); line-height: .98; letter-spacing: -.02em; max-width: 900px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero-tc__chu p { font-size: clamp(15px, 1.5vw, 19px); max-width: 560px; margin: 18px 0 24px; opacity: .95; }
.hero-tc__phu { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 18px; }
.hero-tc__o { position: relative; display: block; overflow: hidden; border-radius: var(--goc-xiu); }
.hero-tc__o img { width: 100%; aspect-ratio: 16/7; object-fit: cover; transition: transform .6s; }
.hero-tc__o:hover img { transform: scale(1.04); }
.hero-tc__o span { position: absolute; left: 20px; bottom: 16px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-tc__o b { display: block; font-size: 20px; font-family: var(--font-tieu-de); }
.hero-tc__o small { font-size: 13px; }
body.hero-tap-chi .cam-ket { margin-top: 28px; }

/* ---------- băng rôn: hai cột với banner ---------- */
.hero-md--banner .hero-md__anh img { aspect-ratio: 5/4; }

/* ---------- nền tối ---------- */
body.toi { --nen: #0b0f19; --the: #121826; --chu: #eef2f7; --chu-2: #b6c0cf; --chu-mo: #7c8798; --vien: #202a3a; --vien-dam: #2e394c; --nen-anh: #1a2233; --chinh-nhat: color-mix(in srgb, var(--mau-chinh) 22%, #121826); --nhan-nhat: color-mix(in srgb, var(--mau-nhan) 22%, #121826); --bong-1: 0 1px 2px rgba(0,0,0,.5); --bong-2: 0 14px 34px -14px rgba(0,0,0,.7); --bong-3: 0 28px 60px -22px rgba(0,0,0,.85); }
body.toi .dau { background: #0b0f19; color: #fff; }
body.toi .dau__nav-bao { background: #0b0f19; border-color: var(--vien); }
body.toi .logo__chu { color: #fff; }
body.toi .tim__form { background: var(--the); border-color: var(--vien-dam); }
body.toi .tim input { color: #fff; }
body.toi .tim input::placeholder { color: var(--chu-mo); }
body.toi .tim__goi-y { background: var(--the); border-color: var(--vien-dam); }
body.toi .tim__goi-y a:hover { background: var(--chinh-nhat); }
body.toi .tim__goi-y .goi-y__nhom { background: #0f1522; }
body.toi .tim__goi-y .dl-tgy__nhan-gan { background: var(--chinh-nhat); }
body.toi .tim-gan__nhan { border-color: var(--vien-dam); }
body.toi .dau__gio { background: transparent; color: #fff; border-color: var(--vien-dam); }
body.toi .dau__gio-so { border-color: #0b0f19; }
body.toi .dau__ho-tro { color: #fff; }
body.toi .dau__menu, body.toi .dau__icon { color: #fff; }
body.toi .dm-menu__nut { background: var(--chinh-nhat); color: #fff; border-color: var(--vien); }
body.toi .dm-menu__bang { background: var(--the); border-color: var(--vien-dam); }
body.toi .dm-menu__cha { color: var(--chu); }
body.toi .dm-menu__cha:hover { background: var(--chinh-nhat); color: #fff; }
body.toi .dm-menu__anh { background: var(--nen-anh); }
body.toi .nav-chinh a { color: var(--chu-2); }
body.toi .nav-chinh a:hover { background: var(--the); color: #fff; }
body.toi .nav-chinh a.dang-chon { background: var(--chinh-nhat); color: #fff; }
body.toi .nav-lien-ket { color: var(--chu-2); }
body.toi .dau__tim-hang { background: #0b0f19; border-color: var(--vien); }
body.toi .dm-menu__nut--gon { color: #fff; }
body.toi .dau__nav-gon .nav-chinh a:hover, body.toi .dau__nav-gon .nav-chinh a.dang-chon { color: #fff; }
body.toi .sp__anh { background: var(--nen-anh); border-color: var(--vien); }
body.toi .sp__nut { background: transparent; border-color: var(--mau-nhan); color: #fff; }
@media (hover: hover) { body.toi .sp__nut:hover { background: var(--mau-nhan); } }
body.toi .the-phang .sp__nut, body.toi.the-phang .sp__nut { border-color: var(--chu); color: var(--chu); }
body.toi .cam-ket__o, body.toi .dm-o, body.toi .sp, body.toi .ct, body.toi .ct__mo-ta, body.toi .gio__dong, body.toi .tom-tat, body.toi .tt__khoi, body.toi .tt__phai, body.toi .don__dau, body.toi .don__hang, body.toi .qr, body.toi .tien-trinh, body.toi .don__phai, body.toi .trang-tinh, body.toi .hop-nho, body.toi .trong, body.toi .sap-xep, body.toi .vi-sao__o, body.toi .lua-chon, body.toi .dich-vu__ds label, body.toi .chip, body.toi .phan-trang__so, body.toi .phan-trang__nut, body.toi .so-luong, body.toi .gio-dong__xoa button { background: var(--the); border-color: var(--vien); color: var(--chu); }
body.toi .lua-chon:has(input:checked) { background: var(--chinh-nhat); }
body.toi .lua-chon__icon, body.toi .ct__gia-hop, body.toi .ct__chinh-sach, body.toi .dich-vu, body.toi .trong__icon, body.toi .hop-nho__icon { background: var(--nen-anh); }
body.toi .o input, body.toi .o textarea, body.toi .ma-gg input, body.toi .sap-xep select, body.toi .so-luong input { background: var(--nen-anh); border-color: var(--vien-dam); color: var(--chu); }
body.toi .ct__anh-lon { background: var(--nen-anh); border-color: var(--vien); }
body.toi .ct__anh-lon img { background: var(--nen-anh); }
body.toi .ct__thumb button { background: var(--nen-anh); border-color: var(--vien); }
/* Dòng trên (0,2,2) thắng .ct__thumb button.dang-chon (0,2,1) ⇒ nền tối trước nay không thấy viền ô đang chọn. Trang CÓ video phải thấy
   ô nào đang xem (video hay ảnh) nên sửa riêng cho dải có video; dải chỉ ảnh giữ nguyên như cũ. */
body.toi .ct__thumb--co-video button:hover, body.toi .ct__thumb--co-video button.dang-chon { border-color: var(--mau-chinh); }
body.toi .van-ban { color: var(--chu-2); }
body.toi .tb--ok { background: #052e1c; color: #86efac; border-color: #14532d; }
body.toi .tb--loi { background: #3b0a0a; color: #fca5a5; border-color: #7f1d1d; }
body.toi .cbct__chip-mon li.cbct__chip-mon--het, body.toi .cbct__o-het { background: #3b0a0a; color: #fca5a5; border-color: #7f1d1d; }
body.toi .cb__mon li.cb__mon--het small { color: #fca5a5; }
body.toi .cbct__chon-bao { color: #fbbf24; }
body.toi .tinh-trang.con { background: #052e1c; color: #86efac; }
body.toi .thanh-cong { background: linear-gradient(135deg, #052e1c, var(--the)); border-color: #14532d; }
body.toi .hero-md { background: radial-gradient(900px 400px at 0% 0%, var(--chinh-nhat), transparent 60%), var(--the); border-color: var(--vien); }
body.toi .hero-md__chu h1, body.toi .hero-md__chu p { color: var(--chu); }
body.toi .hero-md__o { background: var(--the); border-color: var(--vien); }
body.toi .hero-md__o span { color: var(--chu); }
body.toi .dm-o__anh { border-color: var(--the); background: var(--nen-anh); box-shadow: 0 0 0 1px var(--vien); }
body.toi .cam-ket__icon, body.toi .vi-sao__icon { background: var(--chinh-nhat); color: #fff; }
body.toi .tom-tat__freeship { color: var(--chu); }
body.toi .chan { background: #05080f; }
body.toi .nav-duoi { background: #0b0f19; border-color: var(--vien); }
body.toi .nav-duoi a, body.toi .nav-duoi button { color: var(--chu-2); }
body.toi .nav-duoi__so { border-color: #0b0f19; }
body.toi .thanh-mua { background: #0b0f19; border-color: var(--vien); }
body.toi .ngan-keo__hop, body.toi .gio-mini__hop, body.toi .gio-mini__chan { background: var(--the); color: var(--chu); }
body.toi .ngan-keo__dau, body.toi .gio-mini__dau, body.toi .gio-mini__chan, body.toi .gm-dong { border-color: var(--vien); }
body.toi .ngan-keo li > a:hover { background: var(--nen-anh); }
body.toi .ngan-keo__anh, body.toi .gm-dong img, body.toi .tt__sp-anh img, body.toi .gio-dong__anh img, body.toi .tim__goi-y img { background: var(--nen-anh); }
body.toi .nut-dong { background: var(--nen-anh); color: var(--chu); }
body.toi .nut--vien { background: transparent; color: #fff; border-color: var(--chu-2); }
body.toi .nut--vien:hover { background: rgba(255,255,255,.08); color: #fff; }
body.toi .nut--sang { background: var(--chinh-nhat); color: #fff; }
body.toi .toast { background: #fff; color: #0b0f19; }
body.toi .khoi__icon { background: var(--chinh-nhat); color: #fff; }
body.toi .duong-dan span { color: var(--chu-2); }
body.toi .sp__gia { color: var(--mau-nhan); }
body.toi .sp__gia--giam, body.toi .ct__gia-hop--giam .ct__gia { color: #f87171; }
/* Nền tối: hộp giá hồng nhạt của bản sáng sẽ chói mắt — đổi sang nền tối có viền đỏ mờ, chữ đỏ sáng hơn để đọc được. */
body.toi .ct__gia-hop--giam { background: var(--nen-anh); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .35); }
body.toi .ct__giam-pt, body.toi .nhan--giam { background: #ef4444; }
body.toi .ct__giam-tien { color: #4ade80; }
body.toi .sp--het .sp__anh img { opacity: .6; }
body.toi .dau.cuon { box-shadow: 0 6px 24px -14px rgba(0,0,0,.9); }

@media (max-width: 900px) {
  .dau__nav-gon { display: none; }
  body.dau-gon .dau__hang { height: auto; }
  /* min-height 0: giữ min-height cùng aspect-ratio thì trình duyệt nới RỘNG tấm băng rôn (300 × 4/3 = 400px > màn 375px) và cắt mất mép phải. */
  .hero--toan-man .hero__the { min-height: 0; aspect-ratio: 4/3; }
  .hero--toan-man .hero__chu h2 { font-size: calc(28px * var(--tl-hero, 1)); }
  .hero-tc { min-height: 420px; }
  .hero-tc__chu { padding-bottom: 32px; }
  .hero-tc__chu h1 { font-size: calc(34px * var(--tl-hero, 1)); }
  .hero-tc__phu { grid-template-columns: 1fr; }
  body.the-phang .sp__nut { opacity: 1; transform: none; }
  .dau__tim-hang { padding: 8px 0; }
}

/* =====================================================================
   KHUYẾN MẠI KIỂU SHOPEE (29/09/2026): Flash Sale + đếm ngược, mua kèm deal sốc, mua nhiều giảm giá, mã giảm giá của shop.
   Màu khuyến mại riêng (--km) để theme con đổi được mà không đụng màu chính / màu nhấn.
   ===================================================================== */
:root { --km: #ee4d2d; --km-dam: #d0341c; --km-nhat: #fff4f1; --km-vien: #ffd0c4; }
.nhan--fs { background: linear-gradient(90deg, #ff6a3d, var(--km)); display: inline-flex; align-items: center; gap: 3px; letter-spacing: 0; text-transform: none; }
.nhan--fs .i { width: 12px; height: 12px; vertical-align: 0; }
.sp__fs { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--km); white-space: nowrap; overflow: hidden; }
.sp__fs .i { width: 13px; height: 13px; }
.sp__fs b { font-variant-numeric: tabular-nums; }
.sp__km { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sp__km span { font-size: 11px; font-weight: 700; color: var(--km); border: 1px solid var(--km-vien); background: var(--km-nhat); border-radius: 3px; padding: 0 6px; line-height: 1.65; white-space: nowrap; }

.fs { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; background: linear-gradient(90deg, #f53d2d 0%, #ff6633 100%); color: #fff; border-radius: var(--goc-nho) var(--goc-nho) 0 0; padding: 10px 16px; margin: 18px 0 0; }
.fs + .ct__gia-hop { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.fs__ten { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; letter-spacing: .01em; min-width: 0; }
.fs__ten .i { width: 20px; height: 20px; flex-shrink: 0; filter: drop-shadow(0 1px 0 rgba(0,0,0,.15)); }
.fs__dem { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fs__dem b { font-family: ui-monospace, Consolas, 'SF Mono', monospace; font-variant-numeric: tabular-nums; background: rgba(0,0,0,.3); padding: 3px 8px; border-radius: 4px; font-size: 14px; letter-spacing: .04em; }
.fs--sap { background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%); border-radius: var(--goc-nho); margin-bottom: 0; }
.fs--sap + .ct__gia-hop { margin-top: 12px; border-radius: var(--goc-nho); }
.ct__gia-hop--fs { background: var(--km-nhat); box-shadow: inset 0 0 0 1px var(--km-vien); }
.ct__gia-hop--fs .ct__gia { color: var(--km); }
.ct__gioi-han { font-size: 12.5px; color: var(--chu-2); margin-top: 8px; }

.khoi-fs { position: relative; isolation: isolate; }
.khoi-fs::before { content: ""; position: absolute; inset: -14px 8px auto; height: 150px; background: linear-gradient(180deg, var(--km-nhat), transparent); border-radius: var(--goc); z-index: -1; }
.khoi-fs__dau { flex-wrap: wrap; gap: 8px 16px; }
.khoi-fs__dau h2 { display: inline-flex; align-items: center; gap: 8px; color: var(--km); text-transform: uppercase; letter-spacing: .02em; }
.khoi-fs__dau h2 .i { width: 24px; height: 24px; }
.khoi-fs__dau .fs__dem { color: var(--chu-2); margin-right: auto; }
.khoi-fs__dau .fs__dem b { background: var(--chu); color: #fff; }
.km-khoi { border: 1px dashed var(--km-vien); background: #fffaf8; border-radius: var(--goc-nho); padding: 12px 14px; margin: 12px 0; }
.km-khoi__dau { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.km-khoi__dau .i { color: var(--km); }
.km-khoi__dau b { color: var(--chu); }
.km-khoi__ghi { margin: 0; font-size: 13.5px; color: var(--chu-2); }
.km-khoi__ghi a { color: var(--km); font-weight: 600; }
.km-bac { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.km-bac__o { background: #fff; border: 1px solid var(--km-vien); border-radius: var(--goc-xiu); padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.km-bac__o small { color: var(--chu-mo); font-size: 12px; }
.km-bac__o b { color: var(--km); font-size: 15px; }
.km-bac__o span { font-size: 12.5px; color: var(--chu-2); }

.ve-ds { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.ve-ds--doc { flex-direction: column; overflow: visible; }
.ve { flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: stretch; width: 250px; background: #fff; border: 1px solid var(--km-vien); border-left: 4px solid var(--km); border-radius: var(--goc-xiu); padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: box-shadow .15s; }
.ve-ds--doc .ve { width: 100%; }
.ve:hover { box-shadow: var(--bong-1); }
.ve__trai { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; min-width: 0; }
.ve__trai b { font-family: ui-monospace, Consolas, 'SF Mono', monospace; color: var(--km); font-size: 14px; letter-spacing: .02em; }
.ve__trai small { font-size: 12px; color: var(--chu-2); line-height: 1.4; }
.ve__trai small.mo { color: var(--chu-mo); }
.ve__nut { display: grid; place-items: center; padding: 0 12px; border-left: 1px dashed var(--km-vien); font-size: 12px; font-weight: 700; color: var(--km); white-space: nowrap; }

.km-kem { margin-top: 28px; }
.km-kem .khoi__dau { flex-wrap: wrap; gap: 4px 12px; }
.km-kem .khoi__dau h2 { display: inline-flex; align-items: center; gap: 8px; }
.km-kem .khoi__dau h2 .i { color: var(--km); width: 22px; height: 22px; }
.km-kem__ds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.km-mon { background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc-nho); padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.km-mon__anh { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--goc-xiu); background: var(--nen); }
.km-mon__anh img { width: 100%; height: 100%; object-fit: cover; }
.km-mon__anh .nhan { position: absolute; top: 6px; left: 6px; }
.km-mon__ten { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.km-mon__gia { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.km-mon__gia b { color: var(--km); font-size: 15px; }
.km-mon__gia s { color: var(--chu-mo); font-size: 12px; }
.km-mon form { margin: 0; }
.km-mon__het { font-size: 12.5px; }
.km-kem__ghi { margin-top: 10px; }

.gio-dong__gia s { color: var(--chu-mo); margin-left: 6px; font-size: 12.5px; white-space: nowrap; display: inline-block; }
.gio-dong__gia-ban, .gio-dong__doan { white-space: nowrap; }
.gio-dong__doan { display: block; }
.gio-dong__km { display: flex; align-items: flex-start; gap: 5px; font-size: 12.5px; font-weight: 600; margin-top: 3px; color: var(--km); }
.gio-dong__km .i { width: 14px; height: 14px; margin-top: 2px; }
.goi-y-km { display: flex; gap: 8px; align-items: flex-start; background: var(--km-nhat); color: var(--km-dam); border-radius: var(--goc-xiu); padding: 9px 11px; font-size: 13px; margin: 8px 0; line-height: 1.45; }
.goi-y-km .i { width: 16px; height: 16px; margin-top: 1px; color: var(--km); }
.tom-tat__ma { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--vien-dam); }
.tom-tat__ma-dau { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.tom-tat__ma-dau .i { color: var(--km); }
.tom-tat__ma-dau small { font-weight: 500; }
.gm-dong__gia s { color: var(--chu-mo); margin-left: 5px; font-size: 12px; }
.gm-dong__km { font-size: 11.5px; font-weight: 600; color: var(--km); margin-top: 2px; }
.gio-mini__tk { display: flex; justify-content: space-between; font-size: 13.5px; padding-bottom: 4px; }
.ma-cong-khai { display: flex; gap: 6px; flex-wrap: wrap; margin: -2px 0 10px; }
.ma-cong-khai button { font: inherit; font-size: 12px; font-weight: 700; color: var(--km); background: var(--km-nhat); border: 1px dashed #f8a58f; border-radius: 4px; padding: 3px 9px; cursor: pointer; font-family: ui-monospace, Consolas, 'SF Mono', monospace; }
.ma-cong-khai button:hover { background: #ffe8e1; }
.tt__km { display: block; color: var(--km); font-size: 12px; font-weight: 600; }
.tt__sp b s { display: block; color: var(--chu-mo); font-size: 12px; font-weight: 500; text-align: right; }
.don__km { display: block; color: var(--km); font-size: 12px; font-weight: 600; }
@media (max-width: 1100px) { .km-kem__ds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .km-kem__ds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .km-kem__ds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fs { padding: 9px 12px; margin-top: 14px; }
  .fs__ten { font-size: 13.5px; }
  .fs__dem { font-size: 12px; gap: 6px; }
  .fs__dem b { font-size: 13px; padding: 2px 6px; }
  .ve { width: 225px; }
  .ve-ds--doc .ve { width: 100%; }
  .sp__km span { font-size: 10.5px; }
}

/* =====================================================================
   COMBO (05/10/2026) — mục menu "Combo", khối trang chủ, trang /combo, trang chi tiết, dòng giỏ.
   Thiết kế: một combo là MỘT BỘ — ảnh ghép các món có dấu "+" giữa, nhãn COMBO + bong bóng giảm giá, danh sách món, giá nổi + "Tiết kiệm …".
   Màu lấy hết từ biến của giao diện nên 72 giao diện tự mang màu riêng: dải nền = màu chủ đạo (--mau-chinh) tối đi, điểm nhấn + nút = màu nhấn (--mau-nhan),
   bong bóng giảm giá = --do. Khác Flash Sale (--km đỏ cam) để hai khối cạnh nhau không lẫn.
   ===================================================================== */
:root { --cb-dai: linear-gradient(135deg, color-mix(in srgb, var(--mau-chinh) 84%, #000) 0%, color-mix(in srgb, var(--mau-chinh) 56%, #000) 100%); }

/* ----- mục menu nổi bật + nhãn HOT ----- */
.nav-chinh a.nav-noi-bat { color: var(--mau-nhan); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.nav-chinh a.nav-noi-bat:hover { color: var(--mau-nhan); background: var(--nhan-nhat); }
.nav-chinh a.nav-noi-bat.dang-chon { background: var(--nhan-nhat); color: var(--mau-nhan); }
.nav-noi-bat__hot { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; line-height: 1; color: #fff; background: var(--do); border-radius: 999px; padding: 3px 6px 3px; animation: nav-hot 1.8s ease-in-out infinite; }
@keyframes nav-hot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .nav-noi-bat__hot { animation: none; } }
.ngan-keo a.nav-noi-bat { color: var(--mau-nhan); font-weight: 800; }
.ngan-keo .nav-noi-bat__hot { margin-left: 8px; vertical-align: 2px; animation: none; }
body.toi .nav-chinh a.nav-noi-bat:hover, body.toi .nav-chinh a.nav-noi-bat.dang-chon { background: var(--chinh-nhat); color: var(--mau-nhan); }

/* ----- nhãn COMBO + bong bóng giảm giá (dùng trên thẻ và trang chi tiết) ----- */
.nhan--combo { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(90deg, var(--mau-nhan), color-mix(in srgb, var(--mau-nhan) 70%, #000)); letter-spacing: .05em; box-shadow: 0 6px 14px -6px var(--mau-nhan); }
.nhan--combo .i { width: 13px; height: 13px; }
.cb__nhan { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; }
.cb__giam { position: absolute; top: 10px; right: 10px; z-index: 3; min-width: 50px; padding: 6px 8px 7px; border-radius: 14px 14px 14px 4px; background: var(--do); color: #fff; text-align: center; line-height: 1; box-shadow: 0 8px 18px -6px rgba(220,38,38,.65); transform: rotate(4deg); }
.cb__giam small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .92; margin-bottom: 3px; }
.cb__giam b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }

/* ----- thẻ combo ----- */
.cb { position: relative; display: flex; flex-direction: column; background: var(--the); color: var(--chu); border: 1px solid var(--vien); border-radius: var(--goc); overflow: hidden; box-shadow: var(--bong-1); min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.cb:hover { transform: translateY(-5px); box-shadow: var(--bong-2); border-color: color-mix(in srgb, var(--mau-nhan) 45%, var(--vien)); }
.cb__anh { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: color-mix(in srgb, var(--mau-chinh) 6%, var(--the)); }
.cb__anh-rieng { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cb:hover .cb__anh-rieng { transform: scale(1.05); }
/* ảnh ghép: 1 / 2 / 3 / 4 ô; khe 3px; dấu + trắng tròn ở giao điểm nói "đây là một bộ" */
.cb__bia { position: absolute; inset: 0; display: grid; gap: 3px; background: var(--the); }
.cb__bia--1 { grid-template: 1fr / 1fr; }
.cb__bia--2 { grid-template: 1fr / 1fr 1fr; }
.cb__bia--3 { grid-template: 1fr 1fr / 1.15fr 1fr; }
.cb__bia--3 .cb__o:first-child { grid-row: span 2; }
.cb__bia--4 { grid-template: 1fr 1fr / 1fr 1fr; }
.cb__o { position: relative; display: block; overflow: hidden; min-width: 0; min-height: 0; background: color-mix(in srgb, var(--mau-chinh) 8%, var(--the)); }
.cb__o img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cb:hover .cb__o img { transform: scale(1.06); }
.cb__o em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 44px; color: color-mix(in srgb, var(--mau-chinh) 40%, var(--the)); }
.cb__o i { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-weight: 800; font-size: 12px; line-height: 1; color: #fff; background: rgba(15,23,42,.82); padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(2px); }
.cb__bia--2::after, .cb__bia--3::after, .cb__bia--4::after { content: "+"; position: absolute; left: 50%; top: 50%; z-index: 2; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; color: var(--mau-nhan); font: 800 21px/29px var(--font); text-align: center; box-shadow: 0 6px 16px -4px rgba(0,0,0,.45); }
.cb--het .cb__anh { filter: grayscale(.75); opacity: .85; }
.cb--het .cb__giam, .cb--het .cb__nhan { opacity: .65; }
.cb__het-nhan { position: absolute; inset: auto 0 0 0; z-index: 3; background: rgba(15,23,42,.78); color: #fff; font-size: 12.5px; font-weight: 700; text-align: center; padding: 7px; letter-spacing: .02em; }

.cb__than { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; min-width: 0; }
.cb__dm { align-self: flex-start; font-size: 11.5px; color: var(--chu-mo); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.cb__dm:hover { color: var(--mau-chinh); }
.cb__ten { font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb__ten a:hover { color: var(--mau-chinh); }
.cb__mon { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--chu-2); }
.cb__mon li { display: flex; align-items: baseline; gap: 8px; min-width: 0; line-height: 1.4; }
.cb__mon li::before { content: ""; flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; border-radius: 50%; background: color-mix(in srgb, var(--xanh) 16%, var(--the)) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 10px no-repeat; align-self: flex-start; }
.cb__mon li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cb__mon b { color: var(--chu); font-weight: 800; }
.cb__mon li.cb__mon-them { color: var(--chu-mo); font-size: 12.5px; padding-left: 23px; }
.cb__mon li.cb__mon-them::before { display: none; }
/* Món làm combo hết hàng (15/10/2026): dấu x đỏ thay dấu tích + chữ "hết hàng". */
.cb__mon li.cb__mon--het::before { background: #fee2e2 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='3.4' stroke-linecap='round'><path d='M18 6 6 18M6 6l12 12'/></svg>") center / 9px no-repeat; }
.cb__mon li.cb__mon--het small { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: #b91c1c; }
.cb__gia-hop { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.cb__gia { font-size: 24px; font-weight: 800; color: var(--mau-nhan); letter-spacing: -.02em; line-height: 1.1; }
.cb__gia small { font-size: 12px; font-weight: 500; color: var(--chu-mo); letter-spacing: 0; }
.cb__goc { font-size: 14px; color: var(--chu-mo); font-weight: 500; }
.cb__tk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: #15803d; background: color-mix(in srgb, var(--xanh) 12%, var(--the)); border-radius: var(--goc-xiu); padding: 6px 10px; }
.cb__tk .i { width: 14px; height: 14px; flex: 0 0 auto; }
.cb__ton { font-size: 12.5px; font-weight: 700; color: var(--do); }
.cb__mua { margin: 4px 0 0; }
.cb__nut { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 0; border-radius: var(--goc-nho); background: var(--mau-nhan); color: #fff; font-weight: 800; font-size: 14.5px; cursor: pointer; text-decoration: none !important; box-shadow: 0 12px 22px -12px var(--mau-nhan); transition: filter .2s, transform .12s, box-shadow .2s; }
.cb__nut:hover { filter: brightness(1.08); color: #fff; box-shadow: 0 16px 28px -12px var(--mau-nhan); }
.cb__nut:active { transform: translateY(1px); }
.cb__nut .i { width: 18px; height: 18px; }
.cb__nut[disabled] { opacity: .6; cursor: wait; }
.cb__nut--mo { background: var(--the); color: var(--chu-2); border: 1.5px solid var(--vien-dam); box-shadow: none; }
.cb__nut--mo:hover { background: var(--nen); color: var(--chu); box-shadow: none; filter: none; }
body.toi .cb__nut--mo { background: transparent; }

/* ----- khối trang chủ ----- */
.khoi-cb { margin-top: 36px; }
.khoi-cb__nen { position: relative; isolation: isolate; overflow: hidden; border-radius: calc(var(--goc) + 8px); padding: 24px 24px 28px; color: #fff;
  background: radial-gradient(520px 260px at 100% -10%, color-mix(in srgb, var(--mau-nhan) 62%, transparent), transparent 70%), radial-gradient(420px 240px at -4% 112%, rgba(255,255,255,.16), transparent 70%), var(--cb-dai);
  box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--mau-chinh) 80%, #000); }
.khoi-cb__nen::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 2px, transparent 2px 16px); }
.khoi-cb__dau { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.khoi-cb__tieu { display: flex; align-items: center; gap: 14px; min-width: 0; }
.khoi-cb__icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.khoi-cb__icon .i { width: 27px; height: 27px; }
.khoi-cb h2 { margin: 0; font-size: calc(26px * var(--tl-td, 1)); font-weight: 800; letter-spacing: -.02em; color: #fff; text-transform: none; }
.khoi-cb__tieu p { margin: 3px 0 0; font-size: 14px; color: rgba(255,255,255,.88); }
.khoi-cb__tieu p b { display: inline-block; background: #fff; color: var(--do); font-size: 13px; padding: 1px 9px; border-radius: 999px; margin-left: 2px; }
.khoi-cb__xem { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--mau-chinh); font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: 999px; white-space: nowrap; box-shadow: 0 12px 24px -14px rgba(0,0,0,.6); transition: transform .15s; }
.khoi-cb__xem:hover { color: var(--mau-chinh); transform: translateX(3px); }
.khoi-cb__xem .i { width: 16px; height: 16px; }
.khoi-cb__ray { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.khoi-cb .cb { border-color: transparent; box-shadow: 0 18px 36px -22px rgba(0,0,0,.55); }
.khoi-cb .cb:hover { box-shadow: 0 26px 44px -22px rgba(0,0,0,.65); border-color: transparent; }

/* ----- trang /combo ----- */
.cb-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 22px 32px; flex-wrap: wrap; border-radius: calc(var(--goc) + 6px); padding: 30px 34px; margin: 4px 0 18px; color: #fff;
  background: radial-gradient(520px 260px at 100% -20%, color-mix(in srgb, var(--mau-nhan) 62%, transparent), transparent 70%), radial-gradient(420px 220px at -4% 120%, rgba(255,255,255,.16), transparent 70%), var(--cb-dai); }
.cb-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 2px, transparent 2px 16px); }
.cb-hero__chu { min-width: 0; flex: 1 1 340px; }
.cb-hero__nhan { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.16); border-radius: 999px; padding: 6px 13px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.cb-hero__nhan .i { width: 16px; height: 16px; }
.cb-hero h1 { margin: 12px 0 0; font-size: calc(36px * var(--tl-td, 1)); font-weight: 800; letter-spacing: -.025em; color: #fff; line-height: 1.12; }
.cb-hero p { margin: 8px 0 0; font-size: 16px; color: rgba(255,255,255,.9); max-width: 560px; }
.cb-hero p b { background: #fff; color: var(--do); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.cb-hero__so { display: flex; gap: 12px; flex-wrap: wrap; }
.cb-hero__o { min-width: 118px; text-align: center; background: rgba(255,255,255,.14); border-radius: 16px; padding: 13px 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.cb-hero__o b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.cb-hero__o span { display: block; margin-top: 3px; font-size: 12.5px; opacity: .88; }
.cb-hero__o--giam { background: var(--do); box-shadow: 0 14px 28px -14px rgba(220,38,38,.8); transform: rotate(-2deg); }
.cb-loi-ich { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.cb-loi-ich li { display: flex; align-items: center; gap: 10px; background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc-nho); padding: 12px 14px; font-size: 13.5px; color: var(--chu-2); }
.cb-loi-ich .i { width: 22px; height: 22px; color: var(--mau-nhan); }
.cb-loi-ich b { color: var(--chu); }
.luoi-cb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.luoi-cb--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* ----- chi tiết combo ----- */
.cbct__anh { aspect-ratio: 1; }
.cbct__anh img { object-fit: cover; }
.cbct__gia-hop .cbct__le { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; color: var(--chu-2); }
.cbct__le .i { color: var(--mau-nhan); flex: 0 0 auto; }
.cbct__le s { color: var(--chu-mo); }
.cbct__le b { color: var(--mau-nhan); }
.cbct__chip-mon { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.cbct__chip-mon li { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--nen); color: var(--chu-2); }
.cbct__chip-mon li b { color: var(--mau-nhan); }
.cbct__chip-mon li a:hover { color: var(--mau-chinh); text-decoration: underline; }
/* Món làm combo hết hàng (15/10/2026). */
.cbct__chip-mon li.cbct__chip-mon--het { background: #fef2f2; color: #991b1b; }
.cbct__chip-mon li small { font-weight: 700; margin-left: 2px; }
.cbct__o--het .cbct__o-anh img { filter: grayscale(.8); opacity: .75; }
.cbct__o-het { font-size: 12px; font-weight: 700; line-height: 1.3; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 999px; padding: 2px 10px; }
/* Chọn kích cỡ / màu của từng món trong combo (05/10/2026): mỗi món một khung, mỗi đơn vị trong bộ một hàng ô chọn. */
.cbct__chon { display: grid; gap: 12px; margin: 0 0 14px; }
.cbct__chon-mon { min-width: 0; border: 1px solid var(--vien); border-radius: var(--goc-nho); padding: 12px 14px; background: var(--the); }
.cbct__chon-ten { font-weight: 700; font-size: 14px; margin-bottom: 8px; overflow-wrap: anywhere; }
.cbct__chon-ten small { color: var(--mau-nhan); font-weight: 800; font-size: 12.5px; }
.cbct__chon-dv + .cbct__chon-dv { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--vien); }
.cbct__chon-sp { font-size: 12px; font-weight: 700; color: var(--chu-mo); margin-bottom: 6px; }
.cbct__chon-ghi { margin: 0; font-size: 12.5px; }
.gio-dong__het a { text-decoration: underline; font-weight: 700; }
/* "Có trong combo" ở trang sản phẩm + "Combo phù hợp" ở trang tìm kiếm (05/10/2026) */
.cb-chua, .cb-tim { margin-top: 28px; }
.cb-tim { margin-top: 8px; margin-bottom: 24px; }
.cb-tim__khong-sp { margin: 0 0 24px; }
.cb-tim__khong-sp a { color: var(--mau-chinh); text-decoration: underline; }
.cbct__goi .khoi__dau { margin-bottom: 14px; }
.cbct__pt { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 10px 8px; padding: 22px; background: var(--the); border: 1px solid var(--vien); border-radius: var(--goc); box-shadow: var(--bong-1); }
.cbct__o { flex: 1 1 130px; max-width: 190px; min-width: 110px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.cbct__o-anh { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: var(--goc-nho); border: 1px solid var(--vien); background: color-mix(in srgb, var(--mau-chinh) 6%, var(--the)); }
.cbct__o-anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.cbct__o-anh:hover img { transform: scale(1.06); }
.cbct__o-anh em { font-style: normal; font-weight: 800; font-size: 40px; color: color-mix(in srgb, var(--mau-chinh) 40%, var(--the)); }
.cbct__o-anh i { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-weight: 800; font-size: 13px; line-height: 1; color: #fff; background: var(--mau-nhan); padding: 5px 9px; border-radius: 999px; box-shadow: 0 6px 14px -6px var(--mau-nhan); }
.cbct__o-ten { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cbct__o-ten a:hover { color: var(--mau-chinh); }
.cbct__o-gia { font-size: 13px; color: var(--chu-mo); font-weight: 600; }
.cbct__o-gia small { font-weight: 500; }
.cbct__cong, .cbct__bang { flex: 0 0 auto; align-self: center; margin-bottom: 54px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 800; font-size: 20px; line-height: 1; }
.cbct__cong { background: var(--nhan-nhat); color: var(--mau-nhan); }
.cbct__bang { background: var(--chinh-nhat); color: var(--mau-chinh); }
.cbct__kq { flex: 1 1 190px; max-width: 250px; min-width: 170px; display: flex; flex-direction: column; justify-content: center; gap: 4px; text-align: center; padding: 18px 16px; border-radius: var(--goc); color: #fff; background: radial-gradient(260px 160px at 100% 0%, color-mix(in srgb, var(--mau-nhan) 62%, transparent), transparent 70%), var(--cb-dai); }
.cbct__kq small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.cbct__kq b { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cbct__kq s { font-size: 14px; opacity: .75; }
.cbct__kq span { align-self: center; margin-top: 4px; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--do); border-radius: 999px; padding: 4px 12px; }

/* ----- dòng giỏ / giỏ mini / thanh toán / đơn ----- */
.gio-dong__combo { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--chu-2); line-height: 1.45; }
.gio-dong__combo .nhan { flex: 0 0 auto; font-size: 10px; padding: 2px 8px; }
.gio-dong__combo-mon { min-width: 0; }
.gio-dong__tk { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: #15803d; }
.gio-dong__tk .i { width: 14px; height: 14px; }
.gm-dong__combo { font-size: 12px; color: var(--chu-2); margin-top: 2px; line-height: 1.4; }
.gm-dong__combo b { color: #fff; background: var(--mau-nhan); border-radius: 999px; padding: 1px 7px; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; margin-right: 3px; }
.tt__sp-ten small.tt__combo { color: var(--chu-2); }
.hang--combo { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--vien); font-size: 13.5px; }
.hang--combo .i { width: 15px; height: 15px; color: var(--mau-nhan); margin-right: 5px; vertical-align: -2px; }
.hang--combo:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.hang--con { padding: 3px 0; font-size: 13.5px; color: var(--chu-2); }
.hang--con > span { padding-left: 20px; }
.hang--combo > b { white-space: nowrap; }

/* ----- thích ứng ----- */
@media (max-width: 1100px) {
  .luoi-cb--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* Dòng giỏ của combo có thêm câu "Gồm: …" nên cần cả bề rộng: tên + chi tiết trải hai cột, nút xoá thả xuống góc phải (không chiếm cột). */
  .gio-dong--combo { position: relative; grid-template-areas: 'anh tt tt' 'anh sl tong'; }
  .gio-dong--combo .gio-dong__xoa { position: absolute; top: 12px; right: 12px; }
  .gio-dong--combo .gio-dong__tt { padding-right: 44px; }
  .luoi-cb { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cb-hero { padding: 24px 22px; }
  .cb-hero h1 { font-size: calc(30px * var(--tl-td, 1)); }
  /* Trang chủ: dải trượt ngang, mỗi thẻ rộng ~78% để lộ mép thẻ kế tiếp (gợi ý vuốt) */
  .khoi-cb__nen { padding: 20px 0 22px; border-radius: var(--goc); }
  .khoi-cb__dau { padding: 0 18px; margin-bottom: 16px; }
  .khoi-cb__ray { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 18px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .khoi-cb__ray::-webkit-scrollbar { display: none; }
  .khoi-cb__ray .cb { flex: 0 0 min(78%, 330px); scroll-snap-align: start; }
  .cbct__pt { padding: 16px; }
}
@media (max-width: 600px) {
  .luoi-cb { grid-template-columns: minmax(0, 1fr); }
  .luoi-cb--4 { grid-template-columns: minmax(0, 1fr); }
  .khoi-cb h2 { font-size: calc(21px * var(--tl-td, 1)); }
  .khoi-cb__icon { width: 44px; height: 44px; border-radius: 14px; }
  .khoi-cb__icon .i { width: 23px; height: 23px; }
  .khoi-cb__xem { padding: 8px 14px; font-size: 13px; }
  .cb-hero { padding: 18px 16px; gap: 14px; }
  .cb-hero h1 { margin-top: 10px; font-size: calc(27px * var(--tl-td, 1)); }
  .cb-hero p { font-size: 14.5px; margin-top: 6px; }
  .cb-hero__nhan { font-size: 11px; padding: 5px 11px; }
  /* ba ô số liệu nằm MỘT hàng (không xuống ba dòng làm khối chào cao quá màn hình) */
  .cb-hero__so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .cb-hero__o { min-width: 0; padding: 9px 6px; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; }
  .cb-hero__o b { font-size: 16px; letter-spacing: -.03em; }
  .cb-hero__o span { font-size: 10.5px; line-height: 1.25; }
  .cb-hero__o:nth-child(3) b { font-size: 14px; }
  .cb-loi-ich { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .cb-loi-ich li { flex-direction: column; text-align: center; gap: 6px; padding: 10px 6px; font-size: 11.5px; line-height: 1.35; }
  .cb-loi-ich .i { width: 20px; height: 20px; }
  .cb__ten { font-size: 16px; }
  .luoi-cb .cb__anh { aspect-ratio: 16 / 10; }
  .cbct__o { flex-basis: 96px; min-width: 96px; }
  .cbct__cong, .cbct__bang { width: 26px; height: 26px; font-size: 17px; margin-bottom: 60px; }
  .cbct__kq { max-width: none; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cb, .cb:hover { transition: none; transform: none; } .cb__o img, .cb__anh-rieng, .cbct__o-anh img { transition: none; } }

/* ===== 05/10/2026 - ĐỢT THÂN THIỆN ĐIỆN THOẠI: mọi khối dưới đây nằm CUỐI tệp (cùng độ ưu tiên thì khối sau thắng) ===== */

/* [1] CHỒNG THANH ĐÁY: --nav-cao = tổng chiều cao thanh đang hiện ở đáy (đã gồm vùng an toàn). Nút nổi, toast, chân trang dùng lại biến này. */
@media (max-width: 900px) {
  :root { --nav-cao: env(safe-area-inset-bottom, 0px); }
  body.co-nav-duoi { --nav-cao: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body.co-thanh-mua { --nav-cao: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .nav-duoi { height: calc(64px + env(safe-area-inset-bottom, 0px)); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  body.co-thanh-mua .nav-duoi { display: none; }
  .nav-duoi a, .nav-duoi button { font-size: 12px; min-width: 0; gap: 2px; padding: 0 2px; }
  .nav-duoi span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
  .nav-duoi a.dang-chon { box-shadow: inset 0 2px 0 var(--mau-chinh); }
  .nav-duoi__so { font-size: 12px; }
  .thanh-mua { padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
  body.co-thanh-mua .thanh-mua { bottom: 0; }
  .toast, body.co-nav-duoi .toast { bottom: calc(var(--nav-cao) + 20px); }
  .chan__duoi { padding-bottom: var(--nav-cao); }
  body.trang-san-pham .chan__duoi, body.trang-chi-tiet-combo .chan__duoi, body.trang-gio-hang .chan__duoi, body.trang-thanh-toan .chan__duoi { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 340px) { .nav-duoi a, .nav-duoi button { font-size: 11px; } }

/* [2] NÚT GỌI/ZALO NỔI = MỘT NÚT MỞ RA (checkbox, không JS) */
.lien-he-noi__cb, .lien-he-noi__fab { display: none; }
@media (max-width: 900px) {
  .lien-he-noi, body.co-nav-duoi .lien-he-noi { flex-direction: column-reverse; align-items: flex-end; gap: 10px; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(var(--nav-cao) + 12px); transition: bottom .2s; }
  body.trang-gio-hang .lien-he-noi, body.trang-thanh-toan .lien-he-noi, body.trang-don-hang .lien-he-noi, body.trang-tra-cuu-don .lien-he-noi { display: none; }
  .lien-he-noi__cb { display: block; position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
  .lien-he-noi__fab { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--mau-nhan); color: #fff; box-shadow: var(--bong-2); cursor: pointer; }
  .lien-he-noi__fab .i { width: 24px; height: 24px; }
  .lien-he-noi__fab-dong, .lien-he-noi__cb:checked + .lien-he-noi__fab .lien-he-noi__fab-mo { display: none; }
  .lien-he-noi__cb:checked + .lien-he-noi__fab .lien-he-noi__fab-dong { display: block; }
  .lien-he-noi__cb:focus-visible + .lien-he-noi__fab { outline: 3px solid color-mix(in srgb, var(--mau-chinh) 45%, transparent); outline-offset: 2px; }
  .lien-he-noi__cb ~ .lien-he-noi__nut { display: none; }   /* chỉ ẩn khi khối có hộp kiểm: khối tuỳ biến / theme gói riêng kiểu cũ (không có hộp kiểm) giữ nguyên hai nút */
  .lien-he-noi__cb:checked ~ .lien-he-noi__nut, .lien-he-noi--mot .lien-he-noi__nut { display: grid; }
  .lien-he-noi__cb:checked ~ .lien-he-noi__nut span { display: block; opacity: 1; right: 56px; }
  .lien-he-noi--mot .lien-he-noi__cb, .lien-he-noi--mot .lien-he-noi__fab { display: none; }
  .lien-he-noi__nut--goi .i { animation-iteration-count: 3; }
}

/* [3] NỀN TỐI / ĐẦU TRANG TỐI — sửa chữ vô hình, mất dấu chọn. NGOẠI LỆ CÓ CHỦ Ý của đợt này: khối duy nhất không giới hạn theo độ rộng (đây là lỗi hiển thị cả trên máy tính, không phải đổi thiết kế). */
body.dau-toi:not(.toi) .tim--trang .tim__form { background: #fff; border-color: var(--vien-dam); }
body.dau-toi:not(.toi) .tim--trang .tim__form:focus-within { background: #fff; border-color: var(--mau-chinh); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mau-chinh) 12%, transparent); }
body.dau-toi:not(.toi) .tim--trang input { color: var(--chu); }
body.dau-toi:not(.toi) .tim--trang input::placeholder { color: var(--chu-mo); }
body.dau-toi:not(.toi) .tim--trang .tim__icon { color: var(--chu-mo); }
body.dau-toi .tim__goi-y a { color: var(--chu); }
body.toi .chip.dang-chon { border-color: color-mix(in srgb, var(--mau-chinh) 60%, #fff); background: var(--chinh-nhat); color: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--mau-chinh) 60%, #fff); }
/* Luật có :has tách riêng: trình duyệt không hiểu :has sẽ bỏ cả danh sách chọn nếu gộp chung với luật trên. */
body.toi .chip--chon:has(input:checked) { border-color: color-mix(in srgb, var(--mau-chinh) 60%, #fff); background: var(--chinh-nhat); color: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--mau-chinh) 60%, #fff); }
body.toi .chip:hover { border-color: color-mix(in srgb, var(--mau-chinh) 60%, #fff); color: #fff; }
body.toi .phan-trang__so.hien-tai { background: color-mix(in srgb, var(--mau-chinh) 65%, #fff); border-color: color-mix(in srgb, var(--mau-chinh) 65%, #fff); color: #0b0f19; }
body.toi .nav-duoi a.dang-chon { color: color-mix(in srgb, var(--mau-chinh) 60%, #fff); box-shadow: inset 0 2px 0 color-mix(in srgb, var(--mau-chinh) 60%, #fff); }
body.toi .toast { background: #1e293b; color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.22), var(--bong-3); }
body.toi .o label { color: var(--chu-2); }
body.toi .ct__xem-them { background: var(--the); border-color: var(--vien-dam); color: var(--chu); }
body.toi .km-khoi { background: var(--nen-anh); border-color: color-mix(in srgb, var(--km) 45%, var(--vien-dam)); }
body.toi .km-bac__o, body.toi .ve { background: var(--the); border-color: color-mix(in srgb, var(--km) 40%, var(--vien-dam)); }
body.toi .ve { border-left-color: var(--km); }
body.toi .khoi-fs::before { opacity: .15; }
body.toi .khoi-fs__dau .fs__dem b { background: var(--km); color: #fff; }
body.toi .cb__tk, body.toi .gio-dong__tk { color: #4ade80; }
body.toi .gio-dong__het, body.toi .gm-dong__loi, body.toi .tt__loi, body.toi .cb__ton { color: #f87171; }
body.toi { --cb-dai: linear-gradient(135deg, color-mix(in srgb, var(--mau-chinh) 52%, #000) 0%, color-mix(in srgb, var(--mau-chinh) 30%, #000) 100%); }

/* [4] Ô NHẬP >=16px (iOS không tự phóng to), GỢI Ý TÌM KIẾM, BÀN PHÍM ẢO */
@media (max-width: 900px) {
  .o input, .o textarea, .ma-gg input, .tim input, .so-luong input { font-size: 16px; }
  .o label small { font-size: 12px; }
  .sap-xep select { font-size: 16px; min-height: 44px; }
  .tim, .tim__form { min-width: 0; }
  .tim__form { min-height: 44px; }
  .tim__nut { min-height: 38px; flex: none; }
  .tim__goi-y { max-height: calc(100vh - 240px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .tim__goi-y a { min-height: 48px; }
  .tim__goi-y a:last-child { position: sticky; bottom: 0; background: inherit; box-shadow: 0 -1px 0 var(--vien); }
  .tim__goi-y a:last-child:hover { background: var(--chinh-nhat); }
  .tim__goi-y .goi-y__nhom { font-size: 12px; }
  .tim__goi-y .goi-y__nhan { font-size: 12px; padding: 1px 8px; }
  body.trang-tim-kiem:not(.dau-gon) .tim--trang { display: none; }
  html.ban-phim .nav-duoi, html.ban-phim .lien-he-noi, html.ban-phim .thanh-mua, html.ban-phim .toast { display: none; }
}
@supports (height: 100dvh) { @media (max-width: 900px) { .tim__goi-y { max-height: max(160px, calc(var(--vv-cao, 100dvh) - 240px)); } } }

/* [5] THANH MỎNG TRÊN CÙNG */
@media (max-width: 900px) {
  .thanh-tren__hang { height: 40px; }
  .thanh-tren a { min-height: 40px; padding: 0 4px; }
  body.co-nav-duoi .thanh-tren__phai { display: none; }
  body.co-nav-duoi .thanh-tren__hang { justify-content: center; }
  body.co-nav-duoi .thanh-tren--khong-sdt:not(.thanh-tren--co-tb) { display: none; }
  .thanh-tren--co-tb .thanh-tren__trai, .thanh-tren--co-tb .thanh-tren__phai { display: none; }
  .thanh-tren--co-tb .thanh-tren__giua { display: block; }
  .thanh-tren--co-tb .thanh-tren__hang { height: auto; min-height: 36px; padding-block: 6px; }
  .thanh-tren .thanh-tren__tb { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; line-height: 1.35; font-size: 12.5px; }
}
@media (max-width: 360px) { .thanh-tren__hang { gap: 8px; } .thanh-tren a { gap: 4px; } body.dau-gon .thanh-tren { letter-spacing: 0; } }

/* [6] ĐẦU TRANG / NGĂN KÉO / GIỎ MINI (giỏ mini ở 320px: bộ +/- tổng ~119px phải còn vừa cột giữa; nếu tràn hạ nút xuống 36px) */
@media (max-width: 900px) {
  body.co-nav-duoi:not(.dau-gon) .dau { position: relative; }
  .logo__chu { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 17px; line-height: 1.15; }
  body.dau-gon .dau__hang { gap: 6px; }
  body.dau-gon .dau__phai { gap: 0; }
  .dau__menu, .dau__icon, .nut-dong { width: 44px; height: 44px; }
  .dau__gio, body.dau-gon .dau__gio { min-width: 44px; min-height: 44px; justify-content: center; }
  body.dau-gon .dau__gio { padding: 0; }
  .dau__gio-so, body.dau-gon .dau__gio-so { left: 24px; top: 1px; }
  .ngan-keo__than { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
  .ngan-keo__hop { padding-left: env(safe-area-inset-left, 0px); }
  .gio-mini__hop { padding-right: env(safe-area-inset-right, 0px); }
  .gio-mini__than { overscroll-behavior: contain; }
  .gio-mini__chan { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .ngan-keo__nen, .gio-mini__nen { touch-action: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gm-dong__xoa { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -12px 0 auto; padding: 0; }
  .gm-dong .so-luong--nho button { width: 38px; height: 40px; font-size: 19px; }
  .gm-dong .so-luong--nho input { width: 40px; height: 40px; }
  .cb__o i { backdrop-filter: none; }
}

/* [7] BĂNG RÔN (ảnh băng rôn là <img> thật: luật nền .hero__anh áp mọi độ rộng, hiển thị y hệt cover/center) */
.hero__the { position: relative; }
.hero__anh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__the .hero__chu { position: relative; }
.hero-tc__anh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero__cham { gap: 0; bottom: 2px; }
  .hero__cham button { position: relative; width: 32px; height: 32px; background: none; }
  .hero__cham button::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(0,0,0,.28); transition: .2s; }
  .hero__cham button.dang-chon { width: 44px; background: none; }
  .hero__cham button.dang-chon::before { width: 22px; margin-left: -11px; background: #fff; }
  .hero--toan-man .hero__cham { bottom: 32px; }
  .hero--toan-man .hero__chu h2 { line-height: 1.2; }
  .hero-tc__chu h1 { line-height: 1.12; }
  .hero-tc__chu { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .hero-md__chu h1 { line-height: 1.2; }
}
/* Đánh đổi: phụ đề băng rôn trượt (phu_de) ẩn trên điện thoại (vẫn có trong HTML); băng rôn toàn màn hình giữ 2 dòng phụ đề. */
@media (max-width: 600px) {
  .hero__chu { padding: 14px 16px 16px; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.2) 100%); }
  .hero__chu h2 { font-size: calc(20px * var(--tl-hero, 1)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero__chu p { display: none; }
  .hero__chu .nut { margin-top: 10px; padding: 8px 14px; min-height: 40px; font-size: 13px; }
  .hero--toan-man .hero__chu { padding: 24px 18px 40px; background: linear-gradient(to top, rgba(0,0,0,.66), rgba(0,0,0,.4)); }
  .hero--toan-man .hero__chu h2 { font-size: calc(26px * var(--tl-hero, 1)); -webkit-line-clamp: 3; }
  .hero--toan-man .hero__chu p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 10px auto 14px; font-size: 14.5px; }
  .hero:has(.hero__cham) .hero__chu { padding-bottom: 36px; }
  .hero--toan-man:has(.hero__cham) .hero__chu { padding-bottom: 68px; }
  .hero-tc__chu { padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
  .hero-md { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 20px; gap: 14px; }
  .hero-md--banner .hero-md__anh { order: -1; }
  .hero-md--banner .hero-md__anh img { aspect-ratio: 16 / 10; box-shadow: none; border-radius: var(--goc-nho); }
  .hero-md__nhan { margin-bottom: 10px; }
  .hero-md__chu h1 { font-size: calc(24px * var(--tl-hero, 1)); }
  .hero-md__chu p { font-size: 15px; margin: 10px 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-md__nut { gap: 10px; }
  body .hero-md__nut .nut { flex: 1 1 0; min-width: 0; padding: 12px 10px; font-size: 14px; white-space: normal; text-align: center; }
  .hero-md__diem { display: none; }
  .hero-md__luoi { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .hero-md__luoi::-webkit-scrollbar { display: none; }
  .hero-md__luoi .hero-md__o { flex: 0 0 44%; scroll-snap-align: start; }
}

/* [8] TRANG CHỦ NGẮN LẠI: khối phụ thành HÀNG VUỐT NGANG (công tắc body.tc-vuot từ ô cài đặt tc_vuot) */
@media (max-width: 600px) {
  body.tc-vuot .khoi--hang-ngang .luoi-sp { display: flex; gap: 10px; overflow-x: auto; margin-inline: -14px; padding: 4px 14px 24px; margin-bottom: -14px; scroll-snap-type: x proximity; scroll-padding-inline: 14px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  body.tc-vuot .khoi--hang-ngang .luoi-sp::-webkit-scrollbar { display: none; }
  body.tc-vuot .khoi--hang-ngang .luoi-sp > .sp { flex: 0 0 min(42vw, 190px); scroll-snap-align: start; }
  body.tc-vuot .dm-luoi--ngang { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: 92px; gap: 10px; overflow-x: auto; margin-inline: -14px; padding: 2px 14px 8px; scroll-snap-type: x proximity; scroll-padding-inline: 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
  body.tc-vuot .dm-luoi--ngang::-webkit-scrollbar { display: none; }
  body.tc-vuot .dm-luoi--ngang .dm-o { scroll-snap-align: start; }
  .dm-o { padding: 10px 6px; }
  .dm-o small { display: none; }
  .dm-o__ten { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .vi-sao__luoi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vi-sao__o { padding: 14px 10px; }
  .vi-sao__icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 8px; }
  .vi-sao__icon .i { width: 22px; height: 22px; }
  .vi-sao__o b { font-size: 14px; margin-bottom: 4px; }
  .vi-sao__o p { font-size: 12.5px; line-height: 1.45; }
}

/* [9] THẺ SẢN PHẨM */
@media (max-width: 600px) {
  .sp__dm { pointer-events: none; }
  .sp__nut, body.the-phang .sp__nut { height: 44px; font-size: 13px; }
  .sp__ts span, .sp__km span { font-size: 12px; }
  .sp .sp__nhan .nhan:nth-child(n+3) { display: none; }
  .nhan, .nhan--giam { font-size: 12px; padding: 3px 8px; }
  body.the-noi .luoi-sp { gap: 14px 12px; }
  body.the-noi .sp { border-radius: 18px; }
  body.the-noi .sp__anh { padding: 8px 8px 0; }
  body.the-noi .sp__anh img { border-radius: 12px; }
  body.the-noi .sp__nhan { top: 16px; left: 16px; }
  body.the-noi .sp__het { left: 8px; right: 8px; border-radius: 0 0 12px 12px; }
  body.the-noi .sp__than { padding: 11px 12px 14px; }
  body.the-phang .luoi-sp { row-gap: 22px; }
  body.the-phang .sp__nut { white-space: nowrap; letter-spacing: .04em; font-size: 12px; }
}
@media (max-width: 360px) { .sp__nut .i { display: none; } }

/* [10] TRANG DANH SÁCH */
@media (max-width: 900px) {
  .duong-dan { padding: 2px 0; gap: 2px; }
  .duong-dan a, .duong-dan span { display: inline-flex; align-items: center; min-height: 40px; }
  .khoi__xem { min-height: 40px; padding-inline: 2px; }
  .phan-trang { gap: 8px; }
}
@media (max-width: 600px) {
  .sap-xep { flex-wrap: nowrap; gap: 10px; padding: 8px 10px 8px 14px; }
  .sap-xep__dem { white-space: nowrap; font-size: 13px; }
  .sap-xep__chon { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .sap-xep__chon label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sap-xep select { max-width: 100%; min-height: 44px; font-size: 16px; padding: 0 12px; }
  body.trang-danh-muc .chip-dm:not(.chip-dm--giua), body.trang-combo .chip-dm:not(.chip-dm--giua) { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 2px 14px 4px; scroll-padding-inline: 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
  body.trang-danh-muc .chip-dm:not(.chip-dm--giua)::-webkit-scrollbar, body.trang-combo .chip-dm:not(.chip-dm--giua)::-webkit-scrollbar { display: none; }
  body.trang-danh-muc .chip-dm:not(.chip-dm--giua) .chip, body.trang-combo .chip-dm:not(.chip-dm--giua) .chip { flex: 0 0 auto; white-space: nowrap; }
  .duong-dan { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; margin-inline: -14px; padding-inline: 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .duong-dan::-webkit-scrollbar { display: none; }
  .duong-dan > * { flex: 0 0 auto; }
  .duong-dan > span:last-child { flex: 0 1 auto; min-width: 0; max-width: 62vw; display: block; line-height: 40px; overflow: hidden; text-overflow: ellipsis; }
  body.tieu-de-giua .khoi__dau { margin-bottom: 16px; gap: 4px; }
  body.tieu-de-giua .khoi__dau h2 { font-size: calc(22px * var(--tl-td, 1)); }
  body.tieu-de-giua .khoi__dau h2::after { margin-top: 8px; }
}

/* [11] TRANG SẢN PHẨM / COMBO (.ct__dem do app.js tạo, ẩn từ 901px để máy tính y nguyên) */
.ct__dem { display: none; }
.ct__anh-lon { touch-action: pan-y pinch-zoom; }
.cbct__giong { margin-left: 8px; vertical-align: middle; min-height: 36px; }
@media (max-width: 900px) {
  .ct__dem { display: block; position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(15,23,42,.68); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
  .ct__thumb { scroll-snap-type: x proximity; }
  .ct__thumb button { scroll-snap-align: center; }
  .chip--chon, .chip--pl { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
  .chip--pl { display: inline-flex; }
  .ct__phan-loai .chip-dm, .ct__chon .chip-dm { gap: 10px; }
  .ct__xem-them { min-height: 44px; }
  .ct__tt { display: flex; flex-direction: column; }
  .ct__tt > .ct__diem-nhan, .ct__tt > .ct__dac-diem, .ct__tt > .ct__cua-hang { order: 2; }
  .ct__tt > .ct__chinh-sach { order: 3; }
  .ct__tt > .ct__the { order: 4; }
  .thanh-mua .nut { min-height: 44px; }
  .van-ban img { height: auto !important; max-width: 100%; }
  .van-ban table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .van-ban iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .van-ban pre, .van-ban code { max-width: 100%; overflow-x: auto; }
  .van-ban { overflow-wrap: break-word; }
  .chip--chon input, .o input, .o textarea { scroll-margin: 96px 0 140px; }
}
@media (max-width: 420px) {
  .thanh-mua { gap: 8px; padding-top: 8px; }
  .thanh-mua:not(.thanh-mua--gio):not(.thanh-mua--dat) .thanh-mua__gia small { display: none; }
  .thanh-mua__gia b { display: block; font-size: 16px; line-height: 1.2; white-space: nowrap; }
  .thanh-mua__gia b s { display: block; margin: 0; }
  .thanh-mua__chu { display: none; }
  .thanh-mua .nut--vien { width: 48px; padding: 0; }
}

/* [12] GIỎ / THANH TOÁN / ĐƠN */
.hang--chep { align-items: center; }
.hang--chep > b { margin-left: auto; text-align: right; overflow-wrap: anywhere; user-select: all; }
.chep { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1.5px solid var(--mau-chinh); background: #fff; color: var(--mau-chinh); border-radius: var(--goc-xiu); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.chep.da { background: var(--xanh); border-color: var(--xanh); color: #fff; }
body.toi .chep { background: transparent; color: #fff; border-color: var(--chu-2); }
body.toi .chep.da { background: var(--xanh); border-color: var(--xanh); color: #fff; }
@media (max-width: 900px) {
  .so-luong--nho button { width: 40px; height: 44px; font-size: 19px; }
  .so-luong--nho input { width: 42px; height: 44px; }
  .gio-dong__xoa button { width: 44px; height: 44px; }
  .nut--nho { min-height: 40px; padding: 9px 14px; }
  .ma-gg .nut { min-height: 46px; padding: 0 16px; }
  .tt__phai .ma-gg .nut { margin-top: 0; }
  .ma-cong-khai { gap: 8px; }
  .ma-cong-khai button { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .tt__sua { padding: 10px 0; margin-bottom: 4px; }
  .dich-vu { padding: 12px; }
  .dich-vu__ds label { min-height: 48px; }
  .dich-vu__ds input { width: 20px; height: 20px; }
  .tt__dong { max-height: none; overflow: visible; }
  .don__trai .don__dau { order: -3; }
  .don__trai .qr { order: -2; }
  .don__trai .tien-trinh { order: -1; }
  .thanh-cong { flex-direction: row; text-align: left; gap: 12px; padding: 14px 16px; }
  .thanh-cong__icon { width: 44px; height: 44px; }
  .thanh-cong__icon .i { width: 22px; height: 22px; }
  .thanh-cong h1 { font-size: 19px; }
  .tien-trinh li, .thanh-mua__gia small, .ct__diem-nhan small, .chip--het small { font-size: 12px; }
  .tt__sp-anh i { font-size: 12px; min-width: 22px; height: 22px; }
  .thanh-mua--gio .nut, .thanh-mua--dat .nut { flex: 0 0 auto; }
}
@media (max-width: 600px) {
  .lua-chon { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: 'o ten gia' 'o phu gia'; gap: 2px 12px; padding: 14px; min-height: 56px; }
  .lua-chon__icon { display: none; }
  .lua-chon input { width: 22px; height: 22px; }
  .lua-chon__ten { font-size: 15px; }
  .qr__ma { max-width: min(100%, 300px); }
  .tt__khoi, .tom-tat, .tt__phai, .don__phai, .don__dau, .don__hang, .qr, .ct__mo-ta, .don-nhom { padding: 16px; }
  .tien-trinh { padding: 20px 10px 14px; }
  .hang--chep { flex-wrap: wrap; row-gap: 2px; }
  .hang--chep > span { flex: 1 0 100%; font-size: 12.5px; color: var(--chu-mo); }
  .hang--chep > b { margin-left: 0; text-align: left; flex: 1 1 auto; font-size: 17px; }
  .chep { min-height: 44px; }
}

/* [13] COMBO */
@media (max-width: 900px) { .khoi-cb__ray { scroll-padding-inline: 18px; } .cbct__o-gia small { font-size: 12px; } }
@media (max-width: 600px) {
  .cb__giam { min-width: 54px; }
  .cb__giam small { font-size: 12px; letter-spacing: .02em; }
  .cb-hero__o span { font-size: 12px; }
  .cb-loi-ich li { font-size: 12px; }
  .gio-dong__combo .nhan, .gm-dong__combo b { font-size: 11px; }
  .luoi-cb--4, .km-kem__ds { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 -14px; padding: 2px 14px 12px; scroll-padding-inline: 14px; }
  .luoi-cb--4::-webkit-scrollbar, .km-kem__ds::-webkit-scrollbar { display: none; }
  .luoi-cb--4 > .cb { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
  .km-kem__ds > .km-mon { flex: 0 0 min(44%, 190px); scroll-snap-align: start; }
  .km-mon .nut--nho { min-height: 40px; }
  .cbct__pt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; padding: 14px 12px; }
  .cbct__cong, .cbct__bang { display: none; }
  .cbct__o { flex: none; min-width: 0; max-width: none; }
  .cbct__kq { grid-column: 1 / -1; min-width: 0; max-width: none; }
  .cbct__chon-mon { padding: 10px 12px; }
  .cbct__chon .ct__chon { margin-bottom: 8px; }
  .cbct__chon .ct__nhan { margin-bottom: 4px; }
  .cbct__giong { min-height: 40px; margin: 6px 0 0; display: flex; align-items: center; justify-content: center; }
}

/* [14] CHÂN TRANG */
@media (max-width: 600px) {
  .chan { margin-top: 36px; }
  .chan__luoi { grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 28px 14px 12px; }
  .chan__cot--gt, .chan__luoi > .chan__cot:last-child { grid-column: 1 / -1; }
  .chan__cot ul { gap: 0; }
  .chan__cot .chan__cam-ket { gap: 8px; }
  .chan__cot ul a { display: inline-flex; align-items: center; min-height: 40px; }
  .chan__lien-he li { align-items: center; min-height: 40px; }
  .chan__mxh a { width: 44px; height: 44px; }
  .chan__duoi-hang { flex-direction: column; gap: 2px; }
}

/* [15] TABLET DỌC / NẰM NGANG / TAI THỎ — đặt gần CUỐI tệp (chỉ trước khối [16]) để đè --nav-cao và chiều cao thanh dưới đã định ở [1] */
@media (min-width: 601px) and (max-width: 900px) {
  .cam-ket { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero--toan-man .hero__the { aspect-ratio: 16 / 9; }
  .hero-md { grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 32px; }
  .hero-md__chu h1 { font-size: calc(30px * var(--tl-hero, 1)); }
  .hero-tc__phu { grid-template-columns: 1fr 1fr; }
  .ct { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}
@media (max-width: 900px) { .bao:not(.hero-tc__chu):not(.hero-md) { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); } }
@media (max-width: 600px) { .bao:not(.hero-tc__chu):not(.hero-md) { padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); } }
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1100px) {
  .dau { position: static; }
  .hero__the { aspect-ratio: 21 / 8; max-height: 70vh; }
  .hero--toan-man .hero__the { aspect-ratio: 21 / 9; min-height: 0; }
  .hero-tc { min-height: min(420px, 85vh); }
}
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  body.co-nav-duoi { --nav-cao: calc(48px + env(safe-area-inset-bottom, 0px)); }
  body.co-thanh-mua { --nav-cao: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .nav-duoi { height: calc(48px + env(safe-area-inset-bottom, 0px)); }
  .nav-duoi a, .nav-duoi button { flex-direction: row; gap: 6px; }
  .nav-duoi .i { width: 20px; height: 20px; }
  .nav-duoi__so { position: static; }
  .thanh-mua { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
}

/* [16] CẢM ỨNG / GIẢM CHUYỂN ĐỘNG / TRÌNH DUYỆT CŨ (ba luật :hover tô nền của nút "Thêm vào giỏ" đã được bọc @media (hover: hover) ngay tại chỗ ở phần trên tệp) */
html { -webkit-tap-highlight-color: rgba(15,23,42,.08); }
a, button, label, select, summary, .chip, .so-luong, .so-luong *, .nav-duoi *, .thanh-mua *, .hero__cham button { touch-action: manipulation; }
@media (hover: none) {
  .sp:hover, .dm-o:hover, .hero-md__o:hover, .cb:hover, .khoi-cb__xem:hover, .lien-he-noi__nut:hover { transform: none; }
  .sp:hover .sp__anh img, .dai-banner a:hover img, .hero-tc__o:hover img, .cb:hover .cb__anh-rieng, .cb:hover .cb__o img, a.cbct__o-anh:hover img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 900px) { :root { --chu-mo: #647082; } }
.dai-banner { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
@media (min-width: 601px) and (max-width: 900px) { .cb__giam small { font-size: 11px; letter-spacing: .02em; } .nhan.nhan--combo { font-size: 11px; } }
.lua-chon.dang-chon { border-color: var(--mau-chinh); background: var(--chinh-nhat); box-shadow: 0 0 0 1px var(--mau-chinh); }
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  :root { --chinh-nhat: #eef3fd; --chinh-dam: #1a4fa8; --nhan-nhat: #fff1e6; --cb-dai: var(--mau-chinh); }
  body.toi { --chinh-nhat: #1c2740; --nhan-nhat: #2b2118; }
  .khoi-cb__nen, .cb-hero, .cbct__kq, .logo__mark { background: var(--mau-chinh); }
  .nhan--combo { background: var(--mau-nhan); }
  .cb__anh, .cb__o, .cbct__o-anh { background: var(--nen); }
}

/* ---- Bộ chọn phân loại kiểu Shopee (11/10/2026): ô chọn màu có ảnh + size; JS: app.js › "bộ chọn phân loại" ---- */
.ct__bien-the { margin: 6px 0 16px; }
.ct__bt-nhom { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.ct__bt-nhom legend { padding: 0; }
.ct__bt-nhom legend b { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--chu); }
.ct__bt-luoi { margin-bottom: 0; }
.chip--bt { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; }
.chip--bt-anh { padding: 5px 14px 5px 6px; }
.chip--bt img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.chip--bt.dang-chon { border-color: var(--mau-chinh); color: var(--mau-chinh); background: var(--chinh-nhat); }
.chip--bt:focus-visible { outline: 3px solid color-mix(in srgb, var(--mau-chinh) 45%, transparent); outline-offset: 2px; }
.chip--bt.chip--het { opacity: .6; }
.chip--bt.chip--het.dang-chon { opacity: 1; }
body.toi .chip--bt.dang-chon { border-color: color-mix(in srgb, var(--mau-chinh) 60%, #fff); background: var(--chinh-nhat); color: #fff; }
.thanh-mua.thanh-mua--het { display: none !important; }
@media (max-width: 900px) { .chip--bt { min-height: 44px; } }

/* =====================================================================
   KHU FLASH SALE KIỂU SHOPEE (26/11/2026): khối trang chủ (.fs2), thẻ Flash Sale (.fsc), trang /flash-sale (.fsp), mục menu.
   Dùng màu khuyến mại --km (theme con đổi được). Số liệu (giá sale, % giảm, đã bán, độ dài thanh) do phần mềm chốt — CSS chỉ vẽ.
   ===================================================================== */
.an-chu { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-fs__icon { width: 15px; height: 15px; color: var(--km); }
.nav-noi-bat__hot--fs { background: var(--km); }

.fs2 { background: var(--the); border-radius: var(--goc); box-shadow: var(--bong-1); overflow: hidden; }
.fs2__dau { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 14px 18px; border-bottom: 1px solid var(--vien); }
.fs2__logo { display: inline-flex; align-items: center; gap: 2px; margin: 0; font-size: 24px; line-height: 1; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .01em; color: var(--km); }
.fs2__logo .i { width: 26px; height: 26px; margin: 0 1px; color: #ffd839; filter: drop-shadow(0 1px 0 var(--km-dam)); }
.fs2__ten { font-size: 13px; font-weight: 700; color: var(--km); background: var(--km-nhat); border: 1px solid var(--km-vien); border-radius: 999px; padding: 3px 10px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs2__dem { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-size: 12.5px; font-weight: 600; color: var(--chu-2); white-space: nowrap; }
.fs2__o { display: inline-flex; align-items: center; gap: 3px; }
.fs2__o b { min-width: 26px; height: 26px; padding: 0 4px; display: grid; place-items: center; border-radius: 4px; background: var(--chu); color: #fff; font: 700 14px/1 ui-monospace, Consolas, 'SF Mono', monospace; font-variant-numeric: tabular-nums; }
.fs2__o i { font-style: normal; font-weight: 800; color: var(--chu); }
.fs2__xem { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--km); white-space: nowrap; }
.fs2__xem .i { width: 16px; height: 16px; }
.fs2__xem:hover { color: var(--km-dam); }
.fs2__khung { position: relative; }
.fs2__ray { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px; padding: 14px 18px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.fs2__ray::-webkit-scrollbar { display: none; }
.fs2__ray > * { scroll-snap-align: start; min-width: 0; }
.fs2__mui { position: absolute; top: 40%; z-index: 2; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--vien); background: var(--the); color: var(--chu); box-shadow: var(--bong-2); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.fs2__mui .i { width: 18px; height: 18px; }
.fs2__mui--trai { left: 6px; } .fs2__mui--trai .i { transform: rotate(180deg); }
.fs2__mui--phai { right: 6px; }
.fs2__khung:hover .fs2__mui:not([hidden]), .fs2__mui:focus-visible { opacity: 1; }
.fs2__mui[hidden] { display: none; }

.fsc { display: flex; flex-direction: column; background: var(--the); border-radius: var(--goc-nho); overflow: hidden; position: relative; transition: transform .15s, box-shadow .15s; }
.fsc:hover { transform: translateY(-2px); box-shadow: var(--bong-2); }
.fsc__anh { position: relative; display: block; aspect-ratio: 1; background: var(--nen); overflow: hidden; }
.fsc__anh img { width: 100%; height: 100%; object-fit: cover; display: block; color: transparent; font-size: 0; } /* ảnh hỏng: không để chữ thay thế tràn khung */
.fsc__giam { position: absolute; top: 0; right: 0; width: 40px; padding: 4px 0 7px; text-align: center; background: #ffd839; color: var(--km); font-size: 12px; line-height: 1.15; font-weight: 800; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); }
.fsc__het { position: absolute; inset: auto 0 0 0; background: rgba(15,23,42,.72); color: #fff; text-align: center; font-size: 12.5px; font-weight: 700; padding: 5px; }
.fsc--het .fsc__anh img { opacity: .55; }
.fsc__than { display: flex; flex-direction: column; gap: 6px; padding: 8px 4px 4px; text-align: center; }
.fsc__ten { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.35; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: left; }
.fsc__ten a { color: var(--chu); }
.fsc__gia { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.fsc__gia b { color: var(--km); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fsc__gia b small { font-size: 12px; font-weight: 600; }
.fsc__gia s { color: var(--chu-mo); font-size: 12px; font-variant-numeric: tabular-nums; }
.fsc__thanh { position: relative; height: 18px; border-radius: 999px; background: #ffbda6; overflow: hidden; }
.fsc__thanh-day { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #ff7337, var(--km)); }
.fsc__thanh em { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 3px; height: 100%; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.25); white-space: nowrap; }
.fsc__thanh em .i { width: 12px; height: 12px; color: #ffd839; }
.fsc__thanh--it em { color: var(--km-dam); text-shadow: none; } /* thanh còn ngắn: chữ trắng trên nền hồng nhạt khó đọc */
.fsc__thanh--nong .fsc__thanh-day { background: linear-gradient(90deg, #ff4d1a, #d0011b); }
.fsc__sap { display: flex; align-items: center; justify-content: center; gap: 5px; height: 22px; border-radius: 999px; background: #e7f6f3; color: #0f766e; font-size: 11.5px; font-weight: 700; }
.fsc__sap .i { width: 13px; height: 13px; }
.fsc__gioi-han { font-size: 11px; color: var(--chu-mo); }
.fsc--sap .fsc__gia b { color: var(--chu); }

.fsp__dau { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 16px 20px; margin-top: 4px; border-radius: var(--goc) var(--goc) 0 0; background: linear-gradient(90deg, #f53d2d 0%, #ff6633 100%); }
.fsp__dau .fs2__logo { color: #fff; font-size: 28px; }
.fsp__dau .fs2__logo .i { filter: none; }
.fsp__dau .fs2__dem { color: rgba(255,255,255,.92); margin-right: 0; }
.fsp__khung { display: flex; overflow-x: auto; background: #3b3b3b; scrollbar-width: none; }
.fsp__khung::-webkit-scrollbar { display: none; }
.fsp__tab { flex: 1 0 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 12px; color: rgba(255,255,255,.88); text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.fsp__tab b { font-size: 19px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.fsp__tab small { font-size: 12px; }
.fsp__tab:hover { background: rgba(255,255,255,.08); color: #fff; }
.fsp__tab.dang-chon { background: var(--km); color: #fff; position: relative; }
.fsp__tab.dang-chon::after { content: ""; position: absolute; bottom: -7px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--km); }
.fsp__tt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; background: var(--the); border-radius: 0 0 var(--goc) var(--goc); padding: 16px 20px 6px; box-shadow: var(--bong-1); margin-bottom: 14px; }
.fsp__tt-chu { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--chu-2); }
.fsp__tt-chu > b { font-size: 16px; color: var(--chu); }
.fsp__giam { color: var(--km); }
.fsp__xep { margin-bottom: 10px; }
.fsp__bao { display: flex; align-items: center; gap: 8px; background: #e7f6f3; color: #0f5d56; border-radius: var(--goc-nho); padding: 10px 14px; font-size: 14px; margin: 0 0 14px; }
.fsp__bao .i { width: 18px; height: 18px; flex-shrink: 0; }
.fsp__luoi { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.fsp__luoi .fsc { box-shadow: var(--bong-1); }
.fsp__luoi .fsc__than { padding: 8px 8px 10px; }

@media (max-width: 1100px) {
  .fs2__ray { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
  .fsp__luoi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .fs2__dau { padding: 12px; gap: 8px 10px; }
  .fs2__dau { flex-wrap: nowrap; gap: 6px; }
  .fs2__logo { font-size: 16px; white-space: nowrap; }
  .fs2__logo .i { width: 18px; height: 18px; }
  .fs2__xem { font-size: 12.5px; margin-left: auto; }
  .fs2__xem .i { width: 14px; height: 14px; }
  .fs2__dem { margin-right: 0; }
  .fs2__dem small { display: none; }
  .fs2__o b { min-width: 20px; height: 20px; font-size: 12px; padding: 0 2px; }
  .fs2__ten { display: none; }
  .fs2__ray { grid-auto-columns: 42%; gap: 10px; padding: 12px; scroll-padding: 0 12px; }
  .fs2__mui { display: none; }
  .fsp__dau { padding: 12px 14px; border-radius: var(--goc-nho) var(--goc-nho) 0 0; }
  .fsp__dau .fs2__logo { font-size: 22px; }
  .fsp__tab { flex-basis: 96px; padding: 8px; }
  .fsp__tab b { font-size: 16px; }
  .fsp__tt { padding: 12px 14px 4px; }
  .fsp__luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fsc__gia b { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .fsc, .fsc:hover { transition: none; transform: none; } }
body.toi .fs2__o b { background: var(--km); }
body.toi .fs2__o i { color: var(--chu-2); }
body.toi .fsc__thanh { background: color-mix(in srgb, var(--km) 35%, #000); }
body.toi .fsc__sap, body.toi .fsp__bao { background: color-mix(in srgb, #14b8a6 18%, transparent); color: #99f6e4; }
body.toi .fsp__khung { background: #111; }