/* 2Q Vlogs — Cuộc Sống Châu Phi
   Bảng màu "vải samakaka": chàm đêm (nền tối, chữ; biến --la giữ tên cũ) · vàng nắng (điểm nhấn) · đất đỏ (nhấn, nhãn) · lúa non (báo thành công) · sương chàm (nền)
   Phông: Bricolage Grotesque (tiêu đề) · Be Vietnam Pro (thân) · IBM Plex Mono (giờ, số liệu) */

:root {
  --la: #1c2456;
  --la-2: #263070;
  --la-3: #3a4796;
  --ngo: #f5b512;
  --ngo-dam: #d99a00;
  --dat: #c7401c;
  --lua: #5f9a2e;
  --giay: #eff0f7;
  --trang: #ffffff;
  --muc: #151a33;
  --muc-nhat: #4b5170;
  --vien: #d8dbe8;
  --chu-tren-la: #e8eafb;
  --chu-tren-la-nhat: #a9afd8;

  --f-tieu-de: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --f-than: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-so: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --r: 14px;
  --r-nho: 8px;
  --le: clamp(16px, 4vw, 40px);
  --rong: 1240px;
  --bong: 0 1px 2px rgb(21 26 51 / 6%), 0 8px 24px rgb(21 26 51 / 8%);
}

*, *::before, *::after { box-sizing: border-box; }
/* Bộ biểu tượng chung: khung 24, nét 2, đầu bo tròn; nằm giữa nút tròn */
.ic { display: block; flex: none; width: 20px; height: 20px; }
:is(.hop-phat__dong, .hop-anh__dong, .hop-ung-ho__dong, .hop-dong, .ngan-gio__lui, .tro-ly__dong, .chon-sl button) { display: grid; place-items: center; padding: 0; }
:is(.hop-phat__dong, .hop-anh__dong, .hop-ung-ho__dong, .hop-dong, .tro-ly__dong) .ic { width: 18px; height: 18px; }
.chon-sl button .ic { width: 16px; height: 16px; }
.chon-sl--nho button .ic { width: 14px; height: 14px; }
.ung-ho__kenh--lk .ic { width: 15px; height: 15px; color: var(--muc-nhat); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-than);
  font-size: 16px;
  line-height: 1.6;
  color: var(--muc);
  background: var(--giay);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ngo); outline-offset: 3px; border-radius: 4px; }

.khung { width: 100%; max-width: var(--rong); margin-inline: auto; padding-inline: var(--le); }
.an-man-hinh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bo-qua {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ngo); color: var(--muc); padding: 10px 16px; border-radius: var(--r-nho);
  font-weight: 700; text-decoration: none;
}
.bo-qua:focus { top: 12px; }

/* ---------- Nút ---------- */
.nut {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.nut:hover { transform: translateY(-1px); }
.nut--ngo { background: var(--ngo); color: var(--muc); }
.nut--ngo:hover { background: #f8c63f; }
.nut--vien { border-color: rgb(232 234 251 / 35%); color: var(--chu-tren-la); background: transparent; }
.nut--vien:hover { border-color: var(--chu-tren-la); }
.nut--cham { background: var(--la); color: var(--trang); }
.nut--cham:hover { background: var(--la-2); }
.nut svg { width: 18px; height: 18px; flex: none; }

/* ---------- Đầu trang ---------- */
.dau-trang {
  position: sticky; top: 0; z-index: 50;
  background: rgb(28 36 86 / 96%);
  backdrop-filter: saturate(140%) blur(8px);
  color: var(--chu-tren-la);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}
.dau-trang__trong { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--trang); flex: none; }
.logo__dau {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--ngo); color: var(--la);
  font-family: var(--f-tieu-de); font-weight: 900; font-size: 19px; font-stretch: 75%; letter-spacing: -.02em;
}
.logo__chu { display: flex; flex-direction: column; line-height: 1.15; }
.logo__ten { font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 80%; font-size: 19px; letter-spacing: .01em; }
.logo__phu { font-size: 12px; color: var(--chu-tren-la-nhat); }
.menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.menu a {
  text-decoration: none; padding: 10px 12px; border-radius: var(--r-nho);
  font-size: 15px; font-weight: 500; color: var(--chu-tren-la);
}
.menu a:hover { background: rgb(255 255 255 / 7%); }
.menu a[aria-current="page"] { color: var(--ngo); }
.menu .nut { margin-left: 8px; min-height: 42px; padding: 8px 18px; }
.menu-mo { display: none; margin-left: auto; background: none; border: 1px solid rgb(255 255 255 / 20%); border-radius: var(--r-nho); width: 46px; height: 42px; cursor: pointer; }
.menu-mo span, .menu-mo span::before, .menu-mo span::after { display: block; width: 20px; height: 2px; background: var(--chu-tren-la); margin: auto; position: relative; content: ""; }
.menu-mo span::before { position: absolute; top: -6px; }
.menu-mo span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .menu-mo { display: block; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--la); padding: 8px var(--le) 20px; border-bottom: 1px solid rgb(255 255 255 / 10%);
  }
  .menu.mo { display: flex; }
  .menu a { padding: 14px 4px; border-bottom: 1px solid rgb(255 255 255 / 7%); border-radius: 0; }
  .menu .nut { margin: 14px 0 0; justify-content: center; border-radius: 999px; }
}

/* =====================================================================
   TRANG CHỦ — hai phần: XEM (nền lá: khung ngắm + hàng video, khép bằng dải đường đất đỏ)
   và ĐỌC (nền sáng: nhật ký · album · gian hàng · về chúng tôi & ủng hộ)
   ===================================================================== */
/* Dấu hiệu riêng: vải samakaka của Angola — hàng nơ chàm, quả trám trắng trên nền đất đỏ, mép vàng nắng.
   Một ô 32×24 lặp ngang làm "mép vải" dưới chân mọi khối nền chàm; lặp cả hai chiều thành tấm vải lót sau video nổi bật. */
:root {
  --vai: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='24'%3E%3Cpath d='M0 0h32v24H0z' fill='%23c7401c'/%3E%3Cpath d='M0 3 8 12 16 3 24 12 32 3zM0 21 8 12 16 21 24 12 32 21z' fill='%231c2456'/%3E%3Cpath d='M8 8.6 11.4 12 8 15.4 4.6 12zM24 8.6 27.4 12 24 15.4 20.6 12z' fill='%23fff'/%3E%3Cpath d='M16 9.8 18.2 12 16 14.2 13.8 12zM0 9.8 2.2 12 0 14.2zM32 9.8v4.4L29.8 12z' fill='%23f5b512'/%3E%3Cpath d='M0 0h32v3H0zM0 21h32v3H0z' fill='%23f5b512'/%3E%3C/svg%3E");
}
.rap {
  position: relative; color: var(--chu-tren-la); padding-bottom: 24px;
  /* nắng xích đạo chiếu xiên từ góc phải */
  background: radial-gradient(ellipse 55% 60% at 90% -12%, rgb(245 181 18 / 13%), transparent 70%), var(--la);
}
.dau-shop, .dau-thu-vien { position: relative; }
.rap::after, .dau-shop::after, .dau-thu-vien::after, .the-ung-ho::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 24px; background: var(--vai) 0 0 / 32px 24px repeat-x;
}

/* ---------- Đầu trang chủ: khẩu hiệu + khung ngắm máy quay ---------- */
.hero { padding: clamp(28px, 5vw, 76px) 0 clamp(36px, 4.5vw, 60px); }
.hero__luoi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.hero h1 {
  margin: 0 0 22px; color: var(--trang);
  font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 75%;
  font-size: clamp(48px, 6.4vw, 92px); line-height: .96; letter-spacing: -.035em;
}
.hero h1 em { display: block; font-style: normal; color: var(--ngo); }
.hero__mo-ta { margin: 0 0 28px; max-width: 31em; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: var(--chu-tren-la); }
.hero__nut { display: flex; flex-wrap: wrap; gap: 12px; }

.khung-ngam { min-width: 0; }
/* Video nổi bật đặt trên một tấm vải samakaka trải lệch xuống góc phải */
.khung-ngam__dat { position: relative; margin: 0 22px 36px 0; }
.khung-ngam__dat::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 3px;
  background: var(--vai) 0 0 / 32px 24px; box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
}
.khung-ngam__man {
  position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #0e1330;
  box-shadow: 0 18px 40px rgb(0 0 0 / 38%);
}
.khung-ngam__man .goc { display: none; } /* khung ngắm cũ: nay đã có tấm vải làm điểm nhấn */
@media (max-width: 600px) {
  .khung-ngam__dat { margin: 0 12px 24px 0; }
  .khung-ngam__dat::before { inset: 12px -12px -12px 12px; }
}
.khung-ngam__man img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.khung-ngam__man img.da-tai { opacity: 1; } /* tập được bốc ngẫu nhiên: ảnh hiện dần khi tải xong */
.khung-ngam__man::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / 30%), transparent 26%, transparent 74%, rgb(0 0 0 / 24%));
}
.khung-ngam__man iframe { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; }
.goc { position: absolute; z-index: 2; width: 32px; height: 32px; border: 0 solid rgb(255 255 255 / 85%); pointer-events: none; }
.goc--tt { top: 14px; left: 14px; border-top-width: 3px; border-left-width: 3px; }
.goc--tp { top: 14px; right: 14px; border-top-width: 3px; border-right-width: 3px; }
.goc--dt { bottom: 14px; left: 14px; border-bottom-width: 3px; border-left-width: 3px; }
.goc--dp { bottom: 14px; right: 14px; border-bottom-width: 3px; border-right-width: 3px; }
.rec {
  position: absolute; top: 22px; left: 28px; z-index: 2; pointer-events: none;
  display: flex; align-items: center; gap: 9px; padding: 5px 11px 5px 9px; border-radius: 6px; background: rgb(10 13 36 / 80%);
  font-family: var(--f-so); font-weight: 600; font-size: 13.5px; letter-spacing: .04em; color: var(--trang); font-variant-numeric: tabular-nums;
}
.rec__cham { width: 11px; height: 11px; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 0 4px rgb(255 59 47 / 25%); animation: nhay 1.2s steps(1) infinite; }
@keyframes nhay { 50% { opacity: .15; } }
.khung-ngam__phat { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.khung-ngam__phat span {
  display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%;
  background: var(--ngo); color: var(--la); box-shadow: 0 10px 30px rgb(0 0 0 / 40%); transition: transform .2s ease;
}
.khung-ngam__phat:hover span { transform: scale(1.07); }
.khung-ngam__phat:focus-visible { outline-offset: -6px; }
.khung-ngam__phat svg { width: 30px; height: 30px; margin-left: 5px; }
.khung-ngam.dang-phat :is(.goc, .rec, .khung-ngam__phat), .khung-ngam.dang-phat .khung-ngam__man::after { display: none; }
.khung-ngam__ten { margin: 14px 0 0; font-weight: 600; font-size: 15.5px; line-height: 1.45; color: var(--trang); }
.khung-ngam__luot { font-family: var(--f-so); font-size: 12.5px; font-weight: 500; color: var(--chu-tren-la-nhat); white-space: nowrap; }
/* Đồng hồ đôi Hà Nội — Luanda */
.dong-ho {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / 10%);
  font-family: var(--f-so); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--chu-tren-la-nhat);
}
.dong-ho b { margin-left: 8px; font-size: 20px; font-weight: 600; letter-spacing: 0; color: var(--trang); font-variant-numeric: tabular-nums; }
.dong-ho__noi--luanda b { color: var(--ngo); }
.dong-ho__giua { display: flex; align-items: center; gap: 10px; letter-spacing: 0; text-transform: none; font-weight: 500; white-space: nowrap; }
.dong-ho__giua::before, .dong-ho__giua::after { content: ""; flex: 1; border-top: 2px dashed rgb(169 175 216 / 30%); }

