@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f9f4;
  --bg-card: #ffffff;
  --bg-dark: #1f3d32;
  --text: #1a2e26;
  --text-muted: #5a7268;
  --sage: #4a7c59;
  --sage-dark: #3a6348;
  --coral: #e07a5f;
  --coral-dark: #c8654c;
  --mint: #c8e6d0;
  --sand: #ede8dc;
  --border: #d8e4dc;
  --font: 'Source Sans 3', system-ui, sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: 0.35;
  background: radial-gradient(circle at 10% 20%, rgba(200,230,208,0.5) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(237,232,220,0.6) 0%, transparent 45%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; position: relative; }

.site-header {
  position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); height: var(--nav-h);
}
.header-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--bg-dark); letter-spacing: -0.02em; }
.logo em { font-style: normal; color: var(--sage); }
.main-nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.main-nav a:hover, .main-nav a.active { color: var(--sage); }
.header-actions { display: flex; gap: 10px; align-items: center; }

.cart-btn {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: var(--sage); color: #fff; font-size: 13px; font-weight: 600;
  border-radius: 999px; border: none; cursor: pointer; transition: background 0.2s;
}
.cart-btn:hover { background: var(--sage-dark); }
.cart-count {
  background: var(--coral); color: #fff; min-width: 20px; height: 20px; border-radius: 999px;
  font-size: 11px; display: none; align-items: center; justify-content: center; font-weight: 700;
}
.cart-count.show { display: flex; }
.icon-btn {
  width: 40px; height: 40px; border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--text-muted);
}

.btn {
  display: inline-block; padding: 12px 24px; font-size: 14px; font-weight: 600;
  border-radius: 999px; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-dark); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); }
.btn-outline { background: transparent; border: 2px solid var(--sage); color: var(--sage); }

.hero-wellness {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 56px 0; min-height: 460px;
}
.hero-wellness-text .pill {
  display: inline-block; background: var(--mint); color: var(--sage-dark);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero-wellness-text h1 {
  font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.1; margin: 0 0 16px; color: var(--bg-dark);
}
.hero-wellness-text p { color: var(--text-muted); font-size: 17px; max-width: 420px; margin: 0 0 28px; }
.hero-wellness-img img {
  width: 100%; height: 420px; object-fit: cover; border-radius: 24px;
  box-shadow: 0 24px 48px rgba(31,61,50,0.12);
}

.wellness-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 48px;
}
.wellness-strip div {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; text-align: center;
}
.wellness-strip strong { font-family: var(--display); font-size: 1.4rem; color: var(--sage); display: block; }
.wellness-strip span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.section-title { font-family: var(--display); font-size: 1.75rem; font-weight: 700; margin: 0 0 28px; color: var(--bg-dark); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 56px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(31,61,50,0.08); }
.product-card .tag {
  position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--bg-dark); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.product-card .img-wrap { position: relative; }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card-body { padding: 16px 18px 20px; }
