/* ------------------------------------------------------------------
   Giao diện #1 - giao dien sieu thi mini.

   Viet tay tu dau, khong nhung bo CSS cua bat ky trang nao khac va khong dung
   framework: trang cong khai phai nhe (dac ta muc 26), nen chi giu nhung quy
   tac that su duoc dung toi.

   Uu tien dien thoai: moi quy tac mac dinh la cho man hinh hep, cac @media o
   cuoi file chi NOI THEM cho man hinh rong hon. Lam nguoc lai thi may dien
   thoai - phan lon nguoi mua - phai tai ve mot dong quy tac roi ghi de.
   ------------------------------------------------------------------ */

/* ---------- Bien ---------- */

:root {
  /* Ba mau duoi day bi layout ghi de theo cau hinh cua tung website */
  --mau-chinh: #008848;
  --mau-nhan: #ff6b00;
  --mau-sale: #e53935;

  --mau-chinh-dam: #00693a;
  --mau-nen: #f8f9fa;
  --mau-the: #ffffff;
  --mau-chu: #1f2933;
  --mau-chu-nhat: #6b7280;
  --mau-vien: #e5e7eb;

  --bo-goc: 8px;
  --bo-goc-nho: 6px;
  --bo-goc-lon: 16px;

  --bong: 0 1px 2px rgba(16, 24, 40, .06);
  --bong-noi: 0 6px 20px rgba(16, 24, 40, .12);

  --khung-rong: 1280px;
  --cot-san-pham: 5;

  --cao-thanh-duoi: 56px;
}

/* ---------- Nen chung ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mau-nen);
  color: var(--mau-chu);
  font: 400 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Thanh dieu huong duoi se che mat phan cuoi trang neu khong chua san cho */
  padding-bottom: var(--cao-thanh-duoi);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--mau-chinh); }

h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.3; font-weight: 700; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }

p { margin: 0 0 .75rem; }

button { font: inherit; color: inherit; }

/* Bieu tuong SVG noi tuyen: net ve theo mau chu hien tai */
.bt {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chu-an {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Duong tat cho ban phim - chi hien khi duoc focus */
.bo-qua {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--mau-chinh);
  color: #fff;
  padding: .6rem 1rem;
}
.bo-qua:focus { left: .5rem; top: .5rem; }

:focus-visible { outline: 2px solid var(--mau-chinh); outline-offset: 2px; }

.khung {
  width: 100%;
  max-width: var(--khung-rong);
  margin: 0 auto;
  padding: 0 12px;
}

.khoi { margin: 1.5rem auto; }

.the-trang {
  background: var(--mau-the);
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong);
  padding: 1rem;
  margin: 1rem 0;
}

.trong {
  color: var(--mau-chu-nhat);
  background: var(--mau-the);
  border: 1px dashed var(--mau-vien);
  border-radius: var(--bo-goc);
  padding: 1.5rem;
  text-align: center;
}

.ghi-chu { color: var(--mau-chu-nhat); font-size: .85rem; }
.lien-ket-phu { color: var(--mau-chu-nhat); }

.o-trong { text-align: center; }
.o-trong .bt { width: 40px; height: 40px; margin: 0 auto .5rem; color: var(--mau-chu-nhat); }

.bang-bao {
  border-radius: var(--bo-goc);
  padding: .75rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid transparent;
}
.bang-bao-loi { background: #fdecea; border-color: #f5c2c0; color: #a32019; }
.bang-bao-xong { background: #e8f5ec; border-color: #b7e0c4; color: #1b6b3a; }

.thanh-xem-thu {
  background: #fff7e6;
  border-bottom: 1px solid #f0d9a8;
  color: #7a5200;
  padding: .5rem 12px;
  text-align: center;
  font-size: .85rem;
}

/* ---------- Nut ---------- */

.nut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 40px;
  padding: .5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--bo-goc);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}

.nut-chinh { background: var(--mau-chinh); color: #fff; }
.nut-chinh:hover { background: var(--mau-chinh-dam); color: #fff; }

.nut-nhan { background: var(--mau-nhan); color: #fff; }
.nut-nhan:hover { filter: brightness(.94); color: #fff; }

.nut-vien { background: #fff; border-color: var(--mau-vien); color: var(--mau-chu); }
.nut-vien:hover { border-color: var(--mau-chinh); color: var(--mau-chinh); }

.nut-lon { width: 100%; min-height: 46px; font-size: 1rem; }
.nut-nho { min-height: 34px; padding: .25rem .6rem; font-size: .8rem; }

.nut-tron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.nut-tron:hover { background: rgba(0, 0, 0, .06); }

.nut-len-dau {
  position: fixed;
  right: 12px;
  bottom: calc(var(--cao-thanh-duoi) + 12px);
  z-index: 30;
  width: 42px; height: 42px;
  border: 1px solid var(--mau-vien);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--bong-noi);
  cursor: pointer;
}
.nut-len-dau[hidden] { display: none; }
.nut-len-dau .bt { transform: rotate(-90deg); margin: 0 auto; }

/* ---------- O nhap ---------- */

.o-nhap { margin-bottom: .85rem; position: relative; }

.o-nhap label {
  display: block;
  margin-bottom: .25rem;
  font-size: .85rem;
  font-weight: 600;
}

.o-nhap input,
.o-nhap select,
.o-nhap textarea {
  width: 100%;
  min-height: 42px;
  padding: .5rem .7rem;
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc-nho);
  background: #fff;
  font: inherit;
  color: inherit;
}

.o-nhap textarea { min-height: 88px; resize: vertical; }

.o-nhap input:focus,
.o-nhap select:focus,
.o-nhap textarea:focus {
  border-color: var(--mau-chinh);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 136, 72, .12);
}

.o-nhap-doi { display: grid; gap: 0 .75rem; }

.bat-buoc { color: var(--mau-sale); }
.o-nhap-loi { color: var(--mau-sale); font-size: .8rem; margin: .25rem 0 0; }
.o-nhap-goi-y { color: var(--mau-chu-nhat); font-size: .8rem; font-weight: 400; }

.bay-bot { position: absolute; left: -9999px; }

.ds-chon { display: grid; gap: .5rem; }

.o-chon {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .8rem;
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc-nho);
  cursor: pointer;
}
.o-chon:has(input:checked) {
  border-color: var(--mau-chinh);
  background: rgba(0, 136, 72, .05);
}

.o-so-luong {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc-nho);
  overflow: hidden;
  background: #fff;
}
.o-so-luong button {
  width: 40px;
  border: 0;
  background: #f3f4f6;
  font-size: 1.1rem;
  cursor: pointer;
}
.o-so-luong button[hidden] { display: none; }
.o-so-luong input {
  width: 56px;
  min-height: 40px;
  border: 0;
  border-left: 1px solid var(--mau-vien);
  border-right: 1px solid var(--mau-vien);
  text-align: center;
  font: inherit;
  /* Bo mui ten tang giam mac dinh: da co hai nut hai ben */
  -moz-appearance: textfield;
}
.o-so-luong input::-webkit-outer-spin-button,
.o-so-luong input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* O goi y dia gioi hanh chinh */
.goi-y {
  position: absolute;
  z-index: 40;
  left: 0; right: 0;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc-nho);
  box-shadow: var(--bong-noi);
}
.goi-y[hidden] { display: none; }
.goi-y li { padding: .55rem .7rem; cursor: pointer; }
.goi-y li:hover,
.goi-y li.dang-chon { background: rgba(0, 136, 72, .08); }

/* ---------- Header ---------- */

.dai-thong-bao {
  background: var(--mau-chinh-dam);
  color: #fff;
  font-size: .82rem;
  text-align: center;
  padding: .4rem 0;
}

/* KHONG dan dau trang theo man hinh: tren dien thoai no cao gan mot phan tu
   man hinh (logo + o tim + dai danh muc), dan lai la lay mat cho doc. Viec di
   lai lien tuc da co thanh dieu huong duoi lo. */
.dau-trang {
  position: relative;
  z-index: 50;
  background: var(--mau-chinh);
  color: #fff;
}

.thanh-tien-ich { display: none; }

.thanh-chinh { padding: .5rem 0; }

.thanh-chinh-trong {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "menu logo gio"
    "tim  tim  tim";
  align-items: center;
  gap: .5rem;
}

.nut-mo-ngan { grid-area: menu; color: #fff; }
.nut-mo-ngan:hover { background: rgba(255, 255, 255, .15); }

.logo { grid-area: logo; display: flex; align-items: center; justify-content: center; }
.logo img { max-height: 40px; width: auto; }
.logo-chu { font-size: 1.1rem; font-weight: 800; color: #fff; }

.o-tim {
  grid-area: tim;
  display: flex;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
}
.o-tim input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: .4rem .9rem;
  border: 0;
  font: inherit;
  color: var(--mau-chu);
}
.o-tim input:focus { outline: none; }
.o-tim button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  border: 0;
  background: var(--mau-nhan);
  color: #fff;
  cursor: pointer;
}

