/* ─── Jalaram Varieties – Custom Styles ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #22c55e;
  --accent: #D4AF37;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* Hide scrollbar for category pills on mobile */
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

body { font-family: 'Poppins', sans-serif; }

/* Mobile: bottom padding so content isn't hidden by bottom nav */
@media (max-width: 1023px) {
  body { padding-bottom: 65px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0fdf4; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ─── Nav active link ─── */
.nav-link.active { color: var(--primary) !important; background: rgba(22,163,74,.06); }

/* ─── Bottom nav active ─── */
.bottom-nav-item.active { color: var(--primary); background: rgba(22,163,74,.08); }
.bottom-nav-item i { transition: transform .2s ease; }
.bottom-nav-item:hover i, .bottom-nav-item.active i { transform: translateY(-2px); }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 10px rgba(22,163,74,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

.animate-fadeUp  { animation: fadeUp .7s ease both; }
.animate-fadeIn  { animation: fadeIn .5s ease both; }
.pulse-ring      { animation: pulse-ring 2s infinite; }

/* ─── Reveal on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Hero slide ─── */
.hero-slide { transition: opacity .8s ease; }

/* ─── Hero dot active ─── */
.hero-dot.active { background: #fff; width: 1.75rem; }

/* ─── Product card hover ─── */
.product-card:hover .product-img { transform: scale(1.05); }

/* ─── Gallery lightbox ─── */
#lightbox.open { display: flex; animation: fadeIn .3s ease; }

/* ─── Float social ─── */
#floatLinks.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ─── Mobile drawer open ─── */
#mobileDrawer.open { transform: translateY(0); }

/* ─── Line clamp ─── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Admin sidebar ─── */
.admin-sidebar-link { transition: all .2s; }
.admin-sidebar-link:hover, .admin-sidebar-link.active {
  background: rgba(22,163,74,.12);
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: .75rem 1.25rem;
  border-radius: .75rem;
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  animation: slideInRight .3s ease;
}
.toast.success { background: var(--primary); }
.toast.error   { background: #ef4444; }

/* ─── Spinner ─── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Admin table ─── */
.admin-table th { background: #f0fdf4; font-weight: 600; font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; }
.dark .admin-table th { background: #1f2937; }

/* ─── Captcha box ─── */
#captchaQuestion {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  letter-spacing: .1em;
  border-radius: .75rem;
  box-shadow: 0 2px 12px rgba(22,163,74,.3);
}
