/**
 * Combo & Sale — trang CMS (slug combo, sale) + tài liệu mẫu (.combo-sale-*)
 * Tông màu: xanh thương hiệu + vàng cam khuyến mãi, nền sạch, thẻ nổi nhẹ.
 */

:root {
  --promo-green: #1b5e20;
  --promo-green-mid: #2e7d32;
  --promo-green-soft: #e8f5e9;
  --promo-gold: #f59e0b;
  --promo-gold-soft: #fff8e6;
  --promo-coral: #e53935;
  --promo-card-radius: 18px;
  --promo-shadow: 0 4px 24px rgba(27, 94, 32, 0.08);
  --promo-shadow-hover: 0 16px 40px -12px rgba(27, 94, 32, 0.18);
}

/* ─── Vỏ full-width: nền gradient nhẹ ─── */
.cms-promo-shell {
  background:
    radial-gradient(1000px 420px at 100% 0%, rgba(245, 158, 11, 0.1), transparent 55%),
    radial-gradient(800px 360px at 0% 40%, rgba(46, 125, 50, 0.08), transparent 50%),
    linear-gradient(180deg, #f7faf7 0%, #fafcfa 35%, #fffdf8 100%);
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .cms-promo-shell {
    padding-bottom: 3.5rem;
  }
}

/* ─── Hero CMS (kèm class cms-page-hero--promo) ─── */
.cms-page-hero--promo {
  position: relative;
  border: 1px solid rgba(46, 125, 50, 0.16) !important;
  background:
    radial-gradient(720px 200px at 95% 0%, rgba(245, 158, 11, 0.15), transparent 52%),
    radial-gradient(520px 180px at 0% 100%, rgba(46, 125, 50, 0.1), transparent 48%),
    linear-gradient(168deg, #ffffff 0%, #f2faf3 45%, #fffbf2 100%) !important;
  box-shadow: var(--promo-shadow);
}

.cms-page--promo--sale .cms-page-hero--promo {
  background:
    radial-gradient(760px 220px at 8% 0%, rgba(229, 57, 53, 0.08), transparent 50%),
    radial-gradient(680px 200px at 100% 100%, rgba(245, 158, 11, 0.14), transparent 55%),
    linear-gradient(168deg, #ffffff 0%, #fff8f5 40%, #f4faf4 100%) !important;
}

.cms-page-hero--promo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.cms-promo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--promo-green-mid);
  margin: 0 0 14px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(46, 125, 50, 0.18);
  box-shadow: 0 2px 10px rgba(27, 94, 32, 0.06);
}

.cms-promo-eyebrow__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--promo-coral), var(--promo-gold));
  flex-shrink: 0;
  animation: promoEyebrowPulse 1.8s ease-in-out infinite;
}

@keyframes promoEyebrowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .cms-promo-eyebrow__pulse {
    animation: none;
  }
}

.cms-page-hero--promo h1 {
  background: linear-gradient(120deg, #1b3d1f 0%, var(--promo-green-mid) 45%, #c2410c 160%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cms-page-hero--promo .text-gray-600 {
  color: #4b5563 !important;
  line-height: 1.65;
}

/* ─── Nội dung bài (prose) ─── */
.cms-page--promo .cms-page-content {
  position: relative;
}

.cms-page--promo .cms-page-content .prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
}

.cms-page--promo .cms-page-content .prose > h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  color: #145214;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  position: relative;
  border-bottom: none;
}

.cms-page--promo .cms-page-content .prose > h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(88px, 40%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--promo-green-mid), var(--promo-gold));
}

.cms-page--promo .cms-page-content .prose > h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--promo-green);
  margin-top: 1.75rem;
}

.cms-page--promo .cms-page-content .prose a {
  color: var(--promo-green-mid);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.cms-page--promo .cms-page-content .prose a:hover {
  color: var(--promo-coral);
}

.cms-page--promo .cms-page-content .prose img {
  border-radius: var(--promo-card-radius);
  box-shadow: var(--promo-shadow);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.cms-page--promo .cms-page-content .prose blockquote {
  border-left: 4px solid var(--promo-gold);
  background: linear-gradient(90deg, var(--promo-gold-soft), transparent);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #4b5563;
}

.cms-page--promo .cms-page-content .prose ul > li::marker {
  color: var(--promo-green-mid);
}

.cms-page--promo .cms-page-content .prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--promo-shadow);
}

