/* MPK Annapurna Premium E-Commerce Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors - MPK Annapurna Theme */
  --wine: #6f1f1c;
  --wine2: #4d1715;
  --cream: #fff5e8;
  --sand: #f6d5a8;
  --green: #2f7d32;
  --gold: #d9a441;
  --ink: #2b211c;
  --muted: #75655c;
  --white: #fff;
  --line: #ead8c6;
  
  /* Legacy color mappings */
  --cf-primary: #6f1f1c;
  --cf-primary-hover: #5c1917;
  --cf-primary-light: #f9ead7;
  --cf-secondary: #6f1f1c;
  --cf-success: #2f7d32;
  --cf-warning: #d9a441;
  --cf-danger: #ef4444;
  --cf-dark: #2b211c;
  --cf-slate-800: #4d3b31;
  --cf-slate-700: #75655c;
  --cf-slate-500: #9a8980;
  --cf-slate-400: #bda59a;
  --cf-slate-200: #ead8c6;
  --cf-slate-100: #fff5e8;
  --cf-light: #fffaf4;
  --cf-white: #ffffff;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-primary: 0 10px 15px -3px rgba(94, 15, 10, 0.3);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;

  /* Transition */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* Global Reset & Base Styles */
body {
  font-family: var(--font-body);
  background-color: #fffaf4;
  color: var(--ink);
  overflow-x: hidden;
  padding-top: 110px;
}

/* Override Bootstrap primary colors */
.text-primary {
  color: var(--cf-primary) !important;
}

.bg-primary {
  background-color: var(--cf-primary) !important;
}

.bg-primary-light {
  background-color: var(--cf-primary-light) !important;
}

.btn-primary {
  background-color: var(--cf-primary);
  border-color: var(--cf-primary);
}

.btn-primary:hover {
  background-color: var(--cf-primary-hover);
  border-color: var(--cf-primary-hover);
}

.btn-outline-primary {
  color: var(--cf-primary);
  border-color: var(--cf-primary);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--wine2);
}

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

a:hover {
  color: var(--cf-primary);
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cf-slate-100);
}
::-webkit-scrollbar-thumb {
  background: var(--cf-slate-400);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cf-slate-500);
}

/* Header & Navbar Customizations */
.cf-navbar {
  background: rgba(255, 250, 244, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition-smooth);
  /* Guarantee the bar stays pinned while scrolling to the bottom */
  position: fixed !important;
  top: 38px !important;
  right: 0;
  left: 0;
  z-index: 1040;
}

/* Trending category filter tabs (All / Desi Khand / Jaggery / Sweets) */
#trend-tabs .nav-link {
  color: var(--cf-slate-700);
  background-color: transparent;
  border: 1px solid var(--line);
  font-weight: 600;
  padding: 0.4rem 1.1rem;
}

#trend-tabs .nav-link:hover,
#trend-tabs .nav-link:focus {
  color: var(--wine);
  background-color: var(--cf-primary-light);
  border-color: var(--line);
}

/* Active tab uses the exact same style as the hover state for every tab */
#trend-tabs .nav-link.active,
#trend-tabs .nav-link.active:hover,
#trend-tabs .nav-link.active:focus {
  color: var(--wine);
  background-color: var(--cf-primary-light);
  border-color: var(--wine);
  box-shadow: none;
}

/* Coming Soon products: cart button is present but disabled */
.add-cart-icon-btn:disabled,
.add-cart-icon-btn.disabled {
  background-color: var(--cf-slate-100);
  color: var(--cf-slate-400);
  cursor: not-allowed;
  opacity: 0.75;
}

.add-cart-icon-btn:disabled:hover,
.add-cart-icon-btn.disabled:hover {
  background-color: var(--cf-slate-100);
  color: var(--cf-slate-400);
  box-shadow: none;
}

.product-badge.coming-soon {
  background-color: var(--wine);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.375rem;
  color: var(--wine) !important;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.navbar-brand img {
  width: 54px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--wine);
}

.search-container {
  position: relative;
  max-width: 460px;
  width: 100%;
}

.search-input {
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  padding: 0.6rem 1.2rem 0.6rem 2.8rem;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  background-color: #fffaf7;
}

.search-input:focus {
  border-color: var(--wine);
  background-color: var(--cf-white);
  box-shadow: 0 0 0 3px rgba(111, 31, 28, 0.07);
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cf-slate-400);
  pointer-events: none;
}

.nav-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  color: var(--wine);
  border: 1px solid var(--line);
  transition: var(--transition-fast);
}