/* ---------- Hàng video trên nền lá ---------- */
.phan-xem { padding: clamp(4px, 1vw, 12px) 0 clamp(44px, 5vw, 64px); }
.phan-xem__dau { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 20px; }
.phan-xem__dau h2 {
  margin: 0 8px 0 0; color: var(--trang);
  font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 75%; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.025em;
}
.loc-video { display: flex; gap: 6px; }
.mui-cuon { display: flex; gap: 8px; margin-left: auto; }
.mui-cuon button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 22%); background: none; color: var(--trang); font-size: 26px; line-height: 1; cursor: pointer;
}
.mui-cuon button:hover:not(:disabled) { border-color: var(--ngo); color: var(--ngo); }
.mui-cuon button:disabled { opacity: .3; cursor: default; }
@media (hover: none) { .mui-cuon { display: none; } }

.hang-cuon {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.hang-cuon::-webkit-scrollbar { display: none; }
.hang-cuon > * { scroll-snap-align: start; }
.rap .the-video__ten { color: var(--trang); }
.rap .the-video__phu { color: var(--chu-tren-la-nhat); }
.the-het {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; aspect-ratio: 16 / 9; padding: 16px 20px;
  border: 1px dashed rgb(255 255 255 / 28%); border-radius: var(--r-nho); color: var(--chu-tren-la); text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.the-het b { font-family: var(--f-tieu-de); font-weight: 900; font-stretch: 62%; font-size: 46px; line-height: 1; color: var(--ngo); }
.the-het span { font-size: 14px; }
.the-het i { margin-top: 8px; font-style: normal; font-weight: 700; color: var(--trang); }
.the-het:hover { border-color: var(--ngo); background: rgb(255 255 255 / 4%); }

/* ---------- Phần chung nền sáng ---------- */
.phan { padding: clamp(52px, 7vw, 96px) 0; }
.phan--trang { background: var(--trang); }
.phan__dau { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; margin-bottom: clamp(22px, 3vw, 36px); }
.phan__dau h2, .ket h2 {
  margin: 0; font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 75%;
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance;
}
.phan__dau p { margin: 6px 0 0; color: var(--muc-nhat); max-width: 46em; }
.phan__dau > .phan__phu { margin: 0; font-size: 15px; }
.nhan {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-so); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ngo);
}
.nhan--dat { color: var(--dat); }
.nhan--lua { color: var(--lua); }
.lien-ket-mui {
  display: inline-flex; align-items: center; gap: 6px; padding-bottom: 2px; border-bottom: 2px solid var(--ngo);
  font-weight: 700; text-decoration: none; color: var(--muc);
}
.lien-ket-mui:hover { color: var(--dat); }

/* ---------- Thẻ video ---------- */
.the-video { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.the-video__anh { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-nho); overflow: hidden; background: var(--la-2); }
.the-video__anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.the-video:hover .the-video__anh img { transform: scale(1.04); }
.the-video__anh::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ngo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.6v12.8a1 1 0 0 0 1.53.85l10.1-6.4a1 1 0 0 0 0-1.7L9.53 4.75A1 1 0 0 0 8 5.6Z' fill='%231c2456'/%3E%3C/svg%3E") 55% 50% / 18px no-repeat;
  box-shadow: 0 4px 12px rgb(0 0 0 / 30%); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.the-video:hover .the-video__anh::after, .the-video:focus-visible .the-video__anh::after { opacity: 1; transform: none; }
.the-video__ten { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.the-video__phu { margin-top: -6px; font-family: var(--f-so); font-size: 12.5px; color: var(--muc-nhat); }

/* ---------- Nhật ký: chuỗi bài bé Fatima + bài mới ---------- */
.nhat-ky { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4.5vw, 64px); align-items: start; }
.nhat-ky--mot { grid-template-columns: minmax(0, 1fr); }
.chuoi { padding: clamp(22px, 3vw, 34px); border-radius: var(--r); background: var(--la); color: var(--chu-tren-la); }
.chuoi__nhan { margin: 0; font-family: var(--f-so); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ngo); }
.chuoi h3 {
  margin: 10px 0; color: var(--trang); text-wrap: balance;
  font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 75%; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08;
}
.chuoi__mo { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--chu-tren-la-nhat); }
.chuoi__ds { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(255 255 255 / 12%); }
.chuoi__ds a {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid rgb(255 255 255 / 12%); text-decoration: none;
}
.chuoi__ds time { font-family: var(--f-so); font-size: 13px; font-weight: 600; color: var(--ngo); font-variant-numeric: tabular-nums; }
.chuoi__ds span { font-size: 15.5px; line-height: 1.4; color: var(--trang); }
.chuoi__ds a:hover span { text-decoration: underline; text-decoration-color: var(--ngo); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.chuoi__chan { margin: 14px 0 0; font-family: var(--f-so); font-size: 12.5px; color: var(--chu-tren-la-nhat); }
.bai-moi__td { margin: 0 0 4px; font-family: var(--f-so); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muc-nhat); }
.bai-dong {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--vien); text-decoration: none;
}
.bai-dong:last-child { border-bottom: 0; }
.bai-dong__anh { aspect-ratio: 3 / 2; border-radius: var(--r-nho); overflow: hidden; background: var(--giay); }
.bai-dong__anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bai-dong:hover .bai-dong__anh img { transform: scale(1.04); }
/* Bài chưa có ảnh: ô vải samakaka nhạt + tháng/năm, không giành chú ý với bài có ảnh */
.bai-dong__anh--trong {
  display: grid; place-items: center;
  background: var(--giay) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M0 8 8 0l8 8 8-8 8 8M0 24l8-8 8 8 8-8 8 8' fill='none' stroke='%231c2456' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E");
}
.bai-dong__anh--trong span { font-family: var(--f-so); font-size: 13px; font-weight: 600; color: var(--muc-nhat); }
.bai-dong__chu { display: grid; gap: 6px; }
.bai-dong__chu b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 17px; font-weight: 600; line-height: 1.4; }
.bai-dong:hover b { color: var(--dat); }
.bai-dong__chu small { font-family: var(--f-so); font-size: 12.5px; color: var(--muc-nhat); }

/* ---------- Album: lưới ghép, ô đầu lớn, ô cuối báo số ảnh còn lại ---------- */
.ghep-anh { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ghep-anh__o {
  position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--r-nho); overflow: hidden;
  background: var(--vien); cursor: zoom-in;
}
.ghep-anh__o:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ghep-anh__o img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ghep-anh__o:hover img { transform: scale(1.04); }
.ghep-anh__o:focus-visible { outline-offset: 2px; }
.ghep-anh__them {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgb(28 36 86 / 64%); color: var(--trang);
  font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 75%; font-size: clamp(28px, 3vw, 40px);
}
.ghep-anh__them--hep { display: none; }
.luoi-sp--chu .the-sp__anh { aspect-ratio: 4 / 3; }

/* ---------- Kết trang: về chúng tôi + ủng hộ ---------- */
.ket__luoi { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ket--mot .ket__luoi { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.ket h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.ve-kenh__trich { margin: 0; }
.ve-kenh blockquote { margin: 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; }
.ve-kenh figcaption { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.ve-kenh figcaption img { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ngo); object-fit: cover; }
.ve-kenh__ai { display: grid; gap: 2px; font-size: 14.5px; line-height: 1.45; }
.ve-kenh__ai a { justify-self: start; font-weight: 700; color: var(--dat); text-underline-offset: 3px; }
.ve-kenh__lk { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.ve-kenh__lk a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--vien); border-radius: 999px;
  background: var(--trang); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.ve-kenh__lk a:hover { border-color: var(--la); }
.the-ung-ho {
  position: relative; overflow: hidden; padding: clamp(26px, 3vw, 40px) clamp(24px, 3vw, 36px) calc(clamp(26px, 3vw, 40px) + 24px);
  border-radius: var(--r); background: var(--la); color: var(--chu-tren-la);
}
.ket .the-ung-ho h2 { margin-bottom: 10px; color: var(--trang); }
.the-ung-ho__mo { margin: 0 0 24px; max-width: 40ch; color: var(--chu-tren-la-nhat); }
/* Khối chuyển khoản: mã QR trong khung ngắm (4 góc màu lá) bên trái, bảng thông tin bên phải */
.ck-ung-ho { display: grid; grid-template-columns: clamp(156px, 34%, 200px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 26px); align-items: start; }
.ck-ung-ho__qr { margin: 0; display: grid; gap: 10px; }
.ck-ung-ho__khung {
  display: block; padding: 9px;
  background:
    linear-gradient(var(--la), var(--la)) left top / 22px 3px, linear-gradient(var(--la), var(--la)) left top / 3px 22px,
    linear-gradient(var(--la), var(--la)) right top / 22px 3px, linear-gradient(var(--la), var(--la)) right top / 3px 22px,
    linear-gradient(var(--la), var(--la)) left bottom / 22px 3px, linear-gradient(var(--la), var(--la)) left bottom / 3px 22px,
    linear-gradient(var(--la), var(--la)) right bottom / 22px 3px, linear-gradient(var(--la), var(--la)) right bottom / 3px 22px;
  background-repeat: no-repeat;
}
.ck-ung-ho__khung img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 4px; background: var(--giay); }
.ck-ung-ho__buoc { list-style: none; counter-reset: buoc; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--muc-nhat); }
.ck-ung-ho__buoc li { counter-increment: buoc; display: flex; align-items: center; gap: 7px; }
.ck-ung-ho__buoc li::before {
  content: counter(buoc); flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--la); color: var(--trang); font: 600 11px/1 var(--f-so);
}
.ck-ung-ho dl { margin: 0; border-top: 1px solid var(--vien); }
.ck-ung-ho dl div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 52px; padding: 6px 0; border-bottom: 1px dashed var(--vien); }
.ck-ung-ho dt { font-size: 13px; color: var(--muc-nhat); }
.ck-ung-ho dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-weight: 600; overflow-wrap: anywhere; }
.ck-ung-ho .so { font-family: var(--f-so); font-size: 16px; letter-spacing: .02em; }
.ck-ung-ho .nut-chep, .ung-ho__kenh .nut-chep { min-height: 34px; padding: 4px 13px; }
.ck-ung-ho__dt { display: none; margin: 12px 0 0; font-size: 13px; color: var(--muc-nhat); }
@media (hover: none) and (pointer: coarse) { .ck-ung-ho__dt { display: block; } }
.ung-ho__khac { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--vien); }
.ung-ho__khac:empty { display: none; }
.ung-ho__khac-td { margin: 0 4px 0 0; font-size: 13px; font-weight: 600; color: var(--muc-nhat); }
.ung-ho__kenh {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 5px 4px 14px;
  border: 1px solid var(--vien); border-radius: 999px; background: var(--giay); color: var(--muc);
}
.ung-ho__kenh .so { font-family: var(--f-so); font-weight: 600; }
.ung-ho__kenh--lk { padding: 4px 16px; text-decoration: none; font-weight: 600; }
.ung-ho__kenh--lk:hover { border-color: var(--la); }
.ung-ho__ten-kenh { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dat); }
.nut-chep {
  min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--vien); background: var(--giay);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.nut-chep:hover { border-color: var(--la); }
