:root {
  --green: #1c6b38;
  --green-dark: #123f22;
  --green-deep: #0c2e18;
  --leaf: #e8f5df;
  --cream: #f6f3ea;
  --gold: #e2b12d;
  --gold-deep: #a97812;
  --red: #d23a32;
  --ink: #1a241c;
  --muted: #5e6b61;
  --line: #e4eadf;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(18, 63, 34, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -10%, #d7ecc8 0%, transparent 55%),
    #dfe8d6;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
a { color: inherit; }

.page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(18, 63, 34, 0.06), 0 24px 80px rgba(18, 63, 34, 0.12);
  padding-bottom: calc(236px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #f3fbe9 0%, #e5f4d8 100%);
  border-bottom: 1px solid #cfe3c0;
}
.topbar p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.25;
}

.countdown {
  display: flex;
  gap: 5px;
}
.countdown b {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 32px;
  padding: 0 4px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #1c241c;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.countdown span {
  display: block;
  margin-top: 2px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

.hero { position: relative; }
.hero img { width: 100%; height: auto; }

.price {
  position: relative;
  margin: -28px 14px 0;
  padding: 16px 16px 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.price .leaf {
  position: absolute;
  width: 92px;
  pointer-events: none;
  opacity: 0.55;
}
.price .leaf.left { left: -24px; bottom: -18px; transform: rotate(-18deg); }
.price .leaf.right { right: -28px; top: -20px; width: 78px; transform: rotate(24deg); }
.price h1 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--green-deep);
}
.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.save {
  display: inline-flex;
  margin: 8px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff4d4;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
}
.old {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.old s { color: #8a938c; }
.now {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.now strong {
  font-size: 36px;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.03em;
}
.badge-off {
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  transform: rotate(-6deg);
}
.tagline {
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--green-dark);
}

.section { padding: 22px 16px; }
.section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--green-deep);
}
.section h2 span { display: block; font-size: 13px; font-weight: 600; color: var(--green); letter-spacing: 0.04em; }

.gallery-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.gallery-track {
  display: flex;
  width: 100%;
  min-width: 0;
  transition: transform 0.35s ease;
}
.gallery-track figure {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
}
.gallery-track img { width: 100%; height: 320px; object-fit: cover; }
.gallery-track figcaption {
  padding: 8px 44px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.gallery-nav {
  position: absolute;
  top: 148px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-dark);
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(18, 63, 34, 0.18);
  cursor: pointer;
}
.gallery-nav.prev { left: 8px; }
.gallery-nav.next { right: 8px; }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c5d4bc;
  cursor: pointer;
}
.gallery-dots button.on {
  width: 18px;
  background: var(--green);
}

.info {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.info ul { margin: 0; padding: 0; list-style: none; }
.info li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.info li:last-child { border-bottom: 0; }
.info li b { color: var(--green-dark); }

.checks {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--leaf);
  font-size: 13.5px;
  font-weight: 600;
}

