/* Khuyến mãi theo mùa — chỉ có tác dụng khi promo.js bật (html.promo-on). */

/* ---------- Ảnh lớn tự chuyển ---------- */
.hero-slides { position: relative; display: grid; }
.hero-slides > .hero { grid-area: 1 / 1; transition: opacity .7s ease, visibility .7s; }
.hero-slides > .hero:not(.is-active) { opacity: 0; visibility: hidden; }
.hero-dots { position: absolute; z-index: 5; left: 30px; bottom: 14px; display: flex; gap: 6px; }
.hero-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(142, 27, 43, .25);
  transition: width .3s, background .3s;
}
.hero-dots button[aria-current="true"] { width: 26px; background: var(--wine); }
.hero-slides.on-promo .hero-dots button { background: rgba(255, 255, 255, .35); }
.hero-slides.on-promo .hero-dots button[aria-current="true"] { background: #ffd27a; }

.hero-promo {
  color: #fff;
  background:
    radial-gradient(520px 280px at 78% 18%, rgba(255, 196, 120, .26), transparent 62%),
    radial-gradient(380px 260px at 0% 100%, rgba(0, 0, 0, .35), transparent 70%),
    linear-gradient(120deg, #3a0811 0%, var(--wine) 52%, #5e0f1c 100%);
}
.hero-promo::before { border-color: rgba(255, 214, 160, .35); box-shadow: 0 0 60px 6px rgba(255, 200, 140, .12); }
.promo-decor { position: absolute; z-index: 1; top: 0; right: 0; width: 64%; height: 100%; pointer-events: none; }
.hero-promo .eyebrow { color: #ffd9a0; }
.hero-promo .hero-copy { width: 52%; }
.hero-promo h2 { margin-top: 8px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.04; font-weight: 900; letter-spacing: -.03em; text-shadow: 0 4px 22px rgba(0, 0, 0, .25); }
.promo-highlight { margin-top: 12px; font-family: var(--display); font-size: 15px; font-weight: 700; color: #f6dfe3; }
.promo-highlight strong {
  display: block; margin-top: 2px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff1c4, #f0b44a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-promo .hero-tagline { margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.5; color: #f1dce0; }
.promo-cta { background: linear-gradient(135deg, #ffe08f, #f0a93b); color: #4a0d18; box-shadow: 0 10px 22px -10px rgba(240, 169, 59, .8); }
.promo-cta:hover { background: linear-gradient(135deg, #ffeaa9, #f5b552); }
.hero-promo .hero-photo { z-index: 2; right: 46px; top: auto; bottom: 20px; width: min(31%, 300px); transform: none; }
.hero-promo .hero-photo img { filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .45)); }

/* Slide dùng ảnh banner lớn: ảnh phủ bên phải, mép trái mờ dần vào nền */
.hero-promo.is-banner { background: linear-gradient(110deg, #3a0811 0%, #2a050b 46%, #1a0306 100%); }
.hero-promo.is-banner::before { display: none; }
.hero-promo.is-banner .hero-copy { width: 36%; }
.hero-promo h2 { text-wrap: balance; }
.hero-promo.is-banner .hero-photo { top: 0; right: 0; bottom: 0; width: 72%; transform: none; }
.hero-promo.is-banner .hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%);
}

/* ---------- Banner nhỏ khuyến mãi ---------- */
.mini-promo {
  padding-left: 14px; color: #fff;
  background: radial-gradient(circle at 88% 12%, rgba(255, 210, 122, .35), transparent 45%), linear-gradient(135deg, var(--wine-2), #5e0f1c);
}
.mini-promo .mini-icon { width: 34px; height: 34px; color: #ffd27a; }
.mini-promo b { font-size: 17px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.mini-promo small { margin-top: 4px; font-size: 12.5px; color: #f3dbe0; }
body .mini.mini-promo { background-color: transparent; }

/* ---------- Dòng ưu đãi đầu khung ---------- */
.side-perks li.perk-promo {
  margin-bottom: 4px; padding: 9px 10px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, #fff4dc, #fde6c0); color: #6b3d06;
}
.side-perks li.perk-promo .ico { color: #d18a1c; }
.side-perks li.perk-promo b { color: var(--wine); }
.side-perks li.perk-promo + li { border-top: 0; }

/* ---------- Nhãn trên thẻ máy ---------- */
.promo-tag {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 8px; white-space: nowrap;
  background: linear-gradient(135deg, #ffe08f, #f0a93b); color: #4a0d18; font-size: 11.5px; font-weight: 800;
  box-shadow: 0 4px 10px -4px rgba(240, 169, 59, .8);
}

/* ---------- Tuyết + nón Noel ---------- */
.header-snow { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.header-snow i {
  position: absolute; top: -8px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: #fff; opacity: var(--o); box-shadow: 0 0 6px rgba(255, 255, 255, .6);
  animation: promo-snow var(--d) linear var(--delay) infinite;
}
@keyframes promo-snow { to { transform: translate(var(--drift), 130px); } }
.promo-hat { position: absolute; z-index: 2; top: -17px; right: -15px; width: 38px; height: auto; transform: rotate(16deg); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); pointer-events: none; }
.brand:hover .promo-hat { transform: rotate(4deg); }

@media (max-width: 700px) {
  .hero-dots { left: auto; right: 14px; bottom: auto; top: 12px; }
  .hero-promo .hero-photo { right: auto; bottom: auto; width: auto; margin: 92px 64px 18px; }
  .hero-promo.is-banner .hero-copy { width: 100%; }
  .hero-promo.is-banner .hero-photo { position: relative; top: auto; width: auto; margin: 0 -8px 14px; }
  .hero-promo.is-banner .hero-photo img {
    height: auto; aspect-ratio: 1851 / 850;
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent);
  }
  .promo-decor { width: 100%; height: auto; }
  .promo-highlight strong { font-size: 28px; }
  .hero-promo .hero-actions { grid-template-columns: 1fr; }
  .mini-promo b { font-size: 15px; }
  .promo-tag { padding: 1px 7px; font-size: 10.5px; border-radius: 6px; }
  .promo-hat { top: -14px; right: -13px; width: 33px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slides > .hero { transition: none; } }
