/* ============================================
   Eid Al-Fitr Theme - Waleed Toys
   Decorative CSS for Eid Al-Fitr season
   ============================================ */

:root {
  --eid-coral: #FF6B6B;
  --eid-coral-light: #FF8E8E;
  --eid-coral-dark: #E05555;
  --eid-teal: #4ECDC4;
  --eid-teal-light: #7EDDD6;
  --eid-teal-dark: #3BADA5;
  --eid-yellow: #FFE66D;
  --eid-yellow-dark: #E6CC4D;
  --eid-orange: #FF8E53;
  --eid-orange-light: #FFA876;
  --eid-gold: #D4AF37;
  --eid-gold-light: #F4E5B2;
  --eid-white: #FFFFFF;
}

/* ---- Background Festive Dots Pattern ---- */
.eid-alfitr-theme {
  position: relative;
}

.eid-bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.045;
  background-image:
    radial-gradient(circle at 20% 30%, var(--eid-coral) 2px, transparent 2px),
    radial-gradient(circle at 50% 70%, var(--eid-teal) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, var(--eid-yellow) 1.5px, transparent 1.5px),
    radial-gradient(circle at 35% 80%, var(--eid-orange) 1.5px, transparent 1.5px);
  background-size: 80px 80px, 90px 90px, 70px 70px, 85px 85px;
}

.eid-bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 65% 45%, var(--eid-teal) 1px, transparent 1px),
    radial-gradient(circle at 10% 60%, var(--eid-coral) 1px, transparent 1px),
    radial-gradient(circle at 90% 85%, var(--eid-yellow) 1px, transparent 1px);
  background-size: 110px 110px, 95px 95px, 100px 100px;
}

/* ---- Eid Mubarak Banner ---- */
.eid-banner {
  background: linear-gradient(135deg, var(--eid-coral) 0%, var(--eid-orange) 30%, var(--eid-yellow) 60%, var(--eid-teal) 100%);
  color: var(--eid-white);
  text-align: center;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1040;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.eid-banner::before {
  content: '🎉 ✨';
  margin: 0 10px;
  font-size: 13px;
  vertical-align: middle;
}

.eid-banner::after {
  content: '✨ 🎉';
  margin: 0 10px;
  font-size: 13px;
  vertical-align: middle;
}

.eid-banner-text {
  display: inline-block;
}

/* Shimmer effect on banner */
.eid-banner .eid-banner-text {
  background: linear-gradient(90deg, var(--eid-white) 0%, var(--eid-yellow) 50%, var(--eid-white) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: eidBannerShimmer 3s linear infinite;
}

@keyframes eidBannerShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ---- Balloons Container ---- */
.eid-balloons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1035;
  overflow: hidden;
}

/* ---- Single Balloon ---- */
.eid-balloon {
  position: absolute;
  bottom: -120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: balloonFloat 12s ease-in-out infinite;
}

.eid-balloon:nth-child(1) { left: 3%; animation-delay: 0s; animation-duration: 14s; }
.eid-balloon:nth-child(2) { left: 15%; animation-delay: -3s; animation-duration: 12s; }
.eid-balloon:nth-child(3) { left: 30%; animation-delay: -7s; animation-duration: 15s; }
.eid-balloon:nth-child(4) { left: 55%; animation-delay: -2s; animation-duration: 13s; }
.eid-balloon:nth-child(5) { left: 75%; animation-delay: -5s; animation-duration: 11s; }
.eid-balloon:nth-child(6) { left: 90%; animation-delay: -9s; animation-duration: 14s; }

/* Balloon body (oval shape) */
.balloon-body {
  width: 30px;
  height: 38px;
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  position: relative;
  box-shadow: inset -5px -3px 10px rgba(255, 255, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Shine on balloon */
.balloon-body::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 7px;
  width: 8px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: rotate(-25deg);
}

/* Balloon tie knot */
.balloon-body::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 7px solid inherit;
}

/* Balloon string */
.balloon-string {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, rgba(150, 150, 150, 0.6), rgba(150, 150, 150, 0.1));
}

/* Balloon colors */
.eid-balloon:nth-child(1) .balloon-body { background: var(--eid-coral); }
.eid-balloon:nth-child(1) .balloon-body::after { border-top-color: var(--eid-coral-dark); }
.eid-balloon:nth-child(2) .balloon-body { background: var(--eid-teal); }
.eid-balloon:nth-child(2) .balloon-body::after { border-top-color: var(--eid-teal-dark); }
.eid-balloon:nth-child(3) .balloon-body { background: var(--eid-yellow); }
.eid-balloon:nth-child(3) .balloon-body::after { border-top-color: var(--eid-yellow-dark); }
.eid-balloon:nth-child(4) .balloon-body { background: var(--eid-orange); }
.eid-balloon:nth-child(4) .balloon-body::after { border-top-color: var(--eid-coral-dark); }
.eid-balloon:nth-child(5) .balloon-body { background: var(--eid-coral); }
.eid-balloon:nth-child(5) .balloon-body::after { border-top-color: var(--eid-coral-dark); }
.eid-balloon:nth-child(6) .balloon-body { background: var(--eid-teal); }
.eid-balloon:nth-child(6) .balloon-body::after { border-top-color: var(--eid-teal-dark); }

