/* ==========================================================================
   CHUDHARY PARFUMS - 60 FPS GPU HARDWARE ACCELERATED ANIMATIONS
   Modern Noir & Silver Luxury Atelier Aesthetic
   ========================================================================= */

/* Hardware Accelerated Transforms & Compositing */
.reveal-on-scroll,
.product-card,
.product-img,
.btn,
.btn-icon,
.cart-drawer,
.search-modal,
.quick-view-modal,
.drawer-overlay,
.modal-overlay,
.toast,
.mobile-sidebar-drawer,
.hero-bottle-float {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px var(--brand-gold-glow);
  }
  50% {
    box-shadow: 0 0 28px var(--brand-gold-glow);
  }
}

@keyframes floatParticle {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(3deg);
  }
}

/* Floating Hero Perfume Bottle Hovering Animation */
@keyframes heroFloat {
  0%, 100% {
    transform: translate3d(0, 0px, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(0.6deg);
  }
}

/* Subtle Shimmer Sheen for Luxury Buttons */
@keyframes shimmerGold {
  0% {
    background-position: -250% 0;
  }
  100% {
    background-position: 250% 0;
  }
}

/* Pulse Glow for Badges & Highlights */
@keyframes badgePulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 160, 23, 0);
  }
}

/* Cart Badge Increment Bounce */
@keyframes cartBounce {
  0%, 100% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.4) translateY(-2px);
  }
  60% {
    transform: scale(0.92);
  }
}

/* Toast In-Out */
@keyframes toastSlideIn {
  from {
    transform: translate3d(100%, 0, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

/* Backdrop Fade */
@keyframes fadeInBackdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Utility Animation Classes */
.animate-fadeInUp {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: floatParticle 5s ease-in-out infinite;
}

.hero-bottle-float {
  animation: heroFloat 5.5s ease-in-out infinite !important;
  will-change: transform;
}

.pulse-glow {
  animation: pulseGlow 3s infinite;
}

.badge-pulse {
  animation: badgePulseGlow 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.cart-bounce-active {
  animation: cartBounce 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Luxury Shimmer Effect for Primary CTAs */
.btn-primary.shimmer-gold,
.btn-gold-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-primary.shimmer-gold::after,
.btn-gold-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: buttonSweep 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes buttonSweep {
  0% {
    left: -150%;
  }
  25%, 100% {
    left: 200%;
  }
}

/* Ultra Smooth Scroll Reveal & Cascade Staggers */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-stagger-1 { transition-delay: 0.05s; }
.reveal-stagger-2 { transition-delay: 0.12s; }
.reveal-stagger-3 { transition-delay: 0.19s; }
.reveal-stagger-4 { transition-delay: 0.26s; }

/* Luxury Product Flacon Elevation & Micro-Scale */
.product-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 0 20px var(--brand-gold-glow) !important;
}
.product-card .product-img-wrapper img,
.product-card .product-img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-img-wrapper img,
.product-card:hover .product-img {
  transform: scale(1.05);
}

/* Luxury Story, Atelier, & Review Cards Elevation */
.story-card,
.atelier-card,
.review-card,
.checkout-card,
.feature-item,
.pak-trust-card {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}
.story-card:hover,
.atelier-card:hover,
.review-card:hover,
.pak-trust-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 0 16px var(--brand-gold-glow) !important;
}

/* Ambient Gold Halo Breathing Aura */
@keyframes ambientHaloPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.22;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.4;
  }
}
.hero-halo-pulse {
  animation: ambientHaloPulse 6s ease-in-out infinite;
  will-change: transform, opacity;
}

/* Tactile Micro-Interactions (Mobile & Desktop) */
.btn:active,
.btn-icon:active,
.mobile-bottom-nav-item:active,
.shop-cat-pill:active,
.pm-pill:active,
.size-pill:active,
.theme-switch-slider:active,
.ss-upload-dropzone:active {
  transform: scale(0.95) !important;
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Smooth Toast Notifications */
#toast-container,
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.toast-icon {
  font-size: 1.2rem;
  color: var(--brand-gold);
}

@media (max-width: 576px) {
  #toast-container,
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 74px; /* Above mobile sticky bottom nav */
  }
  .toast {
    min-width: 100%;
    max-width: 100%;
  }
}
