/* Green Place Health Shop
   Type: "Fraunces" (serif, display) for the brand voice — earthy, a little
   handmade, echoes the wordmark on the product labels.
   "Work Sans" (humanist sans) for body/UI — quiet and legible.
   Color: deep forest green (brand), a warm bark/tan accent (mushroom &
   cork tones), cream ground (matches the label paper), near-black green
   for text. */

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

:root {
  /* Colors sampled directly from the Green Place logo. */
  --green-brand: #00593e;   /* the exact green from the logo mark & wordmark */
  --green-deep: #002500;    /* the near-black green from the logo outline */
  --green-soft: #3c8064;
  --cream: #f4f8f3;         /* pale sage-white, not a warm cream */
  --cream-dark: #e4ede2;
  --bark: #a9723f;
  --bark-dark: #8a5c30;
  --ink: #10231a;
  --line: rgba(0, 37, 0, 0.14);
  --radius: 3px;
  --shadow: 0 1px 0 rgba(0, 37, 0, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.1;
  color: var(--green-deep);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

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

button {
  font-family: 'Work Sans', sans-serif;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--bark);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--green-deep);
  border-bottom: 1px solid rgba(244, 248, 243, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img { height: 46px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.main-nav a:hover { border-color: var(--bark); }

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-brand);
  color: var(--cream);
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid rgba(244, 248, 243, 0.3);
}

.cart-link:hover { background: var(--cream); color: var(--green-deep); }

#cart-count {
  background: var(--bark);
  color: var(--cream);
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 64px;
  background: var(--green-deep);
  color: var(--cream);
}

.hero h1 { color: var(--cream); }

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  color: #d8c9a3;
  font-size: 0.95rem;
  font-style: italic;
  font-family: 'Fraunces', serif;
  margin-bottom: 14px;
}

.hero-lede {
  font-size: 1.1rem;
  color: #c9d8ce;
  max-width: 46ch;
}