/* Balloon sway while floating */
@keyframes balloonFloat {
  0% {
    transform: translateY(0) translateX(0) rotate(-2deg);
    opacity: 0;
  }
  5% {
    opacity: 0.8;
  }
  25% {
    transform: translateY(-35vh) translateX(15px) rotate(3deg);
  }
  50% {
    transform: translateY(-65vh) translateX(-10px) rotate(-3deg);
  }
  75% {
    transform: translateY(-90vh) translateX(10px) rotate(2deg);
  }
  95% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-120vh) translateX(-5px) rotate(-1deg);
    opacity: 0;
  }
}

/* ---- Confetti / Sparkles Falling ---- */
.eid-confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1032;
  overflow: hidden;
}

.eid-confetti-piece {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 8px;
  opacity: 0;
  animation: confettiFall 7s linear infinite;
}

/* Different confetti shapes */
.eid-confetti-piece:nth-child(odd) {
  border-radius: 50%;
}

.eid-confetti-piece:nth-child(even) {
  border-radius: 1px;
  transform: rotate(45deg);
}

/* Confetti colors and positions */
.eid-confetti-piece:nth-child(1)  { left: 5%;  background: var(--eid-coral);  animation-delay: 0s;    width: 7px;  height: 7px; }
.eid-confetti-piece:nth-child(2)  { left: 12%; background: var(--eid-teal);   animation-delay: -1.5s; width: 5px;  height: 5px; }
.eid-confetti-piece:nth-child(3)  { left: 22%; background: var(--eid-yellow); animation-delay: -3s;   width: 9px;  height: 9px; }
.eid-confetti-piece:nth-child(4)  { left: 30%; background: var(--eid-orange); animation-delay: -0.8s; width: 6px;  height: 6px; }
.eid-confetti-piece:nth-child(5)  { left: 40%; background: var(--eid-coral);  animation-delay: -4s;   width: 8px;  height: 8px; }
.eid-confetti-piece:nth-child(6)  { left: 48%; background: var(--eid-gold);   animation-delay: -2.2s; width: 5px;  height: 5px; }
.eid-confetti-piece:nth-child(7)  { left: 58%; background: var(--eid-teal);   animation-delay: -5s;   width: 7px;  height: 7px; }
.eid-confetti-piece:nth-child(8)  { left: 68%; background: var(--eid-yellow); animation-delay: -1s;   width: 6px;  height: 6px; }
.eid-confetti-piece:nth-child(9)  { left: 78%; background: var(--eid-coral);  animation-delay: -3.5s; width: 8px;  height: 8px; }
.eid-confetti-piece:nth-child(10) { left: 88%; background: var(--eid-orange); animation-delay: -6s;   width: 5px;  height: 5px; }
.eid-confetti-piece:nth-child(11) { left: 95%; background: var(--eid-teal);   animation-delay: -2.8s; width: 7px;  height: 7px; }
.eid-confetti-piece:nth-child(12) { left: 35%; background: var(--eid-gold);   animation-delay: -4.5s; width: 6px;  height: 6px; }

@keyframes confettiFall {
  0% {
    top: -20px;
    opacity: 0;
    transform: translateX(0) rotate(0deg);
  }
  5% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.5;
    transform: translateX(30px) rotate(180deg);
  }
  85% {
    opacity: 0.3;
  }
  100% {
    top: 105%;
    opacity: 0;
    transform: translateX(-20px) rotate(360deg);
  }
}

/* ---- Sparkles ---- */
.eid-sparkles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.eid-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  opacity: 0;
  animation: sparkleGlow 4s ease-in-out infinite;
}

.eid-sparkle::before {
  content: '✦';
  font-size: 10px;
}

.eid-sparkle:nth-child(1)  { top: 8%;  left: 10%; animation-delay: 0s;   }
.eid-sparkle:nth-child(2)  { top: 15%; left: 30%; animation-delay: 0.8s; }
.eid-sparkle:nth-child(3)  { top: 5%;  left: 55%; animation-delay: 1.6s; }
.eid-sparkle:nth-child(4)  { top: 22%; left: 75%; animation-delay: 0.4s; }
.eid-sparkle:nth-child(5)  { top: 35%; left: 90%; animation-delay: 2.2s; }
.eid-sparkle:nth-child(6)  { top: 50%; left: 5%;  animation-delay: 1.2s; }
.eid-sparkle:nth-child(7)  { top: 60%; left: 45%; animation-delay: 2.8s; }
.eid-sparkle:nth-child(8)  { top: 70%; left: 80%; animation-delay: 0.6s; }

.eid-sparkle:nth-child(odd)::before  { color: var(--eid-gold); }
.eid-sparkle:nth-child(even)::before { color: var(--eid-yellow); }

@keyframes sparkleGlow {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50%      { opacity: 0.7; transform: scale(1.2) rotate(180deg); }
}

/* ---- Gift Box Corner Decorations ---- */
.eid-gift-corner {
  position: fixed;
  width: 50px;
  height: 50px;
  pointer-events: none;
  z-index: 1031;
  opacity: 0.25;
}

/* Gift box shape using CSS */
.eid-gift-corner::before {
  content: '';
  position: absolute;
  width: 36px;
  height: 28px;
  background: var(--eid-coral);
  border-radius: 3px;
  border: 2px solid var(--eid-coral-dark);
}

/* Gift box ribbon */
.eid-gift-corner::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 28px;
  background:
    linear-gradient(0deg, transparent 11px, var(--eid-gold) 11px, var(--eid-gold) 15px, transparent 15px),
    linear-gradient(90deg, transparent 14px, var(--eid-gold) 14px, var(--eid-gold) 18px, transparent 18px);
  border-radius: 3px;
}

/* Gift box lid */
.eid-gift-corner-tl {
  top: 10px;
  left: 10px;
}

.eid-gift-corner-tr {
  top: 10px;
  right: 10px;
}
.eid-gift-corner-tr::before,
.eid-gift-corner-tr::after {
  right: 0;
}

.eid-gift-corner-bl {
  bottom: 10px;
  left: 10px;
}

.eid-gift-corner-br {
  bottom: 10px;
  right: 10px;
}
.eid-gift-corner-br::before,
.eid-gift-corner-br::after {
  right: 0;
}

/* Alternate gift box colors */
.eid-gift-corner-tr::before { background: var(--eid-teal); border-color: var(--eid-teal-dark); }
.eid-gift-corner-bl::before { background: var(--eid-orange); border-color: var(--eid-coral-dark); }
.eid-gift-corner-br::before { background: var(--eid-yellow); border-color: var(--eid-yellow-dark); }

/* ---- Golden Accents on Product Cards ---- */
.eid-alfitr-theme .product-card {
  border: 1px solid rgba(212, 175, 55, 0.12);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.eid-alfitr-theme .product-card:hover {
  box-shadow:
    0 4px 20px rgba(212, 175, 55, 0.18),
    0 0 0 1px rgba(212, 175, 55, 0.1) !important;
  border-color: rgba(212, 175, 55, 0.3);
}

/* Celebratory golden accent line on top of product cards */
.eid-alfitr-theme .product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--eid-coral), var(--eid-gold), var(--eid-teal));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 2px 2px 0 0;
  z-index: 1;
}

.eid-alfitr-theme .product-card:hover::before {
  opacity: 1;
}

/* Golden accent on section headings */
.eid-alfitr-theme .section-title,
.eid-alfitr-theme h2.mb-4,
.eid-alfitr-theme .shop-content-wrapper h2 {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Golden separator lines */
.eid-alfitr-theme hr {
  border-color: rgba(212, 175, 55, 0.15);
}

/* ---- Eid Al-Fitr Popup Modal ---- */
.eid-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.eid-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.eid-popup {
  background: linear-gradient(160deg, #FFFDF5 0%, #FFF8E7 40%, #FEFEFE 100%);
  border: 2px solid var(--eid-gold);
  border-radius: 24px;
  padding: 40px 35px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s ease;
  box-shadow:
    0 0 40px rgba(212, 175, 55, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.2),
    inset 0 0 80px rgba(255, 230, 109, 0.05);
  overflow: hidden;
}

.eid-popup-overlay.active .eid-popup {
  transform: scale(1) translateY(0);
}

/* Popup festive background pattern */
.eid-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 15% 25%, var(--eid-coral) 2px, transparent 2px),
    radial-gradient(circle at 85% 75%, var(--eid-teal) 2px, transparent 2px),
    radial-gradient(circle at 50% 50%, var(--eid-yellow) 1.5px, transparent 1.5px);
  background-size: 40px 40px, 45px 45px, 35px 35px;
  pointer-events: none;
}

/* Festive gradient strip at top of popup */
.eid-popup::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--eid-coral), var(--eid-orange), var(--eid-yellow), var(--eid-teal));
  border-radius: 24px 24px 0 0;
}

.eid-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--eid-coral);
  font-size: 26px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1;
  line-height: 1;
}

.eid-popup-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.eid-popup-icon {
  font-size: 55px;
  margin-bottom: 12px;
  display: block;
  animation: popupBounce 2s ease-in-out infinite;
}

@keyframes popupBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-10px) scale(1.05); }
  60% { transform: translateY(-3px) scale(1); }
}

.eid-popup-title {
  color: var(--eid-coral);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--eid-coral) 0%, var(--eid-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eid-popup-subtitle {
  color: var(--eid-teal-dark);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  opacity: 0.9;
}

.eid-popup-message {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.eid-popup-btn {
  background: linear-gradient(135deg, var(--eid-coral) 0%, var(--eid-orange) 100%);
  color: var(--eid-white);
  border: none;
  padding: 12px 35px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.eid-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Popup balloons decoration */
.eid-popup-balloons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.eid-popup-balloons span {
  font-size: 24px;
  animation: popupBalloonBob 2.5s ease-in-out infinite;
  display: inline-block;
}

.eid-popup-balloons span:nth-child(2) { animation-delay: -0.5s; }
.eid-popup-balloons span:nth-child(3) { animation-delay: -1s; }
.eid-popup-balloons span:nth-child(4) { animation-delay: -1.5s; }

@keyframes popupBalloonBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

/* Confetti sparkles in popup */
.eid-popup-sparkles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.eid-popup-sparkles span {
  position: absolute;
  font-size: 10px;
  animation: sparkleGlow 3s ease-in-out infinite;
}

.eid-popup-sparkles span:nth-child(1) { top: 12%; left: 8%;  color: var(--eid-coral);  animation-delay: 0s; }
.eid-popup-sparkles span:nth-child(2) { top: 10%; right: 10%; color: var(--eid-teal);   animation-delay: 0.7s; }
.eid-popup-sparkles span:nth-child(3) { top: 65%; left: 6%;  color: var(--eid-yellow); animation-delay: 1.4s; }
.eid-popup-sparkles span:nth-child(4) { top: 72%; right: 8%; color: var(--eid-orange); animation-delay: 0.3s; }
.eid-popup-sparkles span:nth-child(5) { top: 40%; left: 4%;  color: var(--eid-gold);   animation-delay: 2s; }

/* ---- Responsive ---- */

/* Tablets */
@media (max-width: 991px) {
  .eid-balloon .balloon-body {
    width: 24px;
    height: 30px;
  }
  .eid-balloon .balloon-string {
    height: 35px;
  }
  .eid-gift-corner {
    width: 40px;
    height: 40px;
    opacity: 0.18;
  }
  .eid-gift-corner::before,
  .eid-gift-corner::after {
    width: 28px;
    height: 22px;
  }
  .eid-confetti-piece {
    width: 6px;
    height: 6px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .eid-banner {
    font-size: 13px;
    padding: 7px 10px;
  }
  /* Slow down banner shimmer on mobile */
  .eid-banner .eid-banner-text {
    animation-duration: 6s;
  }
  .eid-balloons {
    display: none;
  }
  .eid-confetti {
    display: none;
  }
  .eid-gift-corner {
    display: none;
  }
  /* Reduce and slow down sparkles on mobile */
  .eid-sparkles .eid-sparkle::before {
    font-size: 7px;
  }
  .eid-sparkle {
    animation-duration: 8s;
  }
  .eid-sparkle:nth-child(n+5) {
    display: none;
  }
  .eid-bg-pattern {
    opacity: 0.03;
  }
  .eid-popup {
    padding: 30px 22px;
    max-width: 340px;
  }
  .eid-popup-title {
    font-size: 24px;
  }
  .eid-popup-icon {
    font-size: 42px;
    animation-duration: 4s;
  }
  .eid-popup-balloons span {
    animation-duration: 5s;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .eid-banner {
    font-size: 12px;
    padding: 6px 8px;
  }
  .eid-banner::before,
  .eid-banner::after {
    font-size: 10px;
    margin: 0 5px;
  }
  /* Stop shimmer completely on very small screens - use static text */
  .eid-banner .eid-banner-text {
    animation: none;
    -webkit-text-fill-color: var(--eid-white);
    background: none;
  }
  .eid-sparkles {
    display: none;
  }
  .eid-popup {
    padding: 25px 18px;
    max-width: 300px;
  }
  .eid-popup-icon {
    animation: none;
  }
}

/* ---- Reduce motion for accessibility ---- */
@media (prefers-reduced-motion: reduce) {
  .eid-balloon,
  .eid-confetti-piece,
  .eid-sparkle,
  .eid-popup-icon,
  .eid-popup-balloons span,
  .eid-banner .eid-banner-text {
    animation: none !important;
  }
  .eid-sparkle { opacity: 0.3; }
  .eid-confetti-piece { opacity: 0; }
  .eid-balloon { opacity: 0; }
  .eid-popup-icon { transform: none; }
  .eid-banner .eid-banner-text {
    -webkit-text-fill-color: var(--eid-white);
    background: none;
  }
}
