/* OKMart festive rich sections — background + hero + cards + strip + must-haves.
   Used for every festival day AND every common day (rotating common themes),
   so the homepage top is never a plain banner. Theme colours come from the
   day's festive.js entry; cards/must-haves are real OKmart catalog items. */
#festiveBanner { margin: 0 -16px; } /* breakout: cancels .app-container 16px side padding so the banner is truly edge-to-edge on phones */
#festiveBanner .fr-wrap { margin: 0; }
.fr-bg {
  position: relative; overflow: hidden; color: #fff;
  padding: 16px 12px 30px;
}
.fr-canvas { position: absolute; inset: 0; z-index: 0; }
.fr-gif-overlay { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.45)); }
.fr-art { position: relative; z-index: 1; text-align: center; line-height: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
.fr-hero { position: relative; z-index: 1; text-align: center; padding-top: 8px; }
.fr-tag {
  display: inline-block; font-weight: 800; font-size: .75rem;
  padding: 5px 12px; border-radius: 999px;
}
.fr-title {
  margin: 10px 0 0; font-weight: 900; line-height: 1.1; color: #fff;
  font-size: clamp(1.6rem, 7.5vw, 2.4rem);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.fr-sub {
  color: rgba(255,255,255,.94); font-size: .88rem; margin: 8px auto 10px;
  max-width: 340px; line-height: 1.45; text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.fr-offer {
  display: inline-block; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5);
  color: #fff; font-weight: 700; font-size: .8rem; padding: 6px 14px; border-radius: 999px;
}
.fr-ctas { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.fr-cta-primary {
  display: inline-block; background: #fff; color: #111827; font-weight: 800; font-size: .85rem;
  padding: 9px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.fr-cta-ghost {
  display: inline-block; background: transparent; color: #fff; font-weight: 700; font-size: .85rem;
  padding: 9px 18px; border-radius: 999px; text-decoration: none; border: 1.5px solid rgba(255,255,255,.7);
}
.fr-cards {
  position: relative; z-index: 1; display: flex; gap: 10px; overflow-x: auto;
  padding: 14px 0 6px; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.fr-cards::-webkit-scrollbar { display: none; }
.fr-card {
  flex: 0 0 132px; scroll-snap-align: start; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #fb923c, #ea580c); border-radius: 16px;
  padding: 12px 10px 0; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.3);
}
.fr-card-t { font-weight: 800; font-size: .88rem; line-height: 1.2; min-height: 2.4em; }
.fr-card-img { width: 100%; height: 88px; object-fit: contain; margin-top: 6px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.fr-card-offer {
  background: #991b1b; margin: 8px -10px 0; padding: 7px 4px; text-align: center;
  font-size: .66rem; font-weight: 800; letter-spacing: .02em;
}
.fr-strip {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(90deg, #b91c1c, #dc2626); box-shadow: 0 6px 14px rgba(0,0,0,.3);
}
.fr-strip-flag { font-size: 1.4rem; flex-shrink: 0; }
.fr-strip-flag svg { width: 22px; height: 22px; display: block; }
.fr-cta-primary svg, .fr-cta-ghost svg { vertical-align: -2px; }
.fr-strip-text { flex: 1; min-width: 0; }
.fr-strip-text b { display: block; font-size: .9rem; }
.fr-strip-text small { font-size: .74rem; opacity: .92; }
.fr-strip-arrow {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700;
}
.fr-must {
  position: relative; z-index: 2; background: #fff; border-radius: 26px 26px 0 0;
  margin-top: -20px; padding: 18px 12px 10px; box-shadow: 0 -8px 22px rgba(0,0,0,.25); color: #111827;
}
.fr-must h3 { margin: 0 0 12px; font-size: 1.15rem; color: #78350f; }
.fr-prods { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.fr-prods::-webkit-scrollbar { display: none; }
.fr-prod { flex: 0 0 106px; text-decoration: none; color: #111827; text-align: center; }
.fr-prod img {
  width: 100%; height: 88px; object-fit: contain; background: #fff7ed;
  border: 1px solid #f5f5f4; border-radius: 12px;
}
.fr-prod-name {
  display: block; font-size: .74rem; line-height: 1.25; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em;
}
.fr-prod-price { display: block; font-weight: 800; font-size: .85rem; margin-top: 2px; }
.fr-prod-price s { color: #9ca3af; font-weight: 500; font-size: .75rem; margin-left: 4px; }
@media (min-width: 600px) {
  .fr-card { flex-basis: 150px; }
}
@media (max-width: 600px) {
  /* Mobile fit for GIF backgrounds: the GIF art is landscape (640x368) but a
     phone banner is tall, so background-size:cover crops away ~half the art
     width and leaves only its dark, clean middle visible. Fit the full width
     at the top instead, so diyas, sweets and fireworks stay visible; the
     theme colour fills the rest below. (!important: festive.js sets these
     properties inline.) Banner padding tightened so the section sits snug. */
  .fr-bg.has-gif {
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }
  .fr-bg { padding: 12px 12px 24px; }
  .fr-hero { padding-top: 4px; }
  .fr-title { margin-top: 8px; }
}
