:root {
  --font: 'Georgia', serif;
  --bg-color: #fdfaf6;
  --text-color: #222;
  --accent-color: #b44b33;
  --section-padding: 4rem 2rem;
  --card-bg: white;
  --card-shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #f2f2f2;
  --accent-color: #ff9671;
  --card-bg: #2a2a2a;
  --card-shadow: rgba(255, 255, 255, 0.05);
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Site title */
.site-header {
  background-color: var(--bg-color);
  padding: 0rem 1rem;
  border-bottom: 1px solid #ddd;
}

.site-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-title {
  font-size: 1.5rem;
  margin: 0;
  font-family: var(--font);
  color: var(--text-color);
}

.logo-image {
  height: 200px;
  width: auto;
}

/* Section container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: left;
}

/* Alternating background colors */
.light-bg {
  background-color: #fdfaf6;
}

.dark-bg {
  background-color: #222;
  color: #f2f2f2;
}

[data-theme="dark"] .light-bg {
  background-color: #1e1e1e;
}

[data-theme="dark"] .dark-bg {
  background-color: #111;
}

/* Shared layout for hero-like sections */
.hero-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-text h2 {
  font-size: 2.2rem;
  margin: 0;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 500px;
  margin: 0;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 400px; /* ✅ Set a max width */
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.primary-btn,
.secondary-btn,
button {
  background: none;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 1rem;
  transition: background 0.3s ease;
  width: fit-content; /* ✅ Add this line */
  align-self: flex-start; /* ✅ Prevent stretching in flex column */
}

.primary-btn:hover,
.secondary-btn:hover,
button:hover {
  background: var(--accent-color);
  color: white;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--card-bg);
  box-shadow: 0 4px 12px var(--card-shadow);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  color: var(--text-color); /* ✅ Ensure readable text */
}

.product-card img {
  max-width: 100%;
  border-radius: 8px;
}

.product-card h3 {
  margin-top: 0.75rem;
  font-size: 1.2rem;
}

/* Mailing list form */
.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.email-form input[type="email"] {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  flex: 1;
  min-width: 200px;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-text h2 {
    font-size: 1.8rem;
  }

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

  .hero-content {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-text, .hero-image {
    width: 100%;
  }

  .hero-image img {
    max-width: 90%;
  }
}