/* Blue Herbs Premium Custom Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-royal-blue: #1F4E8C;
  --color-royal-blue-hover: #163B6B;
  --color-herbal-green: #2E7D32;
  --color-herbal-green-hover: #225F26;
  --color-gold-accent: #D4AF37;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
}

html, body {
  max-width: 100vw !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

body {
  font-family: var(--font-body);
  background-color: #FAFAFB;
  color: #1E293B;
  overflow-x: hidden !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Universal Mobile Responsiveness Fixes */
img, iframe, svg, canvas, video {
  max-width: 100% !important;
}

.swiper-container, .swiper {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Reviews Swiper Responsiveness */
.reviews-swiper {
  max-width: 100% !important;
  overflow: hidden !important;
}

@media (max-width: 767px) {
  .reviews-prev, .reviews-next {
    display: none !important;
  }
}

.font-serif-heading {
  font-family: var(--font-heading);
}

/* Glassmorphism Navigation */
.glass-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.dark .glass-header {
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dark .glass-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Floating Leaf Background Animation */
.floating-leaves-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-leaf {
  position: absolute;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32" opacity="0.15"><path d="M17,8C8,10 59,16.17 3.82,21.34L5.23,22.75C11.4,17.58 17.58,11.4 17,8Z"/></svg>');
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  animation: floatLeaf 15s infinite ease-in-out;
}

@keyframes floatLeaf {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-800px) rotate(360deg); opacity: 0; }
}

/* Hero Swiper Animations */
.hero-swiper .swiper-slide-active .hero-title {
  animation: fadeInUp 0.8s forwards 0.2s;
}

.hero-swiper .swiper-slide-active .hero-sub {
  animation: fadeInUp 0.8s forwards 0.4s;
}

.hero-swiper .swiper-slide-active .hero-btn {
  animation: fadeInUp 0.8s forwards 0.6s;
}

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

/* Custom Swiper Pagination */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ffffff;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 6px;
  background: var(--color-royal-blue);
  opacity: 1;
}

/* Product Card Hover Zoom */
.product-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(31, 78, 140, 0.15);
}

.product-image-swap img {
  transition: opacity 0.5s ease, transform 0.7s ease;
}

.product-card:hover .product-image-swap .secondary-img {
  opacity: 1;
  transform: scale(1.05);
}

.product-card:hover .product-image-swap .primary-img {
  opacity: 0;
}

/* Color Accent Classes */
.bg-royal-blue { background-color: var(--color-royal-blue); }
.text-royal-blue { color: var(--color-royal-blue); }
.border-royal-blue { border-color: var(--color-royal-blue); }

.bg-herbal-green { background-color: var(--color-herbal-green); }
.text-herbal-green { color: var(--color-herbal-green); }
.border-herbal-green { border-color: var(--color-herbal-green); }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-royal-blue);
}

/* Dark Mode Overrides */
html.dark {
  background-color: #0F172A;
  color: #F8FAFC;
}

html.dark .bg-white {
  background-color: #1E293B !important;
  color: #F8FAFC !important;
}

html.dark .bg-slate-50, html.dark .bg-gray-50 {
  background-color: #0F172A !important;
}

html.dark .text-gray-600, html.dark .text-slate-600, html.dark .text-gray-700 {
  color: #94A3B8 !important;
}

html.dark .border-gray-100, html.dark .border-gray-200 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Modal Animations */
.modal-enter {
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