.nut-chep.da-chep { background: var(--lua); border-color: var(--lua); color: var(--trang); }

/* ---------- Trang chủ trên màn hẹp ---------- */
@media (max-width: 960px) {
  .hero__luoi { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(48px, 11.5vw, 84px); }
  .hang-cuon { grid-auto-columns: calc((100% - 2 * 16px) / 2.5); gap: 16px; }
  .nhat-ky, .ket__luoi { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .ghep-anh { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ghep-anh__o:nth-child(n + 7) { display: none; }
  .ghep-anh__them--hep { display: grid; }
  .ghep-anh__them--rong { display: none; }
}
@media (max-width: 600px) {
  .mui-cuon, .chuoi__mo { display: none; }
  /* hàng cuộn ngang tràn sát mép màn hình, ló thẻ sau để biết còn nữa */
  .hang-cuon { grid-auto-columns: 74%; gap: 14px; margin-inline: calc(-1 * var(--le)); padding-inline: var(--le); scroll-padding-inline: var(--le); }
  .loc-video { flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--le)); padding-inline: var(--le); }
  .loc-video::-webkit-scrollbar { display: none; }
  .loc-video .chip { flex: none; min-height: 40px; padding: 6px 14px; font-size: 14px; }
  .the-het b { font-size: 38px; }
  .bai-dong { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
  .bai-dong__chu b { font-size: 15.5px; }
  .chuoi__ds span { font-size: 15px; }
}
@media (max-width: 560px) {
  .ck-ung-ho { grid-template-columns: minmax(0, 1fr); }
  .ck-ung-ho__qr { width: 100%; justify-items: center; }
  .ck-ung-ho__khung { width: min(220px, 100%); }
  .ck-ung-ho__buoc { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
  .ck-ung-ho dl div { grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
  .ck-ung-ho .so { font-size: 15px; letter-spacing: 0; }
  .ck-ung-ho dd { gap: 6px; }
}
@media (max-width: 520px) {
  .rec { top: 12px; left: 14px; padding: 4px 9px 4px 8px; font-size: 11.5px; }
  .goc { width: 22px; height: 22px; }
  .goc--tt, .goc--tp { top: 8px; } .goc--dt, .goc--dp { bottom: 8px; }
  .goc--tt, .goc--dt { left: 8px; } .goc--tp, .goc--dp { right: 8px; }
  .khung-ngam__phat span { width: 60px; height: 60px; }
  .khung-ngam__phat svg { width: 24px; height: 24px; }
  .khung-ngam__ten { font-size: 14.5px; }
  .dong-ho { gap: 8px; font-size: 10.5px; }
  .dong-ho b { margin-left: 5px; font-size: 16px; }
  .logo__phu { display: none; }
}
/* Mở trang: khẩu hiệu và khung ngắm hiện lên một lần, nối nhau */
@media (prefers-reduced-motion: no-preference) {
  .hero__chu > *, .khung-ngam { animation: hien-len .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__chu > :nth-child(2) { animation-delay: .08s; }
  .hero__chu > :nth-child(3) { animation-delay: .16s; }
  .khung-ngam { animation-delay: .22s; }
}
@keyframes hien-len { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Chân trang ---------- */
.chan-trang { position: relative; background: #131a40; color: var(--chu-tren-la-nhat); padding: 80px 0 32px; font-size: 14.5px; }
.chan-trang::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 24px; background: var(--vai) 0 0 / 32px 24px repeat-x; }
.chan-trang__luoi { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.chan-trang h3 { font-family: var(--f-so); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ngo); margin: 0 0 14px; }
.chan-trang ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.chan-trang a { text-decoration: none; color: var(--chu-tren-la); }
.chan-trang a:hover { color: var(--ngo); }
.chan-trang__cuoi { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 8%); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }
@media (max-width: 900px) { .chan-trang__luoi { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .chan-trang__luoi { grid-template-columns: 1fr; } }

/* ---------- Hộp phát video ---------- */
.hop-phat {
  width: min(1100px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r); background: #000; color: var(--trang);
  overflow: hidden;
}
.hop-phat::backdrop { background: rgb(10 13 36 / 85%); }
.hop-phat__man { position: relative; aspect-ratio: 16 / 9; }
.hop-phat__man iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Chân hộp phát: tên video | chia sẻ + YouTube | đóng. Hẹp thì tên lên một dòng riêng. */
.hop-phat__chan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px 12px 18px; background: var(--la); }
.hop-phat__ten { flex: 1 1 280px; min-width: 0; font-weight: 600; margin: 0; font-size: 15.5px; line-height: 1.35; }
.hop-phat__tac { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hop-phat__yt {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 11px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 20%); color: var(--trang); font-size: 14px; font-weight: 600; text-decoration: none;
}
.hop-phat__yt .ic { width: 20px; height: 20px; color: #ff3d3d; }
.hop-phat__yt-tam { fill: #fff; }
.hop-phat__yt:hover { background: rgb(255 255 255 / 10%); }
@media (max-width: 560px) {
  .hop-phat__chan { padding: 12px; }
  .hop-phat__ten { flex-basis: calc(100% - 60px); order: -2; font-size: 14.5px; }
  .hop-phat__dong { order: -1; }
  .hop-phat__tac { margin-left: 0; width: 100%; justify-content: space-between; }
  .hop-phat__yt span { display: none; }
  .hop-phat__yt { width: 44px; height: 44px; padding: 0; justify-content: center; }
}
.hop-phat__dong {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 25%); background: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--trang);
}
.hop-phat__dong:hover { background: rgb(255 255 255 / 10%); }
/* Hộp xem ảnh album: kín màn hình nền tối, ảnh phóng vừa khung và nằm giữa; chú thích + số thứ tự dưới.
   Máy tính: nút trước/sau hai bên. Máy tính bảng, điện thoại dọc: ảnh tràn bề ngang, nút dưới đáy.
   Điện thoại xoay ngang (thấp): ảnh chiếm hết chiều cao, chú thích đè mờ ở chân ảnh. */
html:has(dialog[open]) { overflow: hidden; } /* khóa cuộn trang phía sau mọi hộp */
.hop-anh {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #090c20; color: var(--trang); overflow: hidden; touch-action: pan-y;
}
.hop-anh:focus-visible { outline: none; }
.hop-anh::backdrop { background: #090c20; }
.hop-anh[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; padding-top: 80px; }
.hop-anh__khung { display: contents; }
.hop-anh__o { container-type: size; display: grid; place-items: center; min-height: 0; padding: 0 96px; }
.hop-anh__o img {
  --ti: 1.7778;
  /* vừa khung theo tỉ lệ ảnh, không phóng quá 1,5 lần cỡ gốc (ảnh nhỏ phóng to quá sẽ vỡ) */
  width: min(100cqw, 100cqh * var(--ti), var(--rong-goc, 1600px) * 1.5); height: auto; max-width: none; aspect-ratio: var(--ti);
  object-fit: contain; border-radius: 4px; box-shadow: 0 24px 70px rgb(0 0 0 / 50%);
  user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .22s ease;
}
.hop-anh__o img.da-tai { opacity: 1; }
.hop-anh figcaption { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 80px; padding: 12px 96px 18px; text-align: center; }
.hop-anh__ten { font-weight: 600; font-size: 16px; line-height: 1.4; text-wrap: balance; }
.hop-anh__ten:empty { display: none; }
.hop-anh__dem { font-family: var(--f-so); font-size: 12.5px; color: var(--chu-tren-la-nhat); font-variant-numeric: tabular-nums; }
.hop-anh__nut, .hop-anh__dong {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 22%); background: rgb(9 12 32 / 55%); color: var(--trang); cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hop-anh__nut { top: 50%; translate: 0 -50%; }
.hop-anh__nut svg { width: 22px; height: 22px; }
.hop-anh__nut--lui { left: 24px; }
.hop-anh__nut--toi { right: 24px; }
.hop-anh__dong { top: 16px; right: 16px; width: 48px; height: 48px; font-size: 26px; line-height: 1; }
.hop-anh__nut:hover, .hop-anh__dong:hover { background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 45%); }
@media (max-width: 900px) {
  .hop-anh[open] { padding-top: 84px; }
  .hop-anh__o { padding: 0; }
  .hop-anh__o img { border-radius: 0; box-shadow: none; }
  .hop-anh figcaption { min-height: 84px; padding: 10px 80px 14px; }
  .hop-anh__nut { top: auto; bottom: 16px; translate: none; }
  .hop-anh__nut--lui { left: 14px; }
  .hop-anh__nut--toi { right: 14px; }
  .hop-anh__dong { top: 16px; right: 12px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hop-anh[open] { padding-top: 0; grid-template-rows: minmax(0, 1fr); }
  .hop-anh__o { grid-area: 1 / 1; padding: 0 76px; }
  .hop-anh figcaption {
    grid-area: 1 / 1; align-self: end; z-index: 1; min-height: 0; padding: 26px 76px 8px;
    background: linear-gradient(rgb(9 12 32 / 0%), rgb(9 12 32 / 82%));
  }
  .hop-anh__ten { font-size: 14.5px; }
  .hop-anh__nut { top: 50%; bottom: auto; translate: 0 -50%; width: 46px; height: 46px; }
  .hop-anh__nut--lui { left: 14px; }
  .hop-anh__nut--toi { right: 14px; }
  .hop-anh__dong { top: 10px; right: 14px; width: 44px; height: 44px; }
}

/* Hộp mã QR ủng hộ: mở từ nút "Hiện mã QR" hoặc bất kỳ liên kết "Ủng hộ" nào, ở mọi trang */
.hop-ung-ho {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r);
  background: var(--trang); color: var(--muc); overflow: auto; overscroll-behavior: contain;
}
.hop-ung-ho::backdrop { background: rgb(10 13 36 / 72%); }
.hop-ung-ho__trong { padding: 0 clamp(20px, 3vw, 32px) clamp(22px, 3vw, 30px); }
.hop-ung-ho__dau { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(16px, 2.4vw, 22px) 0 6px; }
.hop-ung-ho h2 { margin: 0; font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 75%; font-size: clamp(26px, 3vw, 32px); line-height: 1.1; color: var(--la); }
.hop-ung-ho__dong {
  flex: none; width: 44px; height: 44px; margin-right: -6px; border-radius: 50%; border: 1px solid var(--vien); background: none;
  font-size: 24px; line-height: 1; color: var(--muc); cursor: pointer;
}
.hop-ung-ho__dong:hover { border-color: var(--la); }
.hop-ung-ho__mo { margin: 0 0 20px; font-size: 15px; color: var(--muc-nhat); }
.hop-ung-ho .ck-ung-ho { grid-template-columns: 210px minmax(0, 1fr); }
.hop-ung-ho__qua { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--vien); font-size: 14px; color: var(--muc-nhat); }
.hop-ung-ho__qua a { font-weight: 700; color: var(--muc); text-decoration-color: var(--ngo); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hop-ung-ho__qua a:hover { color: var(--dat); }
@media (max-width: 560px) { .hop-ung-ho .ck-ung-ho { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hộp tìm kiếm toàn trang (tim-kiem.js) ---------- */
.hop-tim {
  width: min(760px, calc(100vw - 32px)); max-width: none; max-height: none; margin: 8vh auto auto; padding: 0; border: 0;
  border-radius: var(--r); background: var(--trang); color: var(--muc); box-shadow: 0 30px 80px rgb(0 0 0 / 35%); overflow: hidden;
}
.hop-tim::backdrop { background: rgb(10 13 36 / 62%); }
.hop-tim__khung { display: flex; flex-direction: column; max-height: 82vh; max-height: 82dvh; }
.hop-tim__o { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--vien); }
.hop-tim__o > .ic { width: 22px; height: 22px; color: var(--la); }
.hop-tim__o input {
  flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: none; color: var(--muc);
  font: 500 19px/1.2 var(--f-than);
}
.hop-tim__o input::placeholder { color: #888b9a; }
.hop-tim__o input::-webkit-search-cancel-button { display: none; }
.hop-tim__dong {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 40px; padding: 0 12px;
  border: 1px solid var(--vien); border-radius: 999px; background: var(--giay); color: var(--muc-nhat); font: 600 12.5px/1 var(--f-so); cursor: pointer;
}
.hop-tim__dong .ic { display: none; width: 18px; height: 18px; }
.hop-tim__dong:hover { border-color: var(--la); color: var(--muc); }
.hop-tim__tab { flex: none; display: flex; gap: 6px; padding: 12px 20px 2px; overflow-x: auto; scrollbar-width: none; }
.hop-tim__tab[hidden] { display: none; }
.hop-tim__tab button {
  flex: none; min-height: 36px; padding: 6px 14px; border: 1px solid var(--vien); border-radius: 999px; background: var(--trang);
  color: var(--muc); font: 600 14px/1 var(--f-than); cursor: pointer;
}
.hop-tim__tab button span { margin-left: 4px; font-family: var(--f-so); font-size: 12px; color: var(--muc-nhat); }
.hop-tim__tab button[aria-selected="true"] { background: var(--la); border-color: var(--la); color: var(--trang); }
.hop-tim__tab button[aria-selected="true"] span { color: var(--ngo); }
.hop-tim__tt { flex: none; margin: 0; padding: 10px 20px 0; font-size: 13px; color: var(--muc-nhat); }
.hop-tim__tt:empty { display: none; }
.hop-tim__tt b { color: var(--dat); }
.hop-tim__kq { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 12px; }
.hop-tim__chan {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 10px 20px; border-top: 1px solid var(--vien); background: var(--giay);
  font-size: 12.5px; color: var(--muc-nhat);
}
.hop-tim__chan span:last-child { margin-left: auto; }
.hop-tim kbd {
  display: inline-block; min-width: 20px; margin-right: 3px; padding: 1px 5px; border: 1px solid var(--vien); border-bottom-width: 2px;
  border-radius: 5px; background: var(--trang); font: 600 11px/1.5 var(--f-so); text-align: center; color: var(--muc);
}
.tk-nhom { padding: 8px 0 4px; }
.tk-nhom h3 {
  display: flex; align-items: center; justify-content: space-between; margin: 6px 10px 6px; font: 700 12px/1.3 var(--f-so);
  letter-spacing: .08em; text-transform: uppercase; color: var(--dat);
}
.tk-dong {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 10px;
  border-radius: var(--r-nho); color: var(--muc); text-decoration: none; scroll-margin: 8px;
}
.tk-dong[aria-selected="true"] { background: var(--giay); box-shadow: inset 3px 0 0 var(--ngo); }
.tk-dong__anh { display: block; width: 96px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--vien); }
.tk-dong__anh img { width: 100%; height: 100%; object-fit: cover; }
.tk-dong__anh--sp, .tk-dong__anh--anh { width: 54px; aspect-ratio: 1; }
.tk-dong__ic { display: grid; place-items: center; width: 54px; height: 44px; border-radius: 10px; background: var(--giay); color: var(--la); }
.tk-dong__ic .ic { width: 22px; height: 22px; }
.tk-dong__chu { display: grid; gap: 3px; min-width: 0; }
.tk-dong__chu b { font-weight: 600; font-size: 15.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tk-dong__chu small { font-size: 12.5px; color: var(--muc-nhat); }
.tk-dong__chu em { font-style: normal; color: var(--lua); font-weight: 600; }
.tk-dong__trich { font-size: 13.5px; line-height: 1.5; color: #474b5e; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tk-dong mark { background: rgb(245 181 18 / 38%); color: inherit; border-radius: 3px; padding: 0 1px; }
.tk-dong__ngoai .ic { width: 16px; height: 16px; color: var(--muc-nhat); }
.tk-them {
  display: block; width: calc(100% - 20px); margin: 2px 10px 4px; padding: 8px 0; border: 0; background: none; text-align: left;
  font: 600 14px/1.3 var(--f-than); color: var(--la); text-decoration: none; cursor: pointer;
}
.tk-them:hover { color: var(--dat); }
.tk-chip { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px; }
.tk-chip button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--vien); border-radius: 999px;
  background: var(--trang); color: var(--muc); font: 500 14px/1 var(--f-than); cursor: pointer;
}
.tk-chip button:hover { border-color: var(--la); }
.tk-chip .ic { width: 15px; height: 15px; color: var(--muc-nhat); }
.tk-xoa-gan { border: 0; background: none; padding: 4px; font: 600 12.5px/1 var(--f-than); letter-spacing: 0; text-transform: none; color: var(--muc-nhat); cursor: pointer; }
.tk-xoa-gan:hover { color: var(--dat); }
.tk-trong { padding: 18px 10px 4px; font-size: 15px; }
.tk-trong p { margin: 0 0 6px; }
.tk-trong a { color: var(--dat); font-weight: 600; }
@media (max-width: 640px) {
  .hop-tim { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; }
  .hop-tim__khung { height: 100%; max-height: none; }
  .hop-tim__o { padding: 8px 8px 8px 16px; }
  .hop-tim__o input { font-size: 17px; height: 48px; }
  .hop-tim__esc { display: none; }
  .hop-tim__dong { padding: 0; width: 44px; background: none; border-color: transparent; }
  .hop-tim__dong .ic { display: block; }
  .hop-tim__tab { padding: 10px 16px 0; }
  .hop-tim__chan { display: none; }
  .tk-dong { gap: 12px; padding: 9px 6px; }
  .tk-dong__anh { width: 84px; }
}

/* ---------- Thư viện video ---------- */
.dau-thu-vien { background: var(--la); color: var(--chu-tren-la); padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 56px); }
.dau-thu-vien h1 { font-family: var(--f-tieu-de); font-weight: 900; font-stretch: 70%; font-size: clamp(44px, 6vw, 80px); line-height: 1.04; margin: 10px 0 8px; color: var(--trang); }
.dau-thu-vien p { margin: 0; color: var(--chu-tren-la-nhat); }
.bo-loc { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.bo-loc__tim { flex: 1 1 280px; position: relative; }
.bo-loc__tim input {
  width: 100%; min-height: 50px; padding: 12px 16px 12px 46px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 18%);
  background: var(--la-2); color: var(--trang); font: inherit; font-size: 15.5px;
}
.bo-loc__tim input::placeholder { color: var(--chu-tren-la-nhat); }
.bo-loc__tim svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--chu-tren-la-nhat); }
.chip-nhom { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 18%); background: transparent;
  color: var(--chu-tren-la); font-weight: 600; font-size: 14.5px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ngo); border-color: var(--ngo); color: var(--muc); }
