:root {
  --primary: #2D5A27;
  /* Deep forest green */
  --secondary: #8CB369;
  /* Sage green */
  --accent: #F4E285;
  /* Warm yellow */
  --text: #2C363F;
  /* Soft black */
  --background: #FDFBF7;
  /* Warm off-white */
  --white: #FFFFFF;
  --card-bg: #FEFEFE;
  --accent-light: #F9F5E3;
  --gradient-start: #2D5A27;
  --gradient-end: #5B8A55;
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--background);
}

h1,
h2,
h3 {
  font-family: 'DM Serif Display', serif;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background: var(--white);
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-family: 'DM Serif Display', serif;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.home-link {
  text-decoration: none;
  color: var(--primary);
}

.home-link:hover {
  color: var(--secondary);
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.35rem;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 1.2rem 2.5rem;
  border-radius: 3rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: var(--white);
}

/* Products Grid Layout */
.products {
  padding: 8rem 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.product-image {
  height: 200px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
}

.product-content {
  padding: 2rem;
}

.product-category {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.3;
}

.product-description {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Blog Section */
.blog {
  padding: 8rem 0;
  background: var(--background);
  position: relative;
}

.blog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(45,90,39,0.05)"/></svg>') repeat;
  opacity: 0.5;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.blog-image {
  height: 240px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.5rem;
  position: relative;
  overflow: hidden;
}

.blog-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(140, 179, 105, 0.1), transparent);
}

.blog-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.blog-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 1rem;
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.blog-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.blog-link:hover {
  color: var(--secondary);
}

.blog-link::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.blog-link:hover::after {
  transform: translateX(4px);
}

/* Newsletter Section */
.newsletter {
  padding: 6rem 0;
  background: var(--accent-light);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(45,90,39,0.1)"/></svg>') repeat;
  opacity: 0.5;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.newsletter h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.newsletter p {
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 2rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--secondary);
}

.newsletter-form button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--white);
  padding: 6rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.footer-section p {
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text);
  opacity: 0.8;
}

.view-all-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.view-all-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.view-all-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.view-all-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.view-all-card p {
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.view-all-text {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
}

.view-all-text::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.view-all-card:hover .view-all-text::after {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Common Hero Section Styles */
.products-hero,
.blogs-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 4rem 0;
  color: var(--white);
  position: relative;
}

.products-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
}

.products-hero-content,
.blogs-hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.products-hero h1,
.blogs-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.products-hero p,
.blogs-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Search Section */
.search-section {
  background: var(--white);
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  background: var(--filter-bg);
}

.search-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 2rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(140, 179, 105, 0.1);
}

/* Grid Layouts */
.products-section,
.blogs-section {
  padding: 4rem 0;
}

.products-grid,
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Card Styles */
.product-card,
.blog-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Image Styles */
.product-image,
.blog-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.product-image {
  background: var(--accent-light);
}

.blog-image {
  background-color: var(--secondary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Styles */
.product-content,
.blog-content {
  padding: 1.5rem;
}

.product-category {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.product-title,
.blog-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.product-description,
.blog-excerpt {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Product-specific styles */
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-price {
  font-weight: 600;
  color: var(--primary);
}

.affiliate-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
}

/* Blog-specific styles */
.blog-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.blog-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}

.blog-link:hover {
  text-decoration: underline;
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 4rem;
  grid-column: 1 / -1;
  color: var(--text);
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-container {
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .products-hero h1,
  .blogs-hero h1 {
    font-size: 2.5rem;
  }

  .products-hero p,
  .blogs-hero p {
    font-size: 1rem;
  }

  .products-grid,
  .blogs-grid {
    grid-template-columns: 1fr;
  }
}