/* ------------------------------------------------------------------
   Theme3 - giao dien sieu thi mini phong cach EGA Mini Mart.

   Viet tay, khong nhung CSS cua trang nao khac va khong dung framework: trang
   cong khai phai nhe (dac ta muc 26). Uu tien dien thoai: quy tac mac dinh la cho
   man hinh hep, cac @media chi NOI THEM cho man hinh rong hon.

   Bo cuc file: bien mau -> nen chung/nut/o nhap -> ngan keo, thanh duoi, bo cuc
   chung, trang chi tiet, gio hang, bai viet, bo loc (khoi dung chung) -> phan rieng
   cua Theme3 ghi de va them (header, slide, the san pham, Flash Sale, chan trang...).
   ------------------------------------------------------------------ */

:root {
  /* Bon mau duoi day bi layout ghi de theo cau hinh cua tung website */
  --mau-chinh: #016735;
  --mau-nhan: #ff3c02;
  --mau-sale: #ee1926;
  --mau-noi-bat: #ff9d02;
  /* Ban dam hon cua mau nhan, DUNG CHO CHU NHO va nen co chu trang nho: mau goc #ff3c02
     chi dat do tuong phan ~3.5:1 tren nen trang, duoi muc 4.5:1 cua chuan truy cap.
     Cac MANG LON (dai thong bao, khoi Flash Sale, dai nhom hang) van dung dung mau goc de
     giu nguyen dien mao; chi chu nho/nut moi dung ban dam. Dan xuat tu mau cai dat nen doi mau nhan o admin thi hai ban nay doi theo. */
  --mau-nhan-nen: color-mix(in srgb, var(--mau-nhan) 86%, black);
  --mau-nhan-chu: color-mix(in srgb, var(--mau-nhan) 82%, black);

  --mau-chinh-dam: #004f28;
  --mau-nen: #f2f6f3;
  --mau-the: #ffffff;
  --mau-chu: #383838;
  --mau-chu-nhat: #6b7280;
  --mau-vien: #e3e8e5;

  --bo-goc: 12px;
  --bo-goc-nho: 8px;
  --bo-goc-lon: 16px;

  --bong: 0 1px 2px rgba(16, 24, 40, .05);
  --bong-noi: 0 8px 24px rgba(16, 24, 40, .14);

  --khung-rong: 1296px;
  --cot-san-pham: 6;

  --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(1, 103, 53, .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(1, 103, 53, .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(1, 103, 53, .08); }


/* ---------- 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; }


/* ---------- 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(1, 103, 53, .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);
}


/* ---------- 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; }


/* ==================================================================
   PHAN RIENG CUA THEME3 - phong cach EGA Mini Mart.

   Viet lai tu dau theo hinh dung quan sat duoc (mau, bo cuc, do bo tron); khong
   dung lai CSS/JS cua trang tham chieu. Dat SAU cac khoi chung o tren nen ghi de
   duoc khi can.
   ================================================================== */

/* ---------- Font Quicksand tu dong goi (SIL OFL), chi ban tieng Viet + Latin ---------- */

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/quicksand-vi.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Nen chung ---------- */

body {
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

h1, h2, h3 { font-weight: 700; }
h1 { font-size: 1.5rem; }

.khoi { margin: 28px auto; }

/* Nut bo tron hoan toan, dac trung cua giao dien */
.nut { border-radius: 999px; font-weight: 700; min-height: 42px; padding: .5rem 1.2rem; }
.nut-chinh { background: var(--mau-chinh); }
.nut-chinh:hover { background: var(--mau-chinh-dam); }
.nut-nhan { background: var(--mau-nhan-nen); }
.nut-vien-cam {
  background: #fff;
  border-color: var(--mau-nhan-chu);
  color: var(--mau-nhan-chu);
}
.nut-vien-cam:hover { background: var(--mau-nhan-nen); color: #fff; }
.nut-xam { background: #eceeed; color: #6b7280; cursor: default; }
.nut-tron-day { min-width: 180px; }

.nut-tron-vien {
  width: 40px; height: 40px;
  border: 1px solid #e3e8e5;
  background: #fff;
}
.nut-tron-vien:hover { background: #f2f6f3; color: var(--mau-chinh); }

.o-nhap input, .o-nhap select, .o-nhap textarea { border-radius: 8px; }
.o-nhap input:focus, .o-nhap select:focus, .o-nhap textarea:focus {
  border-color: var(--mau-chinh);
  box-shadow: 0 0 0 3px rgba(1, 103, 53, .14);
}

/* ---------- Dai thong bao + header ---------- */

.dai-thong-bao {
  background: var(--mau-nhan);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}
.dai-thong-bao .khung { padding-top: 7px; padding-bottom: 7px; }

.dau-trang { position: relative; z-index: 40; background: #fff; }

.thanh-chinh { background: #fff; }
.thanh-chinh-trong {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  min-height: 62px;
}

.nut-danh-muc {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 0;
  border: 0;
  background: none;
  justify-self: start;
  font-weight: 600;
  cursor: pointer;
}
.nut-danh-muc-chu { display: none; }

.logo { display: inline-flex; align-items: center; justify-content: center; }
.logo img { max-height: 40px; width: auto; }
.logo-chu { font-size: 1.25rem; font-weight: 700; color: var(--mau-chinh); }

.thanh-chinh-phai { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.khoi-tai-khoan { display: none; }

.khoi-gio { display: inline-flex; align-items: center; gap: .6rem; color: #6b7280; font-size: 12.5px; }
.khoi-gio:hover { color: var(--mau-chinh); }
.khoi-gio-bieu-tuong { position: relative; }
.khoi-gio-chu { display: none; }

.dem-gio {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--mau-sale);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.o-tim { border-top: 1px solid #edf0ee; background: #fff; }
.o-tim[hidden] { display: none; }
.o-tim-trong { display: flex; gap: .5rem; padding-top: .7rem; padding-bottom: .7rem; }
.o-tim input {
  flex: 1;
  min-height: 44px;
  padding: .5rem 1.1rem;
  border: 1px solid #dfe5e1;
  border-radius: 999px;
  font: inherit;
}
.o-tim input:focus { outline: none; border-color: var(--mau-chinh); box-shadow: 0 0 0 3px rgba(1, 103, 53, .14); }

/* Thanh menu xanh: chi hien tren man hinh rong, dien thoai dung ngan keo */
.thanh-dieu-huong { display: none; background: var(--mau-chinh); color: #fff; }

.menu-ngang {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 auto;
  padding: 0 12px;
  list-style: none;
}
.menu-ngang > li { position: relative; }
.menu-ngang > li > a {
  display: flex;
  align-items: center;
  gap: .35rem;
  height: 48px;
  padding: 0 .8rem;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  /* Menu dai (nhieu muc) van nam tren MOT hang: xuong dong lam thanh menu cao gap doi */
  white-space: nowrap;
}
.menu-ngang > li > a:hover,
.menu-ngang > li:focus-within > a { color: var(--mau-noi-bat); }
.menu-ngang .bt { width: 15px; height: 15px; transform: rotate(90deg); }

.menu-con {
  position: absolute;
  top: 100%; left: 0;
  z-index: 50;
  display: none;
  min-width: 220px;
  margin: 0;
  padding: .4rem 0;
  list-style: none;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--bong-noi);
}
.co-con:hover > .menu-con,
.co-con:focus-within > .menu-con { display: block; }
.menu-con a { display: block; padding: .55rem 1.1rem; color: var(--mau-chu); font-weight: 600; }
.menu-con a:hover { background: #f2f6f3; color: var(--mau-nhan); }

/* ---------- Ngan keo: doi mau cho hop voi giao dien ---------- */

.ngan-dau { background: var(--mau-chinh); }
.ngan-list a:hover, .ngan-list summary:hover { color: var(--mau-nhan); }
.ngan-hotline { background: var(--mau-nhan); border-radius: 999px; }

/* ---------- Slide banner ---------- */

.slide { position: relative; background: #fff; }
.slide-khung { position: relative; }
.slide-muc { display: none; position: relative; }
.slide-muc.dang-hien { display: block; }
.slide-muc img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }

.slide-chu {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem 5% 2rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}
.slide-chu h2 { margin: .3rem 0; font-size: 1.15rem; line-height: 1.25; }
.slide-chu p { margin: 0 0 .5rem; max-width: 560px; font-size: .9rem; }
.slide-phu {
  display: inline-block;
  padding: .15rem .7rem;
  border-radius: 999px;
  background: var(--mau-nhan);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.slide-chu .nut { min-height: 36px; }

.slide-nut {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: var(--mau-chinh);
  cursor: pointer;
  box-shadow: var(--bong);
}
.slide-nut:hover { background: #fff; }
.slide-truoc { left: 16px; }
.slide-sau { right: 16px; }

.slide-cham {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slide-cham button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: width .2s, background-color .2s;
}
.slide-cham button.dang-hien { width: 22px; background: #fff; }

/* ---------- Dai cam ket ---------- */

.dai-cam-ket { background: #fff; padding: 12px 0; }
.dai-cam-ket-ds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 8px;
}
.cam-ket { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.cam-ket img, .cam-ket-bt { width: 32px; height: 32px; flex: none; object-fit: contain; }
.cam-ket-bt { display: inline-flex; align-items: center; justify-content: center; color: var(--mau-chinh); }
.cam-ket strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.cam-ket span { display: block; color: #6b7280; font-size: 12px; line-height: 1.3; }

/* ---------- Nhom banner bo tron ---------- */

.nhom-banner {
  display: flex;
  gap: 10px;
  margin: 24px auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.nhom-banner-o {
  flex: 0 0 82%;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}
.nhom-banner-o img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.nhom-banner-chu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
  padding: 1rem 1.2rem;
  background: #e4efe8;
  color: var(--mau-chinh);
}
.nhom-banner-chu strong { font-size: 1.25rem; }
/* O khong co anh: moi o mot sac pastel (xanh la, xanh troi, vang, bac ha), nhu hang 4 o cua trang goc */
.nhom-banner-o:nth-child(4n+1) .nhom-banner-chu { background: #d3e5b9; }
.nhom-banner-o:nth-child(4n+2) .nhom-banner-chu { background: #c8e6f2; }
.nhom-banner-o:nth-child(4n+3) .nhom-banner-chu { background: #ffe5a3; }
.nhom-banner-o:nth-child(4n) .nhom-banner-chu { background: #c9ecd9; }
.nhom-banner-4 .nhom-banner-chu { min-height: 190px; align-items: center; text-align: center; }
.nhom-banner-chu small { color: var(--mau-nhan-chu); font-weight: 700; }

/* ---------- Tieu de khoi (ke doi hai ben) ---------- */

.khoi-dau { margin-bottom: 14px; text-align: center; }
.khoi-tieu-de {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--mau-chinh);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
}
.khoi-tieu-de::before,
.khoi-tieu-de::after {
  content: "";
  flex: 1;
  height: 6px;
  border-top: 1px solid #d3dad6;
  border-bottom: 1px solid #d3dad6;
}
.khoi-phu { margin: .3rem 0 0; color: #6b7280; }

/* ---------- Tab san pham ---------- */

.tab-nut { display: none; }
.co-js .tab-nut {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.co-js .tab-nut::-webkit-scrollbar { display: none; }
.tab-nut button {
  flex: none;
  padding: 9px 18px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--mau-nhan-chu);
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.tab-nut button:hover { background: #fff0ea; }
.tab-nut button.dang-hien { background: var(--mau-nhan-nen); color: #fff; }

.tab-nhan-an { margin: 18px 0 8px; color: var(--mau-chinh); font-weight: 700; }
.co-js .tab-nhan-an { display: none; }
.co-js .tab-bang { display: none; }
.co-js .tab-bang.dang-hien { display: block; }
.tab-bang:first-of-type .tab-nhan-an { margin-top: 0; }

/* ---------- Luoi + the san pham ---------- */

.luoi-san-pham {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
/* Ke chia o bang bong trong (khong tao khoang xam o hang le cuoi cung) */
.the-sp { box-shadow: inset -1px -1px 0 #edf1ee; }

/* Cuon ngang tren dien thoai (Flash Sale, ma giam, video) */
.luoi-cuon {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.luoi-cuon > * { flex: 0 0 72%; scroll-snap-align: start; }

.the-sp { position: relative; display: flex; flex-direction: column; padding: 12px; }

.the-sp-anh {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #f6f8f7;
}
.the-sp-anh img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .3s ease-out;
}
.the-sp:hover .the-sp-anh img { transform: scale(1.04); }
.the-sp-khong-anh {
  display: block;
  aspect-ratio: 1 / 1;
  background: repeating-linear-gradient(45deg, #f0f3f1, #f0f3f1 10px, #f6f8f7 10px, #f6f8f7 20px);
}

.the-sp-nhan {
  position: absolute;
  top: 20px; left: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.nhan {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
}
.nhan-moi, .nhan-noi-bat { background: var(--mau-noi-bat); color: #3b2300; }
.nhan-giam { background: color-mix(in srgb, var(--mau-sale) 92%, black); }

.the-sp-chu { display: flex; flex: 1; flex-direction: column; padding-top: 10px; }
.the-sp-hang { margin: 0 0 2px; color: #6b7280; font-size: 11.5px; text-transform: uppercase; }

.the-sp-ten {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.the-sp-ten a:hover { color: var(--mau-nhan-chu); }

.the-sp-gia-hang { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; }
.the-sp-gia strong { display: block; color: var(--mau-nhan-chu); font-size: 16px; font-weight: 700; line-height: 1.3; }
.the-sp-gia-cu { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.the-sp-gia-cu del { color: #6b7280; font-size: 11.5px; }
.the-sp-gia-cu .nhan { padding: 1px 8px; }

.the-sp-gio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 60, 2, .1);
  color: var(--mau-nhan-chu);
  transition: background-color .15s, color .15s, transform .1s;
}
.the-sp-gio:hover { background: var(--mau-nhan-nen); color: #fff; }
.the-sp-gio:active { transform: scale(.94); }
.the-sp-gio .bt { width: 19px; height: 19px; }

.the-sp-het-hang {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eceeed;
  color: var(--mau-sale);
  font-size: 12px;
  font-weight: 700;
}

.the-sp-da-ban { margin: 8px 0 3px; color: #4b5563; font-size: 12.5px; }
.thanh-tien-do { display: block; height: 5px; border-radius: 999px; background: #e9ecea; overflow: hidden; }
.thanh-tien-do > span { display: block; height: 100%; border-radius: 999px; background: var(--mau-sale); }
.the-sp-ton { margin: 6px 0 0; color: #4b5563; font-size: 12px; }

.xem-tat-ca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  height: 40px;
  margin-top: 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--mau-chinh);
  font-weight: 700;
}
.xem-tat-ca .bt { width: 16px; height: 16px; }
.xem-tat-ca:hover { background: var(--mau-chinh); color: #fff; }

.luoi-co-banner { display: grid; gap: 0; background: #fff; border-radius: 8px; overflow: hidden; }
.luoi-co-banner .luoi-san-pham { border-radius: 0; }
.banner-doc { display: block; background: #fff; }
.banner-doc img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Flash Sale ---------- */

.khoi-flash {
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--mau-nhan);
  border-radius: 14px;
  background: var(--mau-nhan);
  color: #fff;
}
.flash-dau {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
}
.flash-dau h2 { margin: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.flash-dem { display: flex; align-items: center; gap: 8px; }
.flash-dem p { margin: 0 8px 0 0; font-size: 12px; line-height: 1.35; text-align: right; }
.flash-o {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #f4dc00;
  color: #2e2e2e;
  line-height: 1.15;
}
.flash-o b { font-size: 1.45rem; font-weight: 700; }
.flash-o small { font-size: 11px; font-weight: 600; opacity: .8; }

.flash-luoi { color: var(--mau-chu); background: #fff; gap: 0; }

/* ---------- Ma giam gia ---------- */

.dai-ma-giam { margin-top: 28px; margin-bottom: 28px; }
.dai-ma-giam-ds { gap: 14px; margin: 0; padding: 4px 2px 10px; list-style: none; }
.the-ma {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
}
.the-ma-trong { padding: 12px; border: 1px dashed #d9dfdb; border-radius: 8px; }
.the-ma-dau { display: flex; justify-content: space-between; gap: 6px; margin: 0 0 6px; }
.the-ma-dau strong { color: var(--mau-chinh); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.the-ma-dau span { color: #6b7280; font-size: 12.5px; white-space: nowrap; }
.the-ma-mo-ta { margin: 0 0 10px; color: #4b5563; font-size: 12.5px; line-height: 1.45; }
.the-ma .nut-nho { min-height: 30px; padding: .2rem 1rem; }

/* ---------- Video ngan ---------- */

.dai-video { gap: 0; margin: 0; padding: 0; list-style: none; }
.dai-video > li { flex: 0 0 44%; padding: 0 6px 0 0; }
.dai-video a { display: block; }
.dai-video-anh { position: relative; display: block; overflow: hidden; border-radius: 8px; background: #111; }
.dai-video-anh img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.dai-video-phat {
  position: absolute;
  left: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
}
.dai-video-phat .bt { width: 16px; height: 16px; }
/* Chu duoi video: the noi can giua, de len mep duoi anh bia (chu shop 23/10/2026) */
.dai-video a { display: flex; flex-direction: column; align-items: center; }
.dai-video-anh { width: 100%; }
.dai-video-ten {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  max-width: 92%;
  margin: -18px auto 0;
  padding: 7px 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
  transition: transform .2s ease;
}
.dai-video a:hover .dai-video-ten { transform: translateY(-3px); }

/* ---------- Dai nhom hang nen cam ---------- */

.dai-nhom {
  position: relative;
  margin: 32px 0;
  padding: 26px 0;
  background: var(--mau-nhan);
  color: #fff;
  overflow: hidden;
}
/* Hoa van mo tren nen cam: lop gradient tron, khong can tai them anh */
.dai-nhom::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, .13) 0 38px, transparent 39px),
    radial-gradient(circle at 38% 80%, rgba(255, 255, 255, .1) 0 56px, transparent 57px),
    radial-gradient(circle at 64% 22%, rgba(255, 255, 255, .1) 0 44px, transparent 45px),
    radial-gradient(circle at 90% 70%, rgba(255, 255, 255, .13) 0 62px, transparent 63px);
  pointer-events: none;
}
.dai-nhom-ds {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 8px;
  margin: 0 auto;
  padding: 0 12px;
  list-style: none;
}
.dai-nhom-ds a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; text-align: center; }
.dai-nhom-anh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .16);
}
.dai-nhom-anh img { width: 100%; height: 100%; object-fit: cover; }
.dai-nhom-chu-cai { color: var(--mau-nhan-chu); font-size: 1.6rem; font-weight: 700; }
.dai-nhom-ten { font-size: 13px; font-weight: 700; line-height: 1.3; }
.dai-nhom-ds a:hover .dai-nhom-anh { transform: translateY(-3px); }
.dai-nhom-anh { transition: transform .2s; }

/* ---------- Tin tuc ---------- */

.luoi-tin { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tin-the { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; }
.tin-anh img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.tin-chu { display: flex; flex: 1; flex-direction: column; padding: 14px 16px; }
.tin-tieu-de {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tin-chu .tin-tieu-de a:hover { color: var(--mau-nhan-chu); }
.tin-tom-tat {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tin-chan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eef1ef;
}
.tin-chan time { display: inline-flex; align-items: center; gap: 5px; color: #6b7280; font-size: 12.5px; }
.tin-chan time .bt { width: 14px; height: 14px; }
.tin-chan .nut-nho { min-height: 34px; padding: .2rem 1.1rem; }

.tin-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; color: #6b7280; font-size: .82rem; }
.tin-nhom { color: var(--mau-nhan); font-weight: 700; }

/* ---------- Thuong hieu ---------- */

.dai-thuong-hieu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px 6px;
  margin: 0;
  padding: 10px 6px;
  list-style: none;
  border-radius: 8px;
  background: #fff;
}
.dai-thuong-hieu li { display: flex; align-items: center; justify-content: center; }
.dai-thuong-hieu img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.dai-thuong-hieu li:hover img { filter: none; opacity: 1; }

/* ---------- Y kien khach hang ---------- */

.luoi-y-kien { display: grid; grid-template-columns: 1fr; gap: 12px; }
.y-kien { margin: 0; padding: 18px; border-radius: 12px; background: #fff; }
.y-kien blockquote { margin: 0 0 12px; color: #4b5563; font-size: 13.5px; line-height: 1.6; }
.y-kien figcaption { display: flex; align-items: center; gap: 10px; }
.y-kien figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.y-kien figcaption span { display: flex; flex-direction: column; }
.y-kien em { color: #6b7280; font-size: 12.5px; font-style: normal; }
.y-kien-xem { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 13px; color: var(--mau-chinh); }
.y-kien-xem::after { content: " →"; }
.y-kien-xem:hover, .y-kien-xem:focus-visible { text-decoration: underline; }
.y-kien-tat-ca { margin: 14px 0 0; text-align: center; }
.y-kien-tat-ca a { font-weight: 700; font-size: 13.5px; color: var(--mau-chinh); }
.y-kien-tat-ca a:hover, .y-kien-tat-ca a:focus-visible { text-decoration: underline; }

/* ---------- Duong dan, phan trang ---------- */

.duong-dan { padding: 14px 0; font-size: 13px; color: #6b7280; }
.duong-dan a:hover { color: var(--mau-nhan); }
.duong-dan span[aria-current] { color: #6b7280; font-weight: 500; }

.phan-trang a { border-radius: 999px; }
.phan-trang a:hover { border-color: var(--mau-nhan); color: var(--mau-nhan); }

/* ---------- Danh muc + bo loc ---------- */

.hai-cot { gap: 16px; }
.than-trang h1 { color: var(--mau-chinh); font-size: 1.6rem; font-weight: 600; }

.hop-ben { border: 0; box-shadow: none; border-radius: 12px; padding: 14px 16px; }
.hop-ben h2 { margin-bottom: .6rem; font-size: 14.5px; font-weight: 700; }
.ben-danh-muc .dang-xem { color: var(--mau-nhan); }
.hop-loc .xoa-loc { color: var(--mau-nhan); }
.hop-loc .lua-chon-loc input { accent-color: var(--mau-nhan); }
.hop-loc .nut-loc { border-radius: 999px; }

.khoi-dau:has(.thanh-loc) { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; text-align: left; }
.khoi-dau h1 { margin-bottom: 0; }
.thanh-loc label { color: #6b7280; }
.thanh-loc select { border-radius: 8px; border-color: #dfe5e1; }

/* ---------- Trang chi tiet san pham ---------- */

.chi-tiet { margin-bottom: 20px; gap: 18px; }
.anh-chinh { border: 0; border-radius: 16px; }
.anh-chinh img { padding: 0; object-fit: cover; }
.anh-nho { justify-content: center; margin-top: 12px; }
.anh-nho-o { width: 56px; height: 56px; border-radius: 8px; padding: 0; overflow: hidden; }
.anh-nho-o.dang-chon { border-color: var(--mau-nhan); border-width: 2px; }
.anh-nho-o img { object-fit: cover; }

.chi-tiet-mua { padding: 4px 0; background: none; border: 0; box-shadow: none; }
.chi-tiet-mua h1 { margin-bottom: 8px; color: #222; font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.chi-tiet-meta { padding-bottom: 12px; border-bottom: 1px solid #e3e8e5; font-size: 12.5px; }
.chi-tiet-meta strong { color: var(--mau-chinh); }

.hop-gia { margin: 14px 0; padding: 0; background: none; border: 0; }
.chi-tiet-gia { color: var(--mau-nhan-chu); font-size: 1.9rem; font-weight: 700; }

.chi-tiet-nhan { display: block; margin: 0 0 6px; color: #6b7280; font-size: 13.5px; font-weight: 600; }
.chi-tiet-ma { margin-bottom: 14px; }
.chi-tiet-ma ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.the-ma-nho {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff1e9;
  color: var(--mau-nhan-chu);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.the-ma-nho .bt { width: 15px; height: 15px; }

.o-phan-loai { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.phan-loai-ds { display: flex; flex-wrap: wrap; gap: 8px; }
.phan-loai { position: relative; cursor: pointer; }
.phan-loai input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.phan-loai > span {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #d3d8d5;
  border-radius: 4px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.phan-loai input:checked + span,
.phan-loai-chon > span { border-color: var(--mau-chinh); color: var(--mau-chinh); box-shadow: inset 0 0 0 1px var(--mau-chinh); }
.phan-loai input:focus-visible + span { outline: 2px solid var(--mau-chinh); outline-offset: 2px; }
/* O phan loai kem gia / gia goc / muc giam: de nhin, de bam tren dien thoai */
.phan-loai > span { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 128px; padding: 8px 14px 8px 36px; line-height: 1.3; }
/* Cham chon hien ro, dung giua theo chieu doc khoi ten + gia */
.phan-loai > span::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; box-sizing: border-box; border: 2px solid #b9c0bc; border-radius: 50%; background: #fff; }
.phan-loai input:checked + span::before,
.phan-loai-chon > span::before { border-color: var(--mau-chinh); background: radial-gradient(circle, var(--mau-chinh) 0 4px, #fff 4.5px); }
.phan-loai-ten { font-weight: 700; }
.phan-loai-gia { color: var(--mau-nhan-chu, var(--mau-sale)); font-weight: 800; font-variant-numeric: tabular-nums; }
.phan-loai-goc { font-size: 12px; font-weight: 500; color: #7a817d; font-variant-numeric: tabular-nums; }
@media (max-width: 575px) {
  .phan-loai-ds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phan-loai > span { min-width: 0; }
}
.hop-gia [hidden] { display: none; }
.chi-tiet-gia-goc { margin-left: 10px; color: #8a918d; font-size: 1rem; }
.hop-gia .nhan-giam { margin-left: 8px; vertical-align: middle; }
.the-sp-dvt { font-size: .8em; font-weight: 600; color: #7a817d; }
.nhan-dien-sp { display: grid; gap: 4px; margin: 0 0 16px; padding: 12px 16px; background: #f6f8f7; border-radius: 6px; }
/* Moi truong mot dong "Nhan: gia tri" */
.nhan-dien-sp dt, .nhan-dien-sp dd { display: inline; }
.nhan-dien-sp dt { font-weight: 700; color: #4b524e; }
.nhan-dien-sp dd { margin: 0; }

.o-so-luong-dong { margin-bottom: 16px; }
.o-so-luong { border-radius: 4px; border-color: #d3d8d5; }
.o-so-luong button { background: #fff; color: #444; }

.nut-mua-doi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid #e3e8e5; }
.nut-mua-doi .nut { min-height: 46px; font-size: 14.5px; }

.chi-tiet-cam-ket { padding-top: 14px; border-top: 0; }
.chi-tiet-cam-ket li { align-items: center; color: #4b5563; font-size: 13px; }
.chi-tiet-cam-ket .bt { color: #6b7280; margin-top: 0; }

.chi-tiet-mo-ta { margin: 12px 0 0; background: #fff; }
.chi-tiet-mo-ta-tieu-de {
  margin: 0;
  padding: 10px 12px;
  background: #e4efe8;
  color: var(--mau-chinh);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}
.chi-tiet-mo-ta .khung { max-width: 980px; padding-top: 18px; padding-bottom: 22px; }
.gon-lai { position: relative; max-height: 340px; overflow: hidden; }
.gon-lai::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}
.xem-them-ban { margin: 10px 0 0; text-align: center; }
.xem-them-ban[hidden], [data-xem-them][hidden] { display: none; }

.bang-thong-so th { color: #6b7280; }

.thanh-mua-duoi strong { color: var(--mau-nhan-chu); }

/* ---------- Gio hang ---------- */

.gio-trong {
  margin: 8px 0 24px;
  padding: 36px 16px 44px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.gio-trong-hinh { width: min(260px, 70%); height: auto; margin: 0 auto 8px; }
.gio-trong h2 { margin-bottom: 6px; color: #111; font-size: 1.35rem; }
.gio-trong p { margin-bottom: 18px; color: #4b5563; }

.gio-dong { border: 0; box-shadow: none; border-radius: 12px; }
.gio-tien { color: var(--mau-nhan-chu); }
.tom-tat-tong, dt.tom-tat-tong, dd.tom-tat-tong { color: var(--mau-nhan-chu); }

.the-trang { border: 0; box-shadow: none; border-radius: 12px; }

/* ---------- Chan trang ---------- */

.chan-trang { margin-top: 36px; background: #fff; color: #333; }
.chan-cot { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 28px; }
.chan-o h3 { margin: 0 0 12px; font-size: 14.5px; font-weight: 700; }
.chan-tieu-de-thanh-toan { margin-top: 26px !important; text-transform: uppercase; }
.chan-logo img { max-height: 48px; width: auto; }

.chan-lien-he { margin: 14px 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.chan-lien-he li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.chan-lien-he .bt { width: 17px; height: 17px; margin-top: 2px; color: #6b7280; }
.chan-lien-he small { display: block; color: #6b7280; font-size: 12.5px; }
.chan-lien-he a { color: var(--mau-chinh); font-weight: 700; }

.chan-list { margin: 0 0 20px; padding: 0 0 0 1.1rem; display: grid; gap: 12px; list-style: disc; color: #9aa09d; font-size: 13.5px; }
.chan-list a { color: #333; }
.chan-list a:hover { color: var(--mau-nhan); }

.chan-mang-xa-hoi { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chan-mang-xa-hoi a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid #e3e8e5;
  border-radius: 6px;
  color: var(--mau-chinh);
}
.chan-mang-xa-hoi a:hover { background: var(--mau-chinh); color: #fff; }
.chan-mang-xa-hoi .bt { width: 19px; height: 19px; }

.chan-o-cuoi p { margin-bottom: 14px; color: #4b5563; font-size: 13.5px; }
.chan-thanh-toan { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chan-thanh-toan li { padding: 6px 12px; border: 1px solid #e3e8e5; border-radius: 6px; color: #4b5563; font-size: 12.5px; font-weight: 600; }

.chan-duoi { border-top: 1px solid #e9eeeb; padding: 14px 0; text-align: center; color: #4b5563; font-size: 13px; }
.chan-duoi .khung { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; }

/* ---------- Nut lien he noi ---------- */

.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);
  transition: transform .15s;
}
.lien-he-noi a:hover { color: #fff; transform: scale(1.08); }
.lien-he-noi-goi { background: #e11d2e; }
.lien-he-noi-zalo { background: #1c7cf0; font-size: 11px; font-weight: 800; }
.lien-he-noi-fb { background: linear-gradient(135deg, #0b84ff, #a334fa 60%, #ff6968); }
.lien-he-noi .bt { width: 22px; height: 22px; }

/* ---------- Nut len dau trang: nhuong cho nut lien he ---------- */

.nut-len-dau { right: auto; left: 12px; }

/* ==================================================================
   MAN HINH RONG HON
   ================================================================== */

@media (min-width: 640px) {
  .khung { padding: 0 16px; }

  .luoi-san-pham { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .luoi-cuon > * { flex-basis: 38%; }

  .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; }

  .dai-cam-ket-ds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nhom-banner-o { flex-basis: 48%; }
  .slide-muc img { aspect-ratio: 3 / 1; }
  .slide-chu h2 { font-size: 1.5rem; }

  .luoi-tin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .luoi-y-kien { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dai-nhom-ds { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dai-thuong-hieu { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dai-video > li { flex-basis: 24%; }

  .flash-dau { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 20px; }
  .flash-dau h2 { font-size: 2rem; }

  .khoi-tieu-de { font-size: 2.1rem; gap: 22px; }
  .chan-cot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .cot-ben-loc { display: grid; }

  .chi-tiet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .chi-tiet-mua h1 { font-size: 1.75rem; }

  .hai-cot { grid-template-columns: 260px minmax(0, 1fr); gap: 16px; }
  .hai-cot-loc-phai { grid-template-columns: minmax(0, 1fr) 280px; }
  .hai-cot-loc-phai .cot-ben-loc { order: 2; }
  .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: 140px; }

  .luoi-tin { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .luoi-y-kien { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nhom-banner { overflow: visible; }
  .nhom-banner-o { flex: 1 1 0; }
  .nhom-banner { gap: 16px; margin: 36px auto; }
  .nhom-banner-4 .nhom-banner-o { flex: 1 1 0; }

  .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"; }

  .luoi-co-banner { grid-template-columns: 31% minmax(0, 1fr); }
  .luoi-co-banner .luoi-san-pham { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .than-trang h1 { font-size: 2.6rem; }

  .thanh-duoi { display: none; }
  .thanh-mua-duoi { display: none !important; }
  .nut-len-dau { bottom: 20px; left: 20px; }
  .lien-he-noi { bottom: 24px; right: 20px; }

  .thanh-chinh-trong { min-height: 84px; }
  .logo img { max-height: 52px; }
  .nut-danh-muc-chu { display: inline; font-size: 14px; }
  .khoi-tai-khoan { display: inline-flex; }
  .khoi-gio-chu { display: inline; }
  .thanh-chinh-phai { gap: 14px; }
  .o-tim-trong { max-width: 720px; margin: 0 auto; }

  .thanh-dieu-huong { display: block; }
  
  .slide-nut { display: flex; }
  .slide-muc img { aspect-ratio: 1440 / 468; }
  .slide-chu { padding: 2rem 8% 3rem; }
  .slide-chu h2 { font-size: 2.1rem; }
  .slide-chu p { font-size: 1.05rem; }

  .dai-cam-ket { padding: 18px 0; }
  .cam-ket img, .cam-ket-bt { width: 36px; height: 36px; }
  .cam-ket strong { font-size: 14px; }

  .luoi-san-pham { grid-template-columns: repeat(var(--cot-san-pham), minmax(0, 1fr)); }
  .luoi-san-pham.luoi-hep { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .luoi-cuon > * { flex-basis: auto; }
  .flash-luoi { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .the-sp { padding: 16px; }
  .the-sp-nhan { top: 24px; left: 24px; }
  .the-sp-gia strong { font-size: 17px; }

  .dai-ma-giam-ds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .dai-ma-giam-ds > * { flex-basis: auto; }
  .dai-video > li { flex-basis: 12.5%; }

  .dai-nhom { padding: 44px 0 38px; }
  .dai-nhom-anh { width: 84px; height: 84px; }
  .dai-nhom-ten { font-size: 14.5px; }

  .flash-dau h2 { font-size: 2.5rem; }
  .flash-o { min-width: 56px; }
  .flash-o b { font-size: 1.75rem; }

  .khoi-tieu-de { font-size: 2.75rem; }
  .khoi { margin: 48px auto; }
  .khoi-dau { margin-bottom: 22px; }
  .co-js .tab-nut { justify-content: center; margin-bottom: 20px; }

  .chan-cot { grid-template-columns: 1.5fr repeat(var(--cot-giua, 2), minmax(0, 1fr)) 1.3fr; gap: 28px; padding-top: 44px; }
  .chan-duoi .khung { justify-content: center; }
}

@media (min-width: 1280px) {
  .khung { max-width: 1320px; }
}

/* Nguoi dat che do giam chuyen dong thi bo hieu ung */
@media (prefers-reduced-motion: reduce) {
  .the-sp-anh img, .dai-nhom-anh, .lien-he-noi a { transition: none; }
  .the-sp:hover .the-sp-anh img { transform: none; }
}

/* Anh trong than bai: editor hay chen san style="height:712px" kem width. Co max-width 100% ma
   khong ep height:auto thi anh bi keo meo khi man hinh hep (loi aspect ratio cua Lighthouse). */
.bai-viet-than img, .bai-viet img { max-width: 100%; height: auto !important; }
.bai-viet-than, .bai-viet { overflow-wrap: anywhere; }

/* ==================================================================
   NUT XEM NHANH KHI RE CHUOT + HOP XEM NHANH
   ================================================================== */

.the-sp-xem-nhanh {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid #d9dfdb;
  border-radius: 50%;
  background: #fff;
  color: #2b2b2b;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease-out, transform .18s ease-out, background-color .15s, color .15s;
  pointer-events: none;
}
.the-sp-xem-nhanh .bt { width: 18px; height: 18px; }
.the-sp-xem-nhanh::before {
  content: "Xem nhanh";
  position: absolute;
  right: calc(100% + 8px);
  padding: 5px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.the-sp-xem-nhanh:hover { background: var(--mau-chinh); border-color: var(--mau-chinh); color: #fff; }
.the-sp-xem-nhanh:hover::before,
.the-sp-xem-nhanh:focus-visible::before { opacity: 1; }

/* Hien khi re chuot vao the hoac khi Tab toi (ban phim) */
@media (hover: hover) {
  .the-sp:hover .the-sp-xem-nhanh,
  .the-sp:focus-within .the-sp-xem-nhanh {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
/* Man hinh cam ung: nut gio ben duoi da mo cung hop xem nhanh */
@media (hover: none) { .the-sp-xem-nhanh { display: none; } }

.hop-xem-nhanh { z-index: 80; }
.hop-trong {
  width: min(94vw, 880px);
  padding: 24px;
  border-radius: 16px;
}
.hop-dong {
  /* Nam TRONG hop: hop co overflow-y nen nut dat lech ra ngoai se bi cat mat */
  top: 10px; right: 10px;
  z-index: 3;
  width: 36px; height: 36px;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.hop-dong:hover { background: #f2f6f3; }

.xem-nhanh { display: grid; gap: 20px; }
.xem-nhanh-anh img, .xem-nhanh-anh .the-sp-khong-anh {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: none;
  object-fit: cover;
  border-radius: 12px;
  background: #f6f8f7;
}
.xem-nhanh-chu h2 { margin: 0 0 6px; color: #222; font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.xem-nhanh-chu .chi-tiet-gia { margin: 10px 0; font-size: 1.6rem; }
.xem-nhanh-chu .chi-tiet-meta { padding-bottom: 8px; }
.xem-nhanh-chu .nut-mua-doi { margin-top: 4px; }
@media (min-width: 700px) { .xem-nhanh { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; } }

/* ==================================================================
   NGAN KEO DANH MUC (bang trai + bang phai ben canh)
   ================================================================== */

.ngan-trong {
  width: min(90vw, 380px);
  padding: 0;
  background: #fff;
  overflow-y: auto;
}
.ngan-dau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  color: var(--mau-chu);
  border-bottom: 1px solid #edf0ee;
}
.ngan-tai-khoan { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; }
.ngan-tai-khoan-bt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 40px;
  border: 1px solid #e3e8e5;
  border-radius: 6px;
}
.ngan-tai-khoan span { flex-direction: column; }
.ngan-tai-khoan small { display: block; color: #6b7280; font-size: 13px; font-weight: 500; }
.ngan-tai-khoan strong { display: block; font-size: 16px; font-weight: 600; }

.ngan-list { list-style: none; margin: 0; padding: 0; }
.ngan-list > li { border-bottom: 0; }
.ngan-muc > a,
.ngan-muc summary,
.ngan-muc-lien-ket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--mau-chu);
  cursor: pointer;
}
.ngan-muc > a:hover,
.ngan-muc summary:hover,
.ngan-muc.dang-chon > .ngan-muc-lien-ket,
.ngan-muc-lien-ket:hover { background: #ececec; color: var(--mau-chu); }
.ngan-muc .bt { width: 16px; height: 16px; color: #9aa09d; }
.ngan-muc summary .bt { transform: rotate(90deg); }
.ngan-muc details[open] summary .bt { transform: rotate(-90deg); }

.ngan-con-di-dong { list-style: none; margin: 0; padding: 0 0 6px; background: #f7f9f8; }
.ngan-con-di-dong a { display: block; padding: 10px 20px 10px 36px; font-size: 15px; }
.ngan-con-di-dong ul { list-style: none; margin: 0; padding: 0; }
.ngan-con-di-dong ul a { padding-left: 52px; color: #6b7280; font-size: 14px; }
.ngan-con-di-dong a:hover { color: var(--mau-nhan-chu); }

.ngan-thong-tin { margin-top: 12px; padding-top: 12px; border-top: 4px solid #eef0ef; }

/* Dien thoai: khong co bang phai, danh muc con mo ngay trong danh sach */
.ngan-muc-lien-ket, .ngan-phu { display: none; }

@media (min-width: 1024px) {
  .ngan-trong { width: 540px; }
  .ngan-dau { padding: 22px 28px; border-bottom-color: #f1f3f2; }
  .ngan-muc > a, .ngan-muc summary, .ngan-muc-lien-ket { min-height: 64px; padding: 0 36px; font-size: 17px; }
  .ngan-muc .bt { width: 18px; height: 18px; }

  /* Man hinh rong: bang phai thay cho <details> */
  .ngan-muc.co-con > details { display: none; }
  .ngan-muc.co-con > .ngan-muc-lien-ket { display: flex; }

  .ngan-phu {
    position: absolute;
    top: 0; bottom: 0;
    left: 540px;
    width: min(540px, calc(100vw - 580px));
    overflow-y: auto;
    padding: 28px 28px 40px;
    background: #fff;
    box-shadow: 8px 0 24px rgba(0, 0, 0, .08);
  }
  .ngan-phu.dang-co { display: block; }
  .ngan-phu-bang[hidden] { display: none; }
  .ngan-phu-bang h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
  .ngan-phu-bang h3:not(:first-child) { margin-top: 26px; }
  .ngan-phu-bang ul { margin: 0; padding: 0 0 0 22px; display: grid; gap: 8px; list-style: disc; font-size: 16px; }
  .ngan-phu-bang a:hover { color: var(--mau-nhan-chu); }

  /* Bang phai chi truot ra cung bang trai */
  .ngan-phu { transform: translateX(-24px); opacity: 0; transition: transform .2s ease-out, opacity .2s; }
  .ngan.dang-mo .ngan-phu.dang-co { transform: none; opacity: 1; }
}

/* ---------- Hop "Khuyen mai dang ap dung" o trang san pham ---------- */

.chi-tiet-uu-dai { margin: 0 0 14px; overflow: hidden; border: 1px solid #cfe3d6; border-radius: 8px; background: #fff; }
.chi-tiet-uu-dai-dau {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  background: #e4efe8;
  color: var(--mau-chinh);
  font-size: 13px;
  font-weight: 700;
}
.chi-tiet-uu-dai-dau .bt { width: 17px; height: 17px; }
.chi-tiet-uu-dai ul { display: grid; gap: 4px; margin: 0; padding: 10px 14px 10px 30px; font-size: 13.5px; color: #374151; }
@media (min-width: 640px) { .chi-tiet-uu-dai ul { grid-template-columns: 1fr 1fr; gap: 6px 20px; } }

/* ==================================================================
   GIO MINI (ngan truot ben phai)
   ================================================================== */

.gio-mini { position: fixed; inset: 0; z-index: 85; }
.gio-mini[hidden] { display: none; }
.gio-mini-nen { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.gio-mini-trong {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(94vw, 420px);
  background: #fff;
  transform: translateX(100%);
  transition: transform .2s ease-out;
}
.gio-mini.dang-mo .gio-mini-trong { transform: none; }
.gio-mini-dau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0ee;
}
.gio-mini-dau h2 { margin: 0; color: var(--mau-chinh); font-size: 1.15rem; }
.gio-mini-than { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow-y: auto; }

.gio-mini-loi { margin: 12px 16px 0; }
.gio-mini-rong { padding: 40px 20px; text-align: center; }
.gio-mini-rong .gio-trong-hinh { display: block; width: 160px; margin: 0 auto 6px; }

.gio-mini-ds { flex: 1; margin: 0; padding: 4px 16px; list-style: none; overflow-y: auto; }
.gio-mini-dong {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "ten xoa" "sua tien";
  gap: 6px 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf0ee;
}
.gio-mini-ten { grid-area: ten; min-width: 0; }
.gio-mini-ten strong { display: block; font-size: 13.5px; line-height: 1.4; }
.gio-mini-ten small { display: block; color: #6b7280; font-size: 12px; }
.gio-mini-gia { color: #6b7280; font-size: 12.5px; }
.gio-mini-sua { grid-area: sua; display: flex; align-items: center; gap: 6px; margin: 0; }
.gio-mini-sua .o-so-luong input { width: 44px; }
.gio-mini-sua .o-so-luong button { width: 30px; }
.gio-mini-tien { grid-area: tien; color: var(--mau-nhan-chu); font-weight: 700; text-align: right; }
.gio-mini-xoa { grid-area: xoa; justify-self: end; margin: 0; }
.gio-mini-xoa .bt { width: 18px; height: 18px; color: #6b7280; }

.gio-mini-chan { padding: 14px 16px 18px; border-top: 1px solid #edf0ee; background: #fff; }
.gio-mini-chan .tom-tat-tien { margin-bottom: 4px; }
.gio-mini-tong { color: var(--mau-nhan-chu); font-size: 1.15rem; font-weight: 700; }
.gio-mini-chan .nut-mua-doi { padding-top: 10px; border-top: 0; }

/* ---------- Dang ky nhan uu dai o chan trang ---------- */

.chan-dang-ky { display: flex; gap: 8px; margin-bottom: 8px; }
.chan-dang-ky input[type=email] {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid #dfe5e1;
  border-radius: 999px;
  font: inherit;
}
.chan-dang-ky input[type=email]:focus { outline: none; border-color: var(--mau-chinh); box-shadow: 0 0 0 3px rgba(1, 103, 53, .14); }
/* Yeu cau lien he lai (chu shop 23/10/2026): so dien thoai + ten xep doc, nut ca hang */
.chan-goi-lai { flex-direction: column; }
.chan-goi-lai input[type=tel], .chan-goi-lai input[type=text] {
  width: 100%; min-height: 44px; padding: 0 1rem; border: 1px solid #dfe5e1; border-radius: 999px; font: inherit;
}
.chan-goi-lai input[type=tel]:focus, .chan-goi-lai input[type=text]:focus {
  outline: none; border-color: var(--mau-chinh); box-shadow: 0 0 0 3px rgba(1, 103, 53, .14);
}
.chan-goi-lai .nut { width: 100%; }
.chan-dong-y { margin: 0 0 6px; color: #6b7280; font-size: 12px; line-height: 1.5; }

/* ---------- Hop phat video ---------- */

.hop-video { position: fixed; inset: 0; z-index: 90; }
.hop-video[hidden] { display: none; }
.hop-video-trong {
  position: absolute;
  left: 50%; top: 50%;
  width: min(94vw, 420px);
  transform: translate(-50%, -50%);
}
.hop-video-khung { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 86vh; background: #000; border-radius: 12px; overflow: hidden; }
.hop-video-khung iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hop-video-trong .hop-dong { top: -12px; right: -12px; }
@media (min-width: 900px) { .hop-video-trong { width: min(90vw, 440px); } }

/* ---------- Goi y tim kiem ---------- */

.o-tim-trong { position: relative; }
.goi-y-tim {
  position: absolute;
  top: calc(100% - .4rem);
  left: 16px; right: 16px;
  z-index: 60;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e3e8e5;
  border-radius: 12px;
  box-shadow: var(--bong-noi);
}
.goi-y-tim[hidden] { display: none; }
@media (min-width: 1024px) { .goi-y-tim { left: 50%; right: auto; width: min(720px, calc(100% - 32px)); transform: translateX(-50%); } }
.goi-y-tim a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--mau-chu);
}
.goi-y-tim a:hover, .goi-y-tim a.dang-chon { background: #f2f6f3; }
.goi-y-tim img { flex: none; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #f6f8f7; }
.goi-y-tim span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.goi-y-tim strong { flex: none; color: var(--mau-nhan-chu); }

/* ---------- Combo (dac ta muc 5.3) ---------- */
.nhan-combo { background: var(--mau-chinh); color: #fff; }
.combo-mua { margin: 0 0 14px; }
.combo-gia-goc { color: var(--mau-chu-nhat); margin-left: 8px; }
.combo-tiet-kiem { display: inline-block; margin-left: 8px; vertical-align: middle; }
.combo-tiet-kiem[hidden] { display: none; }
.combo-loi { margin: 0 0 10px; color: var(--mau-sale); font-size: 13.5px; }
.combo-ngung-ban { margin: 14px 0; }
.combo-thanh-phan { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.combo-thanh-phan li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; 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: 12.5px; }
.dong-tuy-chon { list-style: none; margin: 2px 0 0; padding: 0; color: var(--mau-chu-nhat); font-size: 12.5px; }
.dong-loi { margin: 2px 0 0; color: var(--mau-sale); font-size: 12.5px; }
.the-sp-tiet-kiem { margin: 2px 0 0; color: var(--mau-sale); font-size: 12.5px; font-weight: 700; }

/* ------------------------------------------------------------------
   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; }

/* Giam theo so luong tren dong gio/don (dac ta muc 45) */
.gia-goc-dong { color: #94a3b8; font-weight: 400; font-size: .85em; }
.ghi-chu-giam { display: block; color: #16a34a; font-size: .78em; font-weight: 600; }

/* Bang bac gia mua nhieu o trang san pham (dac ta muc 45) */
.bac-gia { margin: .5rem 0 .75rem; padding: .6rem .8rem; border: 1px dashed #16a34a; border-radius: 8px; background: #f0fdf4; font-size: .92rem; }
.bac-gia ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.bac-gia-giam { color: #16a34a; font-weight: 700; }
.gia-so-luong { margin: .5rem 0; font-size: .95rem; }
.gia-so-luong del { color: #94a3b8; }
.gia-so-luong span { color: #16a34a; }

/* ---------- 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; }
}

/* 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; }


/* 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 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; }

/* ---- 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; }

/* ==================================================================
   Phong cach "Sang trong" (chu shop 23/10/2026): tong tram - xanh reu dam, than chi, vang dong tren nen nga.
   Chi doi bien mau o body.sang-trong + vai diem nhan (tieu de chu co chan, vien manh mau dong, bong do am).
   Chon "Thuong" trong cau hinh giao dien de ve mau theo cai dat cua website.
   ================================================================== */
body.sang-trong {
  --mau-chinh: #1f3a2e;
  --mau-chinh-dam: #12251c;
  --mau-nhan: #b8893b;
  --mau-nhan-nen: #a8792f;
  --mau-nhan-chu: #8a6224;
  --mau-sale: #9b2c24;
  --mau-noi-bat: #c9a55a;
  --mau-nen: #f6f2ea;
  --mau-the: #fffdf8;
  --mau-chu: #2a2926;
  --mau-chu-nhat: #6f6a5f;
  --mau-vien: #e3d9c4;
  --bong: 0 1px 2px rgba(42, 34, 18, .06), 0 8px 22px -14px rgba(42, 34, 18, .35);
  --bong-noi: 0 4px 12px rgba(42, 34, 18, .1), 0 20px 40px -18px rgba(42, 34, 18, .45);
  --vang-dong: linear-gradient(135deg, #d9b36a, #b8893b 50%, #8a6224);
  --reu-dam: linear-gradient(120deg, #2b4a3b, #1f3a2e 55%, #12251c);
}

/* Tieu de: cung font Quicksand voi ten san pham (chu shop 23/10/2026: Georgia lam dau tieng Viet roi khoi chu),
   dam 700, mau reu dam, gach trang tri mau dong */
body.sang-trong h1, body.sang-trong h2, body.sang-trong .khoi-tieu-de, body.sang-trong .chi-tiet-mua h1 {
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
}
body.sang-trong .khoi-tieu-de { color: var(--mau-chinh); font-weight: 700; }
body.sang-trong .khoi-tieu-de::before, body.sang-trong .khoi-tieu-de::after {
  border-top-color: #cdb07a; border-bottom-color: #cdb07a;
}

/* Dau trang: than chi + reu dam, vien vang dong manh */
body.sang-trong .dai-thong-bao { background: var(--reu-dam); color: #f1e2bf; }
body.sang-trong .dau-trang, body.sang-trong .thanh-chinh { background: #fffdf8; }
body.sang-trong .dau-trang { box-shadow: 0 1px 0 #e3d9c4, 0 6px 18px -12px rgba(42, 34, 18, .35); }
body.sang-trong .thanh-dieu-huong { background: var(--reu-dam); box-shadow: inset 0 -2px 0 #b8893b; }
body.sang-trong .menu-ngang > li > a:hover { color: #f1d9a3; }

/* Nut: reu dam va vang dong */
body.sang-trong .nut-chinh { background: var(--reu-dam); color: #fdf6e6; }
body.sang-trong .nut-nhan { background: var(--vang-dong); color: #2a1f0b; box-shadow: 0 4px 12px -6px rgba(138, 98, 36, .7); }
body.sang-trong .nut-nhan:hover, body.sang-trong .nut-chinh:hover { filter: brightness(1.06); }

/* The noi: nen nga, vien manh mau dong, bong do am */
body.sang-trong .the-sp, body.sang-trong .the-trang, body.sang-trong .hop-ben, body.sang-trong .tin-the,
body.sang-trong .y-kien, body.sang-trong .cam-ket {
  background: var(--mau-the); border-color: var(--mau-vien); box-shadow: var(--bong);
}
body.sang-trong .the-sp { transition: transform .2s, box-shadow .2s; }
body.sang-trong .the-sp:hover { transform: translateY(-3px); box-shadow: var(--bong-noi); border-color: #cdb07a; }
body.sang-trong .nhan-giam { background: var(--mau-sale); }
body.sang-trong .khoi-flash { background: var(--reu-dam); }

/* Chan trang: reu dam, chu nga, lien ket vang dong */
body.sang-trong .chan-trang { background: var(--reu-dam); color: #e9dfc9; }
body.sang-trong .chan-trang h3 { color: #f1d9a3; }
body.sang-trong .chan-list a, body.sang-trong .chan-trang a { color: #efe6d2; }
body.sang-trong .chan-list a:hover, body.sang-trong .chan-trang a:hover { color: #d9b36a; }
body.sang-trong .chan-lien-he .bt, body.sang-trong .chan-lien-he small { color: #cdbf9f; }

/* ---------- Icon menu + ngan keo dien thoai (chu shop 23/10/2026) ----------
   Icon / nhan da chon trong cau hinh menu hien o ca thanh ngang lan ngan keo. Tren thanh menu mau, icon nam tren nen
   tron trang de khong trung mau nen. Ngan keo: muc chinh chu dam, muc con thut vao co vach dan. */
.menu-icon { width: 16px; height: 16px; flex: none; object-fit: contain; vertical-align: -3px; margin-right: .3rem; display: inline-block; }
.menu-nhan {
  display: inline-block; margin-left: .35rem; padding: 0 .35rem; border-radius: 999px; color: #fff;
  font-size: .65rem; font-weight: 700; line-height: 1.5; text-transform: uppercase; vertical-align: 1px;
}
.menu-ngang > li > a > .menu-icon {
  box-sizing: content-box; width: 14px; height: 14px; padding: 3px; margin-right: 0;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.ngan-muc-chu { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .2rem; }
.ngan-muc > a, .ngan-muc summary { font-weight: 700; }
.ngan-list .menu-icon { width: 20px; height: 20px; margin-right: .35rem; }
.ngan-muc details[open] > summary { color: var(--mau-chinh); background: #f2f6f3; }
.ngan-con-di-dong { margin: 0 0 6px 24px; padding: 0; background: transparent; border-left: 2px solid #cfe0d5; }
.ngan-con-di-dong a { padding: 9px 16px 9px 14px; font-size: 15px; font-weight: 500; }
.ngan-con-di-dong ul a { padding-left: 30px; font-weight: 400; }

/* ==================================================================
   Cvgreen Mart 2.0 (chu shop 23/10/2026): nhom hang noi bat, khoi nhom hang nhieu kieu, dai con so
   ================================================================== */
.nhom-dau {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--mau-vien);
}
.nhom-tieu-de, .so-lieu-tieu-de {
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-weight: 700;
}
.nhom-tieu-de { position: relative; margin: 0; font-size: 1.3rem; line-height: 1.25; }
.nhom-tieu-de a { color: var(--mau-chinh-dam); }
.nhom-tieu-de a:hover { color: var(--mau-chinh); }
.nhom-dau .nhom-tieu-de::after {
  content: ""; position: absolute; left: 0; bottom: -12px; width: 64px; height: 3px; border-radius: 3px; background: var(--mau-nhan);
}
.nhom-nhan {
  display: block; margin-bottom: 2px; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mau-nhan-chu);
}
.nhom-dau .tab-nut { margin: 0; }
.nhom-con { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nhom-con a {
  display: inline-block; padding: 5px 12px; border: 1px solid var(--mau-vien); border-radius: 999px;
  background: var(--mau-the); font-size: .85rem; color: var(--mau-chu);
}
.nhom-con a:hover { border-color: var(--mau-nhan); color: var(--mau-nhan-chu); }

/* Nhom hang noi bat: nen chuyen mau nhe, khung noi */
.khoi-nhom-noi-bat {
  padding: 18px 14px; border-radius: var(--bo-goc-lon); box-shadow: var(--bong-noi);
  background: linear-gradient(160deg, color-mix(in srgb, var(--mau-chinh) 12%, #fff), var(--mau-the) 55%);
}

/* 1 san pham lon + 8 san pham */
.nhom-lon-luoi { display: grid; gap: 10px; }
.nhom-lon-chinh { display: flex; }
.nhom-lon-chinh .the-sp { flex: 1; background: color-mix(in srgb, var(--mau-noi-bat) 8%, var(--mau-the)); }
.nhom-lon-chinh .the-sp-ten { font-size: 1.05rem; }
.nhom-lon-phu { margin: 0; }

/* Dai cuon ngang */
.khoi-nhom-cuon { margin: 28px 0; padding: 22px 0; background: color-mix(in srgb, var(--mau-chinh) 9%, #fff); }
.nhom-cuon-trong { display: grid; gap: 14px; }
.nhom-cuon-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.nhom-cuon-xem { margin-left: auto; }
.nhom-cuon-ray { position: relative; min-width: 0; }
.nhom-cuon-ds { gap: 10px; padding: 4px 2px 10px; }
.nhom-cuon-nut { display: none; }

/* Hai nhom canh nhau: danh sach gon */
.khoi-nhom-doi { display: grid; gap: 18px; }
.nhom-doi-cot { padding: 14px; background: var(--mau-the); border-radius: var(--bo-goc); box-shadow: var(--bong); }
.nhom-doi-xem { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; color: var(--mau-nhan-chu); }
.nhom-doi-xem .bt { width: 14px; height: 14px; }
.ds-gon { margin: 0; padding: 0; list-style: none; }
.ds-gon li {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--mau-vien);
}
.ds-gon li:last-child { border-bottom: 0; }
.ds-gon-anh img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: var(--bo-goc-nho); background: var(--mau-nen); }
.ds-gon-ten {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--mau-chu); font-weight: 600; line-height: 1.35;
}
.ds-gon-ten:hover { color: var(--mau-chinh); }
.ds-gon-gia { margin: 4px 0 0; }
.ds-gon-gia strong { color: var(--mau-sale); }
.ds-gon-gia del { margin-left: 6px; font-size: .85rem; color: var(--mau-chu-nhat); }
.ds-gon-gio { position: static; }

/* Dai con so */
.dai-so-lieu {
  margin: 28px 0; padding: 30px 0; color: #fff;
  background: linear-gradient(120deg, var(--mau-chinh-dam), var(--mau-chinh) 65%);
}
.so-lieu-tieu-de { margin: 0 0 16px; text-align: center; font-size: 1.4rem; color: #fff; }
.so-lieu-ds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 auto; padding: 0; list-style: none; }
.so-lieu-1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.so-lieu-1 .so-lieu-o { grid-template-columns: auto auto; grid-template-areas: "bt so" "bt nhan"; justify-content: center; justify-items: start; column-gap: 14px; }
.so-lieu-1 .so-lieu-bt { grid-area: bt; align-self: center; }
.so-lieu-1 .so-lieu-so { grid-area: so; }
.so-lieu-1 .so-lieu-nhan { grid-area: nhan; }
.so-lieu-ds { width: 100%; }
.so-lieu-o {
  display: grid; justify-items: center; gap: 4px; padding: 16px 10px; text-align: center; border-radius: var(--bo-goc);
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.so-lieu-bt { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mau-noi-bat); color: #fff; }
.so-lieu-bt .bt { width: 22px; height: 22px; }
.so-lieu-so { font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.so-lieu-nhan { font-size: .9rem; opacity: .9; }

@media (min-width: 640px) {
  .nhom-lon-luoi { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .khoi-nhom-dao .nhom-lon-luoi { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .khoi-nhom-dao .nhom-lon-chinh { order: 2; }
  .nhom-lon-phu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .khoi-nhom-doi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nhom-cuon-ds > * { flex-basis: 30%; }
}
@media (min-width: 900px) {
  .so-lieu-ds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .so-lieu-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .so-lieu-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
  .so-lieu-1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
}
@media (min-width: 1024px) {
  .nhom-tieu-de { font-size: 1.5rem; }
  .khoi-nhom-noi-bat { padding: 24px; }
  .khoi-nhom-noi-bat .nhom-tieu-de { font-size: 1.9rem; }
  .nhom-lon-luoi { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .nhom-lon-phu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .khoi-nhom-dao .nhom-lon-luoi { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .khoi-nhom-dao .nhom-lon-chinh { order: 2; }
  .nhom-cuon-trong { grid-template-columns: 220px minmax(0, 1fr); align-items: center; }
  .nhom-cuon-dau { flex-direction: column; align-items: flex-start; }
  .nhom-cuon-xem { margin-left: 0; }
  .nhom-cuon-ds > * { flex-basis: calc((100% - 30px) / 4); }
  .nhom-cuon-nut {
    position: absolute; top: 40%; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px;
    border: 0; border-radius: 50%; background: var(--mau-the); box-shadow: var(--bong-noi); color: var(--mau-chinh); cursor: pointer;
  }
  .nhom-cuon-nut .bt { width: 18px; height: 18px; }
  .nhom-cuon-truoc { left: -14px; }
  .nhom-cuon-sau { right: -14px; }
  .so-lieu-so { font-size: 2.6rem; }
}
