/**
 * Blue Paradise Dairy - Visual Enhancements
 * Premium animations, fluid conversational elements, and graphics
 */

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT CARD ENHANCED ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.product-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(193, 127, 89, 0.25);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-image {
  overflow: hidden;
  position: relative;
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(193, 127, 89, 0) 0%, rgba(193, 127, 89, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .product-image::after {
  opacity: 1;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   ADD TO CART BUTTON - ENHANCED STATES
   ═══════════════════════════════════════════════════════════════════════════ */

.add-to-cart-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.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.3), transparent);
  transition: left 0.6s ease;
}

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

.add-to-cart-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(193, 127, 89, 0.45);
}

.add-to-cart-btn.loading {
  background: linear-gradient(135deg, #A66B48 0%, #8B5A3C 100%);
  pointer-events: none;
}

.add-to-cart-btn.loading .btn-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.add-to-cart-btn.success {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  animation: successPulse 0.5s ease;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING ELEMENTS & DECORATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Floating soap bubbles decoration */
.bubble-decoration {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(193, 127, 89, 0.1));
  border-radius: 50%;
  animation: floatBubble linear infinite;
  opacity: 0.6;
}

@keyframes floatBubble {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONVERSATIONAL ELEMENTS - TRUST BUILDERS
   ═══════════════════════════════════════════════════════════════════════════ */

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250, 243, 232, 0.95) 100%);
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(92, 64, 51, 0.1);
  font-size: 0.9rem;
  font-weight: 600;
  color: #1B2838;
  border: 1px solid rgba(193, 127, 89, 0.2);
  animation: trustPulse 3s ease-in-out infinite;
}

@keyframes trustPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(92, 64, 51, 0.1); }
  50% { box-shadow: 0 8px 30px rgba(193, 127, 89, 0.2); }
}

.trust-badge-icon {
  font-size: 1.25rem;
}

/* Handwritten style notes */
.farm-note {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: #C17F59;
  transform: rotate(-2deg);
  display: inline-block;
  background: linear-gradient(135deg, #FDF8F3 0%, #FAF3E8 100%);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
  position: relative;
}

.farm-note::before {
  content: '✨';
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIVE ACTIVITY NOTIFICATION - ENHANCED
   ═══════════════════════════════════════════════════════════════════════════ */

.live-activity {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF8F3 100%);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9000;
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid #22C55E;
  max-width: 350px;
}

.live-activity.show {
  transform: translateX(0);
}

.live-activity-dot {
  width: 10px;
  height: 10px;
  background: #22C55E;
  border-radius: 50%;
  animation: livePulse 2s infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.live-activity-text {
  font-size: 0.95rem;
  color: #1F2937;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADDED TO CART NOTIFICATION - ENHANCED
   ═══════════════════════════════════════════════════════════════════════════ */

.added-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9001;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.added-notification.show {
  transform: translateY(0);
}

.added-notification-icon {
  font-size: 1.5rem;
  animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.added-notification-text {
  font-weight: 600;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CART DRAWER - ENHANCED
   ═══════════════════════════════════════════════════════════════════════════ */

.cart-drawer {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-item {
  animation: cartItemSlide 0.4s ease-out;
}

@keyframes cartItemSlide {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-empty-icon {
  font-size: 4rem;
  animation: cartEmptyBounce 2s ease-in-out infinite;
}

@keyframes cartEmptyBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHIPPING PROGRESS BAR - ANIMATED
   ═══════════════════════════════════════════════════════════════════════════ */

.shipping-progress-fill {
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.shipping-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shippingShine 2s ease-in-out infinite;
}

@keyframes shippingShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BADGES - ENHANCED WITH ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.badge {
  animation: badgeAppear 0.5s ease-out;
}

@keyframes badgeAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.badge-bestseller {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
  from { box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3); }
  to { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5); }
}

.badge-new {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.badge-limited {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.badge-sale {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
}

.badge-sensitive {
  background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCARCITY INDICATOR - URGENCY
   ═══════════════════════════════════════════════════════════════════════════ */

.scarcity {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  animation: scarcityPulse 2s ease-in-out infinite;
  position: absolute;
  top: 50px;
  left: 10px;
  z-index: 5;
}

@keyframes scarcityPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.scarcity-icon {
  animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIEWING NOW INDICATOR
   ═══════════════════════════════════════════════════════════════════════════ */

.viewing-now {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #6B7280;
}

.viewing-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: viewingPulse 2s infinite;
}

@keyframes viewingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
  animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(193, 127, 89, 0.1) 0%, transparent 70%);
  animation: heroGlow2 8s ease-in-out infinite;
}

@keyframes heroGlow2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILTER BUTTONS - ENHANCED
   ═══════════════════════════════════════════════════════════════════════════ */

.filter-btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(193, 127, 89, 0.1) 0%, rgba(193, 127, 89, 0.05) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.filter-btn:hover::before {
  transform: scaleX(1);
}

.filter-btn.active {
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════════════════
   QUICK VIEW OVERLAY - ENHANCED
   ═══════════════════════════════════════════════════════════════════════════ */

.quick-view-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .quick-view-overlay {
  opacity: 1;
}

.quick-view-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #1B2838;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .quick-view-btn {
  transform: translateY(0);
}

.quick-view-btn:hover {
  background: #C17F59;
  color: white;
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RATING STARS - ANIMATED
   ═══════════════════════════════════════════════════════════════════════════ */

.stars {
  color: #F59E0B;
  letter-spacing: 2px;
}

.product-card:hover .stars {
  animation: starsSparkle 0.6s ease;
}

@keyframes starsSparkle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.footer-social a {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social a:hover {
  transform: translateY(-5px) scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════════════════════ */

.skeleton {
  background: linear-gradient(90deg, #E8DCC8 25%, #F2E8DA 50%, #E8DCC8 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 8px;
}

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