/* ==========================================================================
   ASEEL WATER - PREMIUM ANIMATIONS & LAYOUT ENHANCEMENTS (CSS)
   ========================================================================== */

:root {
  --primary-gradient: linear-gradient(135deg, #0052d4 0%, #4364f7 50%, #6fb1fc 100%);
  --whatsapp-gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  --accent-glow: rgba(67, 100, 247, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-subtle: 0 10px 30px -10px rgba(0, 50, 120, 0.12);
  --shadow-hover: 0 20px 45px -10px rgba(0, 82, 212, 0.28);
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 1. Header & Navigation Glassmorphism */
header, .site-header, .navbar, .header_top, .menu-row {
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  transition: var(--transition-smooth) !important;
}

/* Navigation Links Animated Underline */
.menu-primary-menu-container a, .nav-menu a, .nav-link {
  position: relative !important;
  transition: color 0.3s ease !important;
}

.menu-primary-menu-container a::after, .nav-menu a::after {
  content: '' !important;
  position: absolute !important;
  bottom: -4px !important;
  left: 50% !important;
  width: 0 !important;
  height: 2px !important;
  background: var(--primary-gradient) !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  transform: translateX(-50%) !important;
  border-radius: 2px !important;
}

.menu-primary-menu-container a:hover::after, .nav-menu a:hover::after {
  width: 80% !important;
}

/* 2. Keyframe Animations */
@keyframes floatAnimation {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes shimmerSweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes scaleUpFade {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 3. Hero Bottle Floating Graphics */
.hero-image img, .banner_row img, .hero-slide img, .logo img {
  animation: floatAnimation 6s ease-in-out infinite;
}

/* 4. Interactive Product Cards & Hover Effects */
.product-card, .shop-item, .product, .type-product, .card {
  transition: var(--transition-smooth) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 82, 212, 0.08) !important;
  overflow: hidden !important;
  box-shadow: 0 8px 25px rgba(0, 50, 120, 0.06) !important;
}

.product-card:hover, .shop-item:hover, .product:hover, .type-product:hover {
  transform: translateY(-10px) scale(1.015) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: rgba(67, 100, 247, 0.3) !important;
}

.product-card img, .shop-item img, .product img, .type-product img, .wc-img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.product-card:hover img, .shop-item:hover img, .product:hover img, .wc-img-wrapper:hover img {
  transform: scale(1.08) rotate(-1deg) !important;
}

/* Product Titles & Prices */
.woocommerce-loop-product__title, .product-card h3, .product-card h4 {
  font-weight: 700 !important;
  color: #0f172a !important;
  transition: color 0.3s ease !important;
}

.product:hover .woocommerce-loop-product__title {
  color: #0052d4 !important;
}

.price, .woocommerce-Price-amount {
  font-weight: 800 !important;
  color: #0052d4 !important;
  font-size: 1.1rem !important;
}

/* 5. Category Tabs Styling & Animation */
.nav-tabs, #tabs {
  border-bottom: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: center !important;
  margin-bottom: 30px !important;
}

.nav-tabs > li > a, #tabs > li > a, .tab-btn {
  border-radius: 30px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid transparent !important;
  transition: var(--transition-smooth) !important;
}

.nav-tabs > li.active > a, .nav-tabs > li > a:hover, .tab-btn.active, .tab-btn:hover {
  background: var(--primary-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 82, 212, 0.3) !important;
  transform: translateY(-2px) scale(1.05) !important;
}

/* 6. WhatsApp Order Button Styling & Shimmer */
.btn-whatsapp-order {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: var(--whatsapp-gradient) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  padding: 12px 24px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35) !important;
  transition: var(--transition-smooth) !important;
  border: none !important;
  cursor: pointer !important;
  margin-top: 14px !important;
  position: relative !important;
  overflow: hidden !important;
  animation: pulseGlow 3s infinite;
}

.btn-whatsapp-order i {
  font-size: 1.25rem !important;
}

.btn-whatsapp-order::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 50% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
  transform: skewX(-25deg) !important;
}

.btn-whatsapp-order:hover::after {
  animation: shimmerSweep 1s ease-in-out !important;
}

.btn-whatsapp-order:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.55) !important;
  color: #ffffff !important;
}

/* 7. Hide Quantity Selectors, QIB Controls, and Legacy Cart Elements */
.qib-container,
.qib-button,
.quantity,
.qty-modifier,
.qty-btn,
.buttons_added,
input.qty,
input[name="quantity"],
.cart-toggle,
.xoo-wsc-cart-trigger,
.shopping-cart,
.cart-badge,
#sideCartDrawer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* 8. Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

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

/* 9. Floating Back to Top Button */
#backToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 10px 25px rgba(0, 82, 212, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: var(--transition-smooth);
  z-index: 9999;
}

#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

#backToTopBtn:hover {
  transform: scale(1.18) translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 82, 212, 0.55);
}