/* ========== SALE BANNER ========== */
.sale-banner {
  background: linear-gradient(135deg, #e94560, #c0392b);
  color: #fff;
  padding: 10px 5%;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 100;
  animation: bannerPulse 3s ease-in-out infinite;
}
.sale-banner .banner-text { flex-shrink: 1 }
.sale-banner .banner-timer {
  background: rgba(0,0,0,.25);
  padding: 4px 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  letter-spacing: 2px;
  flex-shrink: 0;
}
.sale-banner .banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}
.sale-banner .banner-close:hover { color: #fff }

@keyframes bannerPulse {
  0%, 100% { opacity: 1 }
  50% { opacity: .92 }
}

/* ========== THEME: TET ========== */
body.tet { --acc: #c0392b; --acc2: #f5a623 }
body.tet .sale-banner { background: linear-gradient(135deg, #c0392b, #e74c3c) }
body.tet .sale-banner::before {
  content: '🧧';
  font-size: 18px;
  animation: tetBounce 2s ease-in-out infinite;
}
body.tet .sale-banner::after {
  content: '🎆';
  font-size: 18px;
  animation: tetBounce 2s ease-in-out infinite 0.5s;
}
@keyframes tetBounce {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-4px) }
}

/* ========== THEME: NOEL ========== */
body.noel { --acc: #1a6b3c }
body.noel .sale-banner { background: linear-gradient(135deg, #1a6b3c, #27ae60) }
body.noel .sale-banner::before {
  content: '🎄';
  font-size: 18px;
}
body.noel .sale-banner::after {
  content: '🎅';
  font-size: 18px;
}

/* ========== THEME: SALE ========== */
body.sale { --acc: #e94560 }
body.sale .sale-banner { background: linear-gradient(135deg, #e94560, #ff6b6b) }
body.sale .sale-banner::before {
  content: '🔥';
  font-size: 18px;
}
body.sale .price, body.sale .bk-price, body.sale .ebook-price {
  animation: priceBlink 1.5s ease-in-out infinite;
}
@keyframes priceBlink {
  0%, 100% { opacity: 1 }
  50% { opacity: .7; transform: scale(1.03) }
}

/* ========== THEME: TEACHER (Nhà giáo) ========== */
body.teacher { --acc: #1a2744; --acc2: #f5a623 }
body.teacher .sale-banner { background: linear-gradient(135deg, #1a2744, #2d4a9a) }
body.teacher .sale-banner::before {
  content: '🎓';
  font-size: 18px;
}
body.teacher .sale-banner::after {
  content: '📖';
  font-size: 18px;
}

/* ========== STICKY CTA SALE OVERRIDE ========== */
.sticky-sale-info {
  color: #e94560;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sticky-sale-info .sale-countdown {
  background: #e94560;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ========== CHECKOUT SALE BADGE ========== */
.sale-price-box {
  background: linear-gradient(135deg, #fff0f3, #ffe4e8);
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.sale-price-box .sale-event-name {
  font-size: 11px;
  font-weight: 700;
  color: #e94560;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.sale-price-box .sale-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.sale-price-box .sale-new-price {
  font-size: 22px;
  font-weight: 800;
  color: #e94560;
}
.sale-price-box .sale-old-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}
.sale-price-box .sale-timer-text {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
.sale-price-box .sale-timer-text strong {
  color: #e94560;
  font-family: 'Courier New', monospace;
}

@media (max-width: 600px) {
  .sale-banner { font-size: 12px; gap: 8px; padding: 8px 36px 8px 5% }
  .sale-banner .banner-timer { font-size: 13px; padding: 3px 8px }
}
