/* ------------------------------------------------------------------
   TRANG BÁN AGRIVOVA — style dùng chung cho cả 7 dòng sản phẩm.
   Màu chủ đạo từng trang nạp qua biến --acc / --acc2 / --sang (đặt inline).
   Mobile-first. Không phụ thuộc thư viện ngoài.
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --green: #1e7d32;
  --ink: #1f2a1f;
  --muted: #5a6b5a;
  --line: #e4e8df;
  --bg: #f7f8f4;
  --card: #fff;
  --acc: #1e7d32;
  --acc2: #4caf50;
  --sang: #eef5ea;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(20, 60, 25, .07);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.62;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------- thanh trên */
.topbar {
  background: var(--acc);
  color: #fff;
  font-size: 13px;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  align-items: center; justify-content: center;
  padding-block: 7px; text-align: center;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }

header.nav {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
header.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-block: 10px;
}
header.nav img { height: 44px; width: auto; }
.nav-call {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--acc); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 14px;
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
}

/* ---------------------------------------------------------------- hero */
.hero { background: linear-gradient(180deg, var(--sang), var(--bg)); padding-block: 26px 8px; }
.hero .wrap { display: grid; gap: 20px; }
.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--acc); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.hero h1 {
  font-size: clamp(30px, 8vw, 52px); line-height: 1.06; margin: 12px 0 6px;
  letter-spacing: -.02em; color: var(--acc);
}
.hero .tagline { font-size: clamp(16px, 4.4vw, 21px); font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.hero p.lead { color: var(--muted); margin: 0 0 16px; }
.hero-img {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); text-align: center;
}
.hero-img img { margin: 0 auto; max-height: 340px; width: auto; }

