* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; color: #333; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #ee4d2d; color: #fff; }
.btn-orange { background: linear-gradient(90deg,#ffb347,#ff7e2d); color: #fff; }

@keyframes pulse { 0%{transform:scale(1);} 50%{transform:scale(1.06);} 100%{transform:scale(1);} }
.pulse { animation: pulse 1.6s infinite; }

/* HERO */
.hero {
  background: url('https://w.ladicdn.com/s1440x572/69cb8a855aa6a800120c764e/hero-banner-20260427150326-yjv0y.png') center/cover no-repeat;
  min-height: 560px;
  display: flex;
  /* WHY: align-items: flex-end → nút MUA NGAY luôn xuống đáy banner, KHÔNG đè text background */
  align-items: flex-end;
}
.hero-overlay { width: 100%; }
.hero-text { text-align: center; padding: 0 20px 32px; }
/* WHY: ẩn overlay text TẤT CẢ size — background image đã có sẵn "Viên giặt 4 in 1"
   + "Sạch sâu - thơm lâu - tiện lợi", overlay duplicate text gây UX confusion.
   Trace: user feedback 2026-05-08 + 2 screenshot (770px + 1024px). */
.hero-title, .hero-sub { display: none; }

/* SECTION TITLES */
.section-title {
  text-align: center; font-size: 32px; font-weight: 800;
  color: #fff; padding: 40px 20px;
}
.section-title.left { color: #222; text-align: left; padding: 0 0 8px; }
.section-sub { color: #555; font-style: italic; margin-bottom: 30px; }
.highlight { color: #f08c2b; }

/* COMBO */
.combo { background: linear-gradient(90deg,#ee4d2d,#ffa726); padding: 40px 0 80px; }
.combo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.combo-item {
  background: #fff; border-radius: 12px; padding: 22px;
  text-align: center; position: relative; box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.combo-item img { margin: 10px auto; max-height: 220px; object-fit: contain; }
.combo-item h3 { color: #14377a; margin: 10px 0 4px; }
.badge {
  position: absolute; top: 14px; left: 14px;
  background: #e53935; color: #fff;
  padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 700;
}
.price { margin: 14px 0; }
.price-old { color: #888; text-decoration: line-through; margin-right: 10px; }
.price-new { color: #e53935; font-weight: 800; font-size: 20px; }

/* SHOWCASE */
.showcase img { width: 100%; }

/* TECH */
.tech { padding: 60px 0; background: #fff; }
.tech-grid {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px; align-items: center; margin-top: 40px;
}
.tech-item h4 { color: #f08c2b; margin-bottom: 8px; font-size: 20px; }
.tech-item.right { text-align: right; }
.tech-center { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; grid-row: span 2; }
.tech-center img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }

/* STEPS */
.steps { background: #f5f5f5; padding: 60px 0; }
.steps .section-title { color: #222; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.step-item { background: #fff; padding: 32px 24px; border-radius: 12px; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.step-num {
  font-size: 56px; font-weight: 800;
  background: linear-gradient(180deg,#ffb347,#ee4d2d);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.step-item h4 { color: #14377a; margin: 8px 0; font-size: 20px; }

/* CTA */
.cta-section { background: linear-gradient(90deg,#e53935,#ff8a3d); padding: 70px 20px; }
.cta-box {
  max-width: 1100px; margin: 0 auto;
  background: #ff7a2d; border: 3px solid #fcd34d;
  border-radius: 12px; padding: 40px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.cta-left h2 { color: #fff; font-size: 34px; margin-bottom: 12px; }
.cta-desc { color: #fff; font-style: italic; margin-bottom: 20px; }
.cta-price { background: #fff; display: inline-block; padding: 8px 20px; border-radius: 30px; margin-bottom: 20px; }
.cta-right { text-align: center; color: #fff; }
.cta-label { color: #fcd34d; margin-bottom: 10px; }
.countdown { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.cd-box {
  background: #fcd34d; color: #222; border-radius: 50%;
  width: 70px; height: 70px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; font-weight: 800;
}
.cd-box span { font-size: 22px; }
.cd-box small { font-size: 11px; font-weight: 600; }
.cta-img { width: 220px; margin: 0 auto; }

/* FOOTER */
.footer { background: #2f2f2f; color: #ddd; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding-bottom: 30px; }
.footer h3 { color: #fff; margin-bottom: 16px; }
.footer p, .footer li { margin-bottom: 10px; font-size: 14px; }
.copyright { text-align: center; padding: 20px; border-top: 1px solid #444; font-size: 13px; }

/* FLOATING CALL */
.float-call {
  position: fixed; bottom: 20px; left: 20px;
  background: #25D366; color: #fff;
  padding: 12px 18px; border-radius: 30px;
  font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.25); z-index: 999;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  /* WHY: hero overlay đã ẩn global, mobile chỉ cần giảm height + padding bottom nhỏ hơn */
  .hero { min-height: 420px; }
  .hero-text { padding: 0 20px 24px; }
  .combo-grid, .steps-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .cta-box { grid-template-columns: 1fr; padding: 24px; }
  .cta-left h2 { font-size: 24px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
}

/* ================================
   BUTTON override — combo buttons
   ================================ */
/* WHY: <button> mặc định có border/background khác <a>, reset về đồng nhất */
button.btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 1px;
}

/* ================================
   ORDER MODAL
   ================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

/* WHY: hidden attribute + flex → cần override display khi show */
.modal-overlay[hidden] { display: none !important; }

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 0 4px;
}
.modal-close:hover { color: #333; }

.modal-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #14377a;
  margin-bottom: 4px;
  padding: 0;
}

.modal-sub {
  text-align: center;
  color: #666;
  font-size: 13px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.req { color: #e53935; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff7e2d;
}

.form-group input.input-error,
.form-group select.input-error {
  border-color: #e53935;
}

.field-err {
  display: block;
  color: #e53935;
  font-size: 12px;
  margin-top: 3px;
  min-height: 16px;
}

.form-toast {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}
.form-toast[hidden] { display: none; }
.form-toast.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-toast.error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

.modal-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  margin-top: 4px;
}
.modal-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  animation: none;
  transform: none;
}

/* RESPONSIVE modal */
@media (max-width: 520px) {
  .modal-box {
    padding: 24px 16px 20px;
  }
  .modal-title { font-size: 18px; }
}