* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #FFF6E5; /* vàng nhạt toàn web */
  font-family: Arial, Helvetica, sans-serif;
  color: #4a2c1a; /* nâu đậm dễ đọc */
  text-align: center;
}

.hero {
  padding: 20px 15px 35px;
}

/* ===== SLIDER ===== */
.slider {
  max-width: 420px;
  margin: auto;
}

.slider-main {
  position: relative;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}

.slide.active {
  opacity: 1;
}

/* Mũi tên */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
}

.nav.prev { left: 10px; }
.nav.next { right: 10px; }

/* ===== THUMBNAILS ===== */
.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.thumb {
  width: 25%;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: .6;
  border: 2px solid transparent;
}

.thumb.active {
  opacity: 1;
  border-color: #ffeb3b;
}


/* ===== SECTION SALE ===== */
.sale-section {
  padding: 30px 15px;
  background: #FFF6E5;
}

.sale-box {
  max-width: 420px;
  margin: auto;
  background: #8b0000;
  border-radius: 18px;
  padding: 22px 18px 26px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  position: relative;
}

/* Title */
.sale-title {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 18px;
  color: #fff3d6;
}

/* Price box */
.sale-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 14px 12px;
  margin-bottom: 18px;
}

.sale-left {
  text-align: left;
  font-size: 13px;
  color: #000;
}

.sale-left .old {
  text-decoration: line-through;
  opacity: .7;
  display: block;
}

.sale-left .label {
  font-size: 12px;
}

.sale-center .new {
  font-size: 26px;
  font-weight: bold;
  color: #ffeb3b;
}

.sale-right {
  background: #ffd27d;
  color: #7a0000;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
}

/* ===== SHIP BADGE (ICON + TEXT) ===== */
.ship-fee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* icon */
.ship-fee img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  color: #835c21;
}

/* ===== CÓ PHÍ SHIP ===== */
.ship-fee.paid {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, 0.45);
}

/* ===== MIỄN PHÍ SHIP ===== */
.ship-fee.free {
  background: linear-gradient(180deg, #ffd27a, #ffb703);
  color: #7a0000;
  box-shadow: 0 2px 0 #c76a00;
}

/* ===== MOBILE TỐI ƯU ===== */
@media (max-width: 480px) {
  .ship-fee {
    font-size: 13px;
    padding: 4px 10px;
  }

  .ship-fee img {
    width: 32px;
    height: 32px;
  }
}

.sale-price:last-child {
  border: 2px solid #ffb703;
  box-shadow: 0 0 0 2px rgba(255,183,3,.25);
}

.ship-fee.free {
  animation: pulseShip 1.6s infinite;
}

@keyframes pulseShip {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Countdown */
.countdown-wrap {
  margin-bottom: 20px;
}

.countdown-text {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #fff3d6;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.time-box {
  background: #fff3d6;
  color: #7a0000;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-box .num {
  font-size: 18px;
  font-weight: bold;
}

/* Button */
.sale-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg,#ffb74d,#ff5722);
  padding: 14px 0;
  border-radius: 40px;
  color: #7a0000;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

.sale-btn:hover {
  transform: scale(1.03);
}


/* ===== CTA BUTTON EFFECT ===== */
.btn-buy,
.sale-btn {
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
}

/* Hiệu ứng pulse nhẹ */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255,152,0,.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255,152,0,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,152,0,0);
  }
}

/* Hiệu ứng ánh sáng chạy */
.btn-buy::before,
.sale-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.6),
    transparent
  );
  transform: skewX(-25deg);
}

/* Khi hover */
.btn-buy:hover,
.sale-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.btn-buy:hover::before,
.sale-btn:hover::before {
  animation: shine 1s;
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

/* ===== SECTION 3: BENEFIT ===== */
.benefit-section {
  background: #FFF6E5; /* vàng nhạt đồng bộ toàn web */
  padding: 35px 18px 40px;
}

.benefit-title {
  font-size: 22px;
  color: #8B4513; /* nâu cam */
  margin-bottom: 20px;
  line-height: 1.4;
  font-weight: bold;
}

.benefit-list {
  max-width: 420px;
  margin: auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.benefit-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #4a2c1a;
}

/* icon dấu đầu dòng */
.benefit-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  color: #ff9800;
  font-weight: bold;
}

