:root {
  --primary-color: #5F9F7E;
  --secondary-color: #D3DCD3;
  --background-color: #F8FBF8;
  --footer-bg-color: #3A5C4A;
  --button-color: #5F9F7E;
  --text-color: #3A5C4A;
  --heading-color: #2C4A3A;
  --accent-color: #6BBE92; /* A slightly brighter version of primary for accents */

  --section-bg-1: #F8FBF8;
  --section-bg-2: #EEF3EE;
  --section-bg-3: #E0E8E0;
  --section-bg-4: #CCD4CC;
  --section-bg-5: #BCD0BC;

  --font-family-base: 'Montserrat', sans-serif;
  --font-family-heading: 'Lora', serif;

  --border-radius-base: 0.75rem; /* Slightly rounded for natural feel */
  --spacing-unit: 1rem;
  --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Base Body Styles */
body {
  font-family: var(--font-family-base);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  color: var(--heading-color);
  margin-bottom: var(--spacing-unit);
  line-height: 1.3;
  letter-spacing: -0.02em; /* Slight tightening for elegance */
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-top: 2rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin-top: 0.75rem;
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-unit);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Bootstrap Overrides & Custom Components */

/* Buttons */
.btn-primary,
.btn-outline-primary {
  --bs-btn-color: white;
  --bs-btn-bg: var(--button-color);
  --bs-btn-border-color: var(--button-color);
  --bs-btn-hover-color: white;
  --bs-btn-hover-bg: var(--accent-color);
  --bs-btn-hover-border-color: var(--accent-color);
  --bs-btn-focus-shadow-rgb: 95, 159, 126;
  --bs-btn-active-color: white;
  --bs-btn-active-bg: #4A8C6B; /* Slightly darker primary */
  --bs-btn-active-border-color: #4A8C6B;
  --bs-btn-disabled-bg: var(--secondary-color);
  --bs-btn-disabled-border-color: var(--secondary-color);
  border-radius: var(--border-radius-base);
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
  box-shadow: var(--shadow-light);
}

.btn-outline-primary {
  --bs-btn-color: var(--button-color);
  --bs-btn-border-color: var(--button-color);
  --bs-btn-hover-color: white;
  --bs-btn-hover-bg: var(--button-color);
  --bs-btn-hover-border-color: var(--button-color);
  background-color: transparent;
  box-shadow: none;
}

.btn-primary:hover,
.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius-base);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-img-top {
  border-top-left-radius: var(--border-radius-base);
  border-top-right-radius: var(--border-radius-base);
}

.card-body {
  padding: 1.5rem;
}

/* Sections with varied backgrounds */
.section-bg-1 { background-color: var(--section-bg-1); }
.section-bg-2 { background-color: var(--section-bg-2); }
.section-bg-3 { background-color: var(--section-bg-3); }
.section-bg-4 { background-color: var(--section-bg-4); }
.section-bg-5 { background-color: var(--section-bg-5); }

/* Custom Hero Section */
.hero-section {
  background: linear-gradient(rgba(248, 251, 248, 0.8), rgba(248, 251, 248, 0.8)), url('https://source.unsplash.com/random/1600x900/?nature,eco-friendly-food') no-repeat center center/cover;
  padding: 8rem 0;
  text-align: center;
  color: var(--heading-color);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.hero-section h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.hero-section p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 800px;
  margin: 1.5rem auto 2.5rem;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background-color: var(--background-color);
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-family-heading);
  color: var(--primary-color) !important;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 30px; /* Adjust as needed */
  margin-right: 10px;
}

.navbar-nav .nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  margin: 0 0.75rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: #E0E8E0; /* Light text on dark footer */
  padding: 3rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.footer h5 {
  color: white;
  font-family: var(--font-family-heading);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer a {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
}

.footer .social-icons a {
  font-size: 1.5rem;
  margin: 0 0.7rem;
  transition: transform 0.3s ease;
}

.footer .social-icons a:hover {
  transform: translateY(-3px);
  color: var(--primary-color);
}

/* Utility Classes */
.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }
.text-accent-custom { color: var(--accent-color) !important; }

.bg-primary-custom { background-color: var(--primary-color) !important; }
.bg-secondary-custom { background-color: var(--secondary-color) !important; }

/* Product Cards / Item Listing */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05); /* Subtle border for definition */
  border-radius: var(--border-radius-base);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-card img {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-top-left-radius: var(--border-radius-base);
  border-top-right-radius: var(--border-radius-base);
}

.product-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card .card-title {
  font-family: var(--font-family-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.product-card .card-text {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.product-card .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: auto; /* Pushes price to bottom */
  margin-bottom: 1rem;
}

/* Natural texture elements */
.texture-overlay {
  position: relative;
  overflow: hidden;
}

.texture-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMTJMMTAuOTk5OSAwTDEwLjk5OTkgMTIuMDEzN0wxMiA5LjAwMDA4TDYuMDAwMDIgMCIgZmlsbD0iIzAwMDAwMCIgZmlsbC1vcGFjaXR5PSIwLjAyIi8+CjxwYXRoIGQ9Ik02LjAwMDAyIDBMMTAuOTk5OSAwTDEyIDkuMDAwMDhMMTAuOTk5OSAxMi4wMTM3TDAgMTJMNi4wMDAwMiAwWiIgZmlsbD0iIzAwMDAwMCIgZmlsbC1vcGFjaXR5PSIwLjAyIi8+Cjwvc3ZnPg=='); /* Subtle leaf/grain pattern */
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}

/* Alpine.js specific styles for transitions */
[x-transition] {
  transition: all 0.3s ease-out;
}

[x-transition:enter] {
  opacity: 0;
  transform: translateY(10px);
}

[x-transition:enter-start] {
  opacity: 0;
  transform: translateY(10px);
}

[x-transition:enter-end] {
  opacity: 1;
  transform: translateY(0);
}

[x-transition:leave] {
  opacity: 1;
  transform: translateY(0);
}

[x-transition:leave-start] {
  opacity: 1;
  transform: translateY(0);
}

[x-transition:leave-end] {
  opacity: 0;
  transform: translateY(10px);
}

/* Subtle animation for elements on scroll (requires JS) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 0;
  }

  .hero-section h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-section p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin: 1rem auto 2rem;
  }

  h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
}


/* Cookie Banner Additional Styles for Bootstrap */
.cookie-banner-custom {
    z-index: 1060;
    backdrop-filter: blur(10px);
}

.cookie-banner-custom .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}