:root {
  --bg: #f5f4ee;
  --surface: #ffffff;
  --ink: #1c2119;
  --muted: #4a5245;
  --line: #d9dccf;
  --green: #3d6b28;
  --green-dark: #2a4c1b;
  --green-soft: #e6eedd;
  --gold: #b8892a;
  --danger: #a33a2a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
  --max: 1100px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: var(--green-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  background: var(--green-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 1.15rem;
  margin-right: auto;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #7fb04f;
  display: grid; place-items: center;
  color: var(--green-dark);
  font-weight: 900;
}
.brand small { display: block; font-weight: 500; font-size: .72rem; opacity: .85; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-count {
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  min-width: 22px; height: 22px;
  font-size: .8rem;
  display: inline-grid; place-items: center;
  padding: 0 6px;
}
.menu-btn {
  display: none;
  background: none; border: 1px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 8px; padding: 6px 10px; font-size: 1rem; cursor: pointer;
}
@media (max-width: 720px) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column; align-items: stretch;
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- draft banner ---------- */
.draft-banner {
  background: #fff4d6;
  color: #5a4210;
  border-bottom: 1px solid #ecd9a2;
  font-size: .9rem;
  text-align: center;
  padding: 8px 16px;
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 56px 0;
}
.hero p { font-size: 1.15rem; max-width: 560px; opacity: .95; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--surface); color: var(--green-dark); border: 1px solid var(--line); }
.btn:disabled { background: #b9bdb3; cursor: not-allowed; filter: none; }

/* ---------- sections ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- products ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-2px); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.price { font-weight: 800; color: var(--green-dark); font-size: 1.1rem; margin-top: auto; padding-top: 8px; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--green-dark); background: var(--green-soft); border-radius: 999px; padding: 2px 8px; align-self: flex-start;
}
.tag.sample { background: #fff4d6; color: #5a4210; }

.photo {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(45deg, #e9ebe2, #e9ebe2 12px, #f1f2ec 12px, #f1f2ec 24px);
  display: grid; place-items: center;
  color: var(--muted); font-weight: 600; font-size: .9rem;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: .95rem;
}
.chip[aria-pressed="true"] { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.product .photo { border-radius: var(--radius); border: 1px solid var(--line); }
.product .price { font-size: 1.6rem; padding: 0; margin: 8px 0 16px; }
.product ul { padding-left: 20px; color: var(--muted); }
.qty-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
@media (max-width: 720px) { .product { grid-template-columns: 1fr; } }

.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.qty button { width: 40px; height: 42px; border: 0; background: var(--surface); font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty input { width: 48px; border: 0; text-align: center; font-size: 1rem; font-family: inherit; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.notice { background: var(--green-soft); border-radius: 8px; padding: 10px 14px; color: var(--green-dark); font-weight: 600; }
.notice.warn { background: #fff4d6; color: #5a4210; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 820px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px;
}
.cart-line .photo { aspect-ratio: 1; border-radius: 6px; font-size: .7rem; }
.cart-line h3 { font-size: 1rem; margin: 0 0 6px; }
.cart-line .line-total { font-weight: 800; text-align: right; }
.link-btn { background: none; border: 0; color: var(--danger); cursor: pointer; padding: 4px 0; font-family: inherit; font-size: .9rem; text-decoration: underline; }
@media (max-width: 520px) {
  .cart-line { grid-template-columns: 56px 1fr; }
  .cart-line .line-total { grid-column: 2; text-align: left; }
}
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 80px; }
.summary .row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.summary .total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.summary .btn { width: 100%; margin-top: 14px; }
.small { font-size: .88rem; color: var(--muted); }

/* ---------- prose (policies/about) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.fill { background: #fff4d6; padding: 0 4px; border-radius: 4px; }

/* ---------- footer ---------- */
.site-footer { background: #1f2a19; color: #e4e8de; margin-top: 40px; padding: 32px 0; font-size: .95rem; }
.site-footer a { color: #e4e8de; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.footer-grid h3 { font-size: 1rem; color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.copyright { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); color: #c9d0c2; }

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