:root {
  --gold-100: #fff8df;
  --gold-200: #ffefb0;
  --gold-300: #ffe07a;
  --gold-400: #fccb35;
  --gold-500: #f4b30c;
  --red-500: #d0231a;
  --red-700: #a3140e;
  --red-900: #6d0e0a;
  --paper: #fffdf3;
  --ink: #33200f;
  --ink-soft: #75593a;
  --line: #f4e3ad;
  --gradient: linear-gradient(90deg, var(--red-700), var(--red-500) 55%, #e8591b);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 14px/1.55 "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--red-500); outline-offset: 2px; }

/* Cột mobile, trên desktop chỉ căn giữa */
.page {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--gold-100);
  box-shadow: 0 0 24px rgb(0 0 0 / 10%);
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 12px 20px;
  overflow: hidden;
  border: 2px solid var(--gold-400);
  border-radius: 999px;
  font: 800 16px/1.2 "Be Vietnam Pro", system-ui, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 2px rgb(109 14 10 / 70%);
  color: #fff3b8;
  background: linear-gradient(180deg, #f0432f, var(--red-500) 48%, var(--red-700));
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 28%), 0 8px 16px rgb(163 20 14 / 38%);
  cursor: pointer;
  animation: zoom 1.6s ease-in-out infinite;
}
/* Hoa mai trước chữ */
.btn::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background: url("../assets/decor/hoa-mai.svg") center / contain no-repeat;
}
/* Vệt sáng lướt qua nút */
.btn::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -30%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 45%), transparent);
  transform: skewX(-22deg);
  animation: shine 3.6s ease-in-out infinite;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { filter: brightness(.94); }
.btn--ghost {
  border-color: var(--red-500);
  text-shadow: none;
  color: var(--red-700);
  background: var(--paper);
  box-shadow: none;
}
.btn--ghost::before, .btn--ghost::after { display: none; }

@keyframes zoom {
  50% { transform: scale(1.06); }
}

@keyframes shine {
  0%, 55% { left: -30%; }
  100% { left: 115%; }
}

/* Banner */
.hero { position: relative; }
.hero img { width: 100%; }
.hero__cta {
  position: absolute;
  left: 11%;
  bottom: 3.5%;
  width: 78%;
}

/* Slider ảnh */
.slider { position: relative; background: var(--paper); }
.slider__track {
  display: flex;
  overflow-x: auto;
  aspect-ratio: 1;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom; /* giữ chậu và gốc cây trong khung vuông */
}
.slider__img--center { object-position: center !important; }
.slider__slide figcaption {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: rgb(51 32 15 / 68%);
}
.slider__arrow {
  position: absolute;
  top: calc((100% - 76px) / 2);
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: rgb(51 32 15 / 52%);
  cursor: pointer;
}
.slider__arrow--prev { left: 10px; }
.slider__arrow--next { right: 10px; }
.slider__count {
  position: absolute;
  right: 10px;
  bottom: 86px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  background: rgb(51 32 15 / 68%);
}
.slider__thumbs {
  display: flex;
  gap: 6px;
  height: 76px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.slider__thumbs::-webkit-scrollbar { display: none; }
.slider__thumbs button {
  flex: 0 0 60px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.slider__thumbs .is-active { border-color: var(--red-500); }
.slider__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Thanh giá */
.pricebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  color: #fff6d2;
  background: var(--gradient);
}
.pricebar__price strong { font-size: 25px; font-weight: 800; line-height: 1; color: var(--gold-300); }
.pricebar__price span { font-weight: 600; }
.pricebar__timer { text-align: right; font-size: 12px; line-height: 1.35; }
.pricebar__timer span, .pricebar__timer b { display: block; }
.pricebar__timer b { font-size: 14px; font-weight: 700; }
.pricebar__timer i { font-style: normal; }

/* Thông tin sản phẩm */
.info { padding: 14px; background: var(--paper); }
.info h1 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.info__sub { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink-soft); }
.info__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.info__tags li {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red-700);
  background: #ffefc2;
}
.info__rows { margin-top: 12px; }
.info__rows div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.info__rows dt { color: var(--ink-soft); }
.info .btn { margin-top: 8px; }

.video { background: var(--paper); }
.video__title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 14px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--red-700);
}
.video__title::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: url("../assets/decor/hoa-mai.svg") center / contain no-repeat;
}
.video__slider { position: relative; }
.video__row {
  display: flex;
  gap: 10px;
  padding: 10px 14px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 14px;
  scrollbar-width: none;
  cursor: grab;
}
.video__row::-webkit-scrollbar { display: none; }
/* Tắt snap khi đang kéo để hàng video bám theo chuột */
.video__row.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.video__row .lyt-playbtn { cursor: inherit; }
.video__arrow { top: calc(50% - 16px); }
.video__arrow--prev { left: 18px; }
.video__arrow--next { right: 18px; }
.video__row figure { flex: 0 0 88%; scroll-snap-align: start; }
.video__row figcaption { margin-top: 6px; font-weight: 600; text-align: center; }
.video__row lite-youtube { border-radius: 12px; }
/* Video khổ 1080x1346, thư viện mặc định 16:9 */
.video__row lite-youtube::after { padding-bottom: calc(100% * 1346 / 1080); }

/* Thanh đếm ngược */
.timerbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  font-weight: 600;
  color: #fff6d2;
  background: var(--red-900);
}
.timerbar ul { display: flex; gap: 8px; font-size: 11px; font-weight: 500; }
.timerbar b {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red-900);
  background: var(--gold-400);
}