.nav-action-btn:hover {
  background-color: var(--cf-slate-100);
  color: var(--wine);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--wine);
  color: var(--cf-white);
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* User Account Nav Block */
.user-nav-dropdown .dropdown-toggle::after {
  display: none;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: var(--radius-full);
  background-color: var(--cf-slate-100);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.user-profile-badge:hover {
  background-color: var(--cf-primary-light);
  color: var(--cf-primary);
}

.user-profile-badge img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

/* Dropdown styling */
.dropdown-menu {
  border: 1px solid var(--cf-slate-200);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-top: 10px !important;
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--cf-slate-100);
  color: var(--cf-primary);
}

.dropdown-item.active, .dropdown-item:active {
  background-color: var(--cf-primary);
  color: var(--cf-white);
}

/* Premium Buttons */
.btn-primary {
  background-color: var(--cf-primary);
  border-color: var(--cf-primary);
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.4rem;
  transition: var(--transition-smooth);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--cf-primary-hover) !important;
  border-color: var(--cf-primary-hover) !important;
  box-shadow: var(--shadow-primary) !important;
}

.btn-outline-primary {
  color: var(--cf-primary);
  border-color: var(--cf-primary);
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.4rem;
  transition: var(--transition-smooth);
}

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

/* Hero Carousel */
.hero-carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-carousel .carousel-item {
  height: 480px;
  background-color: var(--cf-dark);
}

.hero-carousel img {
  object-fit: cover;
  opacity: 0.75;
  height: 100%;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 550px;
  color: var(--cf-white);
}

.hero-tag {
  background-color: #5E0F0A;
  color: var(--cf-white);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  color: var(--cf-slate-200);
}

/* Category Cards */
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 10%, rgba(15, 23, 42, 0.1) 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--cf-white);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-card:hover img {
  transform: scale(1.08);
}

/* Premium Product Cards */
.product-card {
  background-color: var(--cf-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(222, 226, 230, 0.5);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cf-primary-light);
}

.product-img-wrapper {
  position: relative;
  background-color: var(--cf-slate-100);
  height: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-img-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--cf-primary);
  color: var(--cf-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.product-badge.sale {
  background-color: var(--cf-danger);
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--cf-white);
  color: var(--cf-slate-500);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  z-index: 2;
}

.wishlist-btn:hover {
  color: var(--cf-danger);
  transform: scale(1.1);
}

.wishlist-btn.active {
  color: var(--cf-danger);
  background-color: #ffe4e6;
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--cf-slate-400);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  height: 2.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--cf-warning);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.rating-count {
  font-size: 0.75rem;
  color: var(--cf-slate-400);
  margin-left: 4px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cf-dark);
}

.product-price .old-price {
  font-size: 0.85rem;
  color: var(--cf-slate-400);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 5px;
}

