:root {
  /* Sampled from images/logo.png */
  --forest: #104020;
  --forest-deep: #0a3018;
  --ink: #104020;
  --ink-soft: #2d5a3d;
  --leaf: #68a038;
  --leaf-bright: #74b72e;
  --leaf-soft: #e4f0d4;
  --sky: #50b0d0;
  --sky-soft: #e7f4f6;
  --wood: #785028;
  --wood-light: #b37b42;
  --harvest: #e07a2f;
  --tomato: #c43c2c;
  --mist: #eef6f0;
  --paper: #fbfefb;
  --line: #c5d6c8;
  --honey: var(--leaf);
  --honey-deep: #4f8a28;
  --berry: var(--tomato);
  --danger: #9e2b22;
  --ok: #104020;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 44px rgba(16, 64, 32, 0.12);
  --font-display: "Nunito", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 8% -8%, rgba(104, 160, 56, 0.16), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(80, 176, 208, 0.14), transparent 50%),
    linear-gradient(180deg, var(--sky-soft) 0%, var(--paper) 42%, #f4faf5 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body > .siteMain { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--leaf-bright); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

.skipLink {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: #fff; color: var(--ink); padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skipLink:focus { left: 0; }

/* —— Header —— */
.siteHeader {
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(14px);
  background: rgba(251, 254, 251, 0.92);
  border-bottom: 1px solid rgba(197, 214, 200, 0.85);
}
.siteHeaderInner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.45rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.siteLogo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.siteLogoImg {
  width: 3.35rem;
  height: 3.35rem;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(16, 64, 32, 0.14);
  transition: transform .28s var(--ease);
}
.siteLogo:hover .siteLogoImg { transform: scale(1.04); }
.headerAccount {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: 0.15rem;
}
.headerToolbar {
  display: contents;
}
.headerActions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.35rem;
  flex-shrink: 0;
}
.headerAuthIcon { display: none; }
.navIcon { display: none; }
.navLabel { display: inline; }
.headerIconBtn,
.cartIconBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--forest);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  transition: background .2s, border-color .2s, transform .2s;
}
.headerIconBtn:hover,
.headerIconBtn.isActive,
.cartIconBtn:hover,
.cartIconBtn.isActive {
  background: var(--leaf-soft);
  border-color: var(--leaf);
  color: var(--forest);
  transform: translateY(-1px);
}
.headerIconSvg,
.cartIconSvg { display: block; }
.headerIconBadge,
.cartCountBadge {
  position: absolute;
  top: -0.2rem;
  right: -0.25rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--leaf-bright);
  color: #0a3018;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.userMenu { position: relative; }