.thanh-chinh-phai {
  grid-area: gio;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.khoi-hotline,
.khoi-tai-khoan { display: none; }

.khoi-gio {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  padding: .3rem .4rem;
  border-radius: var(--bo-goc);
}
.khoi-gio:hover { color: #fff; background: rgba(255, 255, 255, .15); }
.khoi-gio > span:last-child { display: none; }

.khoi-gio-bieu-tuong { position: relative; display: inline-flex; }

.dem-gio {
  position: absolute;
  top: -6px; right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--mau-sale);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* ---------- Thanh dieu huong + mega menu ---------- */

.thanh-dieu-huong { display: none; }

.mega { position: relative; }

.mega-nut {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 260px;
  height: 44px;
  padding: 0 .8rem;
  border: 0;
  border-radius: var(--bo-goc) var(--bo-goc) 0 0;
  background: var(--mau-chinh-dam);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.mega-nut .bt:last-child { margin-left: auto; transform: rotate(90deg); }

.mega-bang {
  position: absolute;
  top: 100%; left: 0;
  width: 260px;
  background: #fff;
  border: 1px solid var(--mau-vien);
  border-top: 0;
  border-radius: 0 0 var(--bo-goc) var(--bo-goc);
  box-shadow: var(--bong-noi);
}
.mega-bang[hidden] { display: none; }

/* Dai danh muc cuon ngang - loi di cua dien thoai */
.dai-danh-muc {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding: .5rem 12px;
  background: #fff;
  border-bottom: 1px solid var(--mau-vien);
  scrollbar-width: none;
}
.dai-danh-muc::-webkit-scrollbar { display: none; }
.dai-danh-muc a {
  flex: none;
  padding: .3rem .7rem;
  border: 1px solid var(--mau-vien);
  border-radius: 999px;
  font-size: .82rem;
  white-space: nowrap;
}
.dai-danh-muc a:hover { border-color: var(--mau-chinh); color: var(--mau-chinh); }

/* Danh muc nhieu thi cuon trong bang, khong keo dai qua man hinh */
.mega-cot {
  list-style: none;
  margin: 0;
  padding: .25rem 0;
  max-height: 70vh;
  overflow-y: auto;
}

.mega-muc { position: relative; }
.mega-muc > a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .8rem;
  color: var(--mau-chu);
  font-size: .9rem;
}
.mega-muc > a .bt { margin-left: auto; width: 16px; height: 16px; }
.mega-muc:hover > a { background: rgba(0, 136, 72, .07); color: var(--mau-chinh); }

.mega-con {
  display: none;
  position: absolute;
  top: -1px; left: 100%;
  min-width: 260px;
  max-width: 420px;
  padding: .8rem 1rem;
  background: #fff;
  border: 1px solid var(--mau-vien);
  border-radius: 0 var(--bo-goc) var(--bo-goc) 0;
  box-shadow: var(--bong-noi);
}
.mega-muc:hover .mega-con,
.mega-muc:focus-within .mega-con { display: block; }

.mega-con-dau { font-weight: 700; margin: 0 0 .4rem; }
.mega-con ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1rem; }
.mega-con li { break-inside: avoid; }
.mega-con a { display: block; padding: .25rem 0; font-size: .87rem; color: var(--mau-chu-nhat); }
.mega-con a:hover { color: var(--mau-chinh); }

.menu-ngang { display: flex; list-style: none; margin: 0; padding: 0; }
.menu-ngang > li { position: relative; }
.menu-ngang > li > a {
  display: flex;
  align-items: center;
  gap: .25rem;
  height: 44px;
  padding: 0 .8rem;
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
}
.menu-ngang > li > a .bt { width: 14px; height: 14px; transform: rotate(90deg); }
.menu-ngang > li:hover > a { background: rgba(255, 255, 255, .14); color: #fff; }

.menu-con {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: .3rem 0;
  background: #fff;
  border: 1px solid var(--mau-vien);
  border-radius: 0 0 var(--bo-goc) var(--bo-goc);
  box-shadow: var(--bong-noi);
  z-index: 20;
}
.menu-ngang > li:hover .menu-con,
.menu-ngang > li:focus-within .menu-con { display: block; }
.menu-con a { display: block; padding: .45rem .8rem; font-size: .87rem; color: var(--mau-chu); }
.menu-con a:hover { background: rgba(0, 136, 72, .07); color: var(--mau-chinh); }

/* ---------- Ngan keo cho dien thoai ---------- */

.ngan { position: fixed; inset: 0; z-index: 60; }
.ngan[hidden] { display: none; }

.ngan-nen { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }

.ngan-trong {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(86vw, 340px);
  background: #fff;
  color: var(--mau-chu);
  overflow-y: auto;
  padding-bottom: 2rem;
  transform: translateX(-100%);
  transition: transform .2s ease-out;
}
.ngan.dang-mo .ngan-trong { transform: translateX(0); }

.ngan-dau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .5rem .6rem 1rem;
  background: var(--mau-chinh);
  color: #fff;
}
.ngan-ten { font-weight: 700; }

.ngan-tai-khoan {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--mau-vien);
}
.ngan-tai-khoan span { display: flex; flex-direction: column; font-weight: 600; }
.ngan-tai-khoan small { font-weight: 400; color: var(--mau-chu-nhat); }

.ngan-nhan {
  margin: 0;
  padding: .7rem 1rem .3rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--mau-chu-nhat);
}

.ngan-list { list-style: none; margin: 0; padding: 0; }
.ngan-list > li { border-bottom: 1px solid var(--mau-vien); }
.ngan-list a,
.ngan-list summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  min-height: 46px;
  cursor: pointer;
}
.ngan-list summary { list-style: none; font-weight: 500; }
.ngan-list summary::-webkit-details-marker { display: none; }
.ngan-list summary .bt { margin-left: auto; width: 16px; height: 16px; transform: rotate(90deg); }
.ngan-list details[open] summary .bt { transform: rotate(-90deg); }
.ngan-list details ul { list-style: none; margin: 0; padding: 0 0 .3rem; background: #f8fafc; }
.ngan-list details ul a { padding-left: 2rem; font-size: .9rem; min-height: 42px; }

.ngan-hotline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 1rem;
  padding: .7rem;
  border-radius: var(--bo-goc);
  background: var(--mau-nhan);
  color: #fff;
  font-weight: 700;
}
.ngan-hotline:hover { color: #fff; }

/* ---------- Thanh dieu huong duoi ---------- */

.thanh-duoi {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--cao-thanh-duoi);
  background: #fff;
  border-top: 1px solid var(--mau-vien);
  box-shadow: 0 -2px 10px rgba(16, 24, 40, .08);
}

.thanh-duoi a,
.thanh-duoi button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: none;
  color: var(--mau-chu-nhat);
  font-size: .68rem;
  cursor: pointer;
}
.thanh-duoi .bt { width: 21px; height: 21px; }
.thanh-duoi .dang-xem { color: var(--mau-chinh); font-weight: 600; }

.thanh-duoi-bt { position: relative; display: inline-flex; }

/* ---------- Slide banner ---------- */

.slide {
  position: relative;
  max-width: var(--khung-rong);
  margin: .75rem auto 0;
  padding: 0 12px;
}

.slide-khung {
  position: relative;
  border-radius: var(--bo-goc);
  overflow: hidden;
  background: #e9eef2;
}

.slide-muc { display: none; }
.slide-muc.dang-hien { display: block; }
.slide-muc img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }

.slide-chu {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1rem .9rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent);
  color: #fff;
}
.slide-chu h2 { font-size: 1.1rem; margin: 0 0 .2rem; }
.slide-chu p { margin: 0; font-size: .85rem; }
.slide-phu {
  display: inline-block;
  margin-bottom: .3rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: var(--mau-nhan);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.slide-chu .nut { margin-top: .6rem; }

.slide-nut {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  cursor: pointer;
}
.slide-truoc { left: 20px; }
.slide-sau { right: 20px; }

.slide-cham {
  position: absolute;
  left: 0; right: 0; bottom: .5rem;
  display: flex;
  justify-content: center;
  gap: .35rem;
}
.slide-cham button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
}
.slide-cham button.dang-hien { background: #fff; width: 20px; border-radius: 999px; }

/* ---------- Dai cam ket ---------- */

.dai-cam-ket {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin: 1rem 0;
}

.cam-ket {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem;
  background: var(--mau-the);
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong);
}
.cam-ket img { width: 32px; height: 32px; object-fit: contain; }
.cam-ket-bt { color: var(--mau-chinh); display: inline-flex; }
.cam-ket strong { display: block; font-size: .82rem; }
.cam-ket span { color: var(--mau-chu-nhat); font-size: .74rem; }

/* ---------- Dau khoi ---------- */

.khoi-dau {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 .75rem;
}
.khoi-dau h1, .khoi-dau h2 { margin: 0; }
.khoi-dau h2 { position: relative; padding-left: .6rem; }
.khoi-dau h2::before {
  content: "";
  position: absolute;
  left: 0; top: .15em; bottom: .15em;
  width: 4px;
  border-radius: 2px;
  background: var(--mau-chinh);
}
.khoi-phu { margin: .2rem 0 0; color: var(--mau-chu-nhat); font-size: .82rem; }

.khoi-xem-them {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  flex: none;
  color: var(--mau-chinh);
  font-size: .85rem;
  font-weight: 600;
}
.khoi-xem-them .bt { width: 16px; height: 16px; }

/* ---------- Luoi va the san pham ---------- */

.luoi-san-pham {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

/* Tren dien thoai vai dai san pham cuon ngang cho trang bot dai */
.luoi-cuon {
  grid-auto-flow: column;
  grid-auto-columns: 46%;
  grid-template-columns: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .4rem;
  scrollbar-width: thin;
}
.luoi-cuon > * { scroll-snap-align: start; }

.the-sp {
  display: flex;
  flex-direction: column;
  background: var(--mau-the);
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong);
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}
.the-sp:hover { border-color: var(--mau-chinh); box-shadow: var(--bong-noi); }

.the-sp-anh { position: relative; background: #fff; }
.the-sp-anh img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: .4rem; }

.the-sp-khong-anh {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 10px, #e8edf2 10px, #e8edf2 20px);
}

.the-sp-nhan {
  position: absolute;
  top: .4rem; left: .4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
}
.nhan {
  padding: .1rem .4rem;
  border-radius: var(--bo-goc-nho);
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
}
.nhan-giam { background: var(--mau-sale); }
.nhan-moi { background: var(--mau-chinh); }
.nhan-noi-bat { background: var(--mau-nhan); }

.the-sp-xem-nhanh {
  position: absolute;
  left: .5rem; right: .5rem; bottom: .5rem;
  padding: .35rem;
  border: 0;
  border-radius: var(--bo-goc-nho);
  background: rgba(31, 41, 51, .85);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
}
.the-sp-xem-nhanh[hidden] { display: none; }
.the-sp:hover .the-sp-xem-nhanh,
.the-sp-xem-nhanh:focus-visible { opacity: 1; }

.the-sp-chu {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: .55rem .6rem .7rem;
}

.the-sp-hang {
  margin: 0 0 .15rem;
  color: var(--mau-chu-nhat);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.the-sp-ten {
  margin: 0 0 .35rem;
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.35;
  /* Cat con hai dong: ten dai ngan khac nhau van cho ra the cao bang nhau */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.the-sp-sao { margin: 0 0 .25rem; display: flex; gap: 1px; }
.the-sp-sao .bt { width: 14px; height: 14px; }
.sao-day { color: #f59e0b; }
.sao-day .bt { fill: currentColor; }
.sao-rong { color: var(--mau-vien); }

.the-sp-gia { margin: 0 0 .15rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.the-sp-gia strong { color: var(--mau-sale); font-size: 1rem; }
.the-sp-gia del { color: var(--mau-chu-nhat); font-size: .8rem; }

.the-sp-ton { margin: 0 0 .3rem; color: var(--mau-chinh); font-size: .75rem; }

.the-sp-nut { margin-top: auto; }

/* ---------- Flash sale ---------- */

.khoi-flash {
  margin: 1.25rem 0;
  padding: .8rem;
  border-radius: var(--bo-goc-lon);
  background: linear-gradient(135deg, var(--mau-sale), var(--mau-nhan));
}

.flash-dau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .7rem;
  color: #fff;
}
.flash-dau h2 {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}
.flash-dau .bt { fill: #ffe08a; stroke: #ffe08a; }

.flash-dem {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  font-size: .82rem;
  font-weight: 600;
}
.flash-dem .bt { width: 16px; height: 16px; }

.flash-luoi { margin: 0; }

/* ---------- Luoi nhom / danh muc ---------- */

.luoi-nhom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}
.nhom-the {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .7rem .4rem;
  text-align: center;
  background: var(--mau-the);
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong);
}
.nhom-the:hover { border-color: var(--mau-chinh); }
.nhom-the img { width: 56px; height: 56px; object-fit: contain; }
.nhom-the span { font-size: .8rem; font-weight: 600; }
.nhom-the small { color: var(--mau-chu-nhat); font-size: .72rem; }

.luoi-danh-muc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
.danh-muc-the {
  display: block;
  padding: .7rem .8rem;
  background: var(--mau-the);
  border: 1px solid var(--mau-vien);
  border-left: 3px solid var(--mau-chinh);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong);
}
.danh-muc-the strong { display: block; font-size: .9rem; }
.danh-muc-the small { color: var(--mau-chu-nhat); font-size: .75rem; }
.danh-muc-con {
  display: block;
  margin-top: .2rem;
  color: var(--mau-chu-nhat);
  font-size: .75rem;
  line-height: 1.4;
}

/* ---------- Dai banner ---------- */

.dai-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  margin: 1.25rem auto;
}
.dai-banner-o {
  display: block;
  border-radius: var(--bo-goc);
  overflow: hidden;
  background: #e9eef2;
}
.dai-banner-o img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.dai-banner-o span {
  display: block;
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 700;
}