.big4 { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.big4 li { position: relative; padding-left: 28px; font-weight: 600; font-size: 15px; }
.big4 li::before {
  content: "✔"; position: absolute; left: 0; top: 0;
  color: #fff; background: var(--acc2); width: 19px; height: 19px;
  border-radius: 50%; font-size: 11px; line-height: 19px; text-align: center;
}

.gia-tu { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.gia-tu b { font-size: clamp(26px, 7vw, 34px); color: var(--acc); letter-spacing: -.02em; }
.gia-tu span { color: var(--muted); font-size: 14px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 15.5px; text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--acc); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.btn-phu { background: #fff; color: var(--acc); border-color: var(--acc); }
.btn-zalo { background: #0068ff; color: #fff; }
.btn-lon { width: 100%; padding: 16px 22px; font-size: 17px; }

/* ------------------------------------------------------------- chung */
section { padding-block: 34px; }
section.trang { background: #fff; }
h2.tieu-de {
  font-size: clamp(22px, 5.6vw, 31px); line-height: 1.2; margin: 0 0 6px;
  letter-spacing: -.015em;
}
p.phu-de { color: var(--muted); margin: 0 0 22px; max-width: 62ch; }

/* ------------------------------------------------------- chọn dung tích */
.dung-tich { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tt {
  position: relative; background: #fff; border: 2px solid var(--line);
  border-radius: var(--radius); padding: 16px; cursor: pointer;
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tt:hover { border-color: var(--acc2); }
.tt.chon { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 14%, transparent); }
.tt .anh { background: var(--sang); border-radius: 10px; padding: 6px; }
.tt .anh img { max-height: 90px; margin: 0 auto; width: auto; }
.tt .anh, .tt .tin { display: block; min-width: 0; }
.tt .ten { display: block; font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.tt .sku { display: block; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.tt .gia small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tt .gia { display: block; font-size: 22px; font-weight: 800; color: var(--acc); margin-top: 4px; letter-spacing: -.02em; }
.tt .meta { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.tt .lh { display: block; font-size: 19px; font-weight: 800; color: var(--muted); margin-top: 4px; }
.tag-re {
  position: absolute; top: -11px; right: 12px; background: #d84315; color: #fff;
  font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  letter-spacing: .02em;
}
.tt input { position: absolute; opacity: 0; pointer-events: none; }
.ghi-chu-qc { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* ------------------------------------------------------------ đặt hàng */
.o-dat {
  margin-top: 22px; background: var(--sang); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.o-dat .dong { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 14px; }
.o-dat .nhan { font-size: 13px; color: var(--muted); display: block; }
.o-dat .val { font-weight: 800; font-size: 17px; }
.sl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.sl button {
  width: 40px; height: 40px; border: 0; background: none; font-size: 21px;
  cursor: pointer; color: var(--acc); font-weight: 700; line-height: 1;
}
.sl input { width: 46px; text-align: center; border: 0; font-size: 17px; font-weight: 800; background: none; }
.tong { font-size: clamp(24px, 6vw, 30px); font-weight: 800; color: var(--acc); letter-spacing: -.02em; }

/* ---------------------------------------------------------- công dụng */
.luoi-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.the {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
section.trang .the { background: var(--bg); box-shadow: none; }
.the .so {
  width: 34px; height: 34px; border-radius: 9px; background: var(--acc); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; font-size: 15px;
}
.the h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
.the p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* -------------------------------------------------------------- bảng */
.bang-cuon { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--sang); color: var(--acc); font-weight: 800; font-size: 13.5px; white-space: nowrap; }
td.lieu { font-weight: 700; white-space: nowrap; }

.tp { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.tp div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 15px; border-bottom: 1px solid var(--line); font-size: 15px; }
.tp div:last-child { border-bottom: 0; }
.tp b { color: var(--acc); white-space: nowrap; }

.hop-luu-y {
  margin-top: 16px; background: var(--sang); border-left: 4px solid var(--acc);
  border-radius: 0 10px 10px 0; padding: 14px 16px; font-size: 14.5px; color: var(--ink);
}

/* -------------------------------------------------------- bài toán tiền */
.tinh { display: grid; gap: 12px; grid-template-columns: 1fr; }
.tinh .o {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-align: center;
}
.tinh .o b { display: block; font-size: clamp(21px, 5.5vw, 26px); color: var(--acc); letter-spacing: -.02em; }
.tinh .o span { font-size: 13.5px; color: var(--muted); }

/* --------------------------------------------------------------- FAQ */
details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
}
details[open] { border-color: var(--acc2); }
summary { font-weight: 700; cursor: pointer; font-size: 15.5px; }
details p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------ chốt đơn */
.chot { background: var(--acc); color: #fff; }
.chot h2 { color: #fff; }
.chot p { color: rgba(255, 255, 255, .9); }
.chot .btn-main { background: #fff; color: var(--acc); }
.chot .btn-phu { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.chot .hop {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius); padding: 18px; margin-bottom: 18px;
}
.chot .sdt { font-size: clamp(28px, 8vw, 40px); font-weight: 800; letter-spacing: -.02em; color: #fff; text-decoration: none; display: block; }

/* -------------------------------------------------------------- footer */
footer { background: #16281a; color: #cfd8cd; font-size: 14px; padding-block: 26px; }
footer a { color: #fff; }
footer .cot { display: grid; gap: 18px; }
footer h4 { color: #fff; margin: 0 0 8px; font-size: 15px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 5px; }
footer .day { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 20px; padding-top: 14px; font-size: 13px; color: #9fb09f; }

/* ---------------------------------------------------------- thanh dính */
.thanh-dinh {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .1);
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.thanh-dinh .tt-gia { line-height: 1.25; min-width: 0; }
.thanh-dinh .tt-gia span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thanh-dinh .tt-gia b { font-size: 19px; color: var(--acc); letter-spacing: -.02em; }
.thanh-dinh .btn { padding: 12px 18px; font-size: 15px; }
body { padding-bottom: 76px; }

/* ------------------------------------------------------------ máy lớn */
@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .hero { padding-block: 46px 26px; }
  .dung-tich { grid-template-columns: repeat(3, 1fr); }
  .tt { grid-template-columns: 1fr; text-align: center; padding: 20px 16px; }
  .tt .anh img { max-height: 130px; }
  .luoi-2 { grid-template-columns: repeat(2, 1fr); }
  .tinh { grid-template-columns: repeat(3, 1fr); }
  footer .cot { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
  section { padding-block: 52px; }
  .btn-lon { width: auto; }
  body { padding-bottom: 0; }
  .thanh-dinh { display: none; }
}

@media print { .thanh-dinh, header.nav { display: none; } }