.order {
  scroll-margin-top: 72px;
  margin: 8px 12px 4px;
  padding: 16px 14px 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.96)),
    url("leaf-1.png") right -30px top -20px / 140px no-repeat,
    #fff;
  border: 1px solid #d7e7cc;
  box-shadow: var(--shadow);
}
.order h2 { margin: 0; font-size: 20px; text-align: center; color: var(--green-deep); }
.order .sub {
  margin: 4px 0 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.gold-box {
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 14px;
  background: #123f22;
  color: #fff;
  text-align: center;
}
.gold-box p { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.gold-box .countdown b { background: #fff; color: #123f22; }
.gold-box .countdown span { color: #d5e8cb; }
.gold-box .countdown { justify-content: center; }

.field { margin-bottom: 10px; }
.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #d5dece;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(28, 107, 56, 0.12); }
.field .err { margin: 4px 2px 0; color: var(--red); font-size: 12px; font-weight: 600; }

.packs { display: grid; gap: 8px; margin: 4px 0 12px; padding-top: 8px; }
.pack {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1.5px solid #d5dece;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.pack input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; }
.pack b { display: block; font-size: 14px; }
.pack small { color: var(--muted); font-size: 12px; }
.pack em {
  font-style: normal;
  font-weight: 800;
  color: var(--green-dark);
  font-size: 13px;
}
.pack:has(input:checked) {
  border-color: var(--green);
  background: #f3fbf1;
  box-shadow: inset 0 0 0 1px var(--green);
}
.pack.hot { position: relative; }
.pack.hot::after {
  content: "Phổ biến";
  position: absolute;
  top: -8px;
  right: 10px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #3d2a04;
  font-size: 10px;
  font-weight: 800;
}

.buy {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #2e8a4b, #1c6b38);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(28, 107, 56, 0.28);
  cursor: pointer;
}
.buy:disabled { opacity: 0.7; cursor: progress; }
.buy:active { transform: translateY(1px); }
.reassure {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.form-error {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fdeceb;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}
.success {
  padding: 18px 8px 8px;
  text-align: center;
}
.success h3 { margin: 0 0 6px; color: var(--green-dark); font-size: 22px; }
.success p { margin: 0; color: var(--muted); }

.page.plain { padding-bottom: 28px; }
.thanks {
  padding: 22px 18px 36px;
  text-align: center;
}
.thanks img {
  width: min(100%, 220px);
  margin: 8px auto 0;
  border-radius: 18px;
}
.thanks .mark {
  width: 64px;
  height: 64px;
  margin: -28px auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f6dc;
  border: 4px solid var(--cream);
  color: var(--green);
  font-size: 32px;
  font-weight: 800;
}
.thanks h1 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--green-dark);
}
.thanks p { margin: 0 0 8px; color: var(--muted); }
.thanks .code {
  display: inline-block;
  margin: 4px 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}
.thanks .note {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  text-align: left;
}
.thanks .note p { margin: 0 0 6px; }
.thanks .note p:last-child { margin: 0; }
.thanks a.buy {
  display: grid;
  place-items: center;
  margin-top: 18px;
  text-decoration: none;
}

.poster { display: block; width: 100%; height: auto; }
.band {
  padding: 18px 16px 8px;
  background: #fff;
}
.band h2 { margin-bottom: 4px; }

.benefits {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
  background: #fff;
}
.benefit {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--cream);
}
.benefit i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-style: normal;
  font-size: 18px;
}
.benefit b { display: block; font-size: 14px; }
.benefit span { font-size: 12px; color: var(--muted); }

.cert {
  margin: 0 16px 8px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.cert img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.side-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 14px 0 0;
  border-radius: 16px;
  object-fit: contain;
}
.cert figcaption {
  padding: 10px 12px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--green-dark);
}

.reviews { background: #fff; }
.score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.score strong { font-size: 28px; color: var(--green-dark); line-height: 1; }
.stars { color: #e2b12d; letter-spacing: 2px; font-size: 14px; }
.review {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.review b { font-size: 14px; }
.review p { margin: 2px 0 0; font-size: 13.5px; color: #314036; }
.review-photo {
  grid-column: 2;
  width: 148px;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}
.more { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--green); }

.footer {
  position: relative;
  margin-top: 8px;
  padding: 28px 16px 20px;
  color: #f4f7f2;
  background:
    linear-gradient(180deg, rgba(12, 46, 24, 0.88), rgba(8, 24, 14, 0.92)),
    url("footer-banner.jpg") center / cover;
}
.footer h3 { margin: 0 0 8px; font-size: 16px; }
.footer p { margin: 0 0 6px; font-size: 13px; }
.footer a { text-decoration: none; }
.links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; }
.links button {
  padding: 0;
  border: 0;
  background: none;
  color: #d7ebc8;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: min(100%, 430px);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(255, 253, 248, 0.98);
  border-top: 1px solid #d7e3cc;
  box-shadow: 0 -10px 28px rgba(18, 63, 34, 0.12);
  backdrop-filter: blur(10px);
}
.dock-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.dock-form input,
.dock-form select {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 1.5px solid #d5dece;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.dock-form select {
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 700;
}
.dock-form .span-2 { grid-column: 1 / -1; }
.dock-form .buy {
  grid-column: 1 / -1;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: none;
}
.dock-form .form-error { grid-column: 1 / -1; margin: 0; padding: 6px 8px; }
.dock .success { padding: 6px 4px 2px; }
.dock .success h3 { font-size: 16px; }
.dock .success p { font-size: 13px; }

.toast {
  position: fixed;
  top: calc(62px + env(safe-area-inset-top));
  left: max(10px, calc(50% - 205px));
  z-index: 35;
  display: flex;
  gap: 8px;
  align-items: center;
  width: min(78%, 250px);
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.toast p { margin: 0; font-size: 12px; }
.toast b { color: var(--green-dark); }

dialog {
  width: min(92vw, 400px);
  border: 0;
  border-radius: 18px;
  padding: 18px 16px 14px;
}
dialog::backdrop { background: rgba(12, 30, 16, 0.45); }
dialog h3 { margin: 0 0 8px; }
dialog p { margin: 0 0 8px; font-size: 14px; color: #314036; }
dialog button {
  margin-top: 6px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