/* ---------- Gioi thieu / y kien / tin tuc ---------- */

.dai-gioi-thieu {
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  background: #fff;
  border-top: 1px solid var(--mau-vien);
  border-bottom: 1px solid var(--mau-vien);
}

.luoi-y-kien { display: grid; gap: .6rem; }
.y-kien {
  margin: 0;
  padding: .9rem;
  background: var(--mau-the);
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong);
}
.y-kien blockquote { margin: 0 0 .6rem; font-style: italic; color: #374151; }
.y-kien figcaption { display: flex; align-items: center; gap: .5rem; }
.y-kien img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.y-kien figcaption span { display: flex; flex-direction: column; }
.y-kien em { color: var(--mau-chu-nhat); font-size: .78rem; font-style: normal; }
.y-kien-xem { display: inline-block; margin-top: .6rem; font-weight: 700; font-size: .85rem; color: var(--mau-chinh-dam); }
.y-kien-xem::after { content: " →"; }
.y-kien-xem:hover, .y-kien-xem:focus-visible { text-decoration: underline; }
.y-kien-tat-ca { margin: .8rem 0 0; text-align: center; }
.y-kien-tat-ca a { font-weight: 700; color: var(--mau-chinh-dam); }
.y-kien-tat-ca a:hover, .y-kien-tat-ca a:focus-visible { text-decoration: underline; }

.luoi-tin { display: grid; gap: .7rem; }

.tin-the {
  display: flex;
  flex-direction: column;
  background: var(--mau-the);
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong);
  overflow: hidden;
}
.tin-anh img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tin-chu { padding: .7rem .8rem .9rem; }
.tin-nhom {
  display: inline-block;
  margin-bottom: .3rem;
  padding: .1rem .45rem;
  border-radius: var(--bo-goc-nho);
  background: rgba(0, 136, 72, .1);
  color: var(--mau-chinh);
  font-size: .72rem;
  font-weight: 600;
}
.tin-the h3 { font-size: .95rem; margin-bottom: .3rem; }
.tin-the p { color: var(--mau-chu-nhat); font-size: .84rem; margin: 0 0 .4rem; }
.tin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin: 0;
  color: var(--mau-chu-nhat);
  font-size: .78rem;
}

.the-tac-gia { display: flex; gap: 1rem; align-items: flex-start; }
.the-tac-gia img { border-radius: 50%; }

/* ---------- Duong dan va phan trang ---------- */

.duong-dan {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem;
  padding: .7rem 0;
  color: var(--mau-chu-nhat);
  font-size: .8rem;
}
.duong-dan .bt { width: 14px; height: 14px; }
.duong-dan span[aria-current] { color: var(--mau-chu); font-weight: 600; }

.phan-trang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 1.25rem 0;
}
.phan-trang a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 40px;
  padding: .4rem .8rem;
  background: #fff;
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc);
  font-size: .85rem;
  font-weight: 600;
}
.phan-trang a:hover { border-color: var(--mau-chinh); color: var(--mau-chinh); }
.phan-trang-so { color: var(--mau-chu-nhat); font-size: .85rem; }

/* ---------- Bo cuc hai cot ---------- */

.hai-cot { display: grid; gap: 1rem; align-items: start; }
.cot-ben { display: grid; gap: .75rem; }

.hop-ben {
  background: var(--mau-the);
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong);
  padding: .9rem;
}
.hop-ben h2 { font-size: 1rem; }

.ben-danh-muc { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.ben-danh-muc > li { border-bottom: 1px solid var(--mau-vien); }
.ben-danh-muc > li:last-child { border-bottom: 0; }
.ben-danh-muc a { display: block; padding: .45rem 0; font-size: .88rem; }
.ben-danh-muc ul { list-style: none; margin: 0 0 .3rem; padding: 0 0 0 .8rem; }
.ben-danh-muc ul a { color: var(--mau-chu-nhat); font-size: .83rem; padding: .3rem 0; }
.ben-danh-muc .dang-xem { color: var(--mau-chinh); font-weight: 700; }

.hop-ben-hotline { display: flex; align-items: center; gap: .6rem; }
.hop-ben-hotline .bt { width: 28px; height: 28px; color: var(--mau-chinh); }
.hop-ben-hotline small { display: block; color: var(--mau-chu-nhat); font-size: .78rem; }
.hop-ben-hotline strong { color: var(--mau-sale); font-size: 1.05rem; }

/* Cot loc ben trai chi co ich khi con du cho; tren dien thoai danh muc da nam
   trong ngan keo nen de o day chi day san pham xuong duoi mot man hinh */
.cot-ben-loc { display: none; }

/* ---------- Trang chi tiet san pham ---------- */

.chi-tiet { display: grid; gap: 1rem; margin-bottom: 1rem; }

.anh-chinh {
  background: #fff;
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc);
  overflow: hidden;
}
.anh-chinh img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: .5rem; }

.anh-nho { display: flex; gap: .4rem; margin-top: .5rem; overflow-x: auto; }
.anh-nho-o {
  flex: none;
  width: 64px; height: 64px;
  padding: 2px;
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc-nho);
  background: #fff;
  cursor: pointer;
}
.anh-nho-o.dang-chon { border-color: var(--mau-chinh); }
.anh-nho-o img { width: 100%; height: 100%; object-fit: contain; }

.chi-tiet-mua {
  background: var(--mau-the);
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong);
  padding: 1rem;
}

.chi-tiet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  color: var(--mau-chu-nhat);
  font-size: .82rem;
}

.hop-gia {
  margin: .5rem 0 .75rem;
  padding: .7rem .9rem;
  background: #fff6f6;
  border: 1px solid #ffdede;
  border-radius: var(--bo-goc);
}
.chi-tiet-gia { color: var(--mau-sale); font-size: 1.5rem; font-weight: 800; }
.hop-gia small { display: block; color: var(--mau-chu-nhat); font-size: .78rem; }

.chi-tiet-tom-tat { color: #374151; }

.form-mua { margin: .75rem 0; }

.chi-tiet-cam-ket {
  list-style: none;
  margin: 1rem 0 0;
  padding: .8rem 0 0;
  border-top: 1px dashed var(--mau-vien);
}
.chi-tiet-cam-ket li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .5rem;
  font-size: .85rem;
}
.chi-tiet-cam-ket .bt { width: 18px; height: 18px; color: var(--mau-chinh); margin-top: .1rem; }

.bang-thong-so { width: 100%; border-collapse: collapse; font-size: .88rem; }
.bang-thong-so th,
.bang-thong-so td { padding: .5rem .6rem; border-bottom: 1px solid var(--mau-vien); text-align: left; }
.bang-thong-so th { width: 40%; color: var(--mau-chu-nhat); font-weight: 600; }

.thanh-mua-duoi {
  position: fixed;
  left: 0; right: 0;
  bottom: var(--cao-thanh-duoi);
  z-index: 44;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem .75rem;
  background: #fff;
  border-top: 1px solid var(--mau-vien);
  box-shadow: 0 -2px 10px rgba(16, 24, 40, .1);
}
.thanh-mua-duoi[hidden] { display: none; }
.thanh-mua-duoi small {
  display: block;
  max-width: 55vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mau-chu-nhat);
  font-size: .75rem;
}
.thanh-mua-duoi strong { color: var(--mau-sale); }

/* ---------- Gio hang va dat hang ---------- */

.ds-gio { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }

.gio-dong {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "ten  xoa"
    "sua  tien";
  gap: .5rem;
  align-items: center;
  padding: .8rem;
  background: var(--mau-the);
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong);
}
.gio-ten { grid-area: ten; }
.gio-ten small { display: block; color: var(--mau-chu-nhat); font-size: .78rem; }
.gio-don-gia { display: block; color: var(--mau-chu-nhat); font-size: .82rem; }
.gio-sua { grid-area: sua; display: flex; align-items: center; gap: .4rem; margin: 0; }
.gio-tien { grid-area: tien; font-weight: 700; color: var(--mau-sale); text-align: right; }
.gio-xoa { grid-area: xoa; justify-self: end; margin: 0; }
.gio-xoa .bt { width: 18px; height: 18px; color: var(--mau-chu-nhat); }

.ds-gio-xem .gio-dong { grid-template-areas: "ten tien"; }

.tom-tat-hang {
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0 0 .75rem;
  border-bottom: 1px solid var(--mau-vien);
}
.tom-tat-hang li {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .4rem;
  font-size: .85rem;
}
.tom-tat-ten em { color: var(--mau-chu-nhat); font-style: normal; }

.tom-tat-tien { display: grid; grid-template-columns: 1fr auto; gap: .35rem .5rem; margin: 0 0 .75rem; }
.tom-tat-tien dt { color: var(--mau-chu-nhat); font-size: .88rem; }
.tom-tat-tien dd { margin: 0; text-align: right; font-size: .88rem; }
.tom-tat-giam { color: var(--mau-chinh); }
.tom-tat-tong { font-weight: 800; color: var(--mau-sale); }
dt.tom-tat-tong, dd.tom-tat-tong { font-size: 1.05rem; }

.dat-hang-xong { text-align: center; }
.dat-hang-xong .ds-gio, .dat-hang-xong .tom-tat-tien { text-align: left; }
.dau-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: .5rem;
  border-radius: 50%;
  background: rgba(0, 136, 72, .12);
  color: var(--mau-chinh);
}
.dau-tick .bt { width: 30px; height: 30px; stroke-width: 2.2; }
.dat-hang-ma { font-size: 1.05rem; }

