/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-sage: #7a8b6f;
  --color-sage-dark: #5c6b52;
  --color-sage-light: #e8ece5;
  --color-warm: #f7f4f0;
  --color-cream: #fdfcfa;
  --color-text: #3a3a3a;
  --color-text-light: #6b6b6b;
  --color-border: #e0dbd5;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
  --max-width: 1100px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-sage-dark);
  text-decoration: none;
}

a:hover {
  color: var(--color-sage);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.7rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  border-bottom-color: var(--color-sage);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 600px;
  padding: 2rem;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid var(--color-sage);
  color: var(--color-sage-dark);
  background: transparent;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--color-sage);
  color: #fff;
}

.btn-primary {
  background: var(--color-sage);
  color: #fff;
  border-color: var(--color-sage);
}

.btn-primary:hover {
  background: var(--color-sage-dark);
  border-color: var(--color-sage-dark);
  color: #fff;
}

.btn-white {
  border-color: #fff;
  color: #fff;
}

.btn-white:hover {
  background: #fff;
  color: var(--color-sage-dark);
}

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-warm);
}

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

.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0.5rem auto 0;
}

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

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.1rem;
  color: var(--color-sage-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== Product Detail ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.gallery-main {
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--color-sage);
}

.product-info h1 {
  margin-bottom: 0.5rem;
}

.product-info .product-price {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.ingredients-list {
  list-style: none;
  margin: 1rem 0;
}

.ingredients-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.ingredients-list li strong {
  color: var(--color-sage-dark);
}

/* ===== About Page ===== */
.about-content {
  max-width: 750px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-warm);
  border-radius: 4px;
}

.feature-item h3 {
  color: var(--color-sage-dark);
  margin-bottom: 0.3rem;
}

/* ===== Contact Form ===== */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sage);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== Blog ===== */
.blog-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  background: #fff;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 2rem 2rem 2rem 0;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.blog-post {
  max-width: 750px;
  margin: 0 auto;
}

.blog-post h2 {
  margin-top: 2rem;
}

.blog-post ul {
  margin: 1rem 0 1rem 1.5rem;
}

.blog-post li {
  margin-bottom: 0.5rem;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 3rem 0;
  background: var(--color-sage-light);
}

.cta-section h2 {
  margin-bottom: 0.5rem;
}

.cta-section p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--color-text-light);
  margin: 0 0.5rem;
}

.footer-links a:hover {
  color: var(--color-sage-dark);
}

/* ===== Page Header ===== */
.page-header {
  text-align: center;
  padding: 3rem 0 2rem;
  background: var(--color-warm);
}

/* ===== Privacy ===== */
.privacy-content {
  max-width: 750px;
  margin: 0 auto;
}

.privacy-content h2 {
  margin-top: 2rem;
}

.privacy-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: none;
  }

  .hero {
    height: 50vh;
    min-height: 300px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .blog-card img {
    max-height: 250px;
  }

  .blog-card-body {
    padding: 1.5rem;
  }
}