.bo-loc select {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 18%);
  background: var(--la-2); color: var(--trang); font: inherit; font-size: 14.5px;
}
.ket-qua { font-family: var(--f-so); font-size: 13px; color: var(--muc-nhat); margin: 0 0 20px; }
.luoi-video { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px 22px; }
.trong-rong { padding: 48px 24px; text-align: center; border: 2px dashed var(--vien); border-radius: var(--r); color: var(--muc-nhat); }
.trong-rong b { display: block; color: var(--muc); font-size: 18px; margin-bottom: 6px; }

/* ---------- Chuyển động chung ---------- */
.hien { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.hien.da-hien { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hien { opacity: 1; transform: none; }
}

/* =====================================================================
   PHẦN MỚI: giỏ trên đầu trang · thẻ sản phẩm · gian hàng · giỏ & đặt hàng
   · tra cứu đơn · trang đọc bài · trợ lý chat
   ===================================================================== */
[hidden] { display: none !important; }

/* ---------- Nút giỏ trên đầu trang ---------- */
.menu { order: 1; }
.nut-gio, .nut-tim-dau { order: 2; }
.menu-mo { order: 3; }
.nut-tim-dau {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  color: var(--chu-tren-la); background: none; border: 1px solid rgb(255 255 255 / 22%);
}
.nut-tim-dau:hover { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 45%); }
.nut-tim-dau .ic { width: 20px; height: 20px; }
.nut-gio {
  position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--chu-tren-la); text-decoration: none; border: 1px solid rgb(255 255 255 / 22%);
  transition: background-color .15s ease, border-color .15s ease;
}
.nut-gio:hover { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 45%); }
.nut-gio svg { width: 21px; height: 21px; }
.nut-gio__so {
  position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: var(--ngo); color: var(--muc); box-shadow: 0 0 0 2px var(--la);
  font-family: var(--f-so); font-size: 11.5px; font-weight: 600; line-height: 1;
}
@media (max-width: 900px) {
  .dau-trang__trong { gap: 12px; }
  .nut-tim-dau { margin-left: auto; }
  .menu-mo { margin-left: 0; }
}
/* Điện thoại hẹp (≤ 400px): logo + 3 nút tròn vừa một hàng */
@media (max-width: 400px) {
  .dau-trang__trong { gap: 8px; }
  .logo { gap: 9px; }
  .logo__dau { width: 38px; height: 38px; font-size: 17px; }
  .logo__ten { font-size: 16.5px; }
  .nut-tim-dau, .nut-gio { width: 42px; height: 42px; }
  .menu-mo { width: 44px; }
}

