:root {
  --xanh: #2e7d32;
  --xanh-dam: #1b5e20;
  --xanh-nhat: #e8f5e9;
  --cam: #ef6c00;
  --chu: #1f2a1f;
  --chu-phu: #5b6b5b;
  --nen: #ffffff;
  --nen-phu: #f6f8f4;
  --vien: #dfe6dc;
  --bo: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--chu);
  background: var(--nen);
  padding-bottom: 76px; /* chừa chỗ cho thanh gọi/Zalo */
}
img { max-width: 100%; display: block; }
a { color: var(--xanh); }
.khung { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Đầu trang */
.dau-trang { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--vien); }
.dau-trang .khung { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.thuong-hieu { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--xanh-dam); text-decoration: none; }
.thuong-hieu img { height: 44px; width: auto; }
.menu { display: none; gap: 20px; }
.menu a { text-decoration: none; color: var(--chu); font-weight: 600; }
@media (min-width: 860px) { .menu { display: flex; } }

/* Nút */
.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.nut-chinh { background: var(--xanh); color: #fff; }
.nut-chinh:hover { background: var(--xanh-dam); }
.nut-cam { background: var(--cam); color: #fff; }
.nut-vien { background: #fff; color: var(--xanh-dam); border: 2px solid var(--xanh); }
.nut-nho { min-height: 40px; padding: 0 14px; font-size: 16px; }
.nut:disabled { opacity: .6; cursor: wait; }

/* Mở đầu */
.mo-dau { background: linear-gradient(160deg, var(--xanh-nhat), #fff 70%); padding: 40px 0 48px; }
.mo-dau h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.2; margin: 0 0 14px; color: var(--xanh-dam); }
.mo-dau p { font-size: 19px; color: var(--chu-phu); margin: 0 0 24px; max-width: 640px; }
.hang-nut { display: flex; flex-wrap: wrap; gap: 12px; }

/* Khối nội dung */
.khoi { padding: 48px 0; scroll-margin-top: 64px; }
.khoi:nth-of-type(even) { background: var(--nen-phu); }
.khoi h2 { font-size: clamp(24px, 4.5vw, 32px); margin: 0 0 8px; color: var(--xanh-dam); }
.khoi .phu { color: var(--chu-phu); margin: 0 0 28px; }
.luoi { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.the {
  background: #fff; border: 1px solid var(--vien); border-radius: var(--bo);
  overflow: hidden; display: flex; flex-direction: column;
}
.the .anh { aspect-ratio: 4/3; background: var(--xanh-nhat) center/cover no-repeat; display: grid; place-items: center; font-size: 56px; }
.the .than { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.the h3 { margin: 0; font-size: 20px; }
.the .mo-ta { color: var(--chu-phu); font-size: 16px; margin: 0; flex: 1; }
.gia { font-size: 22px; font-weight: 800; color: var(--cam); }
.gia small { font-size: 15px; font-weight: 600; color: var(--chu-phu); }
.lien-he-gia { font-weight: 700; color: var(--xanh-dam); }

.diem { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.diem div { background: #fff; border-radius: var(--bo); padding: 20px; border: 1px solid var(--vien); }
.diem b { display: block; font-size: 19px; margin-bottom: 4px; }

.buoc { counter-reset: b; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.buoc li { counter-increment: b; display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); padding: 14px 16px; }
.buoc li::before {
  content: counter(b); flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--xanh); color: #fff; font-weight: 800; display: grid; place-items: center;
}

/* Biểu mẫu */
.bieu-mau { display: grid; gap: 14px; max-width: 620px; }
.bieu-mau label { display: grid; gap: 4px; font-weight: 600; }
.bieu-mau input, .bieu-mau select, .bieu-mau textarea {
  font: inherit; font-size: 18px; padding: 12px 14px; border: 1.5px solid var(--vien); border-radius: 10px; width: 100%; background: #fff;
}
.bieu-mau input:focus, .bieu-mau select:focus, .bieu-mau textarea:focus { outline: 3px solid var(--xanh-nhat); border-color: var(--xanh); }
.bieu-mau .hai-cot { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .bieu-mau .hai-cot { grid-template-columns: 1fr; } }
.chon-nhanh { display: flex; flex-wrap: wrap; gap: 8px; }
.chon-nhanh label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; border: 1.5px solid var(--vien); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.chon-nhanh input { width: auto; }
.chon-nhanh label:has(input:checked) { border-color: var(--xanh); background: var(--xanh-nhat); }
.an-di { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.goi-y { font-size: 15px; color: var(--chu-phu); font-weight: 400; }
.thong-bao { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.thong-bao.tot { background: var(--xanh-nhat); color: var(--xanh-dam); }
.thong-bao.loi { background: #fdecea; color: #b71c1c; }

/* Hộp đặt hàng */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); }
dialog::backdrop { background: rgba(0,0,0,.45); }
.hop-dau { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--vien); position: sticky; top: 0; background: #fff; }
.hop-dau h3 { margin: 0; }
.hop-than { padding: 20px; }
.dong-hop { background: none; border: 0; font-size: 28px; cursor: pointer; line-height: 1; }

/* Thanh gọi / Zalo cố định dưới màn hình */
.thanh-lien-he {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.thanh-lien-he .nut { width: 100%; }
.nut-zalo { background: #0068ff; color: #fff; }

.chan-trang { background: var(--xanh-dam); color: #e8f5e9; padding: 32px 0; font-size: 16px; }
.chan-trang a { color: #fff; }