.cms-page--promo .cms-page-content .prose th {
  background: linear-gradient(135deg, var(--promo-green), #43a047);
  color: #fff;
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
}

.cms-page--promo .cms-page-content .prose td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2ef;
  background: #fff;
}

.cms-page--promo .cms-page-content .prose tr:last-child td {
  border-bottom: none;
}

/* Thẻ “combo” trong HTML CMS: class tùy chọn */
.cms-page--promo .prose .promo-card,
.cms-page--promo .promo-card {
  display: block;
  background: #fff;
  border-radius: var(--promo-card-radius);
  border: 1px solid rgba(46, 125, 50, 0.12);
  box-shadow: var(--promo-shadow);
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cms-page--promo .prose .promo-card:hover,
.cms-page--promo .promo-card:hover {
  box-shadow: var(--promo-shadow-hover);
  transform: translateY(-2px);
}

.cms-page--promo .promo-card__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--promo-coral), #ff7043);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.cms-page--promo .promo-card__price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--promo-green-mid);
  margin-top: 4px;
}

.cms-page--promo .promo-card__price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 8px;
}

/* ─── Banner ảnh CMS trên trang promo ─── */
.cms-page--promo .cms-page-banner {
  border-radius: var(--promo-card-radius) !important;
  box-shadow: var(--promo-shadow-hover) !important;
  border-color: rgba(46, 125, 50, 0.12) !important;
}

/* ═══════════════════════════════════════════════════════════
   Legacy: trang tĩnh combo-sale.html (giữ class cũ, làm mới)
   ═══════════════════════════════════════════════════════════ */
.combo-sale-banner {
  position: relative;
  min-height: 260px;
  height: auto;
  padding: 3rem 1.25rem;
  background:
    url('https://images.unsplash.com/photo-1555939594-58d7cb561404?w=1400&q=80') center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 0 0 24px 24px;
}

.combo-sale-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.82), rgba(46, 125, 50, 0.72), rgba(229, 57, 53, 0.45));
  border-radius: inherit;
}

.combo-sale-banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 640px;
}

.combo-sale-banner-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: promoBannerIconPulse 2.4s ease-in-out infinite;
}

@keyframes promoBannerIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .combo-sale-banner-icon {
    animation: none;
  }
}

.combo-sale-banner-content h1 {
  font-size: clamp(1.65rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.combo-sale-banner-content > p {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  opacity: 0.95;
  margin-bottom: 0;
  line-height: 1.6;
}

.combo-sale-banner-content .breadcrumb {
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 1rem;
}

.combo-sale-banner-content .breadcrumb a {
  color: #fde047;
}

.combo-sale-page {
  padding: 48px 0 72px;
  background: #f4faf5;
}

.combo-sale-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.section-header h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  color: #145214;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.section-header h2 i {
  color: var(--promo-coral);
}

.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  background: linear-gradient(135deg, var(--promo-green), #43a047);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.35);
}

.countdown-value {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-label {
  font-size: 10px;
  opacity: 0.88;
  margin-top: 2px;
}

.countdown-sep {
  font-size: 16px;
  margin: 0 2px;
  opacity: 0.85;
}

.flash-sale-section,
.combo-section,
.sale-products-section {
  margin-bottom: 44px;
}

.flash-sale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flash-sale-card {
  background: #fff;
  overflow: hidden;
  position: relative;
}

.flash-sale-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f0f4f1;
}

.flash-sale-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.flash-sale-card:hover .flash-sale-img img {
  transform: scale(1.06);
}

.flash-sale-info {
  padding: 16px;
}

.flash-sale-name {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
}

.flash-sale-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.flash-sale-price-old {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}

.flash-sale-progress {
  height: 6px;
  background: #eef2ef;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.flash-sale-sold {
  font-size: 11px;
  color: #6b7280;
}

.combo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.combo-filter,
.sale-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.combo-filter-btn,
.sale-filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #6b7280;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.combo-card {
  background: #fff;
  overflow: hidden;
}

.combo-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f0f4f1;
}

.combo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.combo-card:hover .combo-img img {
  transform: scale(1.06);
}

.combo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--promo-green-mid), #43a047);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 1;
}

