/**
 * JacanFoods Minimalist Holiday Theme
 * Restraint-first seasonal styling: deep evergreen pine, warm champagne gold,
 * cranberry accents, and delicate micro fairy-light hairline.
 */

/* 1. Evergreen Top Promise Strip */
.jfh-strip.jfh-xmas-strip {
  background: linear-gradient(90deg, #0d3326 0%, #124332 50%, #0d3326 100%) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.45) !important;
  color: #f3f6f4 !important;
}

.jfh-strip.jfh-xmas-strip a {
  color: #f7dc88 !important;
  font-weight: 600;
}

.jfh-strip.jfh-xmas-strip a:hover {
  color: #ffffff !important;
}

/* Minimalist "Season's Greetings" Pill */
.jfh-xmas-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #f7dc88 !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.jfh-xmas-pill svg {
  color: #f7dc88;
  flex-shrink: 0;
}

/* 2. Ultra-Minimalist Warm Fairy-Light Hairline */
.jfh-xmas-lights {
  height: 6px;
  width: 100%;
  background-color: #faf9f6;
  background-image:
    radial-gradient(circle at 12px 3px, #d4af37 1.8px, transparent 2.4px),
    radial-gradient(circle at 44px 3px, #b91c1c 1.8px, transparent 2.4px),
    radial-gradient(circle at 76px 3px, #14532d 1.8px, transparent 2.4px),
    radial-gradient(circle at 108px 3px, #e5c158 1.8px, transparent 2.4px);
  background-size: 128px 6px;
  background-repeat: repeat-x;
  border-bottom: 1px solid rgba(15, 58, 43, 0.08);
  animation: jfhTwinkle 4s ease-in-out infinite;
}

@keyframes jfhTwinkle {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 0.52; }
}

/* 3. Refined Header Accents */
.site-header.jfh {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 58, 43, 0.1) !important;
}

.site-header.jfh .jfh-badge {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.55);
}

.site-header.jfh .jfh-name em {
  color: #991b1b;
}

.site-header.jfh .jfh-search:focus-within {
  border-color: #124332 !important;
  box-shadow: 0 0 0 3px rgba(18, 67, 50, 0.1) !important;
}

.site-header.jfh .jfh-search button {
  background: #991b1b !important;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.site-header.jfh .jfh-search button:hover {
  background: #7f1d1d !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.45);
}

.site-header.jfh .jfh-cart {
  background: #0f3a2b !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

.site-header.jfh .jfh-cart:hover {
  background: #144d39 !important;
}

.site-header.jfh .cart-count-badge {
  background: #b91c1c !important;
  color: #ffffff !important;
  border: 1px solid rgba(247, 220, 136, 0.7) !important;
}

/* 4. Subtle Drifting Snow Specks on Dark Hero Banner Only */
.jf-hero,
.hero,
.hero-banner,
.hero-slider,
.hero-section {
  position: relative;
}

.jf-hero::after,
.hero::after,
.hero-banner::after,
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 22%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(2px 2px at 31% 65%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 54% 18%, rgba(247, 220, 136, 0.45), transparent),
    radial-gradient(2px 2px at 72% 48%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 28%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 22% 84%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(2px 2px at 64% 78%, rgba(247, 220, 136, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 93% 72%, rgba(255, 255, 255, 0.45), transparent);
  background-size: 380px 380px;
  animation: jfhSnowDrift 18s linear infinite;
}

@keyframes jfhSnowDrift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 40px 380px, -25px 380px, 30px 380px, -20px 380px, 15px 380px, -30px 380px, 25px 380px, -15px 380px; }
}

@media (prefers-reduced-motion: reduce) {
  .jfh-xmas-lights,
  .jf-hero::after,
  .hero::after,
  .hero-banner::after,
  .hero-slider::after {
    animation: none !important;
  }
}
