/* essential leaf — apothecary palette drawn from the product itself:
   comfrey-green foliage, dark amber glass, cream balm */
:root {
  --green-deep: #063411;   /* brand green sampled from the wordmark */
  --green-leaf: #3f6b48;   /* mid leaf green */
  --amber: #9c6420;        /* dark amber glass */
  --amber-bright: #d0a05d; /* tan leaf from the logo */
  --cream: #f7f3e9;        /* the balm */
  --ink: #212721;
  --paper: #fdfcf8;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--green-deep); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .75rem; }

/* offer bar */
.offer-bar { background: var(--green-deep); color: var(--cream); text-align: center; padding: .45rem 1rem; font-size: .85rem; letter-spacing: .02em; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid #e5e0d2; background: var(--paper); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green-deep); }
.brand img { width: 42px; height: 42px; }
.brand-text { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.05; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--font-body); font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.site-nav { display: flex; gap: clamp(.75rem, 2vw, 1.5rem); flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.cart-count { background: var(--amber); color: #fff; border-radius: 999px; padding: 0 .5em; font-size: .8rem; }

/* hero */
.hero { background: linear-gradient(160deg, var(--green-deep), var(--green-leaf)); color: var(--cream); padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem); }
.hero h1 { color: var(--cream); max-width: 18ch; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--amber-bright); margin-bottom: .75rem; }
.hero .lede { max-width: 45ch; margin: 1rem 0 1.75rem; font-size: 1.1rem; opacity: .92; }

/* buttons */
.btn { display: inline-block; padding: .8rem 1.6rem; border: 0; border-radius: 4px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-bright); }
.btn-wide { width: 100%; max-width: 420px; }

/* shop grid */
.shop, .story, .plain-page, .cart-page, .product-page { padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem); max-width: 1100px; margin: 0 auto; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.product-card { text-decoration: none; background: #fff; border: 1px solid #e5e0d2; border-radius: 6px; padding: 1rem; transition: border-color .15s; }
.product-card:hover { border-color: var(--amber); }
.product-card img { border-radius: 4px; background: var(--cream); }
.product-card h3 { margin: .75rem 0 .25rem; font-size: 1.15rem; }
.product-card p { font-size: .9rem; color: #555; }
.product-card .price { display: block; margin-top: .5rem; font-weight: 700; color: var(--amber); }
.shop-note { margin-top: 1.5rem; font-style: italic; color: var(--green-leaf); }

/* product page */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-hero img { border-radius: 6px; background: var(--cream); }
.product-buy .tagline { color: #555; margin: .5rem 0 1rem; }
.product-buy .price { font-size: 1.6rem; font-weight: 700; color: var(--amber); margin-bottom: 1.25rem; }
.product-buy .gst { font-size: .8rem; font-weight: 400; color: #777; }
.product-buy label { display: block; font-weight: 700; margin-bottom: .25rem; }
.product-buy select { padding: .6rem; margin: 0 0 1rem; font-size: 1rem; border: 1px solid #cfc9b8; border-radius: 4px; display: block; min-width: 180px; }
.buy-points { margin-top: 1.5rem; padding-left: 1.2rem; }
.buy-points li { margin-bottom: .4rem; }
.product-detail { margin-top: 3rem; max-width: 65ch; }
.product-detail h2 { margin-top: 2rem; }
.disclaimer { margin-top: 2rem; font-size: .85rem; color: #777; }

/* cart */
.jar-progress { background: var(--cream); border: 1px solid #e5e0d2; border-radius: 6px; padding: 1.25rem; margin: 1.5rem 0; text-align: center; }
.jars { display: flex; justify-content: center; gap: .6rem; margin-bottom: .6rem; }
.jar { width: 26px; height: 32px; border: 2px solid var(--amber); border-radius: 3px 3px 5px 5px; position: relative; background: transparent; }
.jar::before { content: ""; position: absolute; top: -6px; left: 3px; right: 3px; height: 5px; background: var(--amber); border-radius: 2px; }
.jar-full { background: var(--amber); }
.jar-msg { font-weight: 700; color: var(--green-deep); }
.jar-msg-won { color: var(--amber); }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table td { padding: .75rem .5rem; border-bottom: 1px solid #e5e0d2; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-row-total td { font-weight: 700; font-size: 1.1rem; border-bottom: 0; }
.qty-form { display: flex; gap: .5rem; }
.qty-form input { width: 4.5rem; padding: .4rem; }
.collect-note { margin-bottom: 1.5rem; }

/* story + footer */
.story a { font-weight: 700; }
.site-footer { background: var(--green-deep); color: var(--cream); padding: 3rem clamp(1rem, 4vw, 3rem) 1.5rem; margin-top: 3rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.site-footer a { color: var(--cream); display: block; margin-bottom: .4rem; text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; }
.foot-brand { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .5rem; }
.foot-head { font-weight: 700; margin-bottom: .5rem; color: var(--amber-bright); }
.sub-form { display: flex; gap: .5rem; }
.sub-form input { flex: 1; padding: .55rem; border: 0; border-radius: 4px; min-width: 0; }
.sub-form button { padding: .55rem 1rem; border: 0; border-radius: 4px; background: var(--amber); color: #fff; font-weight: 700; cursor: pointer; }
.foot-legal { max-width: 1100px; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; gap: 1.5rem; font-size: .85rem; }
.foot-legal a { display: inline; margin: 0; }

@media (max-width: 720px) {
  .product-hero { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* product gallery */
.gallery .thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery .thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; line-height: 0; }
.gallery .thumb.on { border-color: var(--amber); }
.gallery .thumb img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; }

/* rating link on product */
.rating-link { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--ink); font-size: .95rem; margin-bottom: .5rem; }

/* contact form + notices */
.contact-form { display: grid; gap: .75rem; max-width: 480px; margin-top: 1rem; }
.contact-form label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.contact-form input, .contact-form textarea { padding: .6rem; border: 1px solid #cfc9b8; border-radius: 4px; font: inherit; font-size: 16px; }
.notice-ok { background: #e8f0e2; border: 1px solid #7ba465; border-radius: 6px; padding: 1rem; }
.notice-err { background: #fbeaea; border: 1px solid #d09090; border-radius: 6px; padding: 1rem; }
.botanical { font-style: italic; font-weight: 400; font-size: .8em; color: #777; }

/* ===== reviews ===== */
.reviews { margin-top: 3rem; border-top: 1px solid #e5e0d2; padding-top: 2rem; }
.reviews > h2 { margin-bottom: 1.5rem; }
.no-reviews { color: #666; }
.stars { display: inline-flex; }
.star { color: #d8d2c0; font-size: 1.05rem; line-height: 1; }
.star.on { color: var(--amber-bright); }

.reviews-head { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; background: var(--cream); border: 1px solid #e9e3d3; border-radius: 12px; padding: 1.75rem 2rem; margin-bottom: 2rem; }
.rev-avg { text-align: center; padding-right: 2.5rem; border-right: 1px solid #e0d9c6; }
.rev-avg .num { font-family: var(--font-display); font-size: 3.4rem; font-weight: 600; color: var(--green-deep); line-height: 1; }
.rev-avg .big-stars .star { font-size: 1.3rem; }
.rev-avg .count { font-size: .85rem; color: #777; margin-top: .35rem; }
.rev-bars { display: grid; gap: .35rem; align-self: center; }
.rev-bar { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .6rem; align-items: center; font-size: .85rem; color: #666; }
.rev-bar .lbl { white-space: nowrap; }
.rev-bar .track { background: #e6e0d0; border-radius: 999px; height: 8px; overflow: hidden; }
.rev-bar .fill { background: var(--amber-bright); height: 100%; border-radius: 999px; }

.review-list { display: grid; gap: 1rem; }
.review { background: #fff; border: 1px solid #ece6d7; border-radius: 10px; padding: 1.25rem 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.03); }
.review-top { display: flex; align-items: center; gap: .85rem; margin-bottom: .5rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-leaf); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; flex: none; }
.review-who { flex: 1; min-width: 0; }
.review-who .name { font-weight: 700; color: var(--ink); }
.review-who .meta { font-size: .8rem; color: #999; }
.review .rev-title { display: block; font-weight: 700; color: var(--green-deep); margin: .4rem 0 .25rem; font-size: 1.05rem; }
.review .rev-body { color: #3a3f39; }
.review-date { font-size: .78rem; color: #aaa; margin-top: .6rem; }

.review-cta { text-align: center; margin-top: 2rem; padding: 1.75rem 1.5rem; background: var(--cream); border-radius: 10px; }
.review-cta h3 { font-family: var(--font-display); font-weight: 600; color: var(--green-deep); font-size: 1.4rem; margin-bottom: .5rem; }
.review-cta p { margin: 0 auto 1rem; color: #555; max-width: 46ch; }
.review-form-wrap { margin-top: .5rem; }
.review-form-wrap summary { display: inline-block; list-style: none; }
.review-form-wrap summary::-webkit-details-marker { display: none; }
.review-form { display: grid; gap: .75rem; max-width: 480px; margin: 1.25rem auto 0; text-align: left; }
.review-form label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.review-form input, .review-form select, .review-form textarea { padding: .6rem; border: 1px solid #cfc9b8; border-radius: 4px; font: inherit; font-size: 16px; }
.rev-note { font-size: .82rem; color: #888; }

@media (max-width: 640px) {
  .reviews-head { grid-template-columns: 1fr; gap: 1.25rem; text-align: center; }
  .rev-avg { border-right: 0; border-bottom: 1px solid #e0d9c6; padding-right: 0; padding-bottom: 1.25rem; }
  .rev-bar { text-align: left; }
}

/* ===== BOTANICAL FRAME — four corners + leaf divider (home page only) ===== */
.botframe { display: none; }
.has-frame .botframe { display: block; position: fixed; pointer-events: none; z-index: 0; width: 210px; opacity: .4; }
.botframe img { display: block; width: 100%; height: auto; }
.bf-bl { left: -22px;  bottom: -18px; }
.bf-br { right: -22px; bottom: -18px; transform: scaleX(-1); }
.bf-tl { left: -22px;  top: -18px;   transform: scaleY(-1); }
.bf-tr { right: -22px; top: -18px;   transform: scale(-1,-1); }
.leaf-divider { text-align: center; margin: 1rem 0; }
.leaf-divider img { width: 150px; height: auto; display: inline-block; opacity: .6; }
@media (max-width: 1100px) { .botframe { width: 150px; opacity: .3; } }
@media (max-width: 680px) {
  .botframe { width: 104px; opacity: .24; }
  .bf-tl, .bf-tr { display: none; }
  .leaf-divider img { width: 120px; }
}

/* ===== shop layout: product + journal panel side by side ===== */
.shop-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; margin-top: 1.5rem; }
.journal-panel { background: var(--cream); border: 1px solid #e9e3d3; border-radius: 10px; padding: 1.5rem; }
.journal-panel h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.journal-panel ul { list-style: none; padding: 0; margin: 0; }
.journal-panel li { padding: .7rem 0; border-bottom: 1px solid #e6ddca; }
.journal-panel li:last-child { border-bottom: 0; }
.journal-panel a { text-decoration: none; color: var(--green-deep); font-weight: 600; font-size: .95rem; display: block; line-height: 1.35; }
.journal-panel a:hover { color: var(--amber); }
.jp-date { display: block; font-size: .78rem; color: #999; font-weight: 400; margin-top: .2rem; }
.journal-panel-all { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--amber) !important; }

/* ===== blog index list ===== */
.journal-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.journal-item { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid #ece6d7; border-radius: 10px; overflow: hidden; transition: border-color .15s; }
.journal-item:hover { border-color: var(--amber); }
.journal-item img { width: 200px; height: 100%; object-fit: cover; }
.journal-item-text { padding: 1.25rem 1.25rem 1.25rem 0; }
.journal-item h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.journal-date { font-size: .82rem; color: #999; margin-bottom: .5rem; }
.journal-more { color: var(--amber); font-weight: 700; font-size: .9rem; }

/* ===== single blog article ===== */
.blog-article { max-width: 720px; }
.blog-hero { width: 100%; max-width: 480px; border-radius: 10px; margin: 1rem 0 1.5rem; background: var(--cream); }
.blog-body { max-width: 65ch; }
.blog-body h2 { margin: 1.75rem 0 .5rem; font-size: 1.4rem; }
.blog-body p { margin-bottom: 1rem; }
.blog-body ul { margin: 0 0 1rem 1.25rem; }
.blog-body li { margin-bottom: .4rem; }
.blog-cta { margin: 2rem 0; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .journal-panel { order: 2; }
}
@media (max-width: 600px) {
  .journal-item { grid-template-columns: 1fr; }
  .journal-item img { width: 100%; height: 180px; }
  .journal-item-text { padding: 1.25rem; }
}
