/* ===================================================
   GrowCraft — Shared Stylesheet
   Palette: sage / cream / earth / terracotta / moss
   =================================================== */

/* --- Tokens --- */
:root {
  --sage: #5B7553;
  --sage-light: #8FA888;
  --sage-pale: #d4ddd1;
  --cream: #FAF7F2;
  --earth: #3D2B1F;
  --terracotta: #C4693D;
  --terracotta-light: #e8a878;
  --moss: #2D3B2D;
  --sand: #E8DFD0;
  --white: #FFFFFF;
  --shadow: 0 2px 12px rgba(61, 43, 31, 0.08);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--earth);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--moss);
  line-height: 1.2;
}

a { color: var(--sage); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terracotta); }

/* --- Nav --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(91, 117, 83, 0.1);
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--moss);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--terracotta); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--earth);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--sage); }
.nav-links a.btn-nav {
  background: var(--sage);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  transition: background var(--transition);
}
.nav-links a.btn-nav:hover { background: var(--moss); }

/* --- Page Wrapper --- */
.page-wrapper {
  padding-top: 80px;
  min-height: 100vh;
}

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

/* --- Section Helpers --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
.section-header p {
  color: var(--sage);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(61, 43, 31, 0.12); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.card-body p { font-size: 0.9rem; color: #666; line-height: 1.5; }
.card-price {
  font-weight: 700;
  color: var(--terracotta);
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

/* --- Badges --- */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}
.badge-sage { background: rgba(91, 117, 83, 0.12); color: var(--sage); }
.badge-terracotta { background: rgba(196, 105, 61, 0.12); color: var(--terracotta); }
.badge-sand { background: var(--sand); color: var(--earth); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform 0.1s;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--moss); color: var(--white); }
.btn-secondary { background: var(--sand); color: var(--earth); }
.btn-secondary:hover { background: var(--terracotta-light); color: var(--earth); }
.btn-outline { background: transparent; border: 2px solid var(--sage); color: var(--sage); }
.btn-outline:hover { background: var(--sage); color: var(--white); }

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-bar select, .filter-bar input {
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--sage-pale);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--cream);
  color: var(--earth);
  cursor: pointer;
  transition: border-color var(--transition);
}
.filter-bar select:focus, .filter-bar input:focus {
  outline: none;
  border-color: var(--sage);
}

/* --- Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* --- Planting Guide --- */
.zone-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.zone-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  border: 2px solid var(--sage-pale);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--earth);
  cursor: pointer;
  transition: all var(--transition);
}
.zone-btn:hover { border-color: var(--sage); color: var(--sage); }
.zone-btn.active { background: var(--sage); color: var(--white); border-color: var(--sage); }

.season-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.season-tab {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--sand);
  color: var(--earth);
  transition: all var(--transition);
}
.season-tab:hover { background: var(--sage-pale); }
.season-tab.active { background: var(--terracotta); color: var(--white); }

.plant-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  transition: transform var(--transition);
}
.plant-card:hover { transform: translateX(4px); }
.plant-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.plant-info { flex: 1; }
.plant-info h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.plant-info p { font-size: 0.85rem; color: #666; margin-bottom: 0.4rem; }
.plant-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.plant-meta span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage);
  background: rgba(91, 117, 83, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* --- Footer --- */
footer {
  background: var(--moss);
  color: rgba(255,255,255,0.8);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
}
footer h3 { color: var(--white); margin-bottom: 0.5rem; }
footer p { font-size: 0.9rem; }

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--sage);
}
.empty-state .emoji { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.4s ease forwards; }

/* --- Responsive --- */
@media (max-width: 768px) {
  nav { padding: 1rem; }
  .nav-links { gap: 1rem; }
  .container { padding: 0 1rem; }
  .section-header h1 { font-size: 1.8rem; }
  .filter-bar { gap: 0.5rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
}