/* =========================
   SECTION 4 – CAM KẾT
========================= */

.commit-section {
  padding: 0px 16px;
  max-width: 1100px;
  margin: auto;
}

/* ẢNH SẢN PHẨM */
.commit-image {
  max-width: 520px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.commit-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* LIST CAM KẾT */
.commit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* ITEM */
.commit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: all 0.3s ease;
}

/* ICON */
.commit-icon {
  min-width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(200, 0, 0, 0.18);
  animation: pulseIcon 2.5s infinite;
}

.commit-icon img {
  width: 26px;
  transition: transform 0.3s ease;
}

/* TEXT */
.commit-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.commit-item strong {
  font-size: 16px;
  color: #8b0000;
}

/* HOVER */
.commit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,.15);
}

.commit-item:hover .commit-icon {
  background: #ffe3e3;
  box-shadow: 0 10px 26px rgba(200, 0, 0, 0.3);
}

.commit-item:hover .commit-icon img {
  transform: scale(1.15) rotate(-6deg);
}

/* =========================
   DESKTOP ≥ 768px
========================= */
@media (min-width: 768px) {
  .commit-section {
    padding: 80px 20px;
  }

  .commit-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .commit-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .commit-icon {
    margin-bottom: 10px;
  }
}

/* =========================
   ANIMATION
========================= */
@keyframes pulseIcon {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(200, 0, 0, 0.25);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 14px rgba(200, 0, 0, 0);
  }
  100% {
    transform: scale(1);
  }
}


/* ===== SECTION FORM ===== */
.order-section {
  max-width: 420px;
  margin: 40px auto;
  padding: 10px;
  background: linear-gradient(180deg, #8b0000, #b30000);
  border-radius: 12px;
  color: #fff;
  text-align: center;
}

/* ===== TITLE ===== */
.order-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.order-title span {
  font-size: 15px;
  font-weight: normal;
}

/* ===== SUB ===== */
.order-sub {
  border: 1px solid #ffd6a0;
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 14px;
  margin-bottom: 16px;
  display: inline-block;
}

/* ===== FORM ===== */
.order-form input,
.order-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 14px;
}

/* ===== ROW SELECT ===== */
.order-form .row {
  display: flex;
  gap: 6px;
}

.order-form .row select {
  flex: 1;
}

/* ===== BUTTON ===== */
.btn-buy {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #7a2d00;
  background: linear-gradient(180deg, #ffd27a, #ff9f1c);
  cursor: pointer;

  /* hiệu ứng */
  box-shadow: 0 6px 0 #c76a00;
  transition: all 0.2s ease;
}

/* hover */
.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.3);
}

/* click */
.btn-buy:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #c76a00;
}

/* ===== NOTE ===== */
.order-note {
  margin-top: 14px;
  background: #fff;
  color: #8b0000;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.btn-buy {
  position: relative;
  overflow: hidden;
}

.btn-loading {
  display: none;
}

/* khi đang gửi */
.btn-buy.loading {
  background: #f58a33;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-buy.loading .btn-text {
  display: none;
}

.btn-buy.loading .btn-loading {
  display: inline-block;
  animation: pulseText 1s infinite;
}

/* animation chữ */
@keyframes pulseText {
  0% { opacity: 1; }
  50% { opacity: .4; }
  100% { opacity: 1; }
}

/* ===== REVIEW SECTION ===== */
.review-section {
  background: #fff8e6;
  padding: 0px 16px;
}

.review-title {
  text-align: center;
  font-size: 24px;
  color: #7a2d00;
  margin-bottom: 30px;
  font-weight: bold;
}

.review-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.score {
  text-align: center;
  min-width: 160px;
}

.score-number {
  font-size: 48px;
  font-weight: bold;
  color: #ff9f1c;
}

.score-max {
  font-size: 20px;
  color: #999;
}

.stars {
  color: #ffc107;
  font-size: 20px;
  margin: 6px 0;
}

.rating-bars {
  flex: 1;
  max-width: 420px;
}

.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

.progress {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: #ff9f1c;
}

/* review list */
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.review-item {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform .2s ease;
}

.review-item:hover {
  transform: translateY(-4px);
}

.review-stars {
  color: #ffc107;
  margin-bottom: 6px;
}

