/* ==========================================================================
   KisanWalla (किसान वाला) — Core Helper Styles & Custom Animations
   Built with Tailwind CSS
   ========================================================================== */

:root {
  --primary: #0B6623;
  --primary-dark: #082813;
  --primary-light: #F0FDF4;
  --accent: #E59B10;
  --accent-light: #FEF3C7;
  --wa-green: #25D366;
  --wa-dark: #128C7E;
}

/* Brand Dual-Color Styling */
.brand-kisan {
  color: #0B6623 !important;
  font-weight: 900;
}
.brand-walla {
  color: #E59B10 !important;
  font-weight: 900;
}

/* 1. Marquee Top Announcement */
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.animate-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* 2. Hero Banner Carousel */
.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.active {
  display: block;
  opacity: 1;
}
.hero-dot.active {
  background-color: #E59B10 !important;
  width: 2rem !important;
}

/* 3. Product Card Multi-Image Auto-Sliders (Compact & Screen-Fit) */
.product-slider {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #F8FAF7;
  border-radius: 1.25rem 1.25rem 0 0;
}
@media (min-width: 640px) {
  .product-slider {
    height: 185px;
  }
}
@media (min-width: 1024px) {
  .product-slider {
    height: 190px;
  }
}
.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  user-select: none;
}
.slider-dot.active {
  background-color: #0B6623 !important;
  transform: scale(1.2);
}

/* 4. Floating WhatsApp Pulse Animation */
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-pulse {
  animation: pulse-wa 2s infinite;
}

/* 5. Smooth Transitions & Hover Utilities */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
}

/* 6. Custom Line Clamp Helper */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 7. Hindi (Devanagari) Typography Optimization - Prevents Matra Overlaps */
html[lang="hi"] body {
  font-family: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] .font-heading {
  font-family: 'Noto Sans Devanagari', sans-serif !important;
  line-height: 1.34 !important;
  letter-spacing: 0.01em !important;
}
html[lang="hi"] .hero-slide h1,
html[lang="hi"] .hero-slide h2 {
  line-height: 1.38 !important;
  padding-top: 0.2rem;
  padding-bottom: 0.35rem;
}