/* ---------- Nút dùng chung thêm ---------- */
.nut:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.nut--rong { width: 100%; justify-content: center; }
.nut--vien-toi { border-color: var(--vien); color: var(--muc); background: transparent; }
.nut--vien-toi:hover { border-color: var(--muc); }
.xem-them { display: flex; justify-content: center; margin-top: clamp(24px, 4vw, 40px); }
.xem-them[hidden] { display: none; }
button.lien-ket-mui { background: none; border: 0; border-bottom: 2px solid var(--ngo); padding: 0 0 2px; cursor: pointer; font: inherit; font-weight: 700; }
.ghi-chu-nho { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muc-nhat); }
.nut--rong + .ghi-chu-nho { text-align: center; }
.hop-dong {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--vien); background: var(--trang);
  color: var(--muc); font-size: 24px; line-height: 1; cursor: pointer;
}
.hop-dong:hover { background: var(--giay); border-color: var(--muc-nhat); }

/* ---------- Ảnh giữ chỗ: hoa văn samakaka trên nền màu nhóm hàng ---------- */
.anh-giu-cho {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  background-color: var(--mau, var(--la));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.15' stroke-width='2.5'%3E%3Cpath d='M0 10 10 0l10 10L30 0l10 10M0 30l10-10 10 10 10-10 10 10'/%3E%3C/g%3E%3Cpath d='M20 16l4 4-4 4-4-4zM0 36l4 4-4 4-4-4zM40 36l4 4-4 4-4-4z' fill='%23fff' fill-opacity='.2'/%3E%3C/svg%3E");
  color: var(--trang); overflow: hidden;
}
.anh-giu-cho::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--ngo) 0 18px, transparent 18px 26px); opacity: .85; }
.anh-giu-cho b {
  font-family: var(--f-tieu-de); font-weight: 900; font-stretch: 62%; font-size: clamp(54px, 6vw, 78px); line-height: 1;
  letter-spacing: -.02em; color: rgb(255 255 255 / 94%); text-shadow: 0 4px 18px rgb(0 0 0 / 18%);
}
.anh-giu-cho small {
  position: absolute; left: 0; right: 0; bottom: 16px; text-align: center;
  font-family: var(--f-so); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / 72%);
}
.anh-giu-cho--lon b { font-size: clamp(96px, 13vw, 168px); }
.anh-giu-cho--lon small { bottom: 22px; font-size: 11.5px; }

/* ---------- Thẻ sản phẩm ---------- */
.luoi-sp { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 26px 20px; }
.luoi-sp--chu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.the-sp {
  position: relative; display: flex; flex-direction: column; background: var(--trang); border: 1px solid var(--vien);
  border-radius: var(--r); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.the-sp:hover { box-shadow: var(--bong); transform: translateY(-2px); border-color: #c2c4d1; }
.the-sp__mo {
  display: flex; flex-direction: column; flex: 1; width: 100%; padding: 0 0 4px; border: 0; background: none;
  text-align: left; text-decoration: none; color: inherit; cursor: pointer; border-radius: var(--r) var(--r) 0 0;
}
.the-sp__mo:focus-visible { outline-offset: -3px; }
.the-sp__anh {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--giay);
  border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0;
}
.the-sp__anh > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.the-sp:hover .the-sp__anh > img { transform: scale(1.04); }
.the-sp__nhan { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.the-sp__dm { padding: 14px 16px 0; font-family: var(--f-so); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dat); }
.the-sp__ten {
  padding: 4px 16px 0; font-weight: 700; font-size: 16px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.the-sp__mo:hover .the-sp__ten { color: var(--dat); }
.the-sp__phu { padding: 4px 16px 0; font-size: 13.5px; color: var(--muc-nhat); line-height: 1.45; }
.the-sp__chan { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 10px 16px 16px; margin-top: auto; }
.the-sp__them {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px 8px 12px;
  border-radius: 999px; border: 0; background: var(--la); color: var(--trang); font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background-color .15s ease;
}
.the-sp__them svg { width: 16px; height: 16px; }
.the-sp__them:hover { background: var(--la-3); }
.the-sp__them.da-them { background: var(--lua); }
.the-sp__them:disabled { background: var(--vien); color: var(--muc-nhat); cursor: not-allowed; }
.the-sp--het .the-sp__anh > :not(.the-sp__nhan) { filter: grayscale(.85); opacity: .6; }
.the-sp--het .the-sp__ten { color: var(--muc-nhat); }
.nhan-sp {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: var(--trang); color: var(--muc);
  font-family: var(--f-so); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3;
  box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
}
.nhan-sp--mau { background: var(--ngo); color: var(--muc); }
.nhan-sp--het { background: var(--muc); color: var(--trang); }
.nhan-sp--giam { background: var(--dat); color: var(--trang); }
.gia { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.gia b { font-family: var(--f-so); font-size: 17px; font-weight: 600; color: var(--muc); letter-spacing: -.01em; }
.gia s { font-family: var(--f-so); font-size: 13px; color: var(--muc-nhat); }
@media (max-width: 960px) { .luoi-sp--chu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .luoi-sp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .luoi-sp--chu {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--le)); padding: 2px var(--le) 8px; scroll-padding-inline: var(--le);
  }
  .luoi-sp--chu::-webkit-scrollbar { display: none; }
  .luoi-sp--chu > * { scroll-snap-align: start; }
  .the-sp__dm { padding: 10px 12px 0; font-size: 10.5px; }
  .the-sp__ten { padding: 3px 12px 0; font-size: 14.5px; }
  .the-sp__phu { display: none; }
  .the-sp__chan { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 12px 12px; }
  .the-sp__them { justify-content: center; min-height: 40px; }
  .gia b { font-size: 15.5px; }
  .anh-giu-cho b { font-size: 48px; }
  .anh-giu-cho small { display: none; }
  .nhan-sp { font-size: 10px; padding: 3px 7px; }
}

/* ---------- Đầu trang gian hàng ---------- */
.dau-shop { background: var(--la); color: var(--chu-tren-la); padding: clamp(36px, 5vw, 64px) 0 clamp(38px, 4.5vw, 52px); }
.dau-shop__luoi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 28px 48px; align-items: end; }
.dau-shop h1 {
  font-family: var(--f-tieu-de); font-weight: 900; font-stretch: 66%; font-size: clamp(46px, 6.4vw, 86px); line-height: 1.02;
  margin: 10px 0 10px; color: var(--trang); letter-spacing: -.01em;
}
.dau-shop__luoi p { margin: 0; color: var(--chu-tren-la-nhat); max-width: 38em; }
.chinh-sach { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.chinh-sach li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 12%); border-radius: var(--r-nho); background: var(--la-2); font-size: 14.5px; line-height: 1.45;
}
.chinh-sach span { font-family: var(--f-so); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ngo); }
.bo-loc--shop .chip-nhom { flex: 1 1 auto; }
.nut-tra {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 22%); background: transparent; color: var(--chu-tren-la); font-weight: 600; font-size: 14.5px; cursor: pointer;
}
.nut-tra svg { width: 17px; height: 17px; }
.nut-tra:hover { border-color: var(--ngo); color: var(--ngo); }
.phan--shop { padding-top: clamp(28px, 4vw, 48px); }
@media (max-width: 860px) { .dau-shop__luoi { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .chinh-sach li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bo-loc--shop { gap: 10px; }
  .bo-loc--shop .chip-nhom {
    flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--le)); padding: 2px var(--le) 4px;
  }
  .bo-loc--shop .chip-nhom::-webkit-scrollbar { display: none; }
  .bo-loc--shop .chip { flex: none; }
  .bo-loc__xep { flex: 1 1 120px; min-width: 0; }
  .bo-loc__xep select { width: 100%; }
  .nut-tra { flex: none; white-space: nowrap; padding-inline: 14px; }
}

