/* ============================================================
   FESTIVE THEME — Dussehra & Diwali 2026
   Turn off after the season by removing this file + the
   <link> tag from each HTML page.
   ============================================================ */

/* ---------- Festive colour palette (overrides) ---------- */
:root {
  --fes-maroon: #7B1E1E;
  --fes-deep-red: #A4243B;
  --fes-gold: #D4A017;
  --fes-gold-light: #FFC93C;
  --fes-orange: #E85D04;
  --fes-cream: #FFF5E1;
  --fes-saffron: #FF9933;

  /* Override site vars for the festive period */
  --coral: #A4243B;
  --coral-dark: #7B1E1E;
  --mint: #D4A017;
  --mint-dark: #B88A0F;
  --navy: #5C1A1A;
  --cream: #FFF5E1;
  --bg: #FFF9EE;
}

/* ---------- Body — subtle rangoli texture ---------- */
body {
  background-color: #FFF9EE;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(212,160,23,0.06) 0%, transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(164,36,59,0.05) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(232,93,4,0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* ---------- Festive greeting bar ---------- */
.festive-greeting {
  background: linear-gradient(90deg, #7B1E1E 0%, #A4243B 35%, #E85D04 70%, #D4A017 100%);
  color: #FFC93C;
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  border-bottom: 2px solid #D4A017;
}
.festive-greeting::before,
.festive-greeting::after {
  content: "✦";
  color: #FFC93C;
  margin: 0 12px;
  animation: fes-twinkle 2s ease-in-out infinite;
  display: inline-block;
}
.festive-greeting::after { animation-delay: 1s; }

.festive-greeting strong {
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
}
.festive-greeting__diya {
  display: inline-block;
  margin: 0 6px;
  animation: fes-flicker 1.8s ease-in-out infinite alternate;
}

@keyframes fes-twinkle {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
@keyframes fes-flicker {
  0%, 100% { opacity: 0.85; filter: brightness(1); }
  50%      { opacity: 1;    filter: brightness(1.25); }
}

/* ---------- Marigold garland strip under header ---------- */
.marigold-strip {
  height: 14px;
  background-image:
    radial-gradient(circle 7px at 8px 7px, #FF9933 0%, #FF9933 60%, transparent 62%),
    radial-gradient(circle 7px at 24px 7px, #FFC93C 0%, #FFC93C 60%, transparent 62%),
    radial-gradient(circle 7px at 40px 7px, #FF9933 0%, #FF9933 60%, transparent 62%),
    radial-gradient(circle 7px at 56px 7px, #FFC93C 0%, #FFC93C 60%, transparent 62%);
  background-size: 64px 14px;
  background-repeat: repeat-x;
  margin: 0;
  opacity: 0.9;
}

/* ---------- Festive hero (upgrade existing .hero) ---------- */
body.festive .hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,201,60,0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(212,160,23,0.30) 0%, transparent 45%),
    linear-gradient(135deg, #7B1E1E 0%, #A4243B 45%, #E85D04 100%);
  padding: 110px 20px 130px;
  overflow: hidden;
}
body.festive .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/categories/crochet-gajra.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  mix-blend-mode: luminosity;
}
body.festive .hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,201,60,0.15) 50%, transparent 100%),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(255,201,60,0.08) 20px 22px);
  z-index: 1;
}
body.festive .hero h1 {
  color: #FFC93C;
  font-size: 54px;
  text-shadow: 0 3px 20px rgba(0,0,0,0.4), 0 0 40px rgba(255,201,60,0.35);
  position: relative;
  z-index: 2;
}
body.festive .hero p {
  color: #FFF5E1;
  font-size: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}
body.festive .hero .shop-btn {
  background: linear-gradient(135deg, #D4A017, #FFC93C);
  color: #5C1A1A;
  box-shadow: 0 12px 32px rgba(212,160,23,0.55), 0 0 0 4px rgba(255,201,60,0.15);
  position: relative;
  z-index: 2;
  font-weight: 700;
}
body.festive .hero .shop-btn:hover {
  box-shadow: 0 16px 40px rgba(212,160,23,0.7), 0 0 0 6px rgba(255,201,60,0.25);
}

/* Floating diya overlay for hero */
.hero-diya {
  position: absolute;
  font-size: 34px;
  filter: drop-shadow(0 0 14px rgba(255,201,60,0.85));
  z-index: 3;
  animation: heroDiyaFloat 6s ease-in-out infinite;
  pointer-events: none;
}
.hero-diya--1 { top: 12%;  left: 8%;   animation-delay: 0s;   }
.hero-diya--2 { top: 22%;  right: 10%; animation-delay: 1.5s; font-size: 26px; }
.hero-diya--3 { bottom: 18%; left: 14%; animation-delay: 3s;   font-size: 22px; }
.hero-diya--4 { bottom: 24%; right: 16%; animation-delay: 4.2s; font-size: 30px; }

@keyframes heroDiyaFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); opacity: 0.85; }
  50%      { transform: translateY(-14px) rotate(4deg); opacity: 1; }
}

