/* ===== CSS Variables ===== */
:root {
  --primary: #2a9d5c;
  --primary-light: #34c06d;
  --primary-dark: #1e7a45;
  --accent: #7cb518;
  --background: #f4f9f5;
  --card-bg: #ffffff;
  --text-dark: #1a2e1f;
  --text-medium: #4a6b52;
  --text-light: #7a9b85;
  --border: #d8e8dc;
  --secondary-bg: #e8f3ea;
  --destructive: #e84855;
  --shadow-sm: 0 2px 12px -2px rgba(42, 157, 92, 0.08);
  --shadow-md: 0 8px 30px -6px rgba(42, 157, 92, 0.12);
  --shadow-lg: 0 20px 50px -12px rgba(42, 157, 92, 0.18);
  --radius: 16px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s;
}

.logo:hover .logo-icon {
  transform: scale(1.1);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-highlight {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px 16px;
}

.mobile-nav a {
  padding: 10px 0;
  font-weight: 500;
  color: var(--text-medium);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg-circle-1 {
  width: 400px;
  height: 400px;
  top: -60px;
  left: -80px;
  background: radial-gradient(circle, rgba(42, 157, 92, 0.07), transparent 70%);
}

.hero-bg-circle-2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(124, 181, 24, 0.06), transparent 70%);
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--secondary-bg);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto 36px;
}

.search-container {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

.search-container input {
  width: 100%;
  padding: 18px 24px 18px 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.search-container input::placeholder {
  color: var(--text-light);
}

.search-container input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(42, 157, 92, 0.12);
}

/* Stats */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-card strong {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-dark);
}

.stat-card span {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== Products Section ===== */
.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}

.category-filters button {
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  background: #2a9d5c;   /* green */
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.category-filters button:hover {
  background: #1e7a45;  /* darker green */
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-light);
  font-size: 16px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(30px);
  animation: cardFadeIn 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.product-card .card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--secondary-bg);
}

.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .card-image img {
  transform: scale(1.08);
}

.card-body {
  padding: 20px;
}

.card-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--secondary-bg);
  padding: 4px 14px;
  border-radius: 999px;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 4px;
  color: var(--text-dark);
}

.card-price {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}


/* Eco Score Bar */
.eco-score-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 6px;
}

.eco-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eco-bar-track {
  flex: 1;
  height: 8px;
  background: var(--secondary-bg);
  border-radius: 999px;
  overflow: hidden;
}

.eco-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 1s ease;
}

.eco-score-value {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  min-width: 38px;
}

/* Compare Button */
.compare-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  background: var(--secondary-bg);
  color: var(--text-medium);
}

.compare-btn:hover {
  background: var(--primary);
  color: white;
}

.compare-btn.selected {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.no-results {
  text-align: center;
  color: var(--text-light);
  padding: 60px 0;
  font-size: 16px;
}

/* ===== Comparison Section ===== */
.comparison-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 500px;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  text-align: center;
  vertical-align: middle;
}

.comparison-table thead th {
  background: var(--secondary-bg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-medium);
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table tbody tr {
  border-top: 1px solid var(--border);
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(232, 243, 234, 0.3);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-table tbody td {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.compare-product-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-light);
  transition: color 0.2s;
  padding: 4px;
}

.remove-btn:hover {
  color: var(--destructive);
}

.compare-hint {
  text-align: center;
  color: var(--text-light);
  padding-bottom: 40px;
}

/* ===== About Section ===== */
.about-section {
  background: var(--secondary-bg);
  padding: 80px 24px;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 16px;
}

.about-content p {
  color: var(--text-medium);
  font-size: 17px;
  line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-brand .logo-text {
  color: white;
}

.footer-links h4 {
  color: white;
  font-family: var(--font-heading);
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }

  .hero {
    padding: 60px 24px 40px;
  }
}
.best-product {
  margin-top: 20px;
  padding: 16px;
  background: #e8f5e9;
  border-left: 6px solid #2a9d5c;
  font-size: 16px;
  font-weight: 600;
  color: #1e7a45;
  border-radius: 10px;
  text-align: center;
}