/* ---------- Hộp chi tiết sản phẩm ---------- */
.hop-sp {
  width: min(980px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: var(--r); background: var(--trang); color: var(--muc); overflow: auto; overscroll-behavior: contain;
}
.hop-sp::backdrop, .hop-tra::backdrop { background: rgb(10 13 36 / 72%); }
.hop-sp[open], .hop-tra[open] { animation: hop-hien .22s ease-out; }
@keyframes hop-hien { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.hop-sp > .hop-dong { position: absolute; top: 12px; right: 12px; z-index: 3; box-shadow: 0 2px 10px rgb(0 0 0 / 12%); }
.hop-sp__luoi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hop-sp__anh { display: flex; flex-direction: column; background: var(--giay); }
.hop-sp__anh-chinh { flex: 1; min-height: 380px; overflow: hidden; }
.hop-sp__anh-chinh img { width: 100%; height: 100%; object-fit: cover; }
.hop-sp__anh-nho { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.hop-sp__anh-nho:empty { display: none; }
.hop-sp__chia-se { padding: 10px 12px 12px; border-top: 1px solid var(--vien); }
.hop-sp__anh-nho button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: var(--r-nho); overflow: hidden; cursor: pointer; background: none; }
.hop-sp__anh-nho button img { width: 100%; height: 100%; object-fit: cover; }
.hop-sp__anh-nho button[aria-current="true"] { border-color: var(--ngo); }
.hop-sp__chu { padding: clamp(24px, 3.2vw, 40px); }
.hop-sp__chu h2 {
  font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 75%; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08;
  margin: 8px 48px 14px 0; outline: none;
}
.hop-sp__gia { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hop-sp__gia .gia b { font-size: 26px; }
.hop-sp__gia .the-sp__nhan { position: static; }
.hop-sp__ngan { margin: 14px 0 16px; color: var(--muc-nhat); }
.canh-bao-mau {
  margin: 0 0 16px; padding: 10px 14px; font-size: 14px; line-height: 1.5;
  background: #fff6dd; border-left: 4px solid var(--ngo); border-radius: 0 var(--r-nho) var(--r-nho) 0;
}
.thong-so { margin: 0 0 20px; }
.thong-so div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--vien); }
.thong-so dt { color: var(--muc-nhat); font-size: 14px; }
.thong-so dd { margin: 0; font-weight: 600; font-size: 14.5px; text-align: right; }
.hop-sp__mua { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hop-sp__mua .nut { flex: 1 1 140px; justify-content: center; }
.hop-sp__da-them { margin: 10px 0 0; font-size: 14.5px; font-weight: 600; color: var(--lua); }
.hop-sp__da-them:empty { display: none; }
.hop-sp__mo-ta:not(:empty) { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--vien); }
.hop-sp__mo-ta h3 { margin: 0 0 8px; font-family: var(--f-so); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muc-nhat); }
.hop-sp__mo-ta p { margin: 0 0 12px; }
.chon-sl { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--vien); border-radius: 999px; background: var(--trang); }
.chon-sl button { width: 44px; height: 100%; border: 0; background: none; border-radius: 999px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muc); }
.chon-sl button:hover { background: var(--giay); }
.chon-sl input {
  width: 46px; height: 100%; border: 0; background: none; text-align: center; padding: 0;
  font-family: var(--f-so); font-size: 16px; font-weight: 600; color: var(--muc); -moz-appearance: textfield; appearance: textfield;
}
.chon-sl input::-webkit-inner-spin-button, .chon-sl input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.chon-sl--nho { height: 36px; }
.chon-sl--nho button { width: 34px; font-size: 17px; }
.chon-sl--nho output { min-width: 26px; text-align: center; font-family: var(--f-so); font-size: 14px; font-weight: 600; }
@media (max-width: 760px) {
  .hop-sp__luoi { grid-template-columns: minmax(0, 1fr); }
  .hop-sp__anh-chinh { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .hop-sp__mua {
    position: sticky; bottom: 0; z-index: 2; margin: 0 calc(-1 * clamp(24px, 3.2vw, 40px)); padding: 12px clamp(24px, 3.2vw, 40px);
    background: var(--trang); border-top: 1px solid var(--vien); box-shadow: 0 -8px 20px rgb(21 26 51 / 6%);
  }
}
@media (max-width: 560px) { .hop-sp { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); } }

/* ---------- Ngăn giỏ hàng (trượt từ phải) ---------- */
.ngan-gio {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); max-width: 100vw;
  height: 100vh; height: 100dvh; max-height: none; padding: 0; border: 0;
  background: var(--trang); color: var(--muc); box-shadow: -12px 0 40px rgb(10 13 36 / 25%); display: none; flex-direction: column;
}
.ngan-gio[open] { display: flex; animation: truot-vao .28s cubic-bezier(.2, .8, .2, 1); }
.ngan-gio::backdrop { background: rgb(10 13 36 / 55%); }
@keyframes truot-vao { from { transform: translateX(100%); } }
.ngan-gio__dau { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--vien); }
.ngan-gio__dau h2 { flex: 1; margin: 0; font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 78%; font-size: 26px; line-height: 1.15; }
.ngan-gio__lui {
  flex: none; width: 44px; height: 44px; margin-left: -6px; border-radius: 50%; border: 1px solid var(--vien); background: var(--trang);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.ngan-gio__lui:hover { background: var(--giay); }
.ngan-gio__than { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 28px; }
.gio-trong { text-align: center; padding: 56px 12px; }
.gio-trong b { display: block; font-size: 19px; }
.gio-trong p { margin: 6px 0 20px; color: var(--muc-nhat); }
.gio-ds { list-style: none; padding: 0; margin: 0 0 16px; }
.gio-dong {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "anh chu xoa" "anh sl tien";
  gap: 8px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--vien);
}
.gio-dong:first-child { padding-top: 0; }
.gio-dong__anh { grid-area: anh; align-self: start; width: 64px; height: 64px; border-radius: var(--r-nho); overflow: hidden; background: var(--giay); }
.gio-dong__anh img { width: 100%; height: 100%; object-fit: cover; }
.gio-dong__anh .anh-giu-cho b { font-size: 26px; }
.gio-dong__anh .anh-giu-cho small, .gio-dong__anh .anh-giu-cho::after { display: none; }
.gio-dong__chu { grid-area: chu; display: flex; flex-direction: column; min-width: 0; }
.gio-dong__chu b { font-weight: 600; font-size: 15px; line-height: 1.35; }
.gio-dong__chu span { font-family: var(--f-so); font-size: 12.5px; color: var(--muc-nhat); }
.gio-dong__chu em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--dat); }
.gio-dong .chon-sl { grid-area: sl; justify-self: start; }
.gio-dong__tien { grid-area: tien; font-family: var(--f-so); font-size: 15px; font-weight: 600; text-align: right; }
.gio-dong__xoa {
  grid-area: xoa; align-self: start; justify-self: end; min-height: 32px; padding: 4px 6px; border: 0; background: none;
  color: var(--muc-nhat); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.gio-dong__xoa:hover { color: var(--dat); }
.mien-phi { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-nho); background: var(--giay); }
.mien-phi p { margin: 0 0 8px; font-size: 14px; }
.mien-phi__thanh { display: block; height: 8px; border-radius: 999px; background: var(--vien); overflow: hidden; }
.mien-phi__thanh i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ngo), var(--lua)); transition: width .4s ease; }
.mien-phi--dat { background: #eef6e7; }
.mien-phi--dat p { margin: 0; color: #3d6b18; }
.mien-phi--dat p::before { content: "✓ "; font-weight: 700; }
.bang-tien { margin: 0 0 16px; }
.bang-tien div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: 15px; }
.bang-tien dt { color: var(--muc-nhat); }
.bang-tien dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bang-tien .bang-tien__tong { margin-top: 6px; padding-top: 12px; border-top: 2px solid var(--muc); }
.bang-tien__tong dt { color: var(--muc); font-weight: 700; }
.bang-tien__tong dd { font-family: var(--f-so); font-size: 21px; }
.tom-tat-don {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 12px 14px;
  border-radius: var(--r-nho); background: var(--giay); font-size: 14px;
}
.tom-tat-don .lien-ket-mui { flex: none; font-size: 14px; }

/* ---------- Ô nhập & lựa chọn ---------- */
.o-nhap { display: grid; gap: 6px; margin: 0 0 14px; }
.o-nhap > span { font-weight: 600; font-size: 14px; }
.o-nhap > span i { font-style: normal; font-weight: 400; color: var(--muc-nhat); }
.o-nhap input, .o-nhap textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #bdbfcc; border-radius: var(--r-nho);
  background: var(--trang); color: var(--muc); font: inherit; font-size: 16px; line-height: 1.45;
}
.o-nhap textarea { resize: vertical; }
.o-nhap input:focus-visible, .o-nhap textarea:focus-visible { outline-offset: 1px; border-color: var(--la); }
.o-nhap [aria-invalid="true"] { border-color: var(--dat); background: #fff7f5; }
.loi-o { font-style: normal; font-size: 13px; font-weight: 600; color: var(--dat); }
.loi-o:empty { display: none; }
.chon-tt { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.chon-tt legend { padding: 0; margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.the-chon {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--vien); border-radius: var(--r-nho);
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.the-chon:hover { border-color: var(--muc-nhat); }
.the-chon:has(input:checked) { border-color: var(--la); background: #f2f3fa; }
.the-chon input { flex: none; width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--la); }
.the-chon span { display: grid; }
.the-chon b { font-size: 15px; }
.the-chon small { font-size: 13px; color: var(--muc-nhat); }
.o-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.o-ma-giam__hang { display: flex; gap: 8px; }
.o-ma-giam__hang[hidden] { display: none; }
.o-ma-giam__hang input { flex: 1; min-width: 0; text-transform: uppercase; font-family: var(--f-so); letter-spacing: .04em; }
.o-ma-giam__hang .nut { flex: none; min-height: 44px; padding: 0 16px; }
.ma-giam-ok { margin: 0; padding: 10px 12px; border-radius: var(--r-nho); background: #eef6e6; border: 1px dashed #b9d69c; color: #2f5a12; font-size: 14px; }
.ma-giam-ok .lien-ket-mui { margin-left: 4px; }
.o-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--la); }
.bay { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.loi-form {
  margin: 0 0 14px; padding: 10px 14px; border: 1px solid #f2c8be; border-radius: var(--r-nho);
  background: #fdf0ed; color: #9a2f1b; font-size: 14px; font-weight: 600;
}

/* ---------- Đặt hàng thành công ---------- */
.xong { text-align: center; }
.xong__dau { display: grid; place-items: center; width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 50%; background: var(--lua); color: var(--trang); }
.xong__dau svg { width: 34px; height: 34px; }
.xong h3 { margin: 0 0 14px; font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 78%; font-size: 28px; line-height: 1.15; }
.xong h3:focus { outline: none; }
.xong h4, .kq-tra h4 { margin: 22px 0 10px; font-size: 15.5px; text-align: left; }
.xong > p { margin: 0 0 12px; }
.xong .bang-tien, .xong .ghi-chu-nho { text-align: left; }
.xong__nhan { margin: 0; font-family: var(--f-so); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muc-nhat); }
.xong > .xong__nhan { margin: 0; }
.ma-don { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 20px; }
.xong > .ma-don { margin: 6px 0 20px; }
.ma-don > span {
  font-family: var(--f-so); font-size: 24px; font-weight: 600; letter-spacing: .04em; color: var(--la);
  padding: 6px 14px; border: 1.5px dashed var(--la-3); border-radius: var(--r-nho); background: var(--giay);
}
.ma-don.ma-don--nho { display: inline-block; margin: 0; padding: 3px 10px; border-radius: 6px; background: var(--giay); font-family: var(--f-so); font-size: 16px; font-weight: 600; color: var(--la); }
.xong__nut { display: grid; gap: 10px; margin-top: 20px; }
.xong__nut .nut { justify-content: center; }
.chuyen-khoan { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--vien); border-radius: var(--r); text-align: left; }
.chuyen-khoan__qr { width: 220px; max-width: 100%; height: auto; aspect-ratio: 1 / 1; margin: 0 auto; border-radius: var(--r-nho); background: var(--giay); }
.chuyen-khoan dl { margin: 0; }
.chuyen-khoan dl div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--vien); }
.chuyen-khoan dt { font-size: 13.5px; color: var(--muc-nhat); }
.chuyen-khoan dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 600; }
.chuyen-khoan .so { font-family: var(--f-so); font-size: 15px; font-weight: 600; word-break: break-all; }
.chuyen-khoan .nut-chep { min-height: 32px; padding: 4px 12px; }
.chuyen-khoan dd small { font-weight: 400; color: var(--muc-nhat); }
/* Đang chờ tiền về: chấm nhịp chậm — đủ báo "đang theo dõi" mà không giục khách */
.cho-tien { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muc-nhat); }
.cho-tien__cham { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--ngo); animation: cho-tien 1.6s ease-in-out infinite; }
@keyframes cho-tien { 0%, 100% { box-shadow: 0 0 0 0 rgb(245 181 18 / 55%); } 60% { box-shadow: 0 0 0 8px rgb(245 181 18 / 0%); } }
@media (prefers-reduced-motion: reduce) { .cho-tien__cham { animation: none; } }
.da-nhan-tien { display: grid; gap: 4px; padding: 16px; border-radius: var(--r); background: #eef6e6; border: 1px solid #cfe3bb; color: #2f5a12; text-align: left; }
.da-nhan-tien b { font-size: 17px; }
.da-nhan-tien:focus { outline: 2px solid var(--lua); outline-offset: 2px; }
.chuyen-khoan .ghi-chu-nho { margin: 0; }

/* ---------- Tra cứu đơn ---------- */
.hop-tra {
  width: min(560px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0 0 20px; border: 0;
  border-radius: var(--r); background: var(--trang); color: var(--muc); overflow: auto; overscroll-behavior: contain;
}
.hop-tra__dau { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px 20px; background: var(--trang); }
.hop-tra__dau h2 { margin: 0; font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 78%; font-size: 28px; line-height: 1.15; }
.form-tra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 12px 20px; }
.form-tra .o-nhap { margin: 0; }
.form-tra input[name="ma"] { font-family: var(--f-so); text-transform: uppercase; letter-spacing: .03em; }
.hop-tra > .loi-form { margin: 0 20px 12px; }
#kq-tra { padding: 0 20px; }
.kq-tra { padding-top: 16px; border-top: 1px solid var(--vien); }
.kq-tra__dau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 18px; }
.kq-tra__dau > span:last-child { font-family: var(--f-so); font-size: 13px; color: var(--muc-nhat); }
.don-huy { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--r-nho); background: #fdf0ed; color: #9a2f1b; font-weight: 600; }
.buoc-don { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.buoc-don li { position: relative; padding-top: 30px; text-align: center; font-size: 13px; line-height: 1.35; color: var(--muc-nhat); }
.buoc-don li::before {
  content: ""; position: absolute; top: 4px; left: 50%; translate: -50% 0; z-index: 1; width: 20px; height: 20px;
  border-radius: 50%; border: 2px solid var(--vien); background: var(--trang);
}
.buoc-don li::after { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--vien); }
.buoc-don li:first-child::after { display: none; }
.buoc-don li.qua, .buoc-don li.dang { color: var(--muc); }
.buoc-don li.qua::before { background: var(--lua); border-color: var(--lua); }
.buoc-don li.qua::after, .buoc-don li.dang::after { background: var(--lua); }
.buoc-don li.dang { font-weight: 700; }
.buoc-don li.dang::before { background: var(--ngo); border-color: var(--ngo-dam); box-shadow: 0 0 0 5px rgb(245 181 18 / 25%); }
.kq-tra__mon { list-style: none; padding: 0; margin: 0 0 8px; }
.kq-tra__mon li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--vien); font-size: 15px; }
.kq-tra__mon i { font-style: normal; font-family: var(--f-so); font-size: 13px; color: var(--muc-nhat); }
.kq-tra__mon li > span:last-child { flex: none; font-family: var(--f-so); font-weight: 600; }
.da-tra { color: var(--lua); }
.giao-hang { border: 1px solid var(--vien); border-left: 4px solid var(--la-3); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; }
.giao-hang p { margin: 0 0 4px; }
.giao-hang .so { font-family: var(--f-so); font-weight: 600; }
.giao-hang--dang_giao, .giao-hang--cho_lay { border-left-color: var(--ngo); }
.giao-hang--da_giao { border-left-color: var(--la, #3f7d4e); }
.giao-hang--su_co, .giao-hang--hoan { border-left-color: var(--lua); }
.giao-hang__link { display: inline-block; margin-top: 4px; font-weight: 600; }
.dien-bien { list-style: none; padding: 0; margin: 0 0 0 6px; border-left: 2px solid var(--vien); }
.dien-bien li { position: relative; padding: 0 0 14px 18px; font-size: 14.5px; line-height: 1.45; }
.dien-bien li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--la-3); }
.dien-bien li:first-child::before { background: var(--ngo); box-shadow: 0 0 0 3px rgb(245 181 18 / 30%); }
.dien-bien time { display: block; font-family: var(--f-so); font-size: 12px; color: var(--muc-nhat); }
@media (max-width: 560px) {
  .form-tra { grid-template-columns: minmax(0, 1fr); }
  .form-tra .nut { justify-content: center; }
  .buoc-don li { font-size: 12px; }
}