.add-cart-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--cf-primary-light);
  color: var(--cf-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.add-cart-icon-btn:hover {
  background-color: var(--cf-primary);
  color: var(--cf-white);
  box-shadow: var(--shadow-sm);
}

/* Feature Cards Section */
.feature-box {
  background: var(--cf-white);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.feature-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon-wrapper {
  min-width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: #f9ead7;
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: block;
}

.feature-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* Newsletter Section */
.newsletter-section {
  background: radial-gradient(circle at top right, var(--cf-slate-800) 0%, var(--cf-dark) 100%);
  color: var(--cf-white);
  padding: 5rem 0;
  border-radius: var(--radius-lg);
}

.newsletter-title {
  color: var(--cf-white);
  font-size: 2.2rem;
  font-weight: 700;
}

/* Footer styling */
.footer {
  background-color: #381311;
  color: #f9e9d6;
  font-size: 0.875rem;
}

.footer h5 {
  color: #f9e9d6;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #d9c1b2;
}

.footer-links a:hover {
  color: #f9e9d6;
  padding-left: 5px;
}

/* Skeleton Loading Screens styling */
.skeleton-box {
  border-radius: var(--radius-md);
  background: var(--cf-white);
  border: 1px solid rgba(222, 226, 230, 0.5);
  overflow: hidden;
  height: 100%;
}

.skeleton-image {
  height: 240px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text.title {
  width: 80%;
  height: 18px;
  margin-bottom: 12px;
}

.skeleton-text.price {
  width: 40%;
  height: 20px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Toast Notifications styling */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cf-toast {
  background-color: var(--cf-dark);
  color: var(--cf-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  transform: translateY(100px);
  opacity: 0;
  animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-size: 0.9rem;
}

.cf-toast.success {
  border-left: 4px solid var(--cf-success);
}
.cf-toast.warning {
  border-left: 4px solid var(--cf-warning);
}
.cf-toast.danger {
  border-left: 4px solid var(--cf-danger);
}
.cf-toast.info {
  border-left: 4px solid var(--cf-primary);
}

.cf-toast-icon {
  font-size: 1.15rem;
}

.cf-toast-icon.success { color: var(--cf-success); }
.cf-toast-icon.warning { color: var(--cf-warning); }
.cf-toast-icon.danger { color: var(--cf-danger); }
.cf-toast-icon.info { color: var(--cf-primary); }

.cf-toast-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--cf-slate-400);
  cursor: pointer;
}

.cf-toast-close:hover {
  color: var(--cf-white);
}

@keyframes toast-slide-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-slide-out {
  animation: toast-slide-out 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide-out {
  to {
    transform: translateY(40px);
    opacity: 0;
  }
}

/* Page Filter sidebar styling */
.filter-sidebar {
  background: var(--cf-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filter-section {
  border-bottom: 1px solid var(--cf-slate-200);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.filter-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.filter-section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
  color: var(--cf-slate-700);
}

.custom-control-label {
  font-size: 0.9rem;
  color: var(--cf-slate-700);
}

/* Star rating filter colors */
.stars-filter {
  color: var(--cf-warning);
  font-size: 0.85rem;
}

/* Dynamic Checkout Steps styling */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.checkout-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--cf-slate-200);
  z-index: 1;
}

.checkout-step-progress {
  position: absolute;
  top: 20px;
  left: 0;
  height: 2px;
  background-color: var(--cf-primary);
  z-index: 1;
  transition: var(--transition-smooth);
  width: 0%;
}

.checkout-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--cf-white);
  border: 2px solid var(--cf-slate-200);
  color: var(--cf-slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.checkout-step-node.active .step-number {
  border-color: var(--cf-primary);
  background-color: var(--cf-primary);
  color: var(--cf-white);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.checkout-step-node.completed .step-number {
  border-color: var(--cf-success);
  background-color: var(--cf-success);
  color: var(--cf-white);
}

.step-label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cf-slate-500);
}

.checkout-step-node.active .step-label {
  color: var(--cf-primary);
}

.checkout-step-node.completed .step-label {
  color: var(--cf-success);
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--cf-slate-400);
  margin-bottom: 1.5rem;
}

/* Image gallery zoom effect */
.gallery-main-img {
  background-color: var(--cf-white);
  border: 1px solid var(--cf-slate-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 450px;
  overflow: hidden;
}

.gallery-main-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumb-img {
  width: 76px;
  height: 76px;
  border: 2px solid var(--cf-slate-200);
  border-radius: var(--radius-sm);
  padding: 5px;
  cursor: pointer;
  background-color: var(--cf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.thumb-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumb-img:hover, .thumb-img.active {
  border-color: var(--cf-primary);
}

/* Interactive form feedback styling */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--cf-primary);
}

.form-control:focus {
  border-color: var(--cf-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Review Badge */
.review-card {
  border-bottom: 1px solid var(--cf-slate-200);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Blog Section Styling */
.blog-section {
  background-color: var(--cf-white);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.blog-section h2 {
  color: var(--cf-primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.blog-content {
  border-bottom: 1px solid var(--cf-slate-200);
  padding-bottom: 2rem;
}

.blog-content:last-child {
  border-bottom: none;
}

/* Tighter, even vertical rhythm between the four blocks */
.blog-block {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.blog-block .blog-heading {
  margin-bottom: 0.75rem;
}

.blog-block .blog-text {
  margin-bottom: 0.5rem;
}

.blog-heading {
  color: var(--cf-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.blog-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--cf-primary);
  border-radius: var(--radius-sm);
}

.blog-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--cf-slate-700);
  margin-bottom: 1rem;
}

.process-image-container {
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.process-image-container img {
  width: 100%;
  height: auto;
  /* Cap the height so it stays close to the ~4 lines of text beside it */
  max-height: 230px;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .process-image-container img {
    max-height: 180px;
  }
}

.nutrition-table {
  border-color: var(--cf-slate-200);
  margin-top: 1rem;
}

.nutrition-table thead th {
  background-color: var(--cf-primary);
  color: var(--cf-white);
  font-weight: 600;
  border: none;
  padding: 1rem;
}

.nutrition-table tbody td {
  padding: 0.85rem 1rem;
  border-color: var(--cf-slate-200);
  color: var(--cf-slate-700);
}

.nutrition-table tbody tr:nth-child(even) {
  background-color: var(--cf-slate-100);
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--cf-slate-700);
  line-height: 1.7;
}

.blog-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cf-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.blog-list li strong {
  color: var(--cf-dark);
}
