/* Heartleaf Plants — shared styles for generated pages (plants, collections)
   and content pages (about, delivery, privacy, terms, 404).
   Mirrors the palette and type of the hand-built pages. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green-deep:#12291A; --green-dark:#1B3A1F; --green-mid:#2D6A35; --green-leaf:#4A9955;
  --green-pale:#D4EDDA; --green-mist:#EEF7F0; --cream:#F4FAF4; --cream-warm:#F7F3E8;
  --terra:#C4714A; --terra-soft:#E8C4AD; --ink:#12201A; --ink-mid:#3D4A3E; --ink-light:#5F6F60;
  --line: rgba(18,41,26,.09);
  --display:'Fraunces', Georgia, serif; --body:'DM Sans', system-ui, sans-serif;
  --wrap: 1180px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--cream); color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,250,244,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 32px; display: flex;
  align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--green-deep); }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand .word { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; line-height: 1; }
.brand .word em { font-style: italic; color: var(--green-mid); }
.brand .kick { display: block; font-family: var(--body); font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-light); margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.site-nav a { color: var(--ink-mid); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green-mid); text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green-leaf);
  color: #fff !important; padding: 12px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  border: none; cursor: pointer; transition: background .2s, transform .15s; text-decoration: none !important; }
.btn:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-ghost { background: #fff; color: var(--green-deep) !important; border: 1px solid rgba(18,41,26,.14); }
.btn-ghost:hover { background: var(--green-mist); }
.btn-dark { background: var(--green-deep); }
.btn-dark:hover { background: var(--green-dark); }
.btn[aria-disabled="true"] { background: #c9d6cb; cursor: not-allowed; transform: none; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
main { display: block; }
.page-head { padding-top: 56px; padding-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--green-mid); margin-bottom: 16px; font-weight: 500; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--green-mid); }
h1, .h1 { font-family: var(--display); font-weight: 300; color: var(--green-deep);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; }
h1 em, h2 em { font-style: italic; color: var(--green-mid); }
h2 { font-family: var(--display); font-weight: 300; color: var(--green-deep); font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.12; letter-spacing: -.015em; }
h3 { font-family: var(--display); font-weight: 400; color: var(--green-deep); font-size: 1.25rem; line-height: 1.25; }
.lede { color: var(--ink-mid); font-size: 17.5px; margin-top: 18px; font-weight: 300; line-height: 1.65; max-width: 680px; }
.prose p, .prose ul, .prose ol { color: var(--ink-mid); font-size: 16px; font-weight: 300; line-height: 1.75; margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 28px; }
.prose strong { color: var(--ink); font-weight: 500; }
.section { padding: 56px 0; }
.section + .section { padding-top: 8px; }
.card { background: #fff; border-radius: 24px; padding: 36px 40px; border: 1px solid var(--line);
  box-shadow: 0 20px 60px -34px rgba(18,41,26,.18); }
.muted { color: var(--ink-light); }
.small { font-size: 13px; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 12.5px; color: var(--ink-light); padding-top: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: #9aa89b; }
.crumbs a { color: var(--ink-light); }
.crumbs a:hover { color: var(--green-mid); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.pcard { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; position: relative; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(18,41,26,.25); }
.pcard .ph { aspect-ratio: 1; background: #F1F7EE; position: relative; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: contain; }
.pcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard h3 { font-size: 18px; line-height: 1.25; }
.pcard h3 a { color: var(--green-deep); }
.pcard h3 a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.pcard .latin { font-family: var(--display); font-style: italic; font-size: 12.5px; color: var(--ink-light); }
.pcard .row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard .price { font-family: var(--display); font-size: 18px; color: var(--green-deep); }
.badge { display: inline-block; font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--green-pale); color: var(--green-mid); }
.badge.rare { background: var(--green-dark); color: var(--green-pale); }
.badge.pet { background: #FCE9DD; color: #8C4A2A; }
.badge.out { background: rgba(18,41,26,.08); color: var(--ink-light); }
.badge.low { background: #C4714A; color: #fff; }
.pcard .flag { position: absolute; top: 12px; left: 12px; z-index: 1; font-family: var(--display); font-style: italic;
  font-size: 11.5px; background: var(--cream); color: var(--green-deep); padding: 3px 10px; border-radius: 999px; }
.pcard .flag.rare { background: var(--green-deep); color: var(--green-pale); }
.pcard.sold .ph img { opacity: .55; filter: grayscale(.2); }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; padding: 28px 0 40px; align-items: start; }
.gallery .main { aspect-ratio: 1; background: #F1F7EE; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs button { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2px solid transparent;
  background: #F1F7EE; padding: 0; cursor: pointer; opacity: .7; transition: .2s; }
.gallery .thumbs button[aria-pressed="true"], .gallery .thumbs button:hover { opacity: 1; border-color: var(--green-mid); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.buybox .latin { font-family: var(--display); font-style: italic; color: var(--ink-light); font-size: 16px; margin-top: 8px; }
.buybox .price-row { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.buybox .price { font-family: var(--display); font-size: 2.1rem; color: var(--green-deep); line-height: 1; }
.buybox .pot { color: var(--ink-light); font-size: 13.5px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--green-mid); margin-top: 14px; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green-leaf); box-shadow: 0 0 0 3px rgba(74,153,85,.2); }
.stock.low { color: #9a4f2c; } .stock.low::before { background: var(--terra); box-shadow: 0 0 0 3px rgba(196,113,74,.2); }
.stock.out { color: var(--ink-light); } .stock.out::before { background: #9aa89b; box-shadow: none; }
.buybox .desc { color: var(--ink-mid); font-size: 16px; font-weight: 300; line-height: 1.75; margin-top: 20px; }
.buybox .actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.buybox .actions .btn { flex: 1; min-width: 200px; padding: 15px 24px; font-size: 15px; }
.perks { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-mid); }
.perks li::before { content: ''; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--green-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D6A35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.care3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.care3 div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.care3 dt { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-light); }
.care3 dd { font-size: 13.5px; font-weight: 500; color: var(--green-deep); margin-top: 4px; line-height: 1.35; }
.facts { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14.5px; }
.facts th, .facts td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 38%; font-weight: 500; color: var(--ink); padding-right: 16px; }
.facts td { color: var(--ink-mid); font-weight: 300; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: none; }
.faq summary { font-weight: 500; color: var(--green-deep); font-size: 16px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 22px; font-weight: 300; color: var(--green-mid); line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { color: var(--ink-mid); font-size: 15px; margin-top: 10px; font-weight: 300; line-height: 1.7; }
.faq details > div p + p { margin-top: 10px; }

/* ---------- chips / city lists ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; list-style: none; padding: 0 !important; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; color: var(--ink-mid); margin: 0 !important; }
.chips a { color: var(--ink-mid); }
.chips a:hover { color: var(--green-mid); text-decoration: none; }
.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.area-grid .card { padding: 26px 28px; }
.area-grid h3 { font-size: 1.15rem; }

/* ---------- tiles (collections, steps) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.tile { background: #fff; border-radius: 20px; padding: 26px 26px 24px; border: 1px solid var(--line); display: block; color: inherit; transition: transform .2s, box-shadow .2s; }
a.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 20px 44px -26px rgba(18,41,26,.28); }
.tile .num { font-family: var(--display); font-style: italic; font-size: 13px; color: var(--green-mid); }
.tile h3 { margin-top: 8px; }
.tile p { color: var(--ink-mid); font-size: 14.5px; font-weight: 300; margin-top: 8px; line-height: 1.65; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile .go { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 500; color: var(--green-mid); }

/* ---------- callout / CTA ---------- */
.callout { background: var(--green-mist); border: 1px solid rgba(74,153,85,.18); border-radius: 20px; padding: 24px 28px; margin-top: 28px; }
.callout p { color: var(--ink-mid); font-size: 15px; }
.cta-band { background: var(--green-deep); color: var(--cream); border-radius: 28px; padding: 56px 40px; text-align: center; margin: 64px 0 24px; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--cream); }
.cta-band h2 em { color: var(--terra-soft); }
.cta-band p { color: rgba(212,237,218,.78); max-width: 560px; margin: 14px auto 0; font-weight: 300; }
.cta-band .btn { margin-top: 26px; background: var(--cream); color: var(--green-deep) !important; }
.cta-band .btn:hover { background: #fff; }

/* ---------- footer ---------- */
.site-footer { background: #0D1D12; color: var(--green-pale); margin-top: 72px; }
.site-footer .inner { max-width: var(--wrap); margin: 0 auto; padding: 64px 32px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(212,237,218,.12); }
.site-footer .brand { color: var(--cream); }
.site-footer .brand .word em { color: var(--green-pale); }
.site-footer .brand .kick { color: rgba(212,237,218,.5); }
.site-footer p { font-size: 13.5px; color: rgba(212,237,218,.6); font-weight: 300; line-height: 1.7; margin-top: 16px; max-width: 320px; }
.site-footer h2 { font-family: var(--display); font-size: 14px; font-style: italic; font-weight: 400; color: var(--cream); margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { font-size: 13.5px; color: rgba(212,237,218,.68); }
.site-footer a:hover { color: var(--cream); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 12px; color: rgba(212,237,218,.45); }
.foot-bottom a { font-size: 12px; color: rgba(212,237,218,.5); }
.nap { font-style: normal; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 28px; }
  .tiles, .tiles.four { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-nav .hide-sm { display: none; }
}
@media (max-width: 680px) {
  .wrap, .narrow { padding: 0 20px; }
  .site-header .inner { padding: 12px 20px; }
  .site-nav a:not(.btn) { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .pcard .body { padding: 12px 12px 14px; }
  .pcard h3 { font-size: 15.5px; }
  .pcard .price { font-size: 16px; }
  .pcard .badge { display: none; }
  .tiles, .tiles.four, .area-grid, .two-col { grid-template-columns: 1fr; }
  .care3 { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .page-head { padding-top: 36px; padding-bottom: 18px; }
  .cta-band { padding: 44px 22px; border-radius: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
}