/* ---------- Festive section title accent ---------- */
body.festive .section-title {
  color: #7B1E1E;
}
body.festive .section-title::after {
  background: linear-gradient(90deg, #D4A017, #FFC93C, #E85D04);
  height: 4px;
  width: 80px;
  box-shadow: 0 2px 8px rgba(212,160,23,0.4);
}

/* ---------- Festive product cards ---------- */
body.festive .product-card {
  border: 1px solid rgba(212,160,23,0.18);
  box-shadow: 0 6px 20px rgba(123,30,30,0.08);
}
body.festive .product-card::before {
  background: linear-gradient(90deg, #7B1E1E, #D4A017, #E85D04, #D4A017, #7B1E1E);
  background-size: 200% 100%;
  animation: fes-shimmer 3s linear infinite;
}
body.festive .product-card:hover {
  box-shadow: 0 14px 32px rgba(164,36,59,0.18);
}
@keyframes fes-shimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
body.festive .product-card .add-to-cart {
  background: linear-gradient(135deg, #A4243B, #7B1E1E);
  color: #FFC93C;
  box-shadow: 0 6px 16px rgba(164,36,59,0.35);
}
body.festive .product-card .add-to-cart:hover {
  background: linear-gradient(135deg, #D4A017, #FFC93C);
  color: #5C1A1A;
}

/* ---------- Festive category tiles ---------- */
body.festive .cat-card {
  border: 1px solid rgba(212,160,23,0.2);
}
body.festive .cat-card:hover {
  border-color: #D4A017;
  box-shadow: 0 14px 32px rgba(212,160,23,0.25);
}

/* ---------- "Shubh Deepavali" greeting section ---------- */
.festive-greeting-section {
  text-align: center;
  padding: 60px 20px;
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(255,201,60,0.06) 30%, rgba(255,201,60,0.06) 70%, transparent);
}
.festive-greeting-section__title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: #7B1E1E;
  margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(212,160,23,0.25);
}
.festive-greeting-section__title span {
  color: #D4A017;
}
.festive-greeting-section__sub {
  font-size: 17px;
  color: #5C1A1A;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.festive-greeting-section__diyas {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 28px;
}
.festive-greeting-section__diyas span {
  animation: fes-flicker 1.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(255,201,60,0.7));
}
.festive-greeting-section__diyas span:nth-child(2) { animation-delay: 0.3s; }
.festive-greeting-section__diyas span:nth-child(3) { animation-delay: 0.6s; }
.festive-greeting-section__diyas span:nth-child(4) { animation-delay: 0.9s; }
.festive-greeting-section__diyas span:nth-child(5) { animation-delay: 1.2s; }

/* ---------- Rangoli divider between sections ---------- */
.rangoli-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 40px auto;
  max-width: 500px;
  padding: 0 20px;
}
.rangoli-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D4A017, transparent);
}
.rangoli-divider__ornament {
  color: #D4A017;
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(212,160,23,0.5));
  animation: fes-twinkle 3s ease-in-out infinite;
}

/* ---------- Festive coupon banner ---------- */
.festive-coupon-banner {
  max-width: 900px;
  margin: 30px auto;
  padding: 22px 26px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(45deg, rgba(255,201,60,0.08) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #7B1E1E 0%, #A4243B 100%);
  color: #FFF5E1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 14px 40px rgba(123,30,30,0.28);
  border: 2px solid #D4A017;
  position: relative;
  overflow: hidden;
}
.festive-coupon-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,201,60,0.15) 30deg, transparent 60deg);
  animation: fes-rotate 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes fes-rotate { to { transform: rotate(360deg); } }
.festive-coupon-banner > * { position: relative; z-index: 1; }

