/* =========================================================
   MAGADHI DAIRY E-COMMERCE DESIGN SYSTEM & STYLESHEET
   Brand: Ramanujan Supply and Marketing Private Limited
   ========================================================= */

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

:root {
  --primary: #0b2847;
  --primary-light: #123e6d;
  --primary-dark: #07192c;
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-red: #dc2626;
  --accent-red-light: #ef4444;
  --accent-green: #059669;
  --accent-green-light: #10b981;
  --bg-cream: #faf7f2;
  --bg-card: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

.font-vedic {
  font-family: 'Rozha One', serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Announcement Header Bar */
.announcement-bar {
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  text-align: center;
  position: relative;
  z-index: 50;
  letter-spacing: 0.3px;
}

/* Navigation */
.navbar-main {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-sun-badge {
  background: #dc2626;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--accent-red);
  text-transform: uppercase;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}

/* Nav Links */
.nav-link-custom {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link-custom:hover {
  color: var(--accent-red);
  background: rgba(220, 38, 38, 0.05);
}

.nav-link-custom.active {
  color: var(--accent-red);
  font-weight: 700;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  background: linear-gradient(135deg, #0b2847 0%, #103b66 100%);
  color: #fff;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  padding: 60px 0 80px;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15), transparent 50%);
  pointer-events: none;
}

.fssai-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fef08a;
  margin-bottom: 20px;
}

.hero-heading {
  font-size: 3.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-heading span.highlight {
  color: #f59e0b;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.hero-heading span.hindi-tag {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fca5a5;
  margin-top: 6px;
}

/* Feature Badges Grid */
.hero-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.spec-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
}

.spec-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fef08a;
}

.spec-label {
  font-size: 0.72rem;
  color: #cbd5e1;
  text-transform: uppercase;
  font-weight: 600;
}

/* Primary Buttons */
.btn-magadhi-primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
  transition: var(--transition);
  cursor: pointer;
}

.btn-magadhi-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
  color: #fff;
}

.btn-magadhi-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b2847;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  transition: var(--transition);
  cursor: pointer;
}

.btn-magadhi-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
  color: #0b2847;
}

.btn-outline-dairy {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-outline-dairy:hover {
  background: #fff;
  color: var(--primary);
}

/* Floating Poster Card */
.poster-hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  color: var(--text-dark);
  border: 4px solid #fff;
  position: relative;
}

.poster-hero-card .hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.price-pill-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.price-pill-item {
  flex: 1;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

.price-pill-item:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  background: #f1f5f9;
}

.price-pill-item.active {
  background: #f0fdf4;
  border-color: #16a34a;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.18);
}

.price-pill-size {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.price-pill-amount {
  font-size: 1.55rem;
  font-weight: 900;
  color: #475569;
  line-height: 1.2;
}

.price-pill-item.active .price-pill-amount {
  color: #16a34a;
}

.price-pill-item.active .price-pill-size {
  color: #0b2847;
}

.price-pill-item .extra-small {
  font-size: 0.72rem;
  font-weight: 600;
}

/* Product Cards */
.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.product-badge-float {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-veg-mark {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  border: 2px solid #16a34a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 2;
}

.product-veg-mark::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #16a34a;
  border-radius: 50%;
}

.product-img-box {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: #f8fafc;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--primary);
}

.product-hindi-name {
  font-size: 0.85rem;
  color: #b91c1c;
  font-weight: 600;
  margin-bottom: 8px;
}

.variant-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.variant-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.variant-chip.selected {
  background: #0b2847;
  color: #fff;
  border-color: #0b2847;
}

.product-footer-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price-display {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--accent-green);
}

.card-price-old {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: #94a3b8;
  margin-left: 4px;
}

/* Subscription Packaging Variant Cards */
.sub-variant-card {
  display: block;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
  height: 100%;
}

.sub-variant-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-2px);
}

.sub-variant-card.active {
  background: #f0fdf4 !important;
  border-color: #16a34a !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15) !important;
}

.sub-variant-card .variant-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0b2847;
  transition: color 0.2s;
}

.sub-variant-card.active .variant-name {
  color: #15803d;
}

.sub-variant-card .variant-price-badge {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.sub-variant-card.active .variant-price-badge {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.sub-variant-card .variant-subtext {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

/* Video Player Showcase */
.farm-video-container {
  position: relative;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 4px solid #ffffff;
}

.farm-video-container video {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  object-fit: cover;
}

.farm-video-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(11, 40, 71, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.farm-video-badge .pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  box-shadow: 0 0 8px #ef4444;
}

/* Feature List from Poster */
.features-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  margin: 40px 0;
}

.feature-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  height: 100%;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-icon-box.red {
  background: #fee2e2;
  color: #dc2626;
}

.feature-icon-box.gold {
  background: #fef3c7;
  color: #d97706;
}

.feature-icon-box.green {
  background: #dcfce7;
  color: #059669;
}

/* A1 vs A2 Comparison Table */
.comparison-table-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  padding: 16px 20px;
  font-weight: 700;
  text-align: left;
}

.comparison-table th.magadhi-col {
  background: #0b2847;
  color: #fef08a;
  font-size: 1.1rem;
}

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
}

.comparison-table tr:hover {
  background: #f8fafc;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.open {
  display: block;
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #fff;
  z-index: 101;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: #fafafa;
}

/* Testimonials Section Styling */
.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  border-color: #fca5a5;
}

.testimonial-quote-bg {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 3.5rem;
  color: rgba(220, 38, 38, 0.06);
  pointer-events: none;
  font-family: serif;
  line-height: 1;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b2847, #dc2626);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.testimonial-avatar.gold {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #0b2847;
}

.testimonial-avatar.green {
  background: linear-gradient(135deg, #059669, #10b981);
}

.rating-stars-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 700;
}

.review-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Footer Styles */
.footer-magadhi {
  background: #07192c;
  color: #cbd5e1;
  padding: 60px 0 20px;
  margin-top: 60px;
  border-top: 4px solid var(--accent-red);
}

.footer-magadhi h5 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.footer-magadhi a:hover {
  color: #f59e0b;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.82rem;
}

/* Floating WhatsApp Button */
.btn-floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: var(--transition);
}

.btn-floating-whatsapp:hover {
  transform: scale(1.1);
  color: #fff;
}

/* Admin Dashboard Elements */
.admin-sidebar {
  width: 260px;
  background: #07192c;
  color: #94a3b8;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  transition: var(--transition);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.92rem;
  border-left: 4px solid transparent;
  transition: var(--transition);
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-left-color: var(--accent-gold);
}

.admin-main-content {
  margin-left: 260px;
  padding: 30px;
  background: #f8fafc;
  min-height: 100vh;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 18px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-heading {
    font-size: 2.3rem;
  }
  .admin-sidebar {
    left: -260px;
  }
  .admin-sidebar.open {
    left: 0;
  }
  .admin-main-content {
    margin-left: 0;
  }
}