.userAvatarBtn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
}
.userAvatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--leaf-bright), var(--forest));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(16, 64, 32, 0.18);
}
.userAvatarBtn[aria-expanded="true"] .userAvatar {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}
.userMenuPanel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  z-index: 250;
}
.userMenuPanel[hidden] { display: none !important; }
.userMenuHead {
  padding: 0.65rem 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.25rem;
}
.userMenuHead strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--forest);
}
.userMenuHead .muted {
  display: block;
  font-size: 0.82rem;
  word-break: break-all;
}
.userMenuPanel a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.userMenuPanel a:hover { background: var(--leaf-soft); color: var(--forest); }
.userMenuDanger { color: var(--danger) !important; }
.userMenuSep {
  border-top: 1px solid rgba(16, 64, 32, 0.1);
  margin-top: 0.2rem;
  padding-top: 0.55rem !important;
}
.headerAuthBtn { white-space: nowrap; }
.mobileAuthOnly { display: none !important; }
.legalLayout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}
.legalNav h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--forest);
}
.legalNav nav { display: grid; gap: 0.35rem; }
.legalNavLink {
  display: block;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.legalNavLink strong {
  display: block;
  color: var(--forest);
  font-size: 0.95rem;
}
.legalNavLink .muted {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.35;
}
.legalNavLink:hover { background: var(--leaf-soft); }
.legalNavLink.isActive {
  background: var(--leaf-soft);
  border-color: var(--line);
}
.legalArticle { min-width: 0; }
.legalUpdated { margin-top: 0; }
.legalBody h1 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--forest);
  margin-top: 0;
  letter-spacing: -0.02em;
}
.legalBody h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--forest);
  font-size: 1.2rem;
  margin-top: 1.75rem;
}
.legalBody ul { padding-left: 1.2rem; }
.legalBody li { margin-bottom: 0.35rem; }
.legalMeta { color: var(--ink-soft); font-size: 0.92rem; }
.legalDisclaimer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
@media (max-width: 860px) {
  .legalLayout { grid-template-columns: 1fr; }
}
.settingsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.settingsSecurity {
  grid-column: 1 / -1;
  max-width: 40rem;
}
.settingsLinkList {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.settingsLinkList li + li {
  border-top: 1px solid var(--line);
}
.settingsLinkList a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.settingsLinkList a:hover {
  background: var(--leaf-soft);
}
.settingsLinkText {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.settingsLinkText strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.settingsLinkText .muted {
  font-size: 0.82rem;
  line-height: 1.35;
}
.settingsLinkMeta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.settingsLinkChevron {
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.7;
}
.settingsLinkDanger strong { color: var(--danger); }
.settingsLinkDanger:hover { background: #fde8e6 !important; }
.settingsAccountActions {
  margin-top: 1rem;
}
.settingsAccountLabel {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.settingsLinkListQuiet {
  border-color: rgba(197, 214, 200, 0.85);
  background: #fbfefb;
}
.fulfillmentChoices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.fulfillmentCard {
  display: block;
  margin: 0;
  cursor: pointer;
}
.fulfillmentCard input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fulfillmentCardBody {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.fulfillmentCardBody strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--forest);
  font-size: 1.1rem;
}
.fulfillmentSave {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--leaf);
}
.fulfillmentCard input:checked + .fulfillmentCardBody {
  border-color: var(--leaf);
  background: var(--leaf-soft);
  box-shadow: 0 0 0 3px rgba(104, 160, 56, 0.18);
}
.fulfillmentCard input:focus-visible + .fulfillmentCardBody {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}
.checkoutGrid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.1rem;
  align-items: start;
  margin-top: 1rem;
}
.checkoutSummary .checkoutLine {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.45rem 0;
}
.checkoutDiscount strong { color: var(--leaf); }
.checkoutTotal {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}
@media (max-width: 860px) {
  .checkoutGrid { grid-template-columns: 1fr; }
}
.settingsGrid .panel h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--forest);
}
.navToggle {
  display: none;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0.55rem;
}
.navToggle span {
  display: block; height: 2px; margin: 4px 0; background: var(--forest); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.navToggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navToggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navToggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.siteNav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.85rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.siteNavLink {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.35rem 0.15rem;
  position: relative;
}
.siteNavLink::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--leaf-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.siteNavLink:hover, .siteNavLink.isActive { color: var(--forest); }
.siteNavLink:hover::after, .siteNavLink.isActive::after { transform: scaleX(1); }
.siteNavDivider {
  width: 1px; height: 1.1rem; background: var(--line); margin: 0 0.25rem;
}
.siteNavUser { font-size: 0.88rem; color: var(--ink-soft); }
.siteNavCta { margin-left: 0.15rem; }
.siteNavCtaOutline {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem !important;
}
.siteNavCtaOutline::after { display: none; }

/* —— Main —— */
.siteMain {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 4rem;
}
.pageHead { margin-bottom: 1.5rem; animation: riseIn .55s var(--ease) both; }
.pageHead h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.15;
  color: var(--forest);
}
.pageHead p { margin: 0; color: var(--ink-soft); max-width: 38rem; }

.accountPath {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--ink-soft);
}
.accountPathLink {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.accountPathLink:hover {
  border-bottom-color: var(--leaf);
  color: var(--leaf-deep, var(--forest));
}
.accountPathSep {
  color: #8aa193;
  font-weight: 500;
  user-select: none;
}
.accountPathCurrent {
  color: var(--ink);
  font-weight: 600;
}
.auth-card > .accountPath,
.danger-card > .accountPath {
  margin-top: 0;
}
.sectionTitle {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--forest);
}
.sectionLead { color: var(--ink-soft); margin: -0.35rem 0 1.25rem; max-width: 36rem; }

