:root {
  --ink: #1f1f1f;
  --muted: #5f5f5f;
  --dark: #2b2b2b;
  --red: #e5442f;
  --red-deep: #c82d1c;
  --orange: #ee7a2b;
  --yellow: #ffd23f;
  --gold: #f6a623;
  --line: #ececec;
  --soft: #fff6ef;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #e9e9e9;
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
a { color: inherit; }

.page {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 200px;
  background: #fff;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 14px;
  background: var(--dark);
}
.topbar .brand {
  margin: 0;
  color: var(--gold);
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}
.pill {
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6b57, var(--red-deep));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(200, 45, 28, 0.35);
  white-space: nowrap;
}

.hero {
  position: relative;
  padding: 18px 16px 8px;
  text-align: center;
}
.hero h1 {
  color: var(--red);
  font-size: 23px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}
.brush {
  display: inline-block;
  margin: 12px 0 0;
  padding: 6px 18px;
  background: var(--yellow);
  border-radius: 40% 8px 36% 10px / 18px 40% 12px 30%;
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  transform: rotate(-1deg);
}
.deal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
.ribbon { margin: 0; text-align: left; }
.ribbon span {
  display: block;
  width: max-content;
  padding: 3px 26px 3px 22px;
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  clip-path: polygon(8% 0, 100% 0, 94% 100%, 0 100%);
}
.ribbon span:first-child { background: var(--dark); color: #fff; }
.ribbon span:last-child { margin-left: 14px; background: #dedede; color: var(--ink); }
.off { margin: 0; text-align: right; line-height: 0.9; }
.off b {
  display: block;
  color: var(--orange);
  font-size: 72px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -2px;
}
.off small { font-size: 44px; }
.off span { color: #6b5c55; font-size: 22px; font-weight: 800; }
.unit {
  margin: 14px 0 0;
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  text-shadow: 2px 2px 0 #d6d6d6;
}
.unit span { font-size: 20px; }
.motto {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}

.cta, .buy {
  display: block;
  width: calc(100% - 64px);
  margin: 18px auto;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7b66, var(--red-deep));
  color: #fff;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  font-style: italic;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(200, 45, 28, 0.35);
  cursor: pointer;
  animation: pulse 1.8s ease-in-out infinite;
}
.buy:disabled { opacity: 0.7; animation: none; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.gallery { padding: 8px 12px 0; }
.gallery-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.gallery-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}
.gallery-track figure { flex: 0 0 100%; min-width: 100%; margin: 0; }
.gallery-track img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.gallery-nav.prev { left: 8px; }
.gallery-nav.next { right: 8px; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d0d0d0;
  cursor: pointer;
}
.gallery-dots button.on { width: 18px; background: var(--red); }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
}
.gallery-thumbs button.on { border-color: var(--red); }
.gallery-thumbs img { aspect-ratio: 1; object-fit: cover; }

.card {
  margin: 0 12px 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--soft);
  box-shadow: var(--shadow);
}
.card h2, .intro h2, .reasons h2, .pricing h2, .comments h2, .commit h2 {
  color: var(--red);
  font-size: 19px;
  font-weight: 800;
  font-style: italic;
  text-align: center;
  text-transform: uppercase;
}
.specs ul { margin: 12px 0 0; padding: 0; list-style: none; }
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #e4cfc0;
  font-size: 14px;
}
.specs li b { text-align: right; }
.thanks-deal {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.thanks-deal strong { color: var(--red); font-size: 16px; }

.intro, .reasons { padding: 4px 16px; }
.intro p { margin: 12px 0; text-align: justify; }
.intro img, .reasons img, .benefits img { margin: 12px 0; border-radius: 12px; }
.reasons h3 {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 700;
}
.reasons h3 span {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
}
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.photo-grid img { margin: 0; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

.checks { margin: 0; padding: 0; list-style: none; }
.checks li {
  position: relative;
  margin: 8px 0;
  padding-left: 28px;
  font-weight: 600;
}
.checks li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2fae4f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.benefits h2 { margin-top: 14px; font-size: 16px; }

.pricing { padding: 18px 14px; background: var(--dark); color: #fff; }
.pricing h2 { color: var(--yellow); }
.pricing-sub { margin: 4px 0 0; font-weight: 700; font-style: italic; text-align: center; }
.warranty {
  width: max-content;
  margin: 12px auto 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--red);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
.price-list { display: grid; gap: 10px; }
.price-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.price-item:active { transform: scale(0.98); }
.price-item b { font-size: 17px; font-weight: 800; }
.price-item strong { color: var(--red); font-size: 19px; font-weight: 800; text-align: right; }
.price-item span { grid-column: 2; color: var(--muted); font-size: 12px; font-weight: 600; text-align: right; }
.price-item small { grid-column: 1; grid-row: 2; color: #2b8a3e; font-size: 12px; font-weight: 700; }
.price-item.hot { box-shadow: inset 0 0 0 2px var(--yellow); }
.price-item.hot::after {
  content: "Phổ biến";
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}
.policy { margin-top: 16px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.policy h3 { margin-bottom: 6px; color: var(--yellow); font-size: 16px; font-weight: 800; text-transform: uppercase; }

.order {
  margin: 18px 12px;
  padding: 18px 14px 6px;
  border: 2px solid var(--red);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff3ec, #fff);
  text-align: center;
  scroll-margin-top: 64px;
}
.order h2 {
  color: var(--red);
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}
.order-price { margin: 6px 0 0; font-weight: 700; }
.order-price strong { color: var(--red); font-size: 22px; }
.order-sub { margin: 8px 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.countdown { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.countdown div {
  width: 56px;
  padding: 6px 0 4px;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
}
.countdown b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.countdown span { font-size: 10px; font-weight: 600; text-transform: uppercase; opacity: 0.8; }
.order-form { text-align: left; }
.field { margin-bottom: 10px; }
.field input, .field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}
.field select {
  padding-right: 36px;
  font-size: 14px;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23c82d1c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.field input:focus, .field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 68, 47, 0.15); }
.err { margin: 4px 2px 0; color: var(--red-deep); font-size: 12px; font-weight: 700; }
.form-error {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fde8e5;
  color: var(--red-deep);
  font-size: 13px;
  font-weight: 700;
}
.order .buy { width: 100%; margin: 6px 0 8px; font-size: 17px; }
.reassure { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.success { padding: 10px 0 14px; text-align: center; }
.success h3 { color: #2b8a3e; }

.comments { padding: 8px 14px; }
.comments h2 { margin-bottom: 12px; }
.comment { display: grid; grid-template-columns: 44px 1fr; gap: 10px; margin-bottom: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.bubble { padding: 8px 12px; border-radius: 16px; background: #f0f2f5; }
.bubble h3 { color: #1b4f9c; font-size: 14px; font-weight: 700; }
.bubble p { margin: 2px 0 0; font-size: 14px; }
.comment-photo { width: 64%; margin-top: 8px; border-radius: 12px; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 4px 0 0 8px;
  color: #65676b;
  font-size: 12px;
  font-weight: 700;
}
.likes { display: inline-flex; gap: 4px; align-items: center; margin-left: auto; }
.likes img { width: 16px; height: 16px; }

.commit { padding: 18px 16px; background: var(--soft); }
.commit-sub { margin: 4px 0 12px; font-size: 13px; font-weight: 600; text-align: center; }
.commit-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}
.commit-item img { margin: 0 auto; }
.commit-item h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; }
.commit-item p { margin: 2px 0 0; font-size: 13px; }

.footer { padding: 20px 16px 24px; background: var(--dark); color: #ddd; text-align: center; }
.footer h2 { color: var(--gold); font-size: 18px; font-weight: 800; font-style: italic; text-transform: uppercase; }
.footer p { margin: 6px 0; font-size: 14px; }
.footer a { color: #fff; font-weight: 700; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin-top: 12px; }
.links button {
  padding: 0;
  border: 0;
  background: none;
  color: #bbb;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
}
.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 #d9d9d9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}
.dock-form input:focus, .dock-form select:focus { border-color: var(--red); }
.dock-form select {
  grid-column: 1 / -1;
  padding-right: 32px;
  font-size: 14px;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23c82d1c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.dock-form .span-2 { grid-column: 1 / -1; }
.dock-form .buy { grid-column: 1 / -1; width: 100%; height: 42px; margin: 0; padding: 0; border-radius: 10px; font-size: 15px; box-shadow: none; animation: 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 { margin: 2px 0; font-size: 13px; }

.thanks { padding: 20px 16px 30px; text-align: center; }
.thanks img { width: 70%; margin: 0 auto; border-radius: 16px; }
.mark {
  width: 56px;
  height: 56px;
  margin: -28px auto 8px;
  position: relative;
  border-radius: 50%;
  background: #2fae4f;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 56px;
}
.thanks h1 { color: var(--red); font-size: 22px; font-weight: 800; }
.thanks .code { font-size: 18px; font-weight: 800; }
.note { margin: 16px 0; padding: 12px; border-radius: 12px; background: var(--soft); }
.note p { margin: 4px 0; }

dialog {
  width: min(92vw, 400px);
  border: 0;
  border-radius: 16px;
  padding: 18px 16px 14px;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
dialog h3 { margin-bottom: 8px; color: var(--red); }
dialog p { margin: 0 0 8px; font-size: 14px; }
dialog button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .cta, .buy { animation: none; }
  html { scroll-behavior: auto; }
}