.review-text {
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
}

.review-name {
  font-size: 13px;
  color: #777;
}

/*==== reveivew section responsive ====*/
.review-social {
  background: #fff8e6;
  padding: 20px;
}

/* Card */
.review-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* User */
.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-user img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.review-stars {
  color: #ffc107;
  font-size: 14px;
}

/* Content */
.review-content {
  font-size: 14px;
  color: #444;
  margin: 10px 0;
  line-height: 1.5;
}

/* Media */
.review-media {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.review-media img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
}

/* Footer */
.review-footer {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #888;
}

.review-footer .like {
  cursor: pointer;
}

/* ===== REVIEW HEADER ===== */
.review-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* căn trái */
  gap: 10px;
  margin-bottom: 16px;
}

.review-header h3 {
  font-size: 18px;
  color: #7a2d00;
  margin: 0;
}

.review-header h3 span {
  font-weight: normal;
  color: #888;
}

/* filter cùng 1 hàng */
.review-filter {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap; /* cùng 1 hàng */
  overflow-x: auto;  /* mobile kéo ngang */
  width: 100%;
}

/* ẩn thanh scroll xấu */
.review-filter::-webkit-scrollbar {
  display: none;
}

/* nút filter */
.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;

  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
  color: #333;
  white-space: nowrap;
}

/* icon ảnh */
.filter-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

/* số lượng */
.filter-btn span {
  color: #777;
  font-size: 12px;
}

/* active */
.filter-btn.active {
  border-color: #ff9f1c;
  background: #fff3d6;
  color: #c76a00;
  font-weight: 600;
}

/* hover */
.filter-btn:hover {
  background: #fff8e6;
  border-color: #ff9f1c;
}

/* ===== Footer ===== */
/* ===== FOOTER ===== */
.trust-footer {
  background: #7b0d0d; /* đỏ mận / đỏ sẫm – hợp mứt */
  padding: 24px 16px;
  color: #fff;
  font-size: 14px;
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: left; /* căn lề trái */
}

/* Tên shop */
.shop-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 14px;
  color: #ffd27a; /* vàng nhạt */
}

/* từng dòng info */
.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ICON */
.footer-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;

  /* đổi icon sang vàng nhạt */
  filter: brightness(0) saturate(100%)
          invert(84%) sepia(38%)
          saturate(459%) hue-rotate(2deg)
          brightness(103%) contrast(96%);
  flex-shrink: 0;
  margin-top: 2px;
}

/* chữ nhấn */
.footer-item strong {
  font-weight: 600;
  color: #fff;
}

/* mobile tối ưu */
@media (max-width: 480px) {
  .shop-name {
    font-size: 16px;
  }
  .trust-footer {
    font-size: 13px;
  }
}

/* ===== SECTION MÔ TẢ ===== */
.product-desc {
  padding: 40px 16px;
  background: #fff7e6;
}

/* Tiêu đề */
.desc-title {
  font-size: 22px;
  font-weight: 800;
  color: #8b0000;
  margin-bottom: 18px;
  text-align: left;
}

/* ===== LIST MÔ TẢ ===== */
.product-desc {
  padding: 20px 16px;
  background: #fff7e6;

  /* FIX LÕI FONT */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  text-align: left;
}

.desc-title {
  font-size: 22px;
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 18px;

  text-align: left;
  letter-spacing: 0.3px;
}

.desc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.desc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  font-size: 15px;
  line-height: 1.6;
  color: #2f2f2f;

  text-align: left;
}


/* icon cà rốt */
.desc-list li img {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* chữ đậm */
.desc-list li strong {
  color: #8b0000;
  margin-right: 4px;
}

/* ===== KHUNG ẢNH ===== */
.desc-images {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Frame */
.img-frame {
  position: relative;
  width: 260px;
  padding: 10px;
  background: linear-gradient(180deg, #ffd27a, #ffb703);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

/* lớp nền trong */
.img-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: #fff;
  border-radius: 18px;
  z-index: 0;
}

/* ảnh */
.img-frame img {
  position: relative;
  width: 100%;
  display: block;
  border-radius: 16px;
  z-index: 1;
}

/* hover nhẹ */
.img-frame:hover {
  transform: translateY(-6px);
  transition: .3s ease;
}