.combo-info {
  padding: 18px 20px 20px;
}

.combo-name {
  font-size: 15px;
  font-weight: 800;
  color: #145214;
  margin-bottom: 8px;
}

.combo-desc {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.55;
}

.combo-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.combo-item-tag {
  background: var(--promo-green-soft);
  color: #2e5d32;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.combo-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
  flex-wrap: wrap;
}

.combo-price-new {
  font-size: 18px;
  font-weight: 800;
  color: var(--promo-green-mid);
}

.combo-price-old {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
}

.sale-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sale-product-card {
  background: #fff;
  overflow: hidden;
}

.sale-product-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f0f4f1;
}

.sale-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.sale-product-card:hover .sale-product-img img {
  transform: scale(1.06);
}

.sale-product-info {
  padding: 16px;
}

.sale-product-name {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
}

.sale-product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.sale-product-price-old {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}

.combo-sale-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.combo-section h2,
.sale-products-section h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: #145214;
}

.sidebar-widget {
  background: #fff;
  border-radius: var(--promo-card-radius);
  padding: 20px;
  box-shadow: var(--promo-shadow);
  border: 1px solid rgba(46, 125, 50, 0.08);
  transition: box-shadow 0.25s ease;
}

.sidebar-widget:hover {
  box-shadow: var(--promo-shadow-hover);
}

.sidebar-widget .widget-title {
  font-size: 15px;
  font-weight: 800;
  color: #145214;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--promo-green-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget .widget-title i {
  color: var(--promo-green-mid);
}

.price-filter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-filter input {
  width: 100%;
  cursor: pointer;
}

.price-display {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.featured-combos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.featured-combos li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.featured-combos img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.featured-combos a {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  display: block;
  margin-bottom: 4px;
  transition: color 0.2s;
  text-decoration: none;
}

.featured-combos a:hover {
  color: var(--promo-green-mid);
}

.combo-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.combo-price .price-new {
  color: var(--promo-green-mid);
  font-weight: 800;
}

.combo-price .price-old {
  color: #9ca3af;
  text-decoration: line-through;
}

.info-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-box p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box i {
  color: var(--promo-green-mid);
  font-size: 14px;
}

.sidebar-cta {
  text-align: center;
  background: linear-gradient(165deg, #fffbeb, #fff8e1) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

.sidebar-cta h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #145214;
}

.sidebar-cta p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.6;
}

.sidebar-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.flash-sale-card,
.combo-card,
.sale-product-card {
  border-radius: var(--promo-card-radius);
  border: 1px solid rgba(46, 125, 50, 0.1);
  box-shadow: var(--promo-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.flash-sale-card:hover,
.combo-card:hover,
.sale-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--promo-shadow-hover);
}

.flash-sale-badge,
.sale-product-badge {
  background: linear-gradient(135deg, var(--promo-coral), #ff7043);
}

.flash-sale-price-new,
.sale-product-price-new {
  color: var(--promo-coral);
}

.flash-sale-progress-bar {
  background: linear-gradient(90deg, var(--promo-green-mid), var(--promo-gold));
}

.combo-filter-btn.active,
.combo-filter-btn:hover,
.sale-filter-btn.active,
.sale-filter-btn:hover {
  background: linear-gradient(135deg, var(--promo-green), #43a047);
  border-color: transparent;
  color: #fff;
}

.combo-btn,
.sale-product-btn {
  border-radius: 12px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--promo-green), #388e3c);
  font-weight: 700;
}

.combo-btn:hover,
.sale-product-btn:hover {
  background: linear-gradient(135deg, #145214, var(--promo-green));
}

.combo-discount {
  background: linear-gradient(135deg, var(--promo-coral), #ff7043);
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .combo-sale-layout {
    grid-template-columns: 1fr 260px;
  }
  .flash-sale-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .combo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sale-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .combo-sale-layout {
    grid-template-columns: 1fr;
  }
  .combo-sale-banner {
    padding: 2.5rem 1rem;
    min-height: 220px;
  }
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
  .countdown {
    width: 100%;
  }
  .flash-sale-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .combo-grid {
    grid-template-columns: 1fr;
  }
  .sale-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .flash-sale-grid,
  .sale-products-grid {
    gap: 12px;
  }
  .combo-filter-btn,
  .sale-filter-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}
