/* Ankush Electronics Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --color-primary: #0F2942;
  --color-primary-dark: #0A1C2E;
  --color-accent-green: #0E5D38;
  --color-accent-green-hover: #084327;
  --color-accent-orange: #E11D48;
  --color-accent-yellow: #FBBF24;
  --color-bg-light: #F8FAFC;
  --color-border: #E2E8F0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1E293B;
  background-color: #FFFFFF;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.font-heading {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

.font-handwriting {
  font-family: 'Caveat', cursive;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #0E5D38;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #084327;
}

/* Hide scrollbar for slider container */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hero Badge & Glow Effects */
.hero-glow {
  background: radial-gradient(circle at 60% 50%, rgba(14, 93, 56, 0.08) 0%, rgba(245, 158, 11, 0.05) 50%, transparent 75%);
}

.stamp-badge {
  background: radial-gradient(circle, #0F6B42 0%, #084B2D 100%);
  box-shadow: 0 8px 25px rgba(15, 107, 66, 0.35);
  animation: float-gentle 4s ease-in-out infinite;
}

.yellow-badge {
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 100%);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
  transform: rotate(-3deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.yellow-badge:hover {
  transform: rotate(0deg) scale(1.05);
}

@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes pulse-subtle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.pulse-button {
  animation: pulse-subtle 2.5s infinite;
}

/* Category Card Styling */
.category-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -10px rgba(15, 41, 66, 0.12);
}

.category-card .arrow-btn {
  transition: all 0.3s ease;
}

.category-card:hover .arrow-btn {
  background-color: #0E5D38;
  color: #FFFFFF;
  transform: translateX(4px);
}

/* Product Card Styling */
.product-card {
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px -8px rgba(15, 41, 66, 0.12);
}

.product-card .product-img {
  transition: transform 0.5s ease;
}

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

/* Slider Track Styles */
.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1.25rem;
}

.slider-container > * {
  scroll-snap-align: start;
}

/* Slider Nav Buttons */
.slider-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background-color: #FFFFFF;
  color: #0F2942;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}

.slider-nav-btn:hover {
  background-color: #0E5D38;
  color: #FFFFFF;
  border-color: #0E5D38;
  transform: scale(1.08);
}

/* Brand Card Styling */
.brand-card {
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(15, 41, 66, 0.1);
  border-color: #0E5D38;
}

/* Infinite Brand Marquee Animation */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 1.25rem;
  width: max-content;
  animation: marquee 22s linear infinite;
  will-change: transform;
}

.marquee-container:hover .marquee-track,
.marquee-track:hover,
.marquee-track:active {
  animation-play-state: paused;
}

@media (max-width: 640px) {
  .marquee-track {
    animation-duration: 16s;
    gap: 0.75rem;
  }
}

/* Toast Message */
#toast {
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Nav Link Active Indicator */
.nav-link.active {
  color: #0E5D38;
  font-weight: 700;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: #0E5D38;
  border-radius: 2px;
}