.festive-coupon-banner__text {
  flex: 1;
  min-width: 200px;
}
.festive-coupon-banner__text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #FFC93C;
  margin: 0 0 6px;
}
.festive-coupon-banner__text p {
  font-size: 14px;
  color: #FFF5E1;
  margin: 0;
  opacity: 0.9;
}
.festive-coupon-banner__code {
  display: inline-block;
  background: #FFC93C;
  color: #7B1E1E;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(255,201,60,0.4);
  border: 2px dashed #7B1E1E;
  cursor: pointer;
  transition: transform .2s;
}
.festive-coupon-banner__code:hover { transform: scale(1.05); }

/* ---------- Festive offer ticker override ---------- */
body.festive .offer-ticker {
  background: linear-gradient(90deg, #7B1E1E 0%, #D4A017 50%, #E85D04 100%);
  box-shadow: 0 4px 14px rgba(123,30,30,0.25);
}
body.festive .offer-ticker::before {
  background: linear-gradient(90deg, #7B1E1E, transparent);
}
body.festive .offer-ticker::after {
  background: linear-gradient(270deg, #E85D04, transparent);
}

/* ---------- Festive free-shipping bar override ---------- */
body.festive .freeship {
  border-left-color: #D4A017;
  background: linear-gradient(135deg, #FFF5E1, #fff);
}
body.festive .freeship__msg strong { color: #7B1E1E; }
body.festive .freeship__bar { background: #FFE5B5; }
body.festive .freeship__fill {
  background: linear-gradient(90deg, #D4A017, #FFC93C, #E85D04);
}

/* ---------- Festive footer ---------- */
body.festive footer {
  background: linear-gradient(135deg, #5C1A1A 0%, #7B1E1E 100%);
}
body.festive footer::before {
  background: linear-gradient(90deg, #7B1E1E, #D4A017, #FFC93C, #E85D04, #7B1E1E);
  height: 6px;
}
body.festive .footer-grid h4 { color: #FFC93C; }
body.festive .footer-grid a:hover { color: #FFC93C; }

/* ---------- Festive buttons (global) ---------- */
body.festive .checkout-btn,
body.festive .cp-primary {
  background: linear-gradient(135deg, #D4A017, #E85D04);
  color: #fff;
  box-shadow: 0 8px 20px rgba(212,160,23,0.4);
}
body.festive .checkout-btn:hover,
body.festive .cp-primary:hover {
  background: linear-gradient(135deg, #E85D04, #D4A017);
  box-shadow: 0 12px 28px rgba(212,160,23,0.55);
}

/* ---------- Festive floating diyas across the page ---------- */
.festive-floating-diyas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.festive-floating-diyas span {
  position: absolute;
  font-size: 20px;
  opacity: 0.55;
  filter: drop-shadow(0 0 8px rgba(255,201,60,0.7));
  animation: fes-floatUp 14s linear infinite;
}
.festive-floating-diyas span:nth-child(1) { left: 6%;  animation-delay: 0s;   }
.festive-floating-diyas span:nth-child(2) { left: 22%; animation-delay: 3s;   font-size: 16px; }
.festive-floating-diyas span:nth-child(3) { left: 42%; animation-delay: 6s;   font-size: 24px; }
.festive-floating-diyas span:nth-child(4) { left: 68%; animation-delay: 1.5s; font-size: 18px; }
.festive-floating-diyas span:nth-child(5) { left: 86%; animation-delay: 8s;   font-size: 22px; }

@keyframes fes-floatUp {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.55; }
  100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 700px) {
  body.festive .hero { padding: 80px 16px 100px; }
  body.festive .hero h1 { font-size: 34px; }
  body.festive .hero p { font-size: 16px; }
  .festive-greeting { font-size: 12px; padding: 8px 12px; letter-spacing: 0.3px; }
  .festive-greeting::before, .festive-greeting::after { margin: 0 6px; }
  .festive-greeting-section { padding: 40px 16px; }
  .festive-greeting-section__title { font-size: 26px; }
  .festive-greeting-section__sub { font-size: 15px; }
  .festive-greeting-section__diyas { font-size: 22px; gap: 14px; }
  .festive-coupon-banner { padding: 18px 18px; text-align: center; justify-content: center; }
  .festive-coupon-banner__text h3 { font-size: 20px; }
  .festive-coupon-banner__code { font-size: 16px; padding: 10px 16px; }
  .hero-diya--1, .hero-diya--2, .hero-diya--3, .hero-diya--4 { font-size: 20px; }
}