.thanh-loc { display: flex; align-items: center; gap: .5rem; flex: none; }
.thanh-loc label { font-size: .82rem; color: var(--mau-chu-nhat); }
.thanh-loc select {
  min-height: 38px;
  padding: .3rem .5rem;
  border: 1px solid var(--mau-vien);
  border-radius: var(--bo-goc-nho);
  background: #fff;
  font: inherit;
}

.thanh-tim-lon { display: grid; gap: .5rem; margin-bottom: 1rem; }
.thanh-tim-lon .o-nhap { margin-bottom: 0; }

/* ---------- Hop xem nhanh ---------- */

.hop-xem-nhanh { position: fixed; inset: 0; z-index: 70; }
.hop-xem-nhanh[hidden] { display: none; }
.hop-nen { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.hop-trong {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 760px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 1rem;
  background: #fff;
  border-radius: var(--bo-goc-lon);
  box-shadow: var(--bong-noi);
}
.hop-dong { position: absolute; top: .3rem; right: .3rem; }

.xem-nhanh { display: grid; gap: 1rem; }
.xem-nhanh-anh img { width: 100%; max-height: 40vh; object-fit: contain; }

/* ---------- Bai viet ---------- */

.bai-viet-anh { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--bo-goc); margin-bottom: .75rem; }
.bai-viet-tom-tat { font-size: 1rem; color: #374151; font-weight: 500; }
.bai-viet-than { line-height: 1.7; }
.bai-viet-than img { border-radius: var(--bo-goc); margin: .75rem 0; }
.bai-viet-than h2, .bai-viet-than h3 { margin-top: 1.25rem; }
.bai-viet-than ul, .bai-viet-than ol { padding-left: 1.2rem; }
.bai-viet-than table { width: 100%; border-collapse: collapse; }
.bai-viet-than td, .bai-viet-than th { border: 1px solid var(--mau-vien); padding: .4rem .6rem; }

.the-tag { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.the-tag a {
  padding: .2rem .6rem;
  border: 1px solid var(--mau-vien);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--mau-chu-nhat);
}

/* ---------- Chan trang ---------- */

.chan-trang {
  margin-top: 2rem;
  background: #10241a;
  color: #cbd5d1;
  font-size: .87rem;
}

.chan-cot { display: grid; gap: 1.25rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }

.chan-o h3 { color: #fff; font-size: .95rem; margin-bottom: .6rem; }
.chan-logo { display: inline-block; margin-bottom: .5rem; }
.chan-logo .logo-chu { color: #fff; }
.chan-gioi-thieu { color: #9fb3aa; }

.chan-lien-he, .chan-list, .chan-mang-xa-hoi { list-style: none; margin: 0; padding: 0; }
.chan-lien-he li, .chan-list li { margin-bottom: .4rem; }
.chan-trang a:hover { color: #fff; }

.chan-mang-xa-hoi { display: flex; flex-wrap: wrap; gap: .5rem; }
.chan-mang-xa-hoi a {
  display: inline-block;
  padding: .25rem .7rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  font-size: .8rem;
}

.chan-doi-tac { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.chan-doi-tac img { background: #fff; border-radius: var(--bo-goc-nho); padding: 3px; }

.chan-duoi {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: .8rem 0;
  font-size: .8rem;
  color: #8fa49b;
}
.chan-duoi .khung {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  justify-content: center;
  text-align: center;
}

/* ==================================================================
   Man hinh rong hon. Tu day tro xuong chi NOI THEM cho may tinh bang
   va may tinh - dien thoai khong phai doc nhung quy tac nay.
   ================================================================== */

@media (min-width: 640px) {
  h1 { font-size: 1.6rem; }

  .khung { padding: 0 16px; }

  .luoi-san-pham { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
  .luoi-cuon { grid-auto-columns: 31%; grid-template-columns: none; }

  .luoi-nhom { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .luoi-danh-muc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .luoi-tin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .luoi-y-kien { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dai-cam-ket { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dai-banner { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .o-nhap-doi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thanh-tim-lon { grid-template-columns: 1fr auto auto; align-items: end; }

  .xem-nhanh { grid-template-columns: 1fr 1fr; }
  .chan-cot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chan-duoi .khung { justify-content: space-between; text-align: left; }

  .slide-muc img { aspect-ratio: 3 / 1; }
  .slide-chu h2 { font-size: 1.4rem; }
}

@media (min-width: 900px) {
  .cot-ben-loc { display: grid; }

  .chi-tiet { grid-template-columns: 5fr 7fr; gap: 1.5rem; }
  .hai-cot { grid-template-columns: 260px minmax(0, 1fr); gap: 1.25rem; }
  .hai-cot-gio,
  .hai-cot-thanh-toan,
  .hai-cot-lien-he { grid-template-columns: minmax(0, 1fr) 340px; }
  .hai-cot-gio .cot-ben,
  .hai-cot-thanh-toan .cot-ben,
  .hai-cot-lien-he .cot-ben { order: 2; }

  .hop-tong { position: sticky; top: 150px; }

  .luoi-tin { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .luoi-y-kien { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dai-banner { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .gio-dong {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas: "ten sua tien xoa";
  }
  .ds-gio-xem .gio-dong { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ten tien"; }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }

  /* Man hinh rong da co menu day du o dau trang, thanh duoi chi lam vuong cho */
  .thanh-duoi { display: none; }
  .thanh-mua-duoi { display: none !important; }
  .nut-len-dau { bottom: 20px; right: 20px; }

  .thanh-tien-ich {
    display: block;
    background: var(--mau-chinh-dam);
    font-size: .8rem;
  }
  .thanh-tien-ich .khung {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    gap: 1rem;
  }
  .thanh-tien-ich-trai,
  .thanh-tien-ich-phai { display: flex; gap: 1rem; align-items: center; }
  .thanh-tien-ich a:hover { color: #fff; text-decoration: underline; }

  .thanh-chinh { padding: .9rem 0; }
  .thanh-chinh-trong {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo tim gio";
    gap: 1.5rem;
  }

  .nut-mo-ngan { display: none; }
  .logo { justify-content: flex-start; }
  .logo img { max-height: 48px; }
  .logo-chu { font-size: 1.35rem; }

  .o-tim { max-width: 560px; }

  .thanh-chinh-phai { gap: 1rem; }

  .khoi-hotline,
  .khoi-tai-khoan {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    padding: .2rem .3rem;
    border-radius: var(--bo-goc);
  }
  .khoi-hotline:hover,
  .khoi-tai-khoan:hover { color: #fff; background: rgba(255, 255, 255, .15); }
  .khoi-hotline span,
  .khoi-tai-khoan span,
  .khoi-gio > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
  .khoi-hotline small,
  .khoi-tai-khoan small,
  .khoi-gio small { font-size: .72rem; opacity: .85; }
  .khoi-hotline strong,
  .khoi-tai-khoan strong,
  .khoi-gio strong { font-size: .92rem; }
  .khoi-tai-khoan strong {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dai-danh-muc { display: none; }

  .thanh-dieu-huong { display: block; background: var(--mau-chinh); }

  /* Ro chuot vao la bang danh muc mo ra, khong cho JavaScript: khong co JS thi
     thuoc tinh hidden van con nguyen nhung quy tac nay manh hon no */
  .mega:hover .mega-bang,
  .mega:focus-within .mega-bang { display: block; }
  .thanh-dieu-huong-trong { display: flex; align-items: flex-end; gap: .5rem; }

  .ngan { display: none; }

  .slide-nut { display: flex; }
  .slide { margin-top: 1rem; }

  .luoi-cuon {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
  }
  .the-sp-anh img { padding: .6rem; }

  .chan-cot { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}

@media (min-width: 1200px) {
  .luoi-san-pham,
  .luoi-cuon { grid-template-columns: repeat(var(--cot-san-pham), minmax(0, 1fr)); }
  .luoi-nhom { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .luoi-danh-muc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Nguoi dat may bot chuyen dong thi bo moi hieu ung truot */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Bo loc thuoc tinh / khoang gia (danh muc) ---------- */

.hop-loc .xoa-loc { float: right; font-size: .8rem; font-weight: 400; color: var(--mau-chu-nhat); text-decoration: underline; }
.hop-loc .nhom-loc { margin: .75rem 0 0; padding: 0; border: 0; min-width: 0; }
.hop-loc .nhom-loc legend { padding: 0; margin-bottom: .35rem; font-weight: 600; font-size: .9rem; }
.hop-loc .lua-chon-loc { display: flex; align-items: center; gap: .45rem; padding: .2rem 0; cursor: pointer; font-size: .9rem; }
.hop-loc .lua-chon-loc input { width: 1rem; height: 1rem; accent-color: var(--mau-chinh); flex: none; }
.hop-loc .lua-chon-loc small { color: var(--mau-chu-nhat); margin-left: auto; }
.hop-loc .khoang-loc { display: flex; align-items: center; gap: .4rem; }
.hop-loc .khoang-loc input { width: 100%; min-width: 0; padding: .4rem .5rem; border: 1px solid var(--mau-vien); border-radius: 6px; font: inherit; }
.hop-loc .nut-loc { width: 100%; margin-top: 1rem; text-align: center; }

/* ---------- Combo (dac ta muc 5.3) ---------- */
.nhan-combo { background: var(--mau-chinh-dam); }
.combo-mua { margin: .5rem 0 1rem; }
.combo-gia-goc { color: var(--mau-chu-nhat); margin-left: .5rem; }
.combo-tiet-kiem { color: var(--mau-sale) !important; font-weight: 700; font-size: .9rem !important; }
.combo-nhom { border: 1px solid var(--mau-vien); border-radius: var(--bo-goc); padding: .6rem .85rem; }
.combo-nhom legend { padding: 0 .3rem; font-weight: 700; font-size: .9rem; }
.combo-phuong-an { display: flex; align-items: baseline; gap: .5rem; padding: .25rem 0; cursor: pointer; }
.combo-phuong-an input { width: auto !important; min-height: 0 !important; }
.combo-phuong-an small { margin-left: auto; color: var(--mau-chu-nhat); }
.combo-ngung-ban { margin: 1rem 0; }
.combo-thanh-phan { list-style: none; margin: .75rem 0; padding: 0; display: grid; gap: .5rem; }
.combo-thanh-phan li { display: flex; align-items: center; gap: .65rem; padding: .45rem .65rem; border: 1px solid var(--mau-vien); border-radius: var(--bo-goc-nho); background: var(--mau-the); }
.combo-thanh-phan img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--bo-goc-nho); }
.combo-thanh-phan span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.combo-thanh-phan-ma { color: var(--mau-chu-nhat); font-size: .78rem; }
.dong-tuy-chon { list-style: none; margin: .2rem 0 0; padding: 0; color: var(--mau-chu-nhat); font-size: .8rem; }
.dong-loi { margin: .2rem 0 0; color: var(--mau-sale); font-size: .8rem; }
.the-sp-tiet-kiem { margin: 0 0 .25rem; color: var(--mau-sale); font-size: .8rem; font-weight: 700; }

/* Qua tang theo nguong o trang dat hang (dac ta muc 49) */
.qt-khoi { border: 2px dashed currentColor; border-color: rgba(220, 120, 0, .55); background: rgba(255, 196, 0, .08); }
.qt-khoi h2 { margin-top: 0; }
.qt-khoi p { margin: .25rem 0 .75rem; font-weight: 600; }

/* Ma giam gia o khoi "Uu dai" trang dat hang */
.ds-ma-uu-dai { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.ds-ma-uu-dai li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .6rem .75rem; border: 1px dashed rgba(220, 120, 0, .6); border-radius: .5rem; background: rgba(255, 196, 0, .07); }
.ma-uu-dai-noi-dung { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ma-uu-dai-ma { font-family: ui-monospace, monospace; letter-spacing: .04em; }
.ma-uu-dai-noi-dung small { opacity: .7; }
.ma-uu-dai-nut { display: flex; gap: .4rem; }
.ma-uu-dai-nut .nut { padding: .3rem .7rem; font-size: .875rem; }

/* Gio hang: "Tiep tuc mua hang" canh "Tien hanh dat hang" */
.nhom-nut-gio { display: flex; flex-wrap: wrap; gap: .5rem; }
.nhom-nut-gio .nut { flex: 1 1 12rem; text-align: center; justify-content: center; }


/* Quy cach sau gia o the san pham ("/ 10g") */
.the-sp-dvt { font-size: .8125rem; font-weight: 600; opacity: .75; }

/* Nhan "(khong bat buoc)" o bieu mau dat hang */
.khong-bat-buoc { font-weight: 400; opacity: .7; font-size: .9em; }

/* Dong ho dem nguoc (dac ta muc 53): nho, ngay sau muc giam gia o trang san pham; dien thoai xuong dong duoi gia */
.dong-ho-khung { display: inline; }
.dong-ho-dn { display: inline-flex; align-items: center; gap: .22rem; padding: .17rem .33rem; margin-left: .4rem; vertical-align: middle;
  border-radius: .38rem; background: #c62828; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.dong-ho-dn[hidden] { display: none; }
.dong-ho-dn .dn-chu { font-weight: 600; font-size: .66rem; margin-right: .1rem; }
.dong-ho-dn .dn-o { display: inline-flex; flex-direction: column; align-items: center; min-width: 1.65rem; padding: .09rem .2rem;
  border-radius: .28rem; background: rgba(255, 255, 255, .16); }
.dong-ho-dn .dn-o b { font-size: .77rem; }
.dong-ho-dn .dn-o small { font-size: .5rem; opacity: .85; }
@media (max-width: 640px) {
  .chi-tiet-gia { flex-wrap: wrap; }
  .dong-ho-khung { display: block; flex-basis: 100%; margin-top: .35rem; }
  .dong-ho-khung .dong-ho-dn { margin-left: 0; }
}

/* ---- Dinh dang noi dung soan thao (dac ta muc 58) ----
   H3/H4 = co chu thuong, H2 lon hon 1 co, H1 lon hon H2 1 co; H1-H3 dam, H4 dam nghieng.
   Gian dong don (~1 dong), tieu de cach doan tren 1,2 dong; danh sach / ky tu dac biet khong thut, bang le. */
.bai-viet-than, .mo-ta-sp { line-height: 1.3; }
.bai-viet-than p, .mo-ta-sp p { margin: 0 0 .5em; }
.bai-viet-than h1, .mo-ta-sp h1, .bai-viet-than h2, .mo-ta-sp h2, .bai-viet-than h3, .mo-ta-sp h3, .bai-viet-than h4, .mo-ta-sp h4 { line-height: 1.3; margin: 1.2em 0 .4em; }
.bai-viet-than h1, .mo-ta-sp h1 { font-size: 1.25em; font-weight: 700; font-style: normal; }
.bai-viet-than h2, .mo-ta-sp h2 { font-size: 1.125em; font-weight: 700; font-style: normal; }
.bai-viet-than h3, .mo-ta-sp h3 { font-size: 1em; font-weight: 700; font-style: normal; }
.bai-viet-than h4, .mo-ta-sp h4 { font-size: 1em; font-weight: 700; font-style: italic; }
.bai-viet-than > :first-child, .mo-ta-sp > :first-child { margin-top: 0; }
.bai-viet-than ul, .mo-ta-sp ul, .bai-viet-than ol, .mo-ta-sp ol { margin: 0 0 .5em; padding-left: 0; list-style-position: inside; }
.bai-viet-than li, .mo-ta-sp li { margin: 0 0 .2em; padding-left: 0; }
.bai-viet-than li > p, .mo-ta-sp li > p { display: inline; margin: 0; }
.bai-viet-than li ul, .mo-ta-sp li ul, .bai-viet-than li ol, .mo-ta-sp li ol { padding-left: .9em; margin: .2em 0 0; }
.bai-viet-than blockquote, .mo-ta-sp blockquote { margin: 0 0 .5em; padding-left: .6em; }

/* ---- Ma dip le nhap nhay tren anh san pham (20/10/2026) ---- */
.ma-le-nhan {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: linear-gradient(90deg, #dc2626, #f97316); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .03em; line-height: 1.4; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(220, 38, 38, .35);
  animation: ma-le-nhay 1.2s ease-in-out infinite;
}
@keyframes ma-le-nhay {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) { .ma-le-nhan { animation: none; } }
.ma-le-anh { position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none; }
.ma-le-anh .ma-le-nhan { font-size: .85rem; padding: 4px 10px; }

/* ---- Tac dung chinh tren trang san pham (dac ta muc 60) ---- */
.tac-dung-sp { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.tac-dung-nhan {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem;
  border: 1px solid currentColor; color: #15803d; text-decoration: none; background: #f0fdf4;
}
.tac-dung-nhan:hover { background: #dcfce7; }

/* ---- So tu van theo nguoi truc + Zalo (dac ta muc 62) ---- */
.zalo-nho {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 8px; border-radius: 999px; background: #0068ff; color: #fff !important;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-decoration: none; line-height: 1.5;
  align-self: center; margin-left: 6px;
}
.zalo-nho:hover { background: #0052cc; }
.zalo-tron {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: #0068ff; color: #fff;
  font-size: 8.5px; font-weight: 800; letter-spacing: -.02em;
}
.lien-he-noi {
  position: fixed; right: 12px; bottom: calc(var(--cao-thanh-duoi) + 62px); z-index: 35;
  display: flex; flex-direction: column; gap: 10px;
}
.lien-he-noi a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
}
.lien-he-noi-goi { background: #e11d2e; }
.lien-he-noi-zalo { background: #0068ff; font-size: 11px; font-weight: 800; }
.lien-he-noi .bt, .lien-he-noi svg { width: 22px; height: 22px; }
@media (min-width: 1024px) { .lien-he-noi { display: none; } }

/* ---- Lien ket SDS (dac ta muc 63) ---- */
.sds-lien-ket { margin: 4px 0 12px; }
.sds-lien-ket a {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px;
  border: 1px solid #b45309; background: #fffbeb; color: #92400e; font-weight: 700; font-size: .9rem; text-decoration: none;
}
.sds-lien-ket a::before { content: "⚠"; font-size: 1rem; line-height: 1; }
.sds-lien-ket a:hover { background: #fef3c7; }
.nhan-dien-sp { margin: 0 0 8px; }
.nhan-dien-sp > div { display: flex; flex-wrap: wrap; gap: 4px; }
.nhan-dien-sp dt { font-weight: 600; }
.nhan-dien-sp dd { margin: 0; }

/* ---- Nhom cay + hang nut nhom (dac ta muc 65) ---- */
.nhom-cay-nhan { color: #b45309; background: #fffbeb; }
.nhom-cay-nhan:hover { background: #fef3c7; }
.nhom-lien-ket { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.nhom-lien-ket a {
  display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid #d1d5db; background: #fff;
  color: inherit; font-size: .88rem; text-decoration: none;
}
.nhom-lien-ket a:hover { border-color: #15803d; color: #15803d; }
.nhom-lien-ket a.dang-chon { background: #15803d; border-color: #15803d; color: #fff; font-weight: 600; }

/* ===== Gia phan bon (dac ta muc 68) - dung chung ba Theme: bien rieng lay tu bien mau cua tung Theme ===== */
.gpb {
  --g-chinh: var(--mau-chinh, #0a7d3c);
  --g-chu: var(--chu, var(--mau-chu, #1f2933));
  --g-chu-nhat: var(--chu-nhat, var(--mau-chu-nhat, #6b7280));
  --g-vien: var(--vien, var(--mau-vien, #e5e7eb));
  --g-the: var(--trang, var(--mau-the, #fff));
  --g-goc: var(--r-m, var(--bo-goc-lon, 14px));
  --g-tang: #dc2626;
  --g-giam: #059669;
  --g-ngang: #94a3b8;
  padding-bottom: 2.5rem;
  color: var(--g-chu);
  min-width: 0;
  max-width: 100%;
}
.gpb > * { min-width: 0; max-width: 100%; }
.gpb h1, .gpb h2, .gpb h3 { margin: 0; }
.gpb [hidden] { display: none !important; }

.gpb-dau {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin: .75rem 0 1.25rem; padding: 1.5rem 1.5rem 1.4rem; border-radius: var(--g-goc);
  background: linear-gradient(135deg, var(--g-chinh), color-mix(in srgb, var(--g-chinh) 62%, #0f172a));
  color: #fff; position: relative; overflow: hidden;
}
.gpb-dau::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); pointer-events: none;
}
.gpb-dau-chu { max-width: 680px; position: relative; z-index: 1; }
.gpb-dau h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; color: #fff; }
.gpb-nhan {
  display: inline-block; margin: 0 0 .45rem; padding: .2rem .65rem; border-radius: 999px;
  background: rgba(255, 255, 255, .16); font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.gpb-mo-ta { margin: .55rem 0 0; opacity: .92; line-height: 1.55; }
.gpb-cap-nhat {
  position: relative; z-index: 1; margin: 0; padding: .6rem .9rem; border-radius: 12px;
  background: rgba(255, 255, 255, .14); font-size: .82rem; line-height: 1.4;
}
.gpb-cap-nhat strong { font-size: .95rem; }
.gpb-cham {
  display: inline-block; width: 8px; height: 8px; margin-right: .4rem; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: gpb-nhip 2s infinite;
}
@keyframes gpb-nhip { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.gpb-loc { display: flex; gap: .5rem; overflow-x: auto; padding: .1rem .1rem .6rem; margin-bottom: .5rem; scrollbar-width: none; }
.gpb-loc::-webkit-scrollbar { display: none; }
.gpb-chip {
  flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid var(--g-vien); background: var(--g-the); color: var(--g-chu); font: inherit; font-weight: 600;
  font-size: .9rem; cursor: pointer; transition: all .15s;
}
.gpb-chip:hover { border-color: var(--g-chinh); }
.gpb-chip.dang-chon { background: var(--g-chinh); border-color: var(--g-chinh); color: #fff; }

/* Mau theo loai phan */
.gpb-k-ure { --k: #2563eb; }
.gpb-k-dap { --k: #7c3aed; }
.gpb-k-kali { --k: #db2777; }
.gpb-k-npk { --k: #059669; }
.gpb-k-lan { --k: #d97706; }
.gpb-k-khac { --k: #64748b; }
.gpb-cham-loai { width: 9px; height: 9px; border-radius: 50%; background: var(--k); display: inline-block; flex: none; }
.gpb-chip.dang-chon .gpb-cham-loai { box-shadow: 0 0 0 2px #fff; }

.gpb-nguon {
  margin: 0 0 1.25rem; border: 1px solid var(--g-vien); border-radius: var(--g-goc); background: var(--g-the);
  overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.gpb-nguon-dau {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--g-vien);
}
.gpb-nguon-dau h2 { font-size: 1.15rem; }
.gpb-nguon-dau p { margin: 0; color: var(--g-chu-nhat); font-size: .88rem; }
.gpb-nguon-dau a { color: var(--g-chinh); font-weight: 600; text-decoration: none; }
.gpb-vung + .gpb-vung { border-top: 1px dashed var(--g-vien); }
.gpb-vung-ten {
  padding: .7rem 1.25rem .2rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--g-chinh);
}
.gpb-ds { list-style: none; margin: 0; padding: 0 .5rem .4rem; }

.gpb-dong {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 92px auto 112px; align-items: center; gap: .85rem;
  padding: .7rem .75rem; border-radius: 12px;
}
.gpb-dong:nth-child(even) { background: color-mix(in srgb, var(--g-vien) 28%, transparent); }
/* Man hinh rong: danh sach chia hai cot cho gon (soc theo cap dong) */
@media (min-width: 1100px) {
  .gpb-ds { display: grid; grid-template-columns: 1fr 1fr; column-gap: .75rem; }
  .gpb-dong { grid-template-columns: 52px minmax(0, 1fr) 64px auto 96px; gap: .65rem; }
  .gpb-dong:nth-child(even) { background: none; }
  .gpb-dong:nth-child(4n+1), .gpb-dong:nth-child(4n+2) { background: color-mix(in srgb, var(--g-vien) 28%, transparent); }
  .gpb-dong:hover { background: color-mix(in srgb, var(--g-chinh) 7%, transparent); }
}
.gpb-dong:hover { background: color-mix(in srgb, var(--g-chinh) 7%, transparent); }
.gpb-loai {
  justify-self: start; padding: .2rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 800;
  color: var(--k); background: color-mix(in srgb, var(--k) 12%, transparent);
}
.gpb-ten { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.gpb-ten strong { font-size: 1rem; }
.gpb-ten small { color: var(--g-chu-nhat); font-size: .84rem; }
.gpb-xu-huong svg, .gpb-o-bieu-do { display: block; width: 100%; height: 30px; overflow: visible; }
.gpb-xu-huong polyline, .gpb-o-bieu-do polyline {
  fill: none; stroke: var(--g-ngang); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.gpb-up polyline, polyline.gpb-up { stroke: var(--g-tang); }
.gpb-down polyline { stroke: var(--g-giam); }
.gpb-gia { text-align: right; line-height: 1.25; white-space: nowrap; }
.gpb-gia strong { font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.gpb-gia small { color: var(--g-chu-nhat); font-size: .78rem; }
.gpb-khoang { display: block; color: var(--g-chu-nhat); font-size: .8rem; font-variant-numeric: tabular-nums; }
.gpb-doi {
  justify-self: end; padding: .25rem .6rem; border-radius: 8px; font-size: .82rem; font-weight: 700; white-space: nowrap;
  font-variant-numeric: tabular-nums; color: var(--g-chu-nhat); background: color-mix(in srgb, var(--g-ngang) 14%, transparent);
}
.gpb-doi.gpb-up { color: var(--g-tang); background: color-mix(in srgb, var(--g-tang) 10%, transparent); }
.gpb-doi.gpb-down { color: var(--g-giam); background: color-mix(in srgb, var(--g-giam) 11%, transparent); }
.gpb-doi small { font-weight: 500; opacity: .85; }

.gpb-o-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--g-vien); }
.gpb-o { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem; background: var(--g-the); }
.gpb-o-ten { display: flex; align-items: center; gap: .45rem; font-weight: 700; }
.gpb-o-gia { font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.gpb-o-gia small { font-size: .8rem; font-weight: 600; color: var(--g-chu-nhat); }
.gpb-o .gpb-doi { justify-self: auto; align-self: flex-start; }
.gpb-o-bieu-do { height: 42px; margin-top: .25rem; }
.gpb-o-ky { font-size: .75rem; color: var(--g-chu-nhat); }

.gpb-chu-thich {
  margin: 0 0 2rem; padding: .85rem 1rem; border-left: 3px solid var(--g-chinh); border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--g-chinh) 6%, transparent); color: var(--g-chu-nhat); font-size: .88rem; line-height: 1.55;
}
.gpb-trong { padding: 2rem; text-align: center; color: var(--g-chu-nhat); }

.gpb-bai h2 { font-size: 1.25rem; margin-bottom: .9rem; }
.gpb-bai-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gpb-bai-the {
  display: flex; flex-direction: column; gap: .35rem; padding-bottom: .9rem; border: 1px solid var(--g-vien);
  border-radius: var(--g-goc); background: var(--g-the); color: var(--g-chu); text-decoration: none; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.gpb-bai-the:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .35); }
.gpb-bai-anh { display: block; aspect-ratio: 1200 / 630; background: color-mix(in srgb, var(--g-chinh) 10%, transparent); }
.gpb-bai-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gpb-bai-nhom { padding: .2rem .9rem 0; color: var(--g-chinh); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.gpb-bai-the strong { padding: 0 .9rem; line-height: 1.35; }
.gpb-bai-ngay { padding: 0 .9rem; color: var(--g-chu-nhat); font-size: .8rem; }

@media (max-width: 720px) {
  .gpb-dau { padding: 1.2rem 1.1rem; }
  .gpb-nguon-dau { padding: .85rem 1rem; }
  .gpb-vung-ten { padding: .65rem 1rem .1rem; }
  .gpb-ds { padding: 0 .25rem .3rem; }
  .gpb-dong {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ten gia" "ten doi" "xh xh";
    gap: .25rem .75rem; padding: .65rem .6rem;
  }
  .gpb-ten { grid-area: ten; align-self: center; }
  .gpb-gia { grid-area: gia; }
  .gpb-loai { display: none; }
  .gpb-doi { grid-area: doi; font-size: .76rem; padding: .15rem .5rem; }
  .gpb-dau h1 { font-size: 1.6rem; }
  .gpb-cap-nhat br { display: none; }
  .gpb-dong .gpb-doi.gpb-moi { display: none; }
  .gpb-xu-huong { grid-area: xh; }
  .gpb-xu-huong:empty, .gpb-xu-huong:not(:has(svg)) { display: none; }
  .gpb-xu-huong svg { height: 22px; }
}

/* ===== Gioi thieu giai doan 3 (dac ta muc 69): con so, bieu do phat trien, ban do dia ban ===== */
.gt-con-so, .gt-phat-trien, .gt-dia-ban {
  --gt-chinh: var(--mau-chinh, #0a7d3c);
  --gt-chu-nhat: var(--chu-nhat, var(--mau-chu-nhat, #6b7280));
  --gt-vien: var(--vien, var(--mau-vien, #e5e7eb));
  --gt-the: var(--trang, var(--mau-the, #fff));
}
.gt-so-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: 1rem; }
.gt-so {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.25rem 1.1rem; border-radius: 16px; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--gt-chinh) 10%, var(--gt-the)), var(--gt-the));
  border: 1px solid color-mix(in srgb, var(--gt-chinh) 18%, var(--gt-vien));
}
.gt-so strong { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.1; color: var(--gt-chinh); font-variant-numeric: tabular-nums; }
.gt-so span { color: var(--gt-chu-nhat); font-size: .95rem; }

.gt-bieu-do { margin: 1rem 0 0; padding: 1rem 1rem .75rem; border: 1px solid var(--gt-vien); border-radius: 16px; background: var(--gt-the); }
.gt-bieu-do svg { display: block; width: 100%; height: auto; max-height: 340px; }
.gt-bieu-do figcaption { margin-top: .5rem; color: var(--gt-chu-nhat); font-size: .85rem; text-align: center; }
.bdpt-tren { stop-color: color-mix(in srgb, var(--gt-chinh) 70%, #a3e635); }
.bdpt-duoi { stop-color: var(--gt-chinh); }
.bdpt-day { stroke: var(--gt-vien); stroke-width: 2; }
.bdpt-nam { fill: var(--gt-chu-nhat); font-size: 16px; font-weight: 700; }
.bdpt-duong { fill: none; stroke: #f59e0b; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 6 5; }
.bdpt-dinh { fill: #fff; stroke: #f59e0b; stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  .bdpt-cot { transform-box: fill-box; transform-origin: bottom; animation: bdpt-moc .9s ease-out both; }
  .bdpt-cot:nth-of-type(2) { animation-delay: .1s; } .bdpt-cot:nth-of-type(3) { animation-delay: .2s; }
  .bdpt-cot:nth-of-type(4) { animation-delay: .3s; } .bdpt-cot:nth-of-type(5) { animation-delay: .4s; }
  @keyframes bdpt-moc { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

.gt-ban-do-khung { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-top: 1rem; }
.gt-ban-do { margin: 0; padding: .75rem; border-radius: 16px; background: linear-gradient(180deg, #eef7fb, #e3f1f7); border: 1px solid var(--gt-vien); }
.gt-ban-do svg { display: block; width: 100%; height: auto; max-height: 620px; }
.bd-dat { fill: color-mix(in srgb, var(--gt-chinh) 16%, #fff); stroke: color-mix(in srgb, var(--gt-chinh) 70%, #000); stroke-width: 1; stroke-linejoin: round; }
.bd-dao circle { fill: color-mix(in srgb, var(--gt-chinh) 60%, #000); }
.bd-nhan-dao { fill: #334155; font-size: 13px; font-weight: 700; }
.bd-nhan-bien { fill: #64a5c4; font-size: 18px; font-style: italic; letter-spacing: .08em; }
.bd-diem circle { stroke: #fff; stroke-width: 1.5; }
.bd-m4 { fill: #dc2626; fill-opacity: .82; }
.bd-m3 { fill: #f97316; fill-opacity: .82; }
.bd-m2 { fill: #f59e0b; fill-opacity: .85; }
.bd-m1 { fill: #16a34a; fill-opacity: .85; }
.gt-ban-do-so { font-size: 1.05rem; margin: 0 0 .75rem; }
.gt-ban-do-so strong { font-size: 2rem; color: var(--gt-chinh); margin-right: .25rem; }
.gt-chu-giai { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--gt-chu-nhat); }
.gt-chu-giai li, .gt-top-tinh li { display: flex; align-items: center; gap: .45rem; }
.gt-cham { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.gt-cham-4 { background: #dc2626; } .gt-cham-3 { background: #f97316; } .gt-cham-2 { background: #f59e0b; } .gt-cham-1 { background: #16a34a; }
.gt-ban-do-chu h3 { font-size: 1rem; margin: 0 0 .5rem; }
.gt-top-tinh { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem; counter-reset: top; }
.gt-top-tinh li { counter-increment: top; font-weight: 600; }
.gt-top-tinh li::before { content: counter(top) "."; color: var(--gt-chu-nhat); font-weight: 500; min-width: 1.3em; }
@media (max-width: 800px) {
  .gt-ban-do-khung { grid-template-columns: 1fr; }
}

/* ---------- Cay trong (dac ta muc 73) ---------- */
.bai-cay-trong { margin: .5rem 0 1rem; font-weight: 600; }
.bai-cay-trong a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--mau-chinh); border-radius: 999px;
  color: var(--mau-chinh); text-decoration: none; }
.bai-cay-trong a:hover { background: var(--mau-chinh); color: #fff; }
.cay-trong-dau { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin: .25rem 0 1rem; }
.cay-trong-tom-tat { margin: 0; color: #555; }
.cay-trong-tat-ca { font-weight: 600; color: var(--mau-chinh); }
.cay-trong-san-pham { margin: 0 0 1.5rem; }
.cay-trong-san-pham h2, .cay-trong-bai { font-size: 1.2rem; margin: 1rem 0 .35rem; }
.cay-trong-ghi-chu { color: #666; margin: 0 0 .75rem; }
.cay-trong-tim { display: flex; gap: .5rem; max-width: 560px; margin: 0 0 1rem; }
.cay-trong-tim input { flex: 1; min-width: 0; padding: .55rem .8rem; border: 1px solid #cfd8d3; border-radius: 8px; font: inherit; }
.cay-trong-ket-qua { margin: 0 0 1rem; }
.cay-trong-nhom { margin: 0 0 1.25rem; }
.cay-trong-nhom h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.cay-trong-ds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.cay-trong-ds a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .75rem;
  border: 1px solid #e3e8e5; border-radius: 8px; background: #fff; color: inherit; text-decoration: none; }
.cay-trong-ds a:hover { border-color: var(--mau-chinh); color: var(--mau-chinh); }
.cay-trong-ds small { color: #888; white-space: nowrap; }

/* ==================================================================
   Bo sung 1.15.0 (22/10/2026): du tinh nang nhu giao dien mac dinh.
   Moi phan duoi day theo thu tu: menu, chan trang, lien he noi, trang chu,
   bo loc, san pham, gio / thanh toan, doi ngu, gioi thieu, bo suu tap.
   ================================================================== */

/* ---- Dau hieu muc menu (dac ta muc 39): icon, nhan, muc noi bat ---- */
.menu-icon, .menu-chu + svg, a > svg.menu-svg { width: 16px; height: 16px; flex: none; object-fit: contain; }
.menu-icon { vertical-align: -3px; margin-right: .35rem; display: inline-block; }
.menu-nhan {
  display: inline-block; margin-left: .4rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--mau-sale); color: #fff; font-size: .65rem; font-weight: 700; line-height: 1.5;
  letter-spacing: .02em; text-transform: uppercase; vertical-align: 1px;
}
.noi-bat > a, .noi-bat > summary { font-weight: 700; }
.mega-muc > a > span { display: inline-flex; align-items: center; flex-wrap: wrap; }
.menu-ngang > li > a > svg:not(.bt), .mega-muc svg:not(.bt), .menu-con svg:not(.bt), .ngan-list svg:not(.bt) {
  width: 16px; height: 16px; flex: none; margin-right: .3rem; vertical-align: -3px;
}

/* ---- Menu so xuong thu hai "Theo nhu cau" ---- */
.mega-phu .mega-nut { width: auto; min-width: 190px; background: rgba(0, 0, 0, .18); }
.mega-phu .mega-bang { width: 280px; }

/* ---- Menu ngang 3 cap: cap 3 bay sang ben ---- */
.menu-con li { position: relative; }
.menu-con li.co-con > a { display: flex; align-items: center; gap: .25rem; }
.menu-con li.co-con > a .bt { margin-left: auto; width: 14px; height: 14px; }
.menu-ngang > li:hover .menu-con.menu-cap-3,
.menu-ngang > li:focus-within .menu-con.menu-cap-3 { display: none; }
.menu-cap-3 { top: -.3rem; left: 100%; border-radius: var(--bo-goc); }
.menu-ngang .menu-con > li.co-con:hover > .menu-cap-3,
.menu-ngang .menu-con > li.co-con:focus-within > .menu-cap-3 { display: block; }
.ngan-list .ngan-cap-3 a { padding-left: 3rem; font-size: .85rem; color: var(--mau-chu-nhat); }

/* ---- Nut goi tu van tren thanh menu (may tinh) ---- */
.menu-goi-ngay {
  display: flex; align-items: center; gap: .4rem; margin-left: auto; height: 44px; padding: 0 .9rem;
  color: #fff; font-size: .88rem; white-space: nowrap;
}
.menu-goi-ngay:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.menu-goi-ngay .bt { width: 18px; height: 18px; }

/* ---- Chan trang: cot theo menu, dang ky nhan tin ---- */
.chan-dang-ky { display: flex; gap: .4rem; margin: .2rem 0 .5rem; }
.chan-dang-ky input {
  flex: 1; min-width: 0; height: 40px; padding: 0 .75rem; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--bo-goc); background: rgba(255, 255, 255, .08); color: #fff; font: inherit;
}
.chan-dang-ky input::placeholder { color: #9fb3aa; }
.chan-dang-ky input:focus { outline: 2px solid var(--mau-nhan); outline-offset: 1px; }
.chan-dang-ky .nut { min-height: 40px; }
.chan-dong-y { margin: 0 0 .8rem; font-size: .75rem; color: #8fa49b; }
.chan-trang .bay-bot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 1024px) {
  .chan-cot { grid-template-columns: 1.6fr repeat(var(--cot-giua, 2), minmax(0, 1fr)) 1.4fr; }
}

/* ---- Nut goi / Zalo noi ca tren may tinh (tren nut len dau trang) ---- */
@media (min-width: 1024px) {
  .lien-he-noi { display: flex; right: 20px; bottom: 76px; }
  .lien-he-noi a { width: 48px; height: 48px; }
}

/* ---- Trang chu: dong ho flash sale dang o ---- */
.flash-dem { gap: .3rem; padding: .25rem .45rem; border-radius: var(--bo-goc); }
.dem-o {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 2.4rem; padding: .15rem .3rem;
  border-radius: var(--bo-goc-nho); background: rgba(255, 255, 255, .95); color: var(--mau-sale); line-height: 1.1;
}
.dem-o b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.dem-o small { font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mau-chu-nhat); }

/* ---- Trang chu: nhom hang co tab + banner doc ---- */
.tab-nut {
  display: flex; gap: .4rem; overflow-x: auto; margin: 0 0 .8rem; padding-bottom: 2px; scrollbar-width: none;
}
.tab-nut::-webkit-scrollbar { display: none; }
.tab-nut button {
  flex: none; padding: .4rem .9rem; border: 1px solid var(--mau-vien); border-radius: 999px; background: #fff;
  color: var(--mau-chu); font: inherit; font-size: .87rem; font-weight: 600; cursor: pointer;
}
.tab-nut button:hover { border-color: var(--mau-chinh); color: var(--mau-chinh); }
.tab-nut button.dang-hien { background: var(--mau-chinh); border-color: var(--mau-chinh); color: #fff; }
.tab-bang { display: none; }
.tab-bang.dang-hien { display: block; }
.luoi-co-banner { display: grid; gap: .75rem; }
.banner-doc { display: block; overflow: hidden; border-radius: var(--bo-goc); background: #fff; }
.banner-doc img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; transition: transform .6s; }
.banner-doc:hover img { transform: scale(1.04); }
@media (min-width: 900px) {
  .luoi-co-banner { grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); }
  .banner-doc img { height: 100%; aspect-ratio: auto; }
  .luoi-co-banner .luoi-san-pham { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .luoi-co-banner .luoi-san-pham { grid-template-columns: repeat(calc(var(--cot-san-pham) - 1), minmax(0, 1fr)); }
}
.xem-tat-ca-hang { margin-top: 1rem; margin-bottom: 1rem; text-align: center; }
.xem-tat-ca-hang .nut { display: inline-flex; gap: .35rem; }
.xem-tat-ca-hang .bt { width: 16px; height: 16px; }

/* ---- Trang chu: y kien khach hang thanh bang chuyen ---- */
.y-kien-vung { position: relative; }
.y-kien-khoi .luoi-y-kien {
  --so-the: 1;
  display: grid; grid-auto-flow: column; grid-template-columns: none;
  grid-auto-columns: calc((100% - (var(--so-the) - 1) * .75rem) / var(--so-the));
  gap: .75rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: .2rem .1rem .6rem;
}
.y-kien-khoi .luoi-y-kien::-webkit-scrollbar { display: none; }
.y-kien-khoi .y-kien { scroll-snap-align: start; }
.luoi-y-kien:focus-visible { outline: 2px solid var(--mau-chinh); outline-offset: 3px; }
.y-kien-nut {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px;
  margin-top: -24px; border: 1px solid var(--mau-vien); border-radius: 50%; background: #fff; color: var(--mau-chinh);
  box-shadow: var(--bong-noi); cursor: pointer;
}
.y-kien-nut[hidden] { display: none; }
.y-kien-nut .bt { width: 18px; height: 18px; }
.y-kien-truoc { left: -10px; }
.y-kien-sau { right: -10px; }
@media (min-width: 640px) { .y-kien-khoi .luoi-y-kien { --so-the: 2; grid-template-columns: none; } }
@media (min-width: 900px) { .y-kien-khoi .luoi-y-kien { --so-the: 3; grid-template-columns: none; } }

/* ---- Danh muc: dien thoai mo duoc danh muc + bo loc (truoc day bi an han duoi 900px) ---- */
.nut-mo-loc { display: inline-flex; gap: .4rem; margin: 0 0 .75rem; cursor: pointer; }
.nut-mo-loc .bt { width: 18px; height: 18px; }
.mo-loc-chk:checked ~ .hai-cot .cot-ben-loc { display: grid; }
.mo-loc-chk:checked + .nut-mo-loc { border-color: var(--mau-chinh); color: var(--mau-chinh); }
.mo-loc-chk:focus-visible + .nut-mo-loc { outline: 2px solid var(--mau-chinh); outline-offset: 2px; }
@media (min-width: 900px) { .nut-mo-loc { display: none; } }

/* ---- San pham: gia goc gach ngang + % giam ---- */
.hop-gia [hidden] { display: none; }
.chi-tiet-gia-goc { margin-left: .5rem; color: var(--mau-chu-nhat); font-size: .95rem; }
.hop-gia .nhan-giam { margin-left: .4rem; vertical-align: 4px; }

/* ---- San pham: chon quy cach dang the ---- */
.quy-cach { border: 0; padding: 0; margin: 0 0 .75rem; min-width: 0; }
.quy-cach legend { padding: 0; margin-bottom: .4rem; font-size: .87rem; font-weight: 600; }
.quy-cach-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .5rem; }
.quy-cach-o {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .55rem; row-gap: .1rem;
  align-items: center; padding: .6rem .75rem; border: 1.5px solid var(--mau-vien); border-radius: var(--bo-goc);
  background: #fff; cursor: pointer; font-variant-numeric: tabular-nums;
}
.quy-cach-o:hover { border-color: var(--mau-chinh); }
.quy-cach-o input { grid-row: 1 / span 3; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--mau-chinh); }
.quy-cach-o > span { grid-column: 2; }
.quy-cach-o:has(input:checked) { border-color: var(--mau-chinh); background: rgba(0, 136, 72, .06); box-shadow: 0 0 0 2px rgba(0, 136, 72, .18); }
.quy-cach-o:has(input:focus-visible) { outline: 2px solid var(--mau-chinh); outline-offset: 2px; }
.quy-cach-ten { font-weight: 700; }
.quy-cach-gia { color: var(--mau-sale); font-weight: 800; }
.quy-cach-goc { font-size: .8rem; color: var(--mau-chu-nhat); }
.quy-cach-giam { color: var(--mau-sale); font-weight: 700; }

/* ---- San pham: mua nhieu giam them (dac ta muc 45) ---- */
.bac-gia { margin: 0 0 .75rem; padding: .6rem .8rem; border: 1px dashed #16a34a; border-radius: var(--bo-goc); background: #f0fdf4; font-size: .9rem; }
.bac-gia[hidden] { display: none; }
.bac-gia ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.bac-gia-giam { color: #16a34a; font-weight: 700; }
.gia-so-luong { margin: 0 0 .75rem; font-size: .95rem; }
.gia-so-luong[hidden] { display: none; }
.gia-so-luong del { color: #94a3b8; }
.gia-so-luong span { color: #16a34a; }

/* ---- Gio hang / thanh toan: gia truoc giam theo dong ---- */
.gia-goc-dong { color: #94a3b8; font-weight: 400; font-size: .85em; }
.ghi-chu-giam { display: block; color: #16a34a; font-size: .78em; font-weight: 600; }

/* ---- Combo: hai nut Mua ngay + Them vao gio ---- */
.combo-hai-nut { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

/* ------------------------------------------------------------------
   Gioi thieu (dac ta muc 38): trang ghep khoi, timeline, ho so thanh vien
   ------------------------------------------------------------------ */
.gt-tieu-de-trang { margin: 1.25rem 0 .5rem; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.gt-khoi { margin: 2.5rem 0; }
.gt-khoi > h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.8rem); margin: 0 0 .5rem; }
.gt-mo-ta { color: var(--mau-chu-nhat); max-width: 70ch; margin: 0 0 1.25rem; }
.gt-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; align-items: center; padding: clamp(1.25rem, 3vw, 2.5rem); background: color-mix(in srgb, var(--mau-chinh) 6%, #fff); border-radius: var(--bo-goc-lon); }
.gt-banner h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); margin: 0 0 .75rem; }
.gt-thong-diep { font-size: 1.1rem; color: var(--mau-chu); margin: 0 0 1.25rem; }
.gt-banner-anh { width: 100%; height: auto; border-radius: var(--bo-goc); object-fit: cover; }
@media (max-width: 800px) { .gt-banner { grid-template-columns: 1fr; } }
.gt-luoi-the { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.gt-the { padding: 1.25rem; background: var(--mau-the); border: 1px solid var(--mau-vien); border-radius: var(--bo-goc); }
.gt-the h3 { font-size: 1.05rem; margin: .25rem 0 .5rem; }
.gt-the p { margin: 0 0 .5rem; color: var(--mau-chu-nhat); }
.gt-trang-thai { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.gt-trang-thai-applied { background: color-mix(in srgb, var(--mau-chinh) 12%, #fff); color: var(--mau-chinh-dam); }
.gt-trang-thai-developing { background: #fff4d6; color: #8a5a00; }
.gt-trang-thai-planned { background: #eef0f3; color: #4b5563; }
.gt-doi-ngu { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.gt-thanh-vien { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1rem; text-align: center; color: var(--mau-chu); background: var(--mau-the); border: 1px solid var(--mau-vien); border-radius: var(--bo-goc); }
.gt-thanh-vien:hover { border-color: var(--mau-chinh); }
.gt-thanh-vien img, .gt-anh-trong { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: .5rem; }
.gt-anh-trong { display: grid; place-items: center; background: color-mix(in srgb, var(--mau-chinh) 12%, #fff); color: var(--mau-chinh-dam); font-size: 2.2rem; font-weight: 700; }
.gt-thanh-vien span, .gt-thanh-vien small { color: var(--mau-chu-nhat); }
.gt-timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--mau-vien); }
.gt-moc { position: relative; padding: 0 0 1.75rem 1.25rem; }
.gt-moc::before { content: ""; position: absolute; left: calc(-1.25rem - 9px); top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--mau-the); border: 3px solid var(--mau-chinh); }
.gt-moc-ghim::before { background: var(--mau-chinh); }
.gt-moc-thoi-gian { font-weight: 800; color: var(--mau-chinh); font-variant-numeric: tabular-nums; }
.gt-moc-loai { display: inline-block; margin-left: .5rem; padding: .05rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--mau-chinh) 6%, #fff); font-size: .75rem; color: var(--mau-chu-nhat); }
.gt-moc h3 { font-size: 1.05rem; margin: .35rem 0; }
.gt-moc p { margin: 0 0 .5rem; color: var(--mau-chu-nhat); }
.gt-moc img { max-width: min(100%, 420px); height: auto; border-radius: var(--bo-goc-nho); }
@media (prefers-reduced-motion: no-preference) {
  .gt-moc { animation: gt-hien .5s ease both; }
  @keyframes gt-hien { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.gt-tai-ve { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem; background: color-mix(in srgb, var(--mau-chinh) 6%, #fff); border-radius: var(--bo-goc); }
.gt-tai-ve-nut { display: flex; gap: .5rem; flex-wrap: wrap; }
.gt-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--bo-goc); overflow: hidden; background: #000; }
.gt-video iframe, .gt-video-nut, .gt-video-nut img { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.gt-video-nut { padding: 0; cursor: pointer; background: none; }
.gt-video-phat { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .65); color: #fff; font-size: 1.6rem; }
.gt-luoi-video { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.gt-ho-so { margin: 1rem 0 2rem; }
.gt-ho-so-bia { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--bo-goc); margin-bottom: 1rem; }
.gt-ho-so-tom-tat { display: grid; gap: .35rem; margin: 0 0 1rem; }
.gt-ho-so-tom-tat dt { display: inline; font-weight: 700; }
.gt-ho-so-tom-tat dt::after { content: ": "; }
.gt-ho-so-tom-tat dd { display: inline; margin: 0; }
.gt-moc-dau { margin: 0; }

/* ---------- Bo suu tap anh / video (dac ta muc 46) ---------- */
.bst-luoi-bo { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin: 1rem 0 2rem; }
.bst-the { display: flex; flex-direction: column; gap: .5rem; color: inherit; text-decoration: none; }
.bst-the-bia { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #eef2ef; }
.bst-the-bia img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bst-the:hover .bst-the-bia img { transform: scale(1.04); }
.bst-the-so { position: absolute; left: .6rem; bottom: .6rem; padding: .2rem .6rem; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .8rem; font-weight: 600; }
.bst-the-ten { font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.bst-the-mo-ta { color: #64748b; font-size: .9rem; }

.bst-dem-tong { color: #64748b; margin: .25rem 0 1rem; }
.bst-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.bst-o { margin: 0; }
.bst-o a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #eef2ef; }
.bst-o img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bst-o a:hover img { transform: scale(1.05); }
.bst-o-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.4rem; padding-left: 4px; }
.bst-o-trong { position: absolute; inset: 0; display: grid; place-items: center; color: #64748b; font-weight: 600; }
.bst-o figcaption { margin-top: .35rem; font-size: .9rem; line-height: 1.35; }

.bst-hop { position: fixed; inset: 0; z-index: 1000; display: none; grid-template-columns: 64px 1fr 64px; grid-template-rows: auto 1fr auto; background: rgba(8, 10, 12, .96); color: #fff; }
.bst-hop.bst-mo { display: grid; }
.bst-thanh { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; }
.bst-dem { margin-right: auto; font-size: .95rem; opacity: .85; }
.bst-nut { border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; padding: .45rem .9rem; font-size: .95rem; cursor: pointer; }
.bst-nut:hover, .bst-nut:focus-visible { background: rgba(255, 255, 255, .25); }
.bst-truoc, .bst-sau { align-self: center; justify-self: center; width: 48px; height: 48px; padding: 0; font-size: 2rem; line-height: 1; }
.bst-khung { display: flex; align-items: center; justify-content: center; min-height: 0; padding: .5rem; }
.bst-khung img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bst-khung-video iframe { width: min(100%, calc((100vh - 170px) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; background: #000; }
.bst-khung-video.bst-tiktok iframe { width: min(100%, calc((100vh - 170px) * 9 / 16)); aspect-ratio: 9 / 16; }
.bst-chu { grid-column: 1 / -1; padding: .5rem 1rem 1rem; text-align: center; max-width: 900px; justify-self: center; }
.bst-chu strong { display: block; font-size: 1.05rem; }
.bst-chu p { margin: .25rem 0 0; opacity: .85; font-size: .92rem; }

@media (max-width: 700px) {
  .bst-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .bst-hop { grid-template-columns: 0 1fr 0; }
  .bst-truoc, .bst-sau { position: fixed; bottom: 50%; z-index: 2; background: rgba(0, 0, 0, .35); }
  .bst-truoc { left: .25rem; }
  .bst-sau { right: .25rem; }
  .bst-nut-toan { display: none; }

/* ---- Thanh menu may tinh: hai nut so xuong + menu + nut goi; man hinh vua thi bot nut goi ---- */
.thanh-dieu-huong-trong .menu-ngang { flex-wrap: wrap; min-width: 0; }
@media (max-width: 1279px) { .menu-goi-ngay { display: none; } }
