/* Devdoon Milk Products - Custom Smooth & Light Stylesheet */

:root {
  --primary-green: #15803d;
  --emerald-green: #16a34a;
  --light-green: #22c55e;
  --pale-green: #f0fdf4;
  --mint-bg: #ecfdf5;
  --dairy-cream: #fffdf5;
  --cream-soft: #fcfaf5;
  --cream-warm: #fef9e7;
  --pure-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border-light: #e2e8f0;
  --ghee-gold: #d97706;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Prevent iOS & Android auto-zoom on input focus (minimum 16px font-size required on mobile) */
input, select, textarea {
  font-size: 16px !important;
}

@media screen and (min-width: 640px) {
  input.text-sm, select.text-sm, textarea.text-sm {
    font-size: 0.875rem !important;
  }
}

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

/* Luxury Smooth Scroll-To-Top Button */
#scroll-to-top {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

#scroll-to-top:hover {
  box-shadow: 0 12px 28px -4px rgba(22, 163, 74, 0.45);
  transform: translateY(-4px) scale(1.08);
}

#scroll-to-top:active {
  transform: translateY(-1px) scale(0.96);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism & Soft Cards */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

.glass-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 20px 40px -15px rgba(22, 163, 74, 0.12);
}

/* Cream & White Background Gradients */
.bg-hero-white-cream {
  background: 
    radial-gradient(ellipse at 88% 18%, rgba(254, 243, 199, 0.65) 0%, rgba(254, 252, 232, 0.35) 45%, transparent 70%),
    radial-gradient(circle at 10% 85%, rgba(240, 253, 244, 0.5) 0%, transparent 45%),
    #ffffff;
}

.bg-cream-section {
  background-color: #fcfaf5;
  border-top: 1px solid #f1ece1;
  border-bottom: 1px solid #f1ece1;
}

.bg-cream-warm {
  background-color: #fffdf5;
}

.bg-subtle-pattern {
  background-color: #f8fafc;
  background-image: radial-gradient(#16a34a 0.75px, transparent 0.75px), radial-gradient(#16a34a 0.75px, #f8fafc 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  opacity: 0.98;
}

/* Floating Badges Animation */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

@keyframes pulseSoft {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatSlow 6s ease-in-out infinite 2s;
}

.animate-pulse-soft {
  animation: pulseSoft 3s ease-in-out infinite;
}

/* Green Gradient Buttons */
.btn-green-primary {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-green-primary:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
  transform: translateY(-2px);
}

.btn-green-secondary {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  transition: all 0.25s ease;
}

.btn-green-secondary:hover {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
  transform: translateY(-1px);
}

/* Tab Active Styles */
.cat-tab.active {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

/* Product Card Styling */
.product-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #86efac;
  box-shadow: 0 20px 25px -5px rgba(22, 163, 74, 0.1), 0 8px 10px -6px rgba(22, 163, 74, 0.05);
}

/* Quality Feature Icon Container */
.quality-icon-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #bbf7d0;
  transition: all 0.3s ease;
}

.quality-card:hover .quality-icon-box {
  transform: scale(1.08) rotate(3deg);
  border-color: #4ade80;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #86efac;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #22c55e;
}

/* Toast Notification */
#toast {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Badge Glow */
.badge-live-pulse {
  position: relative;
}

.badge-live-pulse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
