:root {
  --green: #007945;
  --green-dark: #005c35;
  --green-tint: #eef6f1;
  --ink: #16211b;
  --muted: #5f6d65;
  --hairline: #e2e8e4;
  --bg: #fcfdfc;
  --card: #ffffff;
  --radius: 10px;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono-label.accent { color: var(--green); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-link { display: block; line-height: 0; }
.logo { height: 34px; width: auto; display: block; }
.topnav { display: flex; align-items: center; gap: 20px; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-ghost:hover { background: var(--green-tint); }
.btn-block { width: 100%; margin-top: 18px; }
.linkbtn {
  background: none;
  border: none;
  color: var(--green);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
}
.linkbtn:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  border-bottom: 1px solid var(--hairline);
  background: #fff;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 56px;
}
.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 680px;
}
.hero-sub { color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.hero-sub span { color: var(--green); font-weight: 600; }

.searchwrap { position: relative; max-width: 520px; }
.searchicon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}
#search {
  width: 100%;
  padding: 14px 18px 14px 46px;
  font-family: var(--sans);
  font-size: 15px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#search:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,121,69,0.12); }

/* ---------- trending ---------- */
.trending {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}
.trending-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 36px;
}
.trending-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.trending-month {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}
.trending-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tcard {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 14px;
  padding: 22px 20px 20px;
  min-height: 140px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,40,20,0.14);
  transition: transform 0.15s, box-shadow 0.15s;
}
.tcard::before {
  content: '';
  position: absolute;
  inset: 0;
  /* sheen + top-right halo as one full-card overlay: a partial-size box or a
     gradient stop short of 100% leaves a visible seam on the darker colors */
  background:
    radial-gradient(90% 130% at 85% -10%, rgba(255,255,255,0.26), rgba(255,255,255,0.08) 55%, rgba(255,255,255,0) 100%),
    linear-gradient(125deg, rgba(255,255,255,0.38), rgba(255,255,255,0));
  pointer-events: none;
}
.tcard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,40,20,0.22); }
.tcard-tag {
  position: relative;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(2px);
  /* uppercase glyphs leave the descender space empty, so give the top 1px more */
  padding: 6px 10px 5px;
  border-radius: 999px;
  margin-bottom: auto;
}
.tcard-name {
  position: relative;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.18);
  display: block;
}
.tcard-name .leaf { color: #fff; }
.tcard-fam {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

/* ---------- layout ---------- */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}

/* ---------- sidebar ---------- */
.sidebar {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 8px;
}
.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.fgroup { border-top: 1px solid var(--hairline); padding: 14px 0; }
.fgroup-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
}
.fgroup label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 0;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
}
.fgroup label .cnt {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.fgroup input[type="checkbox"] { accent-color: var(--green); width: 15px; height: 15px; }
.fgroup .subhead {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 4px;
}
/* "Latest flavors" highlight: tinted, green-anchored, sits above the Range group */
.fgroup-latest {
  border-top: none;
  background: var(--green-tint);
  border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0;
  padding: 11px 12px;
  margin-bottom: 4px;
}
.fgroup-latest label { font-weight: 600; }
.fgroup-latest label .cnt { color: var(--green); font-weight: 600; }

/* ---------- results ---------- */
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.results-tools { display: flex; align-items: center; gap: 16px; }
.sortselect {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 7px 30px 7px 14px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%235f6d65' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l4 4 4-4'/></svg>") no-repeat right 13px center;
}
.sortselect:focus { border-color: var(--green); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  border-color: var(--green);
  box-shadow: 0 6px 22px rgba(0,60,35,0.10);
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  align-items: center;
  gap: 7px;
}
.fam-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.fam-name {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.card h3 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}
/* inline so the leaf flows right after the last word, even when the name wraps */
.leaf {
  width: 13px; height: 13px;
  color: var(--green);
  display: inline-block;
  margin-left: 6px;
  vertical-align: baseline;
}
.card .meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}
.btn-card {
  font-size: 13px;
  padding: 8px 16px;
  margin-top: 6px;
  align-self: stretch;
}
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-tint);
  /* uppercase glyphs leave the descender space empty, so give the top 1px more */
  padding: 5px 9px 4px;
  border-radius: 4px;
}
.empty { text-align: center; padding: 70px 0; color: var(--muted); }

/* ---------- modals ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,28,22,0.45);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px;
  overflow-y: auto;
}
.modal {
  background: #fff;
  border-radius: 14px;
  max-width: 620px;
  width: 100%;
  padding: 34px 36px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0,30,15,0.25);
}
.closebtn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.closebtn:hover { color: var(--ink); }

.detail h2 {
  margin: 4px 0 18px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
}
.detail h2 .leaf { width: 16px; height: 16px; margin-left: 8px; }
.spec { border-top: 1px solid var(--hairline); padding: 11px 0; display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.spec dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.spec dd { margin: 0; font-size: 14px; }
.detail .tags { margin: 14px 0 0; }
.detail .btn { margin-top: 24px; }
.leadnote {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- form ---------- */
.modal-form { max-width: 660px; }
.modal-form h2 {
  margin: 4px 0 6px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0;
}
.form-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; display: flex; flex-direction: column; }
.field label, .grouplabel {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}
.req { color: var(--green); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,121,69,0.10);
}
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: #c0392b; }
.ship-same {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 8px;
}
.ship-same input { accent-color: var(--green); width: 15px; height: 15px; }
#shipWrap[hidden] { display: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 14px; }
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 400;
  padding: 3px 0;
  cursor: pointer;
}
.checks input { accent-color: var(--green); width: 15px; height: 15px; }
.moredetails {
  border: 1px dashed var(--hairline);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 4px 0 16px;
  background: #fbfdfc;
}
.moredetails summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-dark);
}
.moredetails summary .mono-label { font-size: 10.5px; }
.moredetails[open] summary { margin-bottom: 14px; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; }
.formerror { color: #c0392b; font-size: 13.5px; }
#formSuccess { text-align: center; padding: 30px 0 10px; }
#formSuccess h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin: 6px 0 8px;
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hairline); background: #fff; }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.logo-footer { height: 26px; opacity: 0.9; margin-bottom: 12px; }

/* ---------- responsive ---------- */
.only-mobile { display: none; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar {
    position: static;
    max-height: none;
    display: none;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    background: #fff;
  }
  .sidebar.open { display: block; }
  .only-mobile { display: inline; }
  .fieldrow { grid-template-columns: 1fr; gap: 0; }
  .modal { padding: 26px 20px; }
  .hero-inner { padding: 44px 20px 40px; }
  .trending-cards { grid-template-columns: 1fr; }
  .trending-inner { padding: 24px 20px 28px; }
  /* 16px inputs prevent iOS Safari from auto-zooming the page on focus */
  #search,
  .field input[type="text"], .field input[type="email"], .field input[type="tel"],
  .field select, .field textarea { font-size: 16px; }
  /* comfortable thumb targets */
  .closebtn { padding: 10px 14px; top: 6px; right: 6px; }
  .fgroup label { padding: 6px 0; }
  .checks label { padding: 6px 0; }
  /* compact header: logo + two buttons must fit a 375px viewport */
  .topbar-inner { padding: 10px 14px; gap: 8px; }
  .logo { height: 26px; }
  .topnav { gap: 8px; }
  .topnav .btn { padding: 8px 12px; font-size: 12.5px; }
}