/* —— Hero (home) —— */
.heroBleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  min-height: min(48vh, 420px);
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  margin-bottom: 2rem;
  background:
    linear-gradient(115deg, rgba(10, 48, 24, 0.88) 6%, rgba(16, 64, 32, 0.55) 48%, rgba(16, 64, 32, 0.72) 100%),
    radial-gradient(ellipse at 78% 30%, rgba(80, 176, 208, 0.45), transparent 52%),
    radial-gradient(ellipse at 30% 70%, rgba(104, 160, 56, 0.35), transparent 48%),
    linear-gradient(165deg, #1a5c38 0%, #0f3a22 40%, #163d4a 100%);
}
.heroBleed::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(-18deg, transparent 0 14px, rgba(255,255,255,0.03) 14px 15px);
  opacity: 0.55;
  pointer-events: none;
}
.heroBleed::after {
  content: "";
  position: absolute;
  width: 52vw; height: 52vw; max-width: 540px; max-height: 540px;
  right: -8vw; top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104,160,56,0.35), transparent 68%);
  animation: floatOrb 9s ease-in-out infinite;
  pointer-events: none;
}
.heroInner {
  position: relative; z-index: 1;
  max-width: 1160px; width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 2.75rem) 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}
.heroLogoWrap {
  animation: riseIn .7s var(--ease) both;
}
.heroLogo {
  width: clamp(7.5rem, 16vw, 11rem);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(255,255,255,0.18);
  background: #fff;
}
.heroCopyBlock { max-width: 34rem; }
.heroEyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(228, 240, 212, 0.92);
  animation: riseIn .75s .05s var(--ease) both;
}
.heroBrand {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.heroTitle {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  line-height: 1.15;
  animation: riseIn .75s .08s var(--ease) both;
}
.heroCopy {
  margin: 0 0 0.85rem;
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  animation: riseIn .8s .14s var(--ease) both;
}
.heroScript {
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0 0 1.35rem;
  color: #dceb9a;
  animation: riseIn .8s .18s var(--ease) both;
}
.heroActions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  animation: riseIn .85s .2s var(--ease) both;
}
.heroActions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: transparent;
}
.heroActions .btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* —— Cards / grids —— */
.gridProducts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}
.productCard, .panel, .featureTile {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(6px);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .2s;
}
.productCard:hover, .featureTile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #a8c4b0;
}
.featureTileDanger {
  border-color: rgba(158, 43, 34, 0.35);
}
.featureTileDanger h3 { color: var(--danger); }
.featureTileDanger:hover {
  border-color: var(--danger);
  background: #fdf6f5;
}
.danger-card {
  border: 1px solid rgba(158, 43, 34, 0.35);
  box-shadow: 0 10px 30px rgba(158, 43, 34, 0.08);
}
.productCard h3, .featureTile h3, .panel h2, .panel h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.25rem;
  color: var(--forest);
}
.productCard h3 a { color: inherit; text-decoration: none; }
.productCard .price, .price {
  font-weight: 700;
  color: var(--wood);
  font-size: 1.05rem;
}
.productThumb {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--leaf-soft), var(--sky-soft));
  margin-bottom: 0.35rem;
}
.productThumbPlaceholder {
  width: 100%; height: 160px; border-radius: 12px; margin-bottom: 0.35rem;
  background:
    linear-gradient(135deg, rgba(104,160,56,0.2), rgba(80,176,208,0.18)),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.25) 10px 11px);
}

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  background: var(--forest);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { background: var(--forest-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16,64,32,0.22); }
.btn-primary { background: var(--leaf-bright); color: #0a3018; }
.btn-primary:hover { background: var(--leaf); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-danger {
  background: var(--danger);
  color: #fff;
  border: 1.5px solid var(--danger);
}
.btn-danger:hover {
  background: #7c1f19;
  border-color: #7c1f19;
  color: #fff;
}
.btn-sm, .adminBtnSm { font-size: 0.82rem; padding: 0.4rem 0.8rem; }
.muted { color: var(--ink-soft); }
.error { color: var(--danger); }
.success { color: var(--ok); }
.siteMain > p.error,
.siteMain > p.success {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}
.siteMain > p.error { border-color: rgba(158, 43, 34, 0.35); background: #fdf4f3; }
.siteMain > p.success { border-color: rgba(16, 64, 32, 0.25); background: #eff8f0; }
.panel + .panel { margin-top: 1rem; }
.gridProducts > .panel,
.gridProducts > .panel + .panel,
.gridProducts > .productCard,
.gridProducts > .featureTile {
  margin-top: 0;
  height: 100%;
  min-height: 0;
}
.badge {
  display: inline-block;
  background: var(--leaf-soft);
  color: var(--forest);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.badgeWarn { background: #fff4e0; color: #8a5a12; }
.badgeInfo { background: #e3f4fb; color: #1a5f78; }
.badgeOk { background: var(--leaf-soft); color: var(--forest); }
.badgeDanger { background: #fde8e6; color: var(--danger); }
.navBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  margin-left: 0.2rem;
  border-radius: 999px;
  background: var(--leaf-bright);
  color: #0a3018;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}
.emptyState { text-align: center; padding: 2rem 1.25rem; }
.emptyState h2, .emptyState h3 { margin-top: 0; color: var(--forest); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.1rem;
  border-left: 2px solid var(--leaf-soft);
  margin-left: 0.35rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px; top: 0.85rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--leaf);
}
.panel.isUnread { border-color: var(--leaf); box-shadow: inset 3px 0 0 var(--leaf-bright); }
.filterChips { margin-bottom: 1rem; }
.kpiRow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.kpiCard {
  background: linear-gradient(145deg, #fbfefb, #e4f0d4);
  border-radius: 12px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  display: block;
}
.kpiCard span { color: var(--ink-soft); font-size: 0.85rem; }
.kpiCard strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  margin-top: 0.2rem;
  color: var(--forest);
}
.toast-stack {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 9000;
  display: grid;
  gap: 0.5rem;
  width: min(340px, calc(100% - 2rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--leaf);
  box-shadow: var(--shadow);
  animation: riseIn .35s var(--ease) both;
}
.toast--error { border-left-color: var(--danger); }
.toast--success { border-left-color: var(--leaf-bright); }
.toast strong { display: block; color: var(--forest); font-weight: 700; }
.toast p { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.toast--out { opacity: 0; transform: translateY(8px); transition: .25s ease; }

/* —— Forms —— */
.auth-page .siteMain,
body.auth-shell .siteMain {
  display: grid;
  place-items: center;
  padding-top: 2rem;
}
.auth-card, .narrowPanel {
  width: min(440px, 100%);
  background: rgba(255,255,255,0.94);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-weight: 800;
  margin-top: 0;
  letter-spacing: -0.02em;
  color: var(--forest);
}
label { display: block; margin-bottom: 0.85rem; font-weight: 600; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(104, 160, 56, 0.2);
  outline: none;
}
.passwordFieldGroup {
  display: flow-root;
  margin: 0 0 1.15rem;
}
.passwordFieldBlock {
  display: block;
  margin: 0 0 0.65rem;
}
.passwordFieldLabel {
  display: block;
  margin: 0 0 0.35rem !important;
  font-weight: 600;
  font-size: 0.92rem;
}
.passwordField {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.passwordField:focus-within {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(104, 160, 56, 0.2);
}
.passwordField input {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0.6rem 0.7rem;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  background: transparent;
  outline: none;
}
.passwordField input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
}
.passwordField input::-ms-reveal,
.passwordField input::-ms-clear {
  display: none;
}
.passwordToggle {
  position: static;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: auto;
  min-height: 2.6rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #f7faf7;
  color: var(--forest);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: none;
  z-index: auto;
}
.passwordToggle:hover,
.passwordToggle:focus-visible {
  color: var(--forest);
  background: var(--leaf-soft);
  opacity: 1;
  outline: none;
}
.passwordToggle svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  pointer-events: none;
}
.passwordToggle .pwIconHide { display: none; }
.passwordToggle.isVisible .pwIconShow { display: none; }
.passwordToggle.isVisible .pwIconHide { display: block; }
.checkbox { display: flex !important; align-items: center; gap: 0.45rem; font-weight: 500; }
.checkbox input { width: auto; margin: 0; }

/* Toggle switches (replace checkboxes) */
.toggle {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  user-select: none;
}
.toggleInput {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.toggleTrack {
  position: relative;
  width: 2.75rem;
  height: 1.55rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #c5d6c8;
  border: 1px solid var(--line);
  transition: background .2s var(--ease), border-color .2s;
}
.toggleThumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 64, 32, 0.25);
  transition: transform .2s var(--ease);
}
.toggleInput:checked + .toggleTrack {
  background: var(--leaf-bright);
  border-color: var(--leaf);
}
.toggleInput:checked + .toggleTrack .toggleThumb {
  transform: translateX(1.15rem);
}
.toggleInput:focus-visible + .toggleTrack {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}
.toggleText { color: var(--ink); font-size: 0.95rem; }

.countyGroups { display: grid; gap: 1rem; }
.countyMultiHint {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.9rem;
}
.countyProvinceTitle {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.auth-links, .auth-divider { margin-top: 1rem; text-align: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1rem; align-items: center; }

.cartTable { width: 100%; border-collapse: collapse; }
.cartTable th, .cartTable td {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.4rem;
  text-align: left;
  vertical-align: top;
}
.tableWrap {
  overflow: auto;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
}
.inlineForm { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.inlineForm select { width: auto; margin: 0; }

/* —— Footer —— */
.siteFooter {
  margin-top: auto;
  background: var(--forest-deep);
  color: rgba(255,255,255,0.82);
  padding: 2.5rem 0 0;
}
.siteFooter a { color: rgba(255,255,255,0.78); text-decoration: none; }
.siteFooter a:hover { color: #fff; }
.siteFooterInner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.15rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2rem;
}
.siteFooterLogoImg {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  margin-bottom: 0.65rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.siteFooterLogo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  display: block;
  margin-bottom: 0.2rem;
}
.siteFooterTagline {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: #c8e07a;
  margin: 0 0 0.5rem;
}
.siteFooterBrand p { margin: 0; max-width: 22rem; color: rgba(255,255,255,0.65); }
.siteFooterCols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.siteFooterCols h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 0.65rem;
}
.siteFooterCols a { display: block; margin-bottom: 0.4rem; font-size: 0.94rem; }
.siteFooterBottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 1.15rem 1.35rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.homeSection { margin-bottom: 3rem; animation: riseIn .6s var(--ease) both; }
.homeSection:nth-of-type(2) { animation-delay: .05s; }
.homeSection:nth-of-type(3) { animation-delay: .1s; }

#cookieConsentBar {
  background: var(--forest-deep) !important;
  color: #fff !important;
  border-top: 1px solid rgba(255,255,255,0.12);
}
#cookieConsentBar a { color: #c8e07a !important; }

.siteNavBtn {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.linkBtn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--forest);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.linkBtn:hover { color: var(--leaf-bright); }
.lightboxPanelAuth {
  width: min(440px, 100%);
}
.lightboxPanelWide {
  width: min(640px, 100%);
}
.authLightboxMsg {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.authLightboxMsg[hidden] { display: none !important; }
.authLightboxMsg.error { background: #fdf4f3; border-color: rgba(158, 43, 34, 0.35); color: var(--danger); }
.authLightboxMsg.success { background: #eff8f0; border-color: rgba(16, 64, 32, 0.25); color: var(--ok); }

.signupRoleTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  background: var(--mist);
}
.signupRoleTab {
  margin: 0;
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.signupRoleTab.isActive {
  background: #fff;
  color: var(--forest);
  box-shadow: 0 1px 4px rgba(16, 64, 32, 0.12);
}
.signupRoleBanner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--leaf-soft);
  color: var(--forest);
  font-size: 0.98rem;
}
.signupRoleBanner strong { font-weight: 800; }

.passwordFieldGroup .passwordFieldBlock {
  margin-bottom: 0.55rem;
}
.passwordRulesBox { display: none; }
.passwordRulesTitle { display: none; }
.passwordRules {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.65rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7faf7;
}
.passwordRules li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.15rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: #5a7260;
  line-height: 1.25;
}
.passwordRuleMark {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1.5px solid #b7c9bb;
  background: #fff;
  position: relative;
  box-sizing: border-box;
}
.passwordRuleText { white-space: normal; }
.passwordRules li.isUnmet { color: #5a7260; }
.passwordRules li.isMet {
  color: var(--forest);
  background: transparent;
  border: 0;
  box-shadow: none;
}
.passwordRules li.isMet .passwordRuleMark {
  border-color: var(--leaf);
  background: var(--leaf);
}
.passwordRules li.isMet .passwordRuleMark::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.12rem;
  width: 0.28rem;
  height: 0.48rem;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.passwordRules li::before { content: none !important; display: none !important; }
@media (max-width: 420px) {
  .passwordRules { grid-template-columns: 1fr; }
}
input.isInvalid, select.isInvalid, textarea.isInvalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(158, 43, 34, 0.12);
}

button.featureTile {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
}

.spaPage[hidden] {
  display: none !important;
}
.spaShell {
  width: 100%;
}

/* —— Message / confirm / prompt lightbox —— */
.lightboxMessage {
  z-index: 920;
}
.lightboxPanelMessage {
  width: min(420px, 100%);
  max-height: min(70vh, 520px);
}
.lightboxMessageText {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.lightboxPromptField {
  display: block;
  margin: 0 0 1rem;
}
.lightboxPromptField[hidden] {
  display: none !important;
}
.lightboxPromptField input {
  width: 100%;
  margin-top: 0.35rem;
}
.lightboxDialogActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}
.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Lightboxes —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease), visibility .28s;
}
.lightbox.isOpen {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox[hidden] { display: none !important; }
.lightboxBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 48, 24, 0.48);
  border: 0;
  cursor: pointer;
}
.lightboxPanel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(16, 64, 32, 0.28);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform .32s var(--ease), opacity .28s var(--ease);
  overflow: hidden;
}
.lightbox.isOpen .lightboxPanel {
  transform: none;
  opacity: 1;
}
.lightbox.isClosing .lightboxPanel {
  transform: translateY(12px) scale(0.98);
  opacity: 0;
}
.lightboxHandle {
  display: none;
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--line);
  margin: 0.65rem auto 0;
}
.lightboxHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.65rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.lightboxTitle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--forest);
}
.lightboxClose {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--forest);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lightboxClose:hover { background: var(--leaf-soft); }
.lightboxBody {
  padding: 1rem 1.1rem 1.25rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.countyField { margin-bottom: 0.85rem; }
.countyFieldLabel {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.countyFieldTrigger {
  width: 100%;
  justify-content: space-between;
}
.countyGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.countyOption {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--forest);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.7rem;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.countyOption:hover { border-color: var(--leaf); background: var(--leaf-soft); }
.countyOption.isSelected {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
body.lightboxOpen { overflow: hidden; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@media (max-width: 860px) {
  .navToggle {
    display: none !important;
  }
  .siteHeaderInner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo toolbar account"
      "nav nav nav";
    align-items: center;
    column-gap: 0.45rem;
    row-gap: 0.4rem;
    padding: 0.4rem 0.65rem 0.55rem;
  }
  .siteLogo { grid-area: logo; }
  .siteLogoImg {
    width: 2.65rem;
    height: 2.65rem;
  }
  .siteNav {
    grid-area: nav;
    display: flex;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    z-index: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-evenly;
    gap: 0.15rem;
    width: 100%;
    margin: 0;
    padding: 0.35rem 0 0.1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .siteNav.isOpen { display: flex; }
  .siteNavDivider,
  .siteNav .mobileAuthOnly,
  .siteNav .siteNavCta { display: none !important; }
  .siteNavLink {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.3rem 0.15rem;
    color: var(--forest);
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
  }
  .siteNavLink::after { display: none; }
  .navIcon {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin: 0 auto;
  }
  .navLabel {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .headerAccount {
    grid-area: account;
    margin-left: 0;
    justify-self: end;
  }
  .headerToolbar {
    grid-area: toolbar;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 0.45rem;
    padding-top: 0;
    border-top: 0;
  }
  .headerActions {
    margin: 0;
    width: auto;
    justify-content: flex-end;
    gap: 0.45rem;
  }
  .headerAuthBtn,
  .headerAccount .siteNavCta { display: none; }
  .headerAuthIcon { display: inline-flex; }
  .mobileAuthOnly { display: inline-flex !important; }
  .siteFooterInner, .siteFooterCols { grid-template-columns: 1fr; }
  .heroBleed { min-height: 42vh; }
  .heroInner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 1.25rem;
  }
  .heroLogo { width: clamp(6.5rem, 36vw, 9rem); }

  /* Mobile: bottom sheet */
  .lightbox {
    align-items: flex-end;
    padding: 0;
  }
  .lightboxPanel {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    opacity: 1;
  }
  .lightbox.isOpen .lightboxPanel {
    transform: translateY(0);
  }
  .lightbox.isClosing .lightboxPanel {
    transform: translateY(100%);
    opacity: 1;
  }
  .lightboxHandle { display: block; }
}
@media (max-width: 520px) {
  .gridProducts { grid-template-columns: 1fr; }
  .countyGrid { grid-template-columns: 1fr 1fr; }
}
