/* =========================================================
   Mithila Super Roots - Modern Luxury Organic Food Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  /* Brand Colors */
  --primary: #1d4d38;         /* Deep Mithila Forest Green */
  --primary-dark: #123325;
  --primary-light: #2d7355;
  --accent: #d49a37;          /* Golden Harvest Sun */
  --accent-light: #f5cf7c;
  --accent-dark: #b27a1f;
  --cream-bg: #fdfbf7;        /* Crisp Organic Cream */
  --card-bg: #ffffff;
  --surface-alt: #f4efe6;
  
  /* Text Colors */
  --text-main: #212529;
  --text-muted: #6c757d;
  --text-light: #f8f9fa;

  /* Status Colors */
  --success: #28a745;
  --warning: #fd7e14;
  --danger: #dc3545;
  --info: #17a2b8;

  /* Elevation & Borders */
  --border-color: #ebdccc;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 22px;
  --border-radius-full: 999px;
  --shadow-sm: 0 2px 8px rgba(29, 77, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(29, 77, 56, 0.08);
  --shadow-lg: 0 16px 40px rgba(29, 77, 56, 0.12);
  --shadow-hover: 0 18px 36px rgba(212, 154, 55, 0.18);
  
  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

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

.font-serif {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Helper Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.py-50 { padding-top: 50px; padding-bottom: 50px; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-white {
  border-color: #ffffff;
  color: #ffffff;
  background: transparent;
}
.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--border-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-bestseller { background: #fee2e2; color: #dc2626; }
.badge-featured { background: #fef3c7; color: #b45309; }
.badge-organic { background: #dcfce7; color: #15803d; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #e0f2fe; color: #0369a1; }

/* Top Notification Bar */
.top-bar {
  background: #0d1e16;
  border-bottom: 1px solid rgba(212, 154, 55, 0.3);
  color: var(--accent-light);
  font-size: 0.84rem;
  padding: 7px 0;
  font-weight: 500;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-notice {
  font-size: 0.82rem;
  color: #e2e8f0;
}
.top-bar-notice strong {
  color: #ffffff;
}
.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}
.top-bar-link {
  color: var(--accent-light);
  font-weight: 700;
  text-decoration: none;
}
.top-bar-divider {
  color: rgba(255, 255, 255, 0.3);
}
.top-bar-wa {
  color: #4ade80;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 15px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-normal);
  background-color: #fff;
  flex-shrink: 0;
}
.brand-logo:hover .brand-logo-img {
  transform: rotate(6deg) scale(1.08);
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.brand-name span {
  color: var(--accent);
}
.brand-tagline {
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

/* Mobile Drawer only elements (Hidden on Desktop) */
.mobile-nav-header,
.mobile-nav-footer,
.mobile-nav-close {
  display: none !important;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}
.main-nav a.active::after,
.main-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-btn-quote {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.header-btn-rfq {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Flash Messages */
.flash-alert {
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  margin: 20px auto 0;
  max-width: var(--container-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideDown 0.3s ease;
}
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* Dynamic Hero Slider Section */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.8s ease-in-out;
  background: linear-gradient(135deg, #123325 0%, #1d4d38 50%, #295e46 100%);
}

.slider-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 20;
}

.slider-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.1s linear;
}

.hero-slides-wrapper {
  position: relative;
  width: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
  transform: scale(0.97);
  z-index: 1;
  padding: 60px 0 85px;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  z-index: 2;
}

/* Slide Entrance Animations */
.hero-slide.active .hero-tag {
  animation: slideFadeUp 0.6s ease 0.1s both;
}
.hero-slide.active .hero-title {
  animation: slideFadeUp 0.6s ease 0.2s both;
}
.hero-slide.active .hero-desc {
  animation: slideFadeUp 0.6s ease 0.3s both;
}
.hero-slide.active .hero-cta-group {
  animation: slideFadeUp 0.6s ease 0.4s both;
}
.hero-slide.active .hero-highlights {
  animation: slideFadeUp 0.6s ease 0.5s both;
}
.hero-slide.active .hero-visual-card {
  animation: slideZoomCard 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes slideFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideZoomCard {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 45px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 16px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: 3.1rem;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.8px;
}
.hero-title span {
  color: var(--accent-light);
  font-style: italic;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 30px;
  max-width: 540px;
  line-height: 1.65;
}
.hero-highlights {
  display: flex;
  gap: 25px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.highlight-item {
  display: flex;
  flex-direction: column;
}
.highlight-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-light);
}
.highlight-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-visual-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--border-radius-lg);
  padding: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.hero-visual-card .slide-photo-wrap {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  height: 270px;
  background: #0f172a;
}
.hero-visual-card .slide-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.hero-visual-card:hover .slide-photo-img {
  transform: scale(1.05);
}
.hero-badge-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(18, 51, 37, 0.9);
  color: var(--accent-light);
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  border: 1px solid rgba(212, 154, 55, 0.5);
  backdrop-filter: blur(6px);
}

/* Slider Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 15;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}
.slider-arrow:hover {
  background: var(--accent);
  color: #123325;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 20px rgba(212, 154, 55, 0.5);
}
.slider-arrow.prev {
  left: 20px;
}
.slider-arrow.next {
  right: 20px;
}

/* Slider Indicators / Dots */
.slider-indicators {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 15;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}
.slider-dot.active {
  width: 28px;
  border-radius: 6px;
  background: var(--accent-light);
  box-shadow: 0 0 12px rgba(245, 207, 124, 0.8);
}

/* Feature Benefits Row */
.features-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 35px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: var(--border-radius-md);
  background: var(--cream-bg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.feature-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.feature-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  margin-bottom: 40px;
}
.section-subtitle {
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-title {
  font-size: 2.2rem;
  color: var(--primary-dark);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  background: #fff;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 25px 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.category-card .cat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.category-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.category-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.product-thumb {
  position: relative;
  background: var(--surface-alt);
  padding: 25px;
  text-align: center;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb .product-svg-art {
  width: 140px;
  height: 140px;
  transition: var(--transition);
}
.product-card:hover .product-svg-art {
  transform: scale(1.06);
}
.product-badge-float {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.product-quick-view {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.product-card:hover .product-quick-view {
  opacity: 1;
  transform: translateY(0);
}
.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-flavor {
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #f59e0b;
  margin-bottom: 10px;
}
.product-rating span {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 15px;
}
.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}
.old-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.discount-tag {
  font-size: 0.75rem;
  color: var(--danger);
  font-weight: 700;
}
.nutrition-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.nutrition-chip {
  background: var(--surface-alt);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--border-radius-sm);
  color: var(--primary-dark);
}

/* Nutritional Benefits Banner */
.nutrition-banner {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.nutrition-item {
  text-align: center;
  padding: 20px;
  background: var(--cream-bg);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}
.nutrition-item .icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.nutrition-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.nutrition-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px 25px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.testimonial-card p {
  font-style: italic;
  color: #4b5563;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: #11281e;
  color: #e5e7eb;
  padding: 70px 0 25px;
  margin-top: 80px;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.footer-brand p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 320px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: #9ca3af;
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: var(--accent-light);
  padding-left: 5px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.newsletter-input {
  flex-grow: 1;
  padding: 12px 16px;
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}
.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--primary-dark);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background: #ffffff;
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 77, 56, 0.1);
}
textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* Card Wrapper (for Login, Register, Cart, Checkout) */
.auth-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 480px;
  margin: 40px auto;
}

/* Cart & Checkout Layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.cart-table th {
  background: var(--surface-alt);
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 700;
}
.cart-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cart-product-cell .thumb {
  width: 65px;
  height: 65px;
  background: var(--surface-alt);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-full);
  overflow: hidden;
  background: #fff;
}
.cart-qty-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}
.cart-qty-btn:hover {
  background: var(--surface-alt);
}
.cart-qty-input {
  width: 40px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.order-summary-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-sm);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.summary-total {
  border-top: 1.5px dashed var(--border-color);
  padding-top: 15px;
  margin-top: 15px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast-box {
  background: var(--primary-dark);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 5px solid var(--accent);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================================
   Responsive Layout Utilities & Components
   ========================================================= */

/* Hero & RFQ Grids */
.b2b-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

.rfq-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.rfq-form-row.grade-qty-row {
  grid-template-columns: 1.2fr 0.8fr;
}

/* Farmer & Cultivation Story Grid */
.farmer-story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d1fae5;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* About Page Founder Grid */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 50px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 45px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 60px;
}

.trust-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Shop Catalog Layout Grid */
.shop-layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

/* Product Detail Spec Grid */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 45px;
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

/* Contact Page Layout Grid */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-form-row.grade-row {
  grid-template-columns: 1.2fr 0.8fr;
}

/* Account & Profile Layout Grid */
.account-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

.profile-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.profile-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 15px;
}

/* Mobile Quick Action Sticky Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d1e16;
  border-top: 2px solid var(--accent);
  padding: 10px 14px;
  z-index: 1050;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}
.mobile-sticky-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.mobile-sticky-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--border-radius-full);
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
}
.mobile-sticky-btn-call {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.mobile-sticky-btn-call:active {
  background: rgba(255, 255, 255, 0.3);
}
.mobile-sticky-btn-wa {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.mobile-sticky-btn-wa:active {
  background: #1eb956;
}

/* Mobile Nav Drawer Backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-backdrop.active {
  display: block;
  opacity: 1;
}

/* =========================================================
   Media Query Breakpoints
   ========================================================= */

/* --- Tablet Landscape & Small Laptops (max-width: 992px) --- */
@media (max-width: 992px) {
  .b2b-hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .farmer-story-grid {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 30px;
  }
  .about-story-grid {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 30px;
  }
  .shop-layout-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 30px;
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .account-layout-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 30px; }
  .hero-highlights { justify-content: center; }
  .hero-cta-group { justify-content: center; }
  .hero-visual-card { max-width: 480px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cart-layout { grid-template-columns: 1fr; }
  
  .profile-form-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .header-btn-rfq {
    display: none !important;
  }
}

/* --- Mobile & Tablet Portrait (max-width: 768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  body {
    padding-bottom: 65px; /* Space for mobile sticky action bar */
  }

  .mobile-sticky-bar {
    display: block;
  }

  /* Top Bar on Mobile */
  .top-bar-notice {
    display: none !important;
  }
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
  .top-bar-contact {
    font-size: 0.78rem;
    gap: 10px;
  }

  /* Header Branding on Mobile */
  .brand-logo-img {
    width: 38px;
    height: 38px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }

  /* Header Actions on Mobile */
  .header-actions {
    gap: 8px;
  }
  .header-btn-quote {
    padding: 7px 11px;
    font-size: 0.8rem;
  }
  .header-btn-rfq {
    display: none !important;
  }

  /* Responsive Header & Mobile Navigation Drawer */
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    font-size: 1.35rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
  }
  .mobile-nav-toggle:active {
    background: var(--primary);
    color: #fff;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #0f261c;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
    z-index: 999;
    padding: 80px 24px 40px;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 8px;
  }

  .main-nav a {
    color: #e2e8f0;
    font-size: 1.05rem;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(212, 154, 55, 0.2);
    color: var(--accent-light);
    border-left: 3px solid var(--accent);
  }

  .main-nav a.active::after,
  .main-nav a:hover::after {
    display: none;
  }

  /* Mobile Drawer Elements in Mobile Nav */
  .mobile-nav-header {
    display: block !important;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
  }

  .mobile-nav-footer {
    display: block !important;
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* Close Button in Mobile Nav */
  .mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .mobile-nav-close:active {
    background: var(--accent);
  }

  /* Typography & Titles */
  .hero-title { font-size: 2.1rem; }
  .section-title { font-size: 1.75rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.55rem; }

  /* Sliders & Visuals */
  .slider-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
  .hero-visual-card .slide-photo-wrap { height: 210px; }
  .hero-slide { padding: 35px 0 60px; }

  /* Grid Adjustments */
  .features-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .nutrition-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Forms on Mobile */
  .rfq-form-row,
  .rfq-form-row.grade-qty-row,
  .contact-form-row,
  .contact-form-row.grade-row,
  .trust-highlights-grid,
  .profile-form-grid-2,
  .profile-form-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Cart Table on Mobile */
  .cart-table th,
  .cart-table td {
    padding: 12px 10px;
  }
  .cart-product-cell {
    gap: 10px;
  }
  .cart-product-cell .thumb {
    width: 50px;
    height: 50px;
  }

  /* Auth Card */
  .auth-card {
    padding: 24px 18px;
    margin: 20px auto;
  }
}

/* --- Small Mobile Phones (max-width: 480px) --- */
@media (max-width: 480px) {
  :root {
    --header-height: 58px;
  }

  .container {
    padding: 0 14px;
  }

  .py-50 {
    padding-top: 35px;
    padding-bottom: 35px;
  }
  .py-80 {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  /* Brand Logo on Tiny Screens */
  .brand-logo {
    gap: 8px;
  }
  .brand-logo-img {
    width: 34px;
    height: 34px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-tagline {
    display: none !important; /* Hide tagline on tiny screens to prevent wrapping */
  }

  /* Header Actions on Tiny Screens */
  .header-actions {
    gap: 6px;
  }
  .header-btn-quote {
    padding: 6px 9px;
    font-size: 0.75rem;
  }
  .header-btn-quote span:first-child {
    font-size: 0.85rem;
  }
  .header-btn-rfq {
    display: none !important;
  }
  .mobile-nav-toggle {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  /* Top announcement bar */
  .top-bar {
    font-size: 0.74rem;
    padding: 5px 0;
  }

  /* Hero Metric Badges */
  .hero-metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  /* Product Cards in Shop */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .farmer-story-grid,
  .about-story-grid,
  .product-detail-grid,
  .farmer-hero-grid,
  .comparison-cards-grid,
  .farm-photo-showcase-grid,
  .farmer-form-grid,
  .about-harvest-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Buttons */
  .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  .btn-lg {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* Direct Farmer Page Specific Styles & Micro-animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

@media (max-width: 991px) {
  .farmer-hero-grid,
  .comparison-cards-grid,
  .farm-photo-showcase-grid,
  .about-harvest-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}