.hero-actions { margin-top: 26px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero .btn-secondary {
  color: var(--cream);
  border-color: var(--cream);
}
.hero .btn-secondary:hover { background: var(--cream); color: var(--green-deep); }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.4));
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--green-brand);
  color: var(--cream);
}
.btn-primary:hover { background: var(--green-deep); }
.btn-primary:disabled {
  background: #b9c3bd;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-secondary:hover { background: var(--green-deep); color: var(--cream); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Section shells ---------- */

section { padding: 64px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.section-head p { margin: 0; color: var(--green-soft); }

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  aspect-ratio: 1;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.product-media img { width: 100%; height: 100%; object-fit: contain; }

.product-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 { margin-bottom: 6px; }

.product-note {
  font-size: 0.88rem;
  color: var(--green-soft);
  margin-bottom: 14px;
}

.product-price {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  color: var(--green-deep);
  margin: 6px 0 14px;
}

.product-body .btn { margin-top: auto; }

.product-btn-row {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.product-btn-row .btn { flex: 1; margin-top: 0; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}

.badge-ready { background: #e4efe6; color: var(--green-brand); }
.badge-soon { background: var(--cream-dark); color: var(--bark-dark); }

.coming-soon .product-media { opacity: 0.55; }
.coming-soon .product-body { opacity: 0.75; }

/* ---------- Story / benefits ---------- */

.story {
  background: var(--green-brand);
  color: var(--cream);
}

.story h2 { color: var(--cream); }
.story .hero-lede { color: #c9d8ce; }

.benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  margin-top: 36px;
  list-style: none;
  padding: 0;
}

.benefit-list li {
  border-top: 1px solid rgba(247, 243, 234, 0.22);
  padding-top: 14px;
}

.benefit-list h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.benefit-list p {
  margin: 0;
  font-size: 0.92rem;
  color: #c9d8ce;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-deep);
  padding: 36px 0 32px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: #a9c2b3;
}

/* ---------- Cart page ---------- */

.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 6px;
}

.cart-line-name { font-weight: 500; }
.cart-line-price { color: var(--green-soft); font-size: 0.9rem; }

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-control button {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  color: var(--green-deep);
}
.qty-control button:hover { background: var(--cream-dark); }

.qty-control span { width: 28px; text-align: center; font-size: 0.9rem; }

.remove-link {
  background: none;
  border: none;
  color: var(--bark-dark);
  font-size: 0.85rem;
  text-decoration: underline;
  padding: 0;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.summary-row.total {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  color: var(--green-deep);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--green-soft);
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 0.85rem;
  color: var(--green-soft);
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}

input:focus, textarea:focus {
  border-color: var(--green-brand);
  outline: none;
}

.field { margin-bottom: 16px; }

.form-error {
  background: #fbebe8;
  color: #8a3a2c;
  border: 1px solid #e6c3ba;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
}
.form-error.visible { display: block; }

.trust-note {
  font-size: 0.85rem;
  color: var(--green-soft);
  margin-top: 14px;
}

/* ---------- Confirmation ---------- */

.confirm-page {
  text-align: center;
  padding: 100px 20px;
}

.confirm-page .container { max-width: 560px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .main-nav { gap: 16px; }
  .cart-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 56px 1fr; }
  .cart-line img { width: 56px; height: 56px; }
  .qty-control, .remove-link { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ---------- Story section ---------- */

.story-section {
  background-color: #f7f9f7;
  padding: 90px 0;
}

.story-inner {
  max-width: 720px;
  margin: 0 auto;
}

.story-inner h2 {
  text-align: center;
  margin-bottom: 8px;
}

.story-lead {
  text-align: center;
  color: var(--green-soft);
  font-size: 0.95rem;
  margin-bottom: 32px;
  font-style: italic;
  font-family: 'Fraunces', serif;
}

.story-inner p {
  margin: 0 0 22px 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2c3e2d;
  max-width: none;
}

.story-inner p:last-child {
  margin-bottom: 0;
}

/* ---------- Coming soon media ---------- */

.product-media-soon {
  background: #e8efe9;
}

.product-media-soon img {
  width: 55%;
  height: auto;
  opacity: 0.45;
  object-fit: contain;
}

/* ---------- Shipping options ---------- */

.shipping-label {
  display: block;
  font-size: 0.85rem;
  color: var(--green-soft);
  margin-bottom: 12px;
}

.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipping-card {
  display: block;
  margin: 0;
  cursor: pointer;
}

.shipping-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shipping-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid #d4ddd6;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.shipping-card:hover .shipping-card-inner {
  border-color: #a8c4b0;
}

.shipping-card input:checked + .shipping-card-inner {
  border-color: var(--green-brand);
  background: #f0f7f2;
  box-shadow: 0 0 0 1px var(--green-brand);
}

.shipping-card-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shipping-card-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: #1e3a1e;
}

.shipping-card-desc {
  font-size: 0.82rem;
  color: var(--green-soft);
}

.shipping-card-right {
  flex-shrink: 0;
}

.shipping-card-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e3a1e;
}

.shipping-card input:checked + .shipping-card-inner .shipping-card-price {
  color: var(--green-brand);
}

/* ---------- Footer ---------- */

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand note"
    "links links";
  gap: 20px 24px;
  align-items: center;
}

.footer-grid > div:first-child {
  grid-area: brand;
  line-height: 1.6;
}
.footer-grid > div:first-child strong {
  color: var(--cream);
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.1rem;
}

.footer-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(169, 194, 179, 0.22);
}

.footer-links a {
  color: #a9c2b3;
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-note {
  grid-area: note;
  text-align: right;
  line-height: 1.6;
  font-size: 0.82rem;
  padding: 6px 12px;
  border: 1px solid rgba(169, 194, 179, 0.3);
  border-radius: 999px;
}

.shipping-hint {
  font-size: 0.8rem;
  color: var(--green-soft);
  margin: 0 0 12px;
}

.trust-block {
  margin-top: 14px;
}

.trust-block .trust-note {
  margin: 0 0 4px;
}

/* ---------- Mobile polish ---------- */

@media (max-width: 860px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "note";
    text-align: center;
    justify-items: center;
  }
  .footer-note {
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    gap: 10px 20px;
    width: 100%;
  }
  .brand img {
    height: 38px;
  }
  .main-nav {
    gap: 12px;
  }
  .main-nav a {
    font-size: 0.88rem;
  }
  .cart-link {
    padding: 7px 12px;
    font-size: 0.85rem;
  }
  .hero {
    padding: 48px 0 40px;
  }
}