/* Form đặt hàng */
.order {
  padding: 18px 12px 24px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-200));
}
.order__card {
  overflow: hidden;
  border: 2px solid var(--red-500);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 8px 26px rgb(163 20 14 / 22%);
}
.order__head {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  text-align: center;
  color: #fff6d2;
  background: var(--gradient);
}
.order__branch {
  position: absolute;
  top: -6px;
  left: -14px;
  width: 150px;
  opacity: .92;
  pointer-events: none;
}
.order__lantern {
  position: absolute;
  top: -8px;
  right: 8px;
  width: 30px;
  pointer-events: none;
}
.order__pill {
  position: relative;
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red-700);
  background: var(--paper);
}
.order__head h2 {
  position: relative;
  margin-top: 6px;
  font: 700 30px/1.25 "Dancing Script", cursive;
  color: var(--gold-300);
}
.order__head p { position: relative; font-weight: 500; }
.order__body { padding: 14px; }
.order__body fieldset + fieldset { margin-top: 14px; }
.order__body legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0;
  font-size: 15.5px;
  font-weight: 700;
}
.order__body legend i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  font-style: normal;
  color: #fff6d2;
  background: var(--red-500);
}
.order__body legend small { font-size: 12px; font-weight: 400; color: var(--ink-soft); }

.input {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: 8px;
  padding: 0 14px;
  border: 1px solid #e7d6a4;
  border-radius: 12px;
  font: 400 16px "Be Vietnam Pro", system-ui, sans-serif; /* 16px để iOS không tự zoom */
  color: var(--ink);
  background: #fff9e6;
}
.input:focus { outline: 0; border-color: var(--red-500); background: #fff; }
.input::placeholder { color: #8d7555; }
/* Ô bẫy bot, người dùng không nhìn thấy */
.order__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.opt { position: relative; display: block; margin-bottom: 8px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 9px 13px;
  border: 1px solid #e7d6a4;
  border-radius: 12px;
  background: var(--paper);
}
.opt__box b { display: block; font-size: 14.5px; font-weight: 600; }
.opt__box small { display: block; font-size: 12px; color: var(--ink-soft); }
.opt__box em {
  flex: none;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  color: var(--red-500);
}
.opt input:checked + .opt__box {
  border-color: var(--red-500);
  background: #fff1c9;
  box-shadow: 0 0 0 1px var(--red-500);
}
.opt input:focus-visible + .opt__box { outline: 3px solid var(--ink); outline-offset: 2px; }

.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 12px;
  padding: 11px 14px;
  border: 1px dashed var(--red-500);
  border-radius: 12px;
  font-weight: 600;
  background: #fff1c9;
}
.total strong { font-size: 21px; font-weight: 800; color: var(--red-500); }
.order__trust { margin-top: 10px; font-size: 12.5px; text-align: center; color: var(--ink-soft); }

/* Thẻ nội dung */
.card {
  margin-top: 8px;
  padding: 16px 14px;
  background: var(--paper);
}
.card h2 {
  display: flex;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--red-700);
}
.card h2::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: url("../assets/decor/hoa-mai.svg") center / contain no-repeat;
}
.card__sub { margin-top: 6px; color: var(--ink-soft); }
.card > .btn { margin-top: 14px; }

.why { margin-top: 12px; display: grid; gap: 12px; }
.why li { display: flex; gap: 12px; }
.why li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold-200);
}
.why h3 { font-size: 14.5px; font-weight: 600; }
.why p { font-size: 13px; color: var(--ink-soft); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.stats div {
  padding: 10px 8px;
  border-radius: 10px;
  text-align: center;
  background: var(--gold-200);
}
.stats dt { font-size: 21px; font-weight: 800; line-height: 1.3; color: var(--red-500); }
.stats dd { font-size: 12.5px; color: var(--ink-soft); }

.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.photos img {
  width: 100%;
  height: 196px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 85%;
}
.photos .photos__wide { grid-column: 1 / -1; height: 230px; }

.usp { display: grid; gap: 6px; margin-top: 12px; font-size: 13.5px; }
.usp li { display: flex; gap: 8px; }
.usp img { flex: none; margin-top: 1px; }

.faq { margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 11px 0; font-weight: 600; cursor: pointer; }
.faq details p { padding-bottom: 12px; color: var(--ink-soft); }

.footer {
  margin-top: 8px;
  padding: 16px 14px 22px;
  font-size: 13px;
  color: #ffe9a8;
  background: var(--red-900);
}
.footer h3 { font: 700 24px/1.3 "Dancing Script", cursive; color: var(--gold-300); }

/* Hộp xác nhận đơn */
.confirm {
  width: min(92vw, 390px);
  padding: 20px 16px 16px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: var(--gold-100);
  box-shadow: 0 0 0 3px var(--gold-500);
}
.confirm::backdrop { background: rgb(51 32 15 / 62%); }
.confirm h2 { font-size: 19px; color: var(--red-700); }
.confirm p { margin-top: 2px; color: var(--ink-soft); }
.confirm textarea {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 9px 11px;
  border: 1px solid var(--gold-400);
  border-radius: 12px;
  font: 400 13px/1.5 "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  resize: none;
}
.confirm .btn { animation: none; }
.confirm .btn + .btn { margin-top: 8px; }
.confirm__done { margin-top: 14px; }
.confirm__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-soft);
  background: none;
  cursor: pointer;
}

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