/* ---------- Thông báo nhanh ---------- */
.bao-nhanh {
  position: fixed; left: 50%; bottom: 20px; translate: -50% 0; z-index: 80; width: max-content; max-width: min(520px, calc(100vw - 32px));
  display: block; padding: 12px 14px 12px 18px; border-radius: 14px;
  background: var(--muc); color: var(--trang); font-size: 14.5px; line-height: 1.45; box-shadow: 0 14px 40px rgb(10 13 36 / 35%);
  animation: bao-len .25s ease-out;
}
.bao-nhanh b { color: var(--ngo); }
.bao-nhanh button {
  display: inline-flex; align-items: center; margin-left: 10px; vertical-align: middle; min-height: 36px; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--ngo); color: var(--muc);
  font-weight: 700; font-size: 14px; cursor: pointer;
}
@keyframes bao-len { from { opacity: 0; transform: translateY(12px); } }
body:has(.tro-ly-nut) .bao-nhanh { bottom: 92px; }


/* ---------- Trang đọc bài ---------- */
.bai { --cot: 720px; background: var(--trang); padding-bottom: clamp(44px, 6vw, 80px); }
.bai__dau.khung { max-width: calc(var(--cot) + 2 * var(--le)); padding-top: clamp(32px, 5vw, 64px); }
.bai__duong { margin: 0 0 14px; font-family: var(--f-so); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muc-nhat); }
.bai__duong a { color: var(--dat); text-decoration: none; }
.bai__duong a:hover { text-decoration: underline; }
.bai__duong b { color: var(--muc); font-weight: 600; }
.bai__td {
  margin: 0 0 16px; font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 75%; font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06; letter-spacing: -.005em; text-wrap: balance;
}
.bai__phu { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 30px; font-family: var(--f-so); font-size: 13px; color: var(--muc-nhat); }
.bai__phu span:not(:first-child)::before { content: "·"; margin-right: 10px; color: #b0b3c1; }
.khung-xuong {
  display: block; height: .9em; margin: .35em 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--giay) 25%, #dddee8 50%, var(--giay) 75%); background-size: 200% 100%;
  animation: xuong-chay 1.3s linear infinite;
}
@keyframes xuong-chay { to { background-position: -200% 0; } }
.bai__bia.khung { max-width: calc(1000px + 2 * var(--le)); margin: 0 auto 36px; }
.bai__bia-khung { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--la); }
.bai__bia-khung img { width: 100%; height: 100%; object-fit: cover; }
.bai__than, .bai__loat, .bai__ke { width: min(var(--cot), 100% - 2 * var(--le)); margin-inline: auto; }
.bai__than { font-size: 18px; line-height: 1.75; color: #1a2040; overflow-wrap: break-word; }
.bai__than > * { max-width: 68ch; }
.bai__than p { margin: 0 0 1.1em; }
.bai__than h2, .bai__than h3, .bai__than h4 { font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 80%; line-height: 1.2; margin: 1.6em 0 .5em; color: var(--muc); }
.bai__than h2 { font-size: 30px; }
.bai__than h3 { font-size: 24px; }
.bai__than h4 { font-size: 20px; }
.bai__than a { color: var(--la); text-decoration-color: var(--ngo); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bai__than a:hover { color: var(--dat); }
.bai__than strong, .bai__than b { font-weight: 700; color: var(--muc); }
.bai__than blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--ngo); font-style: italic; color: var(--muc); }
.bai__than ul, .bai__than ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.bai__than li { margin: .3em 0; }
.bai__than img { max-width: 100%; height: auto; }
.bai__than table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; margin: 0 0 1.2em; }
.bai__than th, .bai__than td { border: 1px solid var(--vien); padding: 6px 10px; text-align: left; vertical-align: top; }
.bai__than hr { border: 0; height: 1px; background: var(--vien); margin: 2em 0; }
.bai__hinh { margin: 1.6em 0; }
.bai__hinh img { width: 100%; height: auto; border-radius: var(--r-nho); background: var(--giay); }
.bai__hinh figcaption { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--ngo); font-size: 14px; line-height: 1.5; color: var(--muc-nhat); }
.bai__trong { color: var(--muc-nhat); font-style: italic; }
.nhung-yt { position: relative; margin: 1.6em 0; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.nhung-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nhung-yt__nut { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; border-radius: inherit; }
.nhung-yt__nut:focus-visible { outline-offset: -4px; }
.nhung-yt__nut img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s ease; }
.nhung-yt__nut:hover img { opacity: .95; }
.nhung-yt__phat {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 76px; height: 76px;
  border-radius: 50%; background: var(--ngo); color: var(--la); box-shadow: 0 10px 30px rgb(0 0 0 / 40%); transition: transform .2s ease;
}
.nhung-yt__phat svg { width: 32px; height: 32px; margin-left: 4px; }
.nhung-yt__nut:hover .nhung-yt__phat, .nhung-yt__nut:focus-visible .nhung-yt__phat { transform: scale(1.07); }
.nhung-yt__chu {
  position: absolute; left: 50%; translate: -50% 0; bottom: 16px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / 50%);
  font-family: var(--f-so); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--trang);
}
.nhung-yt .goc { width: 26px; height: 26px; }
.bai__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 30px; }
.bai__meta .bai__phu { margin: 0; }
.bai__cuoi { width: min(var(--cot), 100% - 2 * var(--le)); margin: clamp(28px, 4vw, 44px) auto 0; padding-top: 22px; border-top: 1px solid var(--vien); }
.bai__cuoi-td { margin: 0 0 12px; font-family: var(--f-tieu-de); font-weight: 800; font-stretch: 75%; font-size: 22px; line-height: 1.2; color: var(--muc); }
.bai__ung-ho { margin: 16px 0 0; font-size: 15px; color: var(--muc-nhat); }
.bai__ung-ho a { font-weight: 700; color: var(--dat); text-underline-offset: 3px; }
/* Mỗi nút mang màu của mạng xã hội đó; rê chuột thì đổ nền màu ấy */
.chia-se { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chia-se[hidden] { display: none; }
.chia-se__nut {
  --nen: var(--trang); --mau: var(--la);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--vien); border-radius: 999px; background: var(--nen); color: var(--mau);
  font: 600 14.5px/1 var(--f-than); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.chia-se__nut svg { width: 20px; height: 20px; flex: none; }
.chia-se__nut span { color: var(--muc); transition: color .15s; }
.chia-se__z { stroke: var(--z, var(--nen)); }
.chia-se__nut--fb { --mau: #1877f2; }
.chia-se__nut--zalo { --mau: #0068ff; }
.chia-se__nut--x { --mau: #0f1419; }
.chia-se__nut:hover { --nen: var(--mau); border-color: var(--mau); color: var(--trang); }
.chia-se__nut:hover span { color: var(--trang); }
.chia-se--gon { gap: 6px; }
.chia-se--gon .chia-se__nut { justify-content: center; width: 40px; height: 40px; min-height: 0; padding: 0; }
.chia-se--gon .chia-se__nut svg { width: 19px; height: 19px; }
@media (pointer: coarse) { .chia-se--gon .chia-se__nut { width: 44px; height: 44px; } }
.chia-se__nhan { margin-right: 4px; font-size: 13.5px; font-weight: 600; color: var(--muc-nhat); }
.chia-se__bao { flex-basis: 100%; font-size: 13.5px; font-weight: 600; color: var(--lua); }
.chia-se--gon .chia-se__bao { flex-basis: auto; }
.chia-se__bao:empty { display: none; }
.chia-se__nut--lk:hover { --mau: var(--la); }
/* Trên nền tối (hộp phát video): nút viền mờ, chữ Z của Zalo màu nền lá; rê chuột mới đổ màu mạng xã hội */
.chia-se--toi .chia-se__nhan { color: rgb(255 255 255 / 72%); }
.chia-se--toi .chia-se__bao { color: var(--ngo); }
.chia-se--toi .chia-se__nut { --nen: rgb(255 255 255 / 6%); --z: var(--la); border-color: rgb(255 255 255 / 20%); color: var(--trang); }
.chia-se--toi .chia-se__nut:hover { --nen: var(--mau); --z: var(--mau); border-color: var(--mau); }
.chia-se--toi .chia-se__nut--x:hover { --nen: var(--trang); border-color: var(--trang); color: #0f1419; }
.chia-se--toi .chia-se__nut--lk:hover { --nen: var(--ngo); border-color: var(--ngo); color: var(--la); }
.bai__loat { margin-top: 44px; padding: 20px 22px; border-radius: var(--r); background: var(--giay); }
.bai__loat-dau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 12px; }
.bai__loat-dau > span:last-child { font-family: var(--f-so); font-size: 13px; color: var(--muc-nhat); }
.bai__loat ol { list-style: none; padding: 0; margin: 0; max-height: 340px; overflow-y: auto; scrollbar-width: thin; }
.bai__loat li a {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 9px 10px; border-radius: var(--r-nho);
  text-decoration: none; font-size: 15px; line-height: 1.4;
}
.bai__loat li a:hover { background: var(--trang); }
.bai__loat time { font-family: var(--f-so); font-size: 12.5px; color: var(--muc-nhat); padding-top: 2px; }
.bai__loat li[aria-current="page"] a { background: var(--la); color: var(--trang); font-weight: 600; }
.bai__loat li[aria-current="page"] time { color: var(--ngo); }
.bai__ke { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 32px; }
.bai__ke-o {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--vien); border-radius: var(--r);
  background: var(--trang); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.bai__ke-o:hover { border-color: var(--la); box-shadow: var(--bong); }
.bai__ke-o b { font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.bai__ke-o--sau { align-items: flex-end; text-align: right; grid-column: 2; }
.bai__ke-o .nhan { color: var(--dat); }
.lien-quan { background: var(--giay); }
.luoi-bai { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px 22px; }
.bai-the { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.bai-the__anh {
  display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--r-nho); overflow: hidden; background: var(--lua);
  color: rgb(255 255 255 / 85%); font-family: var(--f-tieu-de); font-weight: 900; font-stretch: 62%; font-size: 56px;
}
.bai-the__anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bai-the:hover .bai-the__anh img { transform: scale(1.04); }
.bai-the__phu { font-family: var(--f-so); font-size: 12.5px; color: var(--muc-nhat); }
.bai-the b { font-weight: 600; font-size: 16.5px; line-height: 1.4; }
.bai-the:hover b { color: var(--dat); }
.bai-khong-thay { padding-block: clamp(56px, 9vw, 112px); text-align: center; max-width: 720px; }
.bai-khong-thay p:not(.nhan) { color: var(--muc-nhat); }
.bai-khong-thay .bai__td { margin: 12px 0; }
@media (max-width: 560px) {
  .bai__than { font-size: 17px; }
  .bai__loat { padding: 16px 12px; }
  .bai__loat li a { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bai__ke { grid-template-columns: minmax(0, 1fr); }
  .bai__ke-o--sau { grid-column: auto; }
  .nhung-yt__phat { width: 60px; height: 60px; }
}

/* ---------- Trợ lý chat ---------- */
.tro-ly-nut {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 10px 22px 10px 16px; border: 0; border-radius: 999px; background: var(--la); color: var(--trang);
  font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 10px 30px rgb(28 36 86 / 38%);
  transition: background-color .15s ease, transform .15s ease;
}
.tro-ly-nut svg { width: 24px; height: 24px; color: var(--ngo); }
.tro-ly-nut:hover { background: var(--la-3); transform: translateY(-1px); }
.tro-ly-nut.dang-mo { background: var(--ngo); color: var(--muc); }
.tro-ly-nut.dang-mo svg { color: var(--la); }
.tro-ly {
  position: fixed; right: 20px; bottom: 88px; z-index: 61; display: flex; flex-direction: column;
  width: min(400px, calc(100vw - 40px)); height: min(600px, calc(100vh - 120px)); height: min(600px, calc(100dvh - 120px));
  background: var(--trang); color: var(--muc); border: 1px solid var(--vien); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgb(10 13 36 / 30%); animation: chat-mo .22s ease-out; transform-origin: bottom right;
}
@keyframes chat-mo { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.tro-ly__dau { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; background: var(--la); color: var(--chu-tren-la); }
.tro-ly__dau > div { flex: 1; min-width: 0; }
.tro-ly__dau h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--trang); line-height: 1.3; }
.tro-ly__dau p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--chu-tren-la-nhat); }
.tro-ly__dai-dien {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ngo); color: var(--la);
  font-family: var(--f-tieu-de); font-weight: 900; font-stretch: 75%; font-size: 17px;
}
.tro-ly__dong {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 25%); background: none;
  color: var(--trang); font-size: 22px; line-height: 1; cursor: pointer;
}
.tro-ly__dong:hover { background: rgb(255 255 255 / 10%); }
.tro-ly__tin { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; background: var(--giay); }
.tro-ly__bb { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.tro-ly__bb p { margin: 0 0 .5em; }
.tro-ly__bb p:last-child, .tro-ly__bb ul:last-child { margin-bottom: 0; }
.tro-ly__bb ul { margin: .2em 0 .5em; padding-left: 1.2em; }
.tro-ly__bb li { margin: .15em 0; }
.tro-ly__bb a { color: var(--la); font-weight: 600; text-decoration-color: var(--ngo); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.tro-ly__bb--khach { align-self: flex-end; background: var(--la); color: var(--trang); border-bottom-right-radius: 4px; }
.tro-ly__bb--khach a { color: var(--ngo); }
.tro-ly__bb--tro-ly { align-self: flex-start; background: var(--trang); border: 1px solid var(--vien); border-bottom-left-radius: 4px; }
.tro-ly__bb--loi { background: #fdf0ed; border-color: #f2c8be; color: #8e2c18; }
.tro-ly__goi-y { display: flex; flex-wrap: wrap; gap: 6px; }
.tro-ly__goi-y button {
  min-height: 36px; padding: 6px 12px; border: 1px solid var(--la-3); border-radius: 999px; background: var(--trang);
  color: var(--la); font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer;
}
.tro-ly__goi-y button:hover { background: var(--la); color: var(--trang); }
.tro-ly__go { display: inline-flex; gap: 4px; padding: 6px 0; }
.tro-ly__go i { width: 7px; height: 7px; border-radius: 50%; background: var(--muc-nhat); animation: go-nhay 1s ease-in-out infinite; }
.tro-ly__go i:nth-child(2) { animation-delay: .15s; }
.tro-ly__go i:nth-child(3) { animation-delay: .3s; }
@keyframes go-nhay { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.tro-ly__form { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--vien); background: var(--trang); }
.tro-ly__form textarea {
  flex: 1; min-width: 0; min-height: 44px; max-height: 132px; padding: 10px 14px; border: 1px solid #bdbfcc; border-radius: 14px;
  resize: none; font: inherit; font-size: 16px; line-height: 1.4; color: var(--muc); background: var(--trang);
}
.tro-ly__form textarea:focus-visible { outline-offset: 1px; border-color: var(--la); }
.tro-ly__gui { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--la); color: var(--ngo); cursor: pointer; }
.tro-ly__gui svg { width: 20px; height: 20px; }
.tro-ly__gui:hover { background: var(--la-3); }
.tro-ly__gui:disabled { opacity: .5; cursor: progress; }
.tro-ly__chu-y { flex: none; margin: 0; padding: 0 14px 10px; background: var(--trang); font-size: 11.5px; line-height: 1.4; color: var(--muc-nhat); text-align: center; }
@media (max-width: 600px) {
  .tro-ly-nut { right: 16px; bottom: 16px; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .tro-ly-nut span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tro-ly-nut.dang-mo { display: none; }
  .tro-ly {
    left: 0; right: 0; bottom: 0; width: 100%; border-radius: 18px 18px 0 0; border-width: 1px 0 0;
    height: min(640px, 88vh); height: min(640px, 88dvh); transform-origin: bottom center;
  }
  body:has(.tro-ly-nut) .bao-nhanh { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .the-sp:hover, .tro-ly-nut:hover { transform: none; }
  .khung-xuong { animation: none; }
}

/* Trang ngắn (bài không tồn tại, gian hàng ít món): chân trang chạm đáy */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body[data-trang="bai"] > main { background: var(--trang); }
.ghi-chu-demo { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgb(245 181 18 / 18%); color: var(--muc); }
