/* Easter / spring holiday theme — active when body.theme-easter */

body.theme-easter {
  --holiday-accent: #7cb342;
  --holiday-accent-soft: #c5e1a5;
  --holiday-bg-tint: rgba(255, 253, 248, 0.92);
  --holiday-border: rgba(200, 230, 180, 0.45);
}

body.theme-easter #app {
  position: relative;
  z-index: 2;
}

/* Fluid Animated Gradient Background */
@keyframes holidayFluidBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.theme-easter {
  background: linear-gradient(-45deg, 
    rgba(255, 253, 248, 0.95), 
    rgba(240, 250, 230, 0.95), 
    rgba(255, 248, 235, 0.95), 
    rgba(235, 250, 240, 0.95));
  background-size: 400% 400%;
  animation: holidayFluidBg 15s ease infinite;
  background-attachment: fixed;
}

/* Glassmorphism Banner */
.mc-holiday-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: max(0.5rem, env(safe-area-inset-top, 0px)) calc(2.5rem + env(safe-area-inset-right, 0px)) 0.5rem
    max(0.75rem, env(safe-area-inset-left, 0px));
  font-size: 0.875rem;
  font-weight: 600;
  color: #153209;
  
  /* Glassmorphism Update */
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(124, 179, 66, 0.15), inset 0 -1px 0 rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.mc-holiday-banner-close,
.mc-holiday-banner-cta {
  pointer-events: auto;
}

.mc-holiday-banner-text {
  text-align: center;
  flex: 1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.mc-holiday-banner-cta {
  flex-shrink: 0;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(124, 179, 66, 0.4);
  background: linear-gradient(135deg, #ffffff, #f0fad8);
  color: #153209;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124, 179, 66, 0.2);
  transition: all 0.3s ease;
}

.mc-holiday-banner-cta:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3), 0 0 10px rgba(124, 179, 66, 0.2);
  border-color: #7cb342;
}

.mc-holiday-banner-close {
  position: absolute;
  right: max(0.35rem, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: #2e4a1c;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mc-holiday-banner-close:hover {
  background: rgba(124, 179, 66, 0.15);
  color: #1a2a10;
}

.mc-holiday-banner-close:focus-visible,
.mc-holiday-banner-cta:focus-visible {
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
}

body:has(.mc-holiday-banner) {
  padding-top: calc(env(safe-area-inset-top, 0px) + 3rem);
}

body:has(.mc-holiday-banner) .header {
  top: calc(env(safe-area-inset-top, 0px) + 3rem);
}

@media (max-width: 820px) {
  body:has(.mc-holiday-banner).mobile-nav-open #mobile-nav-panel {
    top: calc(env(safe-area-inset-top, 0px) + 3rem);
    height: calc(100vh - env(safe-area-inset-top, 0px) - 3rem);
    height: calc(100dvh - env(safe-area-inset-top, 0px) - 3rem);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 3rem);
  }
}

/* Polished Decor Border with Animation */
@keyframes decorPulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.mc-holiday-decor {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 3px solid transparent;
  border-image: linear-gradient(
    135deg,
    rgba(197, 225, 165, 0.9),
    rgba(255, 224, 178, 0.8),
    rgba(186, 230, 253, 0.6)
  ) 1;
  box-shadow: inset 0 0 20px rgba(197, 225, 165, 0.2);
  animation: decorPulse 4s ease-in-out infinite;
}

/* Floating Particles (Pure CSS) */
@keyframes floatUp1 {
  0% { transform: translateY(100vh) rotate(0deg) scale(0.8); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-20vh) rotate(360deg) scale(1.2); opacity: 0; }
}

@keyframes floatUp2 {
  0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-20vh) rotate(-360deg) scale(1); opacity: 0; }
}

.mc-holiday-decor::before, 
.mc-holiday-decor::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  color: rgba(255, 255, 255, 0.7); /* for box-shadow inheritance */
}

.mc-holiday-decor::before {
  width: 6px;
  height: 6px;
  left: 10vw;
  bottom: -20px;
  animation: floatUp1 15s linear infinite;
  box-shadow: 
    30vw 20vh 15px currentcolor, 
    70vw 50vh 10px currentcolor,
    20vw 80vh 12px currentcolor,
    85vw 15vh 10px currentcolor,
    50vw 90vh 15px currentcolor;
}

.mc-holiday-decor::after {
  width: 4px;
  height: 4px;
  left: 80vw;
  bottom: -20px;
  animation: floatUp2 20s linear infinite;
  animation-delay: -7s;
  box-shadow: 
    -30vw 30vh 8px currentcolor, 
    -60vw 60vh 12px currentcolor,
    -15vw 10vh 10px currentcolor,
    -40vw 85vh 14px currentcolor,
    -75vw 40vh 10px currentcolor;
}

.cart-summary-lines,
.checkout-summary-lines {
  width: 100%;
  margin-bottom: 0.5rem;
}

.cart-summary-row,
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.2rem 0;
}

.cart-discount-value,
.checkout-discount-value {
  color: #2e7d32;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(124, 179, 66, 0.3);
}

/* Enhanced Hover States */
body.theme-easter .btn-primary {
  box-shadow: 0 4px 15px rgba(124, 179, 66, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.theme-easter .btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s ease;
  pointer-events: none;
}

body.theme-easter .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(124, 179, 66, 0.5), 0 0 15px rgba(124, 179, 66, 0.3);
  transform: translateY(-2px);
}

body.theme-easter .btn-primary:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Subtle dynamic glow on interactive cards */
body.theme-easter .product-card {
  transition: all 0.3s ease;
}

body.theme-easter .product-card:hover {
  box-shadow: 0 10px 30px rgba(124, 179, 66, 0.15), 0 0 15px rgba(255, 255, 255, 0.8);
  border-color: rgba(200, 230, 180, 0.8);
}