.product-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; line-height: 1.35; }
.product-card .price { font-size: 15px; color: var(--sage); font-weight: 700; margin-bottom: 12px; }
.product-card .btns { display: flex; gap: 8px; }
.product-card .btn { flex: 1; padding: 9px 10px; font-size: 12px; text-align: center; }
.shop-grid .product-card.hidden { display: none; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 28px; }
.chip {
  padding: 8px 18px; border: 1px solid var(--border); background: var(--bg-card);
  font-size: 13px; font-weight: 600; border-radius: 999px; cursor: pointer; color: var(--text-muted); transition: all 0.2s;
}
.chip.active, .chip:hover { background: var(--sage); border-color: var(--sage); color: #fff; }

.page-head { padding: 40px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.page-head .cat { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.page-head h1 { font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; margin: 0 0 8px; }
.page-head .lead { color: var(--text-muted); margin: 0; font-size: 16px; }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 36px; padding-bottom: 72px; }
.article-content img.hero-img { width: 100%; height: 380px; object-fit: cover; border-radius: 16px; margin-bottom: 24px; }
.article-content p { color: var(--text-muted); font-size: 16px; line-height: 1.85; margin-bottom: 16px; }
.article-content h2 { font-family: var(--display); font-size: 1.25rem; font-weight: 700; margin: 28px 0 10px; color: var(--bg-dark); }

.purchase-box {
  background: var(--bg-dark); color: #fff; padding: 24px; border-radius: 16px;
  position: sticky; top: calc(var(--nav-h) + 16px);
}
.purchase-box img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
.purchase-box h3 { font-size: 1.05rem; margin: 0 0 8px; }
.purchase-box .price { font-family: var(--display); font-size: 1.5rem; color: var(--mint); margin-bottom: 4px; }
.purchase-box .note { font-size: 12px; opacity: 0.75; margin-bottom: 16px; }
.purchase-box .btn { width: 100%; margin-bottom: 8px; }
.purchase-box .added { font-size: 12px; color: var(--mint); display: none; text-align: center; margin-top: 8px; }
.purchase-box .added.show { display: block; }

.cart-page { padding: 40px 0 72px; }
.cart-empty { text-align: center; padding: 64px 24px; border: 2px dashed var(--border); border-radius: 16px; background: var(--bg-card); }
.cart-row {
  display: grid; grid-template-columns: 72px 1fr 120px 80px 60px; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-row h4 { font-size: 14px; margin: 0 0 4px; font-weight: 700; }
.cart-row a { font-size: 12px; color: var(--sage); font-weight: 600; }
.qty-ctrl { display: flex; gap: 6px; align-items: center; }
.qty-ctrl button { width: 28px; height: 28px; border: 1px solid var(--border); background: var(--bg); border-radius: 6px; cursor: pointer; font-weight: 700; }
.qty-ctrl span { min-width: 20px; text-align: center; font-weight: 600; }
.cart-summary { max-width: 340px; margin-left: auto; margin-top: 28px; background: var(--sage); color: #fff; padding: 24px; border-radius: 16px; }
.cart-summary .line { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; opacity: 0.95; }
.cart-summary .total { font-family: var(--display); font-size: 1.3rem; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 12px; margin-top: 12px; }
.cart-summary .btn { width: 100%; margin-top: 16px; background: var(--coral); color: #fff; }
.cart-remove { background: none; border: none; color: var(--coral); font-size: 11px; cursor: pointer; text-decoration: underline; }

.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: var(--bg-card); overflow: hidden; }
.faq-q { width: 100%; padding: 16px 20px; background: none; border: none; text-align: left; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a-inner { padding: 0 20px 16px; color: var(--text-muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 36px 0 72px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; font-family: var(--font); margin-bottom: 12px; }
.contact-form textarea { min-height: 120px; resize: vertical; }

.modal-overlay { position: fixed; inset: 0; background: rgba(31,61,50,0.5); z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 72px 20px; }
.modal-overlay.show { display: flex; }
.modal-box { background: var(--bg-card); border-radius: 16px; padding: 28px; width: min(480px,100%); position: relative; box-shadow: 0 24px 48px rgba(0,0,0,0.15); }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); }
.search-input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; font-family: var(--font); }
.search-results a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }

#cookieBar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 3000; background: var(--bg-dark); color: #fff; padding: 14px 24px; transform: translateY(100%); transition: transform 0.3s; }
#cookieBar.show { transform: translateY(0); }
.cookie-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: 13px; flex: 1; opacity: 0.9; }
.cookie-inner a { color: var(--mint); }
.cookie-btns button { padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; border-radius: 999px; margin-left: 8px; }
#cookieAccept { background: var(--coral); color: #fff; }
#cookieDecline { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #fff; }

#toastContainer { position: fixed; bottom: 20px; right: 20px; z-index: 2500; }
.toast { background: var(--bg-dark); color: #fff; padding: 12px 20px; font-size: 13px; border-radius: 999px; margin-top: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.site-footer { background: var(--bg-dark); color: #b8cfc4; padding: 48px 0 24px; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { font-size: 13px; color: #b8cfc4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; font-size: 12px; }

@media (max-width: 992px) {
  .hero-wellness, .article-layout, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .wellness-strip { grid-template-columns: 1fr 1fr; }
  .cart-row { grid-template-columns: 60px 1fr; gap: 10px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
  .main-nav.open { display: flex; }
  .product-grid, .wellness-strip { grid-template-columns: 1fr; }
}
