/* ============================================
   THE LADIES LOFT — Feminine Enhancements
   Girly vibes, smooth animations, sparkles
   ============================================ */

/* ---- Softer Color Overrides ---- */
:root {
  --color-pink: #E8A0B5;
  --color-pink-light: #F5C6D6;
  --color-pink-glow: rgba(232, 160, 181, 0.25);
  --color-lavender: #D4B8E0;
  --color-gradient-pink: linear-gradient(135deg, #E8A0B5 0%, #C4A0D0 50%, #D4AF37 100%);
  --color-gradient-warm: linear-gradient(135deg, #5C3A4E 0%, #8B4A6B 50%, #C4A0A0 100%);
  --color-gradient-btn: linear-gradient(135deg, #5C3A4E 0%, #8B4A6B 100%);
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--color-rose), var(--color-pink));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--color-plum-mid), var(--color-rose));
}

/* ---- Gradient Buttons ---- */
.btn-primary {
  background: var(--color-gradient-btn);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--color-gradient-btn);
  box-shadow: 0 6px 20px var(--color-pink-glow);
}

.add-to-cart-btn {
  background: var(--color-gradient-btn);
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.add-to-cart-btn:hover::before {
  left: 100%;
}

.add-to-cart-btn:hover {
  background: var(--color-gradient-btn);
  box-shadow: 0 4px 15px var(--color-pink-glow);
}

/* ---- Product Card Glow & Animations ---- */
.product-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 12px 40px var(--color-pink-glow), 0 4px 12px rgba(45, 27, 46, 0.08);
  border-color: var(--color-pink-light);
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Staggered Product Reveal ---- */
.product-grid .product-card {
  opacity: 0;
  transform: translateY(30px);
  animation: cardReveal 0.6s ease forwards;
}

.product-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.product-grid .product-card:nth-child(2) { animation-delay: 0.1s; }
.product-grid .product-card:nth-child(3) { animation-delay: 0.15s; }
.product-grid .product-card:nth-child(4) { animation-delay: 0.2s; }
.product-grid .product-card:nth-child(5) { animation-delay: 0.25s; }
.product-grid .product-card:nth-child(6) { animation-delay: 0.3s; }
.product-grid .product-card:nth-child(7) { animation-delay: 0.35s; }
.product-grid .product-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Wishlist Heart Pop Animation ---- */
.wishlist-btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wishlist-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 15px var(--color-pink-glow);
}

.wishlist-btn.active {
  animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #E85A7A;
}

.wishlist-btn.active svg {
  fill: #E85A7A;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ---- Sale Badge Pulse ---- */
.product-badge.sale {
  background: linear-gradient(135deg, #E85A7A, #C84040);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 90, 122, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(232, 90, 122, 0); }
}

.product-badge.new {
  animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 8px 2px rgba(212, 175, 55, 0.3); }
}

/* ---- Category Card Hover ---- */
.category-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--color-pink-light);
  box-shadow: 0 12px 30px var(--color-pink-glow);
}

.category-card:hover .category-icon {
  background: var(--color-gradient-warm);
  color: var(--color-cream);
  transform: scale(1.1) rotate(-5deg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ---- Hero Enhancements ---- */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-cream), transparent);
  z-index: 3;
  pointer-events: none;
}

.hero-content h1 {
  text-shadow: 0 2px 30px rgba(0,0,0,0.2);
}

.hero-tag {
  animation: fadeSlideDown 0.8s ease 0.2s both;
}

.hero-content h1 {
  animation: fadeSlideDown 0.8s ease 0.4s both;
}

.hero-content p {
  animation: fadeSlideDown 0.8s ease 0.6s both;
}

.hero-cta {
  animation: fadeSlideDown 0.8s ease 0.8s both;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Section Header Animations ---- */
.section-tag {
  position: relative;
  display: inline-block;
}

.section-tag::before,
.section-tag::after {
  content: '✦';
  font-size: 8px;
  color: var(--color-gold);
  position: relative;
  top: -2px;
  margin: 0 8px;
}

/* ---- Announcement Bar Scroll ---- */
.announcement-bar {
  background: linear-gradient(90deg, var(--color-plum) 0%, #4A2A4A 50%, var(--color-plum) 100%);
  position: relative;
  overflow: hidden;
}

.announcement-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  animation: announcementShine 4s ease-in-out infinite;
}

@keyframes announcementShine {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* ---- Cart Badge Bounce ---- */
.badge {
  animation: badgeBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, var(--color-gold), #E8D48B);
}

@keyframes badgeBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ---- Toast Enhancements ---- */
.toast {
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

.toast.success {
  background: linear-gradient(135deg, #4A7C59, #5A9A6A);
}

/* ---- Newsletter Section Glow ---- */
.newsletter-inner {
  background: linear-gradient(135deg, var(--color-plum) 0%, #4A2A5A 50%, var(--color-plum-mid) 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-inner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 160, 181, 0.15), transparent 70%);
  top: -100px;
  right: -50px;
  border-radius: 50%;
}

.newsletter-inner::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
  bottom: -80px;
  left: 10%;
  border-radius: 50%;
}

/* ---- Footer Social Hover ---- */
.social-link {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* ---- Banner Tile Hover ---- */
.banner-tile {
  transition: all 0.4s ease;
}

.banner-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(45, 27, 46, 0.2);
}

/* ---- Header Icon Hover ---- */
.header-icon-btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-icon-btn:hover {
  transform: scale(1.1);
  background: var(--color-blush);
}

/* ---- Modal Open Animation ---- */
.modal.open {
  animation: modalBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalBounce {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.03); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ---- Countdown Glow ---- */
.countdown-unit {
  background: linear-gradient(135deg, var(--color-plum) 0%, #4A2A4A 100%);
  box-shadow: 0 4px 15px rgba(45, 27, 46, 0.2);
  transition: transform 0.3s ease;
}

.countdown-unit:hover {
  transform: scale(1.05);
}

/* ---- Dot Hover ---- */
.dot {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dot:hover {
  transform: scale(1.3);
  border-color: var(--color-gold);
}

/* ---- Filter Select Hover ---- */
.filter-bar select {
  transition: all 0.3s ease;
}

.filter-bar select:hover {
  border-color: var(--color-pink);
  box-shadow: 0 2px 10px var(--color-pink-glow);
}

/* ---- Cart Item Hover ---- */
.cart-item {
  transition: background 0.3s ease;
  padding: 12px;
  border-radius: var(--radius-md);
  margin: -12px;
  margin-bottom: 4px;
}

.cart-item:hover {
  background: var(--color-blush);
}

/* ---- Flash Card Hover ---- */
.flash-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flash-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px var(--color-pink-glow);
}

/* ---- Tracking Card ---- */
.tracking-inner {
  transition: all 0.3s ease;
}

.tracking-inner:hover {
  box-shadow: 0 8px 30px var(--color-pink-glow);
}

/* ---- Scroll Arrow Hover ---- */
.scroll-arrow {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-arrow:hover {
  transform: scale(1.1);
  background: var(--color-gradient-btn);
  color: var(--color-cream);
  border-color: transparent;
}

/* ---- Loading Spinner Pink ---- */
@keyframes spinPink {
  to { transform: rotate(360deg); }
}

/* ---- Smooth Page Load ---- */
body {
  animation: pageLoad 0.6s ease;
}

@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Floating Hearts Background (Hero) ---- */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(232, 160, 181, 0.4) 50%, transparent 50%),
    radial-gradient(2px 2px at 30% 60%, rgba(212, 175, 55, 0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 50% 30%, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
    radial-gradient(2px 2px at 70% 70%, rgba(232, 160, 181, 0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 40%, rgba(212, 175, 55, 0.25) 50%, transparent 50%),
    radial-gradient(2px 2px at 15% 80%, rgba(255, 255, 255, 0.2) 50%, transparent 50%);
  animation: sparkle 4s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

@keyframes sparkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ---- Scroll Reveal ---- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ---- Add to Cart Fly Animation ---- */
.cart-fly-dot {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--color-gradient-btn);
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 2px 8px var(--color-pink-glow);
}

@keyframes cartFly {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* ---- Cart Icon Shake on Add ---- */
@keyframes cartShake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(4deg); }
}

.cart-shake {
  animation: cartShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* ---- Wishlist Heart Burst ---- */
@keyframes heartBurst {
  0% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(0.85); }
  45% { transform: scale(1.15); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.heart-burst {
  animation: heartBurst 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* ---- Confetti Particles (for wishlist/cart) ---- */
.confetti-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
}

@keyframes confettiFall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(360deg); opacity: 0; }
}

/* ---- Section Titles Underline Draw ---- */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-gradient-pink);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title.revealed::after {
  width: 60px;
  left: calc(50% - 30px);
}

/* ---- Logo Hover Sparkle ---- */
.logo {
  position: relative;
}

.logo:hover .logo-main {
  background: var(--color-gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Smooth Number Count ---- */
@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.count-pulse {
  animation: countPulse 0.3s ease;
}

/* ---- Image Lazy Reveal ---- */
.product-card-image img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

/* ---- Cart Drawer Slide Enhancement ---- */
.cart-drawer.open {
  animation: drawerSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlide {
  from { transform: translateX(100%); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---- Reduced Motion Override ---- */
@media (prefers-reduced-motion: reduce) {
  .product-grid .product-card,
  .hero-tag, .hero-content h1, .hero-content p, .hero-cta,
  body, .badge, .wishlist-btn.active,
  .cart-shake, .heart-burst {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .scroll-reveal, .scroll-reveal-left, .scroll-reveal-right, .scroll-reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-badge.sale,
  .product-badge.new,
  .announcement-bar::before,
  .hero::before {
    animation: none;
  }

  .btn-primary::before,
  .add-to-cart-btn::before {
    display: none;
  }

  .cart-fly-dot, .confetti-particle {
    display: none;
  }
}