/* ---------- Product detail page ---------- */

.pdp-back {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 0.9rem;
  color: var(--green-soft);
  text-decoration: none;
}
.pdp-back:hover { color: var(--green-deep); }

.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.pdp-gallery {
  position: relative;
  aspect-ratio: 1;
  background: var(--cream-dark);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

.pdp-gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.pdp-gallery-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.pdp-placeholder {
  flex-direction: column;
  gap: 10px;
  color: var(--green-soft);
  text-align: center;
}

.pdp-placeholder svg { color: var(--green-soft); opacity: 0.6; }

.pdp-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

.pdp-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 37, 0, 0.55);
  color: var(--cream);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.pdp-gallery:hover .pdp-gallery-arrow { opacity: 1; }

.pdp-gallery-arrow:hover { background: var(--green-deep); }

.pdp-gallery-arrow.prev { left: 14px; }
.pdp-gallery-arrow.next { right: 14px; }

.pdp-gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pdp-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 37, 0, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
}
.pdp-gallery-dot.active { background: var(--green-brand); }

.pdp-info .badge { margin-bottom: 14px; }

.pdp-price {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--green-deep);
  margin: 10px 0 20px;
}

.pdp-note {
  color: var(--green-soft);
  margin-bottom: 22px;
}

.benefit-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin: 28px 0 8px;
}

.benefit-detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.benefit-detail-card h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--green-deep);
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.benefit-detail-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--green-soft);
}

.pdp-subhead {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--green-deep);
  font-size: 1.15rem;
  margin: 30px 0 10px;
}

@media (max-width: 860px) {
  .pdp-layout { grid-template-columns: 1fr; }
}

/* ---------- Ingredients & dosage panel (product pages) ---------- */

.pdp-ingredient-line {
  font-size: 0.92rem;
  color: var(--ink);
  margin: -8px 0 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pdp-ingredient-line strong { color: var(--green-deep); }
.pdp-ingredient-line a { color: var(--green-brand); text-decoration: underline; text-underline-offset: 3px; }

.ingredients-panel { margin-top: 56px; }
.ingredients-panel .pdp-subhead { margin-top: 0; }

.ip-grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

.facts-card {
  background: #fff;
  border: 2px solid var(--green-deep);
  border-radius: var(--radius);
  padding: 0 20px 18px;
}
.facts-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--green-deep);
  padding: 16px 0 10px;
  border-bottom: 6px solid var(--green-deep);
}
.facts-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.facts-row.heavy {
  border-bottom: 4px solid var(--green-deep);
  font-weight: 600;
  color: var(--green-deep);
}
.facts-row.item { font-weight: 600; color: var(--green-deep); }
.facts-row.item span:last-child { white-space: nowrap; }
.facts-row .sub { display: block; font-weight: 400; font-size: 0.82rem; color: var(--green-soft); }
.facts-foot { margin: 12px 0 0; font-size: 0.8rem; color: var(--green-soft); max-width: none; }

.ip-details { display: grid; gap: 18px; }
.ip-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.ip-block h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--green-deep);
  margin: 0 0 6px;
}
.ip-block p { margin: 0 0 8px; font-size: 0.95rem; max-width: none; }
.ip-block p:last-child { margin-bottom: 0; }

.dose-range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 10px;
}
.dose-range div { min-width: 120px; }
.dose-range b {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--green-brand);
  line-height: 1.15;
}
.dose-range span { font-size: 0.8rem; color: var(--green-soft); text-transform: uppercase; letter-spacing: 0.04em; }


@media (max-width: 860px) {
  .ip-grid { grid-template-columns: 1fr; }
}

/* ---------- Warnings card (inside the ingredients panel) ---------- */
.ip-warn {
  margin-top: 18px;
  background: #fbf6ea;
  border: 1px solid #e6d3a8;
  border-radius: var(--radius);
  padding: 18px 22px 20px;
}
.ip-warn h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: #7a4a00;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ip-warn h4::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #a15c00;
  color: #fff;
  font: 700 0.85rem Arial, sans-serif;
}
.ip-warn ul { margin: 10px 0 0 20px; padding: 0; font-size: 0.95rem; line-height: 1.6; }
.ip-warn li + li { margin-top: 4px; }
