:root {
  --green: #4f9900;
  --green-dark: #356a00;
  --green-soft: #eff8e8;
  --ink: #1d1d1d;
  --muted: #68736a;
  --line: #dce3dc;
  --paper: #ffffff;
  --canvas: #f4f6f3;
  --shadow: 0 18px 55px rgba(29, 45, 22, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
a { color: inherit; }

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px clamp(22px, 5vw, 78px);
  background: var(--paper);
  border-top: 4px solid var(--green);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; }
.brand img { display: block; width: 126px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 18px; }

.language-switcher {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  background: #f7f9f6;
  border-radius: 12px;
}

.lang-button {
  border: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #6d776f;
  background: transparent;
  cursor: pointer;
}

.lang-button small { font-size: 11px; }
.lang-button.active { color: #fff; background: var(--ink); }
.site-link { font-weight: 700; text-decoration: none; color: var(--green-dark); }

main { width: min(1540px, 100%); margin: 0 auto; }

.hero {
  margin: 0 clamp(16px, 3vw, 44px);
  min-height: 245px;
  padding: clamp(32px, 4vw, 58px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 4%, rgba(126,197,69,.20), transparent 29%),
    linear-gradient(118deg, #263f18 0%, #20351a 45%, #17251a 100%);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  right: -100px;
  bottom: -155px;
  border: 42px solid rgba(126,197,69,.25);
  border-radius: 50%;
}

.hero-copy { max-width: 800px; position: relative; z-index: 1; }
.eyebrow { display: block; margin-bottom: 11px; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--green); }
.hero .eyebrow { color: #b4dd91; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(38px, 5vw, 66px); line-height: .98; letter-spacing: -.045em; }
.hero p { margin: 22px 0 0; max-width: 700px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; color: #d4ddd4; }

.trust-row { display: grid; grid-template-columns: repeat(3, minmax(105px, 1fr)); gap: 1px; background: rgba(255,255,255,.2); position: relative; z-index: 1; }
.trust-row div { min-width: 120px; padding: 16px 18px; background: rgba(14,18,14,.78); }
.trust-row strong { display: block; font-size: 22px; color: #b4dd91; }
.trust-row span { display: block; margin-top: 4px; color: #dde5dc; font-size: 12px; line-height: 1.3; }

.finder-shell {
  display: grid;
  grid-template-columns: minmax(330px, .78fr) minmax(560px, 1.4fr);
  margin: 0 clamp(16px, 3vw, 44px);
  background: #fff;
  box-shadow: var(--shadow);
}

.filters { padding: clamp(28px, 3vw, 46px); border-right: 1px solid var(--line); }
.filter-heading, .results-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.filter-heading h2, .results-head h2 { margin: 0; font-size: clamp(24px, 2vw, 32px); letter-spacing: -.035em; }
.filter-heading .eyebrow, .results-head .eyebrow { margin-bottom: 8px; }

.reset-button {
  border: 0;
  padding: 4px;
  background: none;
  color: var(--green-dark);
  font-weight: 700;
  cursor: pointer;
}

.search-field { display: block; margin: 30px 0 28px; }
.search-field > span:first-child, .filter-label, .filter-grid label > span { display: block; margin-bottom: 8px; color: #556058; font-size: 13px; font-weight: 700; }
.search-input-wrap { height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid #cbd4cc; background: #fff; }
.search-input-wrap:focus-within { outline: 3px solid rgba(79,153,0,.16); border-color: var(--green); }
.search-input-wrap svg { width: 20px; fill: none; stroke: #68736a; stroke-width: 1.8; }
.search-input-wrap input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }

.family-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.family-chip {
  border: 1px solid #cbd4cc;
  padding: 10px 12px;
  color: #48524a;
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.family-chip:hover { border-color: var(--green); color: var(--green-dark); }
.family-chip.active { border-color: var(--green); color: #fff; background: var(--green); }

.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin-top: 27px; }
.filter-grid select { width: 100%; height: 46px; padding: 0 38px 0 12px; border: 1px solid #cbd4cc; color: var(--ink); background: #fff; border-radius: 0; }
.filter-grid select:focus { outline: 3px solid rgba(79,153,0,.16); border-color: var(--green); }

.results { min-height: 670px; padding: clamp(28px, 3vw, 46px); background: #fbfcfa; }
.results-head p { max-width: 650px; margin: 11px 0 0; color: var(--muted); line-height: 1.55; }
.result-count { flex: none; min-width: 74px; padding: 10px 14px; text-align: center; color: var(--green-dark); background: var(--green-soft); border-radius: 4px; font-size: 13px; font-weight: 800; }

.starter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.starter-card { min-height: 135px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; text-align: left; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .2s ease; }
.starter-card:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 10px 28px rgba(32,65,10,.08); }
.starter-card strong { font-size: 16px; line-height: 1.25; }
.starter-card span { align-self: flex-start; color: var(--green-dark); font-size: 13px; font-weight: 700; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.product-card { display: grid; grid-template-columns: 155px 1fr; min-height: 260px; border: 1px solid var(--line); background: #fff; transition: .2s ease; }
.product-card:hover { border-color: #aebbaa; box-shadow: 0 12px 32px rgba(22,44,11,.08); }
.product-image-link { display: flex; align-items: center; justify-content: center; padding: 16px; background: #f1f4f0; overflow: hidden; }
.product-image { width: 100%; height: 180px; object-fit: contain; mix-blend-mode: multiply; }
.product-content { min-width: 0; display: flex; flex-direction: column; padding: 19px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.family-badge, .size-badge { padding: 5px 7px; color: var(--green-dark); background: var(--green-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.size-badge { color: #566057; background: #edf0ed; }
.product-name { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.018em; }
.product-summary { margin: 9px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 17px; }
.feature-tag { padding: 4px 7px; border: 1px solid #dce4da; color: #5d675f; font-size: 10px; font-weight: 600; }
.product-link { margin-top: auto; display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--green-dark); font-size: 13px; font-weight: 800; }

.empty-state { max-width: 520px; margin: 70px auto 0; padding: 45px 24px; text-align: center; border: 1px solid var(--line); background: #fff; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: var(--green-dark); background: var(--green-soft); font-size: 25px; }
.empty-state h3 { margin: 0; }
.empty-state p { color: var(--muted); }
.empty-state button { border: 0; padding: 12px 18px; color: #fff; background: var(--green); font-weight: 700; cursor: pointer; }

.source-note { margin: 28px clamp(16px, 3vw, 44px) 0; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-left: 4px solid var(--green); background: #fff; }
.source-note strong, .source-note span { display: block; }
.source-note span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.source-note a { flex: none; color: var(--green-dark); font-weight: 800; text-decoration: none; }

footer { max-width: 1452px; margin: 32px auto 0; padding: 24px clamp(22px, 5vw, 78px); display: flex; justify-content: space-between; color: #778078; font-size: 12px; }
footer a { color: var(--green-dark); font-weight: 700; text-decoration: none; }

@media (max-width: 1120px) {
  .hero { align-items: flex-start; flex-direction: column; }
  .trust-row { width: 100%; }
  .finder-shell { grid-template-columns: 1fr; }
  .filters { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .site-header { align-items: center; min-height: 66px; padding: 6px 18px; }
  .brand img { width: 108px; }
  .header-actions { align-items: flex-end; flex-direction: column-reverse; gap: 8px; }
  .site-link { display: none; }
  .lang-button small { display: none; }
  .hero { min-height: 0; margin: 0; padding: 38px 24px; }
  .hero h1 { font-size: 42px; }
  .trust-row { grid-template-columns: 1fr 1fr 1fr; }
  .trust-row div { min-width: 0; padding: 12px 8px; }
  .finder-shell { margin: 0; }
  .filter-grid { grid-template-columns: 1fr; }
  .starter-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .source-note { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .brand img { width: 92px; }
  .hero h1 { font-size: 36px; }
  .trust-row { grid-template-columns: 1fr; }
  .starter-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 112px 1fr; }
  .product-image { height: 140px; }
  footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
