/* Public site – mobile-first, no frameworks, no inline styles (CSP style-src 'self'). */
:root {
  --brand: #0f3b24;
  --brand-2: #14532d;
  --primary: #16803c;
  --primary-dark: #0f6a30;
  --primary-soft: #e8f5ec;
  --cta: #c4470a;
  --cta-dark: #9a3412;
  --cta-soft: #fff1e8;
  --bg: #f4f6f3;
  --card: #fff;
  --text: #17211b;
  --muted: #5f6d64;
  --border: #e2e7e3;
  --danger: #d92d20;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 22, .06);
  --shadow: 0 1px 3px rgba(15, 35, 22, .06), 0 6px 18px rgba(15, 35, 22, .06);
  --shadow-lg: 0 14px 34px rgba(15, 35, 22, .14), 0 3px 8px rgba(15, 35, 22, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1280px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 9rem; }
@media (min-width: 900px) { html { scroll-padding-top: 8rem; } }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { letter-spacing: -.015em; }
h1 { font-size: 1.65rem; line-height: 1.2; margin: .4rem 0 1rem; font-weight: 800; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 .9rem; font-weight: 800; }
h3 { font-size: 1rem; }
small { font-size: .85em; }
del { color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 700px) { .wrap { padding: 0 1.5rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid #f6b26b; outline-offset: 2px; }
.icon { flex: none; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: .55rem 1.05rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s var(--ease);
}
.btn:hover { background: #f1f4f2; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn.cta { background: var(--cta); border-color: var(--cta); color: #fff; box-shadow: 0 2px 0 rgba(160, 60, 0, .25); }
.btn.cta:hover { background: var(--cta-dark); border-color: var(--cta-dark); color: #fff; box-shadow: 0 6px 16px rgba(242, 107, 29, .35); }
.btn.outline { border-color: var(--cta); color: var(--cta-dark); background: #fff; }
.btn.outline:hover { background: var(--cta-soft); color: var(--cta-dark); }
.btn.ghost { background: var(--primary-soft); border-color: transparent; color: var(--primary-dark); }
.btn.ghost:hover { background: #d7eedf; color: var(--primary-dark); }
.btn.big { font-size: 1.05rem; min-height: 54px; padding: .8rem 1.3rem; width: 100%; border-radius: 11px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--brand); color: #cfe3d5; font-size: .8rem; }
.topbar-row { display: flex; justify-content: space-between; gap: 1rem; padding-top: .35rem; padding-bottom: .35rem; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .35rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #ffd2b5; }
.topbar .icon { color: #7fd39b; }
.topbar-extra { display: none !important; }
@media (min-width: 700px) { .topbar-extra { display: inline-flex !important; } }

.site-header { background: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--border), 0 4px 14px rgba(15, 35, 22, .05); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; padding-top: .65rem; padding-bottom: .65rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; margin-right: auto; white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--brand)); color: #fff; font-size: 1.25rem; box-shadow: var(--shadow-sm);
}
.logo-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.08rem; line-height: 1.1; letter-spacing: -.01em; }
.logo-text small { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.search-form { display: flex; gap: .45rem; order: 3; width: 100%; }
.search-field { position: relative; flex: 1; min-width: 0; display: flex; }
.search-field .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input {
  flex: 1; min-width: 0; min-height: 46px; padding: .6rem .9rem .6rem 2.5rem; font: inherit;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #f8faf8;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.search-field input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(22, 128, 60, .12); }
.menu-toggle { min-height: 42px; padding: .45rem .75rem; }

.main-nav { display: none; background: #fff; border-top: 1px solid var(--border); max-width: 100%; }
.main-nav.open { display: block; }
.nav-list { list-style: none; margin: 0; padding: .4rem 1rem .6rem; }
.nav-item > a, .nav-catalog-btn { display: flex; align-items: center; gap: .35rem; padding: .55rem 0; font-weight: 700; color: var(--text); text-decoration: none; }
.nav-catalog-btn { width: 100%; margin: 0; border: 0; background: transparent; font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.nav-mega { display: grid; gap: .15rem .5rem; }
.nav-mega-head { display: flex; align-items: center; gap: .15rem; }
.nav-mega-col ul { list-style: none; margin: 0 0 .35rem; padding: 0 0 0 .85rem; }
.nav-mega-title { display: block; flex: 1; min-width: 0; padding: .35rem 0 .15rem; font-weight: 800; color: var(--text); text-decoration: none; }
.nav-mega-toggle { display: none; }
.nav-sub { list-style: none; margin: 0 0 .4rem; padding: 0 0 0 1rem; }
.nav-sub a { display: block; padding: .3rem 0; color: var(--muted); text-decoration: none; }
.nav-sub a.nav-mega-title { color: var(--text); font-weight: 800; }
.nav-sub a:hover { color: var(--primary); }
.nav-all a { font-weight: 700; color: var(--primary); }
.nav-deals > a { color: var(--cta-dark); }
@media (max-width: 959px) {
  .nav-item > .nav-catalog-btn { display: none; }
  .main-nav.open {
    max-height: calc(100dvh - 8.75rem);
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--bg);
  }
  .nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .7rem .75rem 1rem; }
  .nav-catalog { order: 2; flex: 1 0 100%; }
  .nav-item:not(.nav-catalog) { order: 1; }
  .nav-item:not(.nav-catalog) > a {
    padding: .45rem .85rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: .92rem;
  }
  .nav-sub.nav-mega {
    grid-template-columns: 1fr; gap: .5rem; margin: .15rem 0 0; padding: 0;
  }
  .nav-mega-col { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .15rem .2rem .25rem; }
  .nav-mega-title { padding: .7rem .65rem; }
  .nav-mega-col > ul { display: none; margin: 0; padding: 0 .2rem .35rem; }
  .nav-mega-col.is-open > ul { display: block; }
  .nav-mega-toggle {
    display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; margin-right: .35rem;
    border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
  }
  .nav-mega-toggle::before {
    content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(-45deg); transition: transform .15s var(--ease);
  }
  .nav-mega-col.is-open .nav-mega-toggle { color: var(--primary-dark); }
  .nav-mega-col.is-open .nav-mega-toggle::before { transform: rotate(45deg); }
  .nav-sub a { padding: .4rem .6rem; border-radius: 8px; }
  .nav-sub a:hover { background: var(--primary-soft); }
  .nav-mega-col li:first-child a { font-weight: 700; color: var(--primary-dark); }
}
@media (min-width: 640px) and (max-width: 959px) {
  .nav-sub.nav-mega { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 960px) {
  .header-row { flex-wrap: nowrap; gap: 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
  .search-form { order: 0; width: auto; flex: 1; max-width: 640px; }
  .logo { margin-right: 0; }
  .menu-toggle { display: none; }
  .main-nav { display: block; background: #fff; border-top: 1px solid var(--border); }
  /* Same column as the page, with the few links in the middle of it. */
  .nav-list {
    display: flex; flex-wrap: nowrap; gap: .35rem; width: 100%; max-width: var(--wrap);
    margin-inline: auto; padding: .35rem 1.5rem;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    justify-content: center; align-items: center;
  }
  .nav-list.can-scroll { width: 100%; }
  .nav-list::-webkit-scrollbar { display: none; }
  .main-nav { position: relative; }
  .main-nav:has(.nav-list.can-scroll:not(.at-end))::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; pointer-events: none;
    background: linear-gradient(90deg, transparent, #fff);
  }
  .nav-item { position: relative; flex: 0 0 auto; }
  .nav-item > a, .nav-catalog-btn { padding: .55rem .7rem; color: var(--text); font-size: .92rem; white-space: nowrap; border-radius: 8px; transition: background-color .15s, color .15s; }
  .nav-catalog-btn { width: auto; background: var(--primary-soft); color: var(--primary-dark); }
  .nav-item > a:hover, .nav-item:focus-within > a, .nav-catalog-btn:hover, .nav-catalog:focus-within .nav-catalog-btn { background: var(--primary-soft); color: var(--primary-dark); }
  .nav-catalog-btn::after { content: ""; width: .4rem; height: .4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; margin-left: .15rem; }
  .nav-deals > a { color: var(--cta-dark); }
  .nav-item > a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-dark); }
  .nav-deals > a:hover, .nav-deals:focus-within > a, .nav-deals > a[aria-current="page"] { background: var(--cta-soft); color: var(--cta-dark); }
  /* Closed panel stays out of the bar, otherwise its width makes the row look scrollable. */
  .nav-catalog > .nav-sub:not(.open) { display: none; }
  .nav-sub {
    position: absolute; left: 0; top: 100%; min-width: 270px; padding: .6rem; margin: 0; z-index: 40;
    background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s;
  }
  .nav-sub a { padding: .45rem .7rem; border-radius: 8px; color: var(--text); }
  .nav-sub a:hover { background: var(--primary-soft); color: var(--primary-dark); }
  .nav-sub.nav-mega {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem 1.1rem;
    width: min(1080px, calc(100vw - 24px)); min-width: 0; padding: .9rem 1rem 1rem;
    max-height: calc(100vh - 8rem); overflow: auto;
    border-radius: var(--radius);
  }
  .nav-mega-col ul { margin: 0; padding: 0; }
  .nav-mega-title { padding: .35rem .7rem .15rem; border-radius: 8px; }
  .nav-mega-title:hover { background: var(--primary-soft); color: var(--primary-dark); }
  .nav-mega-col li a { padding: .32rem .7rem; font-size: .9rem; }
  .nav-all { border-top: 1px solid var(--border); margin-top: .3rem; padding-top: .3rem; }
  .nav-all a { color: var(--primary); }
  .nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
  /* Moved to <body> while open, so the scrolling bar does not clip it. */
  .nav-sub.open { position: fixed; z-index: 50; opacity: 1; visibility: visible; transform: none; }
}

.main { padding-top: 1rem; padding-bottom: 3rem; min-height: 60vh; }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: .25rem 0 .6rem; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: #a3b0a7; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Generic blocks ---------- */
.block { margin: 2.25rem 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.block-head h2 { margin: 0; }
.block-head p { margin: .15rem 0 0; max-width: 62ch; }
.more { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.more .icon { transition: transform .2s var(--ease); }
.more:hover .icon { transform: translateX(3px); }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.page-head { margin-bottom: 1.1rem; }
.page-head > p { margin-top: -.4rem; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.pills a, .pills > li > span {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .925rem; font-weight: 600;
  transition: border-color .15s, color .15s, background-color .15s, transform .15s var(--ease);
}
.pills a:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); transform: translateY(-1px); }
.count { color: var(--muted); font-size: .82em; font-weight: 500; }
.prose { max-width: 72ch; }
.page.prose { max-width: 52rem; width: 100%; margin-inline: auto; }
.prose h2 { margin-top: 1.6rem; margin-bottom: .45rem; font-size: 1.2rem; }
.prose h3 { margin-top: 1.2rem; margin-bottom: .35rem; font-size: 1.05rem; }
.prose p, .prose li { line-height: 1.6; }
.prose ul, .prose ol { margin: .35rem 0 1rem; padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }
.prose .note {
  margin: 1rem 0; padding: .85rem 1rem; background: #f4f7f4; border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
}
.page h1 { margin-top: 0; font-size: clamp(1.55rem, 3vw, 2.05rem); }
.page > p:first-of-type { font-size: 1.05rem; }
.intro { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.page { overflow-wrap: anywhere; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.05rem .95rem 1.3rem; }
@media (min-width: 700px) { .page { padding: 1.5rem 1.75rem 1.8rem; } }
.empty { background: var(--card); border: 1px dashed #c9d3cc; border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; }

/* ---------- Home ---------- */
.hero {
  position: relative; overflow: hidden; margin: .25rem 0 0; padding: 1.15rem 1.25rem; border-radius: 16px; color: #fff;
  background:
    linear-gradient(100deg, rgba(15, 59, 36, .94) 0%, rgba(15, 59, 36, .88) 46%, rgba(15, 59, 36, .68) 100%),
    url("/img/hero.jpg") center 42% / cover no-repeat;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; }
.hero-copy { min-width: min(100%, 28rem); flex: 1; }
.hero h1 { font-size: 1.35rem; margin: 0 0 .3rem; color: #fff; }
.hero-lead { color: #d3e6da; margin: 0; font-size: .95rem; max-width: 62ch; }
.hero-search { max-width: 680px; margin: 0; background: #fff; padding: .4rem; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.hero-search .search-field input { border-color: transparent; background: #fff; min-height: 50px; font-size: 1.02rem; }
.hero-search .search-field input:focus { box-shadow: none; border-color: transparent; }
.hero-search .btn { min-height: 50px; padding: 0 1.4rem; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; color: #cfe3d5; font-size: .85rem; }
.hero-stats strong { display: block; font-size: 1.35rem; line-height: 1.1; color: #fff; }
@media (min-width: 800px) {
  .hero { padding: 1.35rem 1.75rem; }
  .hero h1 { font-size: 1.7rem; }
}

.usp { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .6rem; margin: 1rem 0 0; padding: 0; }
.usp li { display: flex; gap: .7rem; align-items: center; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem .9rem; }
.usp .icon { color: var(--primary); background: var(--primary-soft); width: 40px; height: 40px; padding: 9px; border-radius: 10px; }
.usp strong { display: block; font-size: .92rem; line-height: 1.25; }
.usp span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; }

.tiles { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 0; padding: 0; }
.tiles a {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: 1rem .75rem; height: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.tile-img { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: .5rem; border-radius: 50%; background: #f3f6f4; overflow: hidden; }
.tile-img img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s var(--ease); }
.tiles strong { font-size: .95rem; line-height: 1.25; }
.tiles span { color: var(--muted); font-size: .82rem; }
@media (hover: hover) {
  .tiles a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c5dccd; color: var(--text); }
  .tiles a:hover .tile-img img { transform: scale(1.1); }
  .tiles a:hover strong { color: var(--primary-dark); }
}
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

.brand-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin: 0; padding: 0; }
.brand-list a {
  display: flex; flex-direction: column; padding: .8rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s;
}
.brand-list strong { font-size: .95rem; }
.brand-list span { color: var(--muted); font-size: .8rem; }
.brand-list a:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--primary-dark); }
@media (min-width: 700px) { .brand-list { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .brand-list { grid-template-columns: repeat(6, 1fr); } }

.how { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.05rem; margin-top: .9rem; }
.how h2 { margin: 0 0 .9rem; font-size: 1.15rem; }
@media (min-width: 800px) { .how { padding: 1.25rem 1.4rem; } }
.steps { list-style: none; display: grid; gap: 1rem; margin: 0; padding: 0; }
.steps li { display: flex; gap: .9rem; align-items: flex-start; }
.steps p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.step-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.listing .grid { gap: .7rem; }
@media (min-width: 1100px) { .listing .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1280px) { .listing .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card-link { display: flex; flex-direction: column; flex: 1; color: var(--text); text-decoration: none; }
.card-link:hover { color: var(--text); }
.card-img { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; border-bottom: 1px solid #f0f3f1; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: .6rem; transition: transform .45s var(--ease); }
.card-badges { position: absolute; top: .5rem; left: .5rem; right: .5rem; display: flex; flex-wrap: wrap; gap: .3rem; pointer-events: none; }
.card-peek {
  position: absolute; left: .5rem; right: .5rem; bottom: .5rem; padding: .45rem .6rem; border-radius: 8px; text-align: center;
  background: rgba(15, 59, 36, .88); color: #fff; font-size: .8rem; font-weight: 700;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: .7rem .8rem 0; }
.card-brand { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.card-title {
  font-size: .9rem; font-weight: 600; line-height: 1.35; margin: .2rem 0 0; min-height: 2.7em; transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { padding: .5rem .8rem .8rem; display: flex; flex-direction: column; gap: .35rem; }
.card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4rem; margin: 0; }
.card-from { width: 100%; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.card-price strong { font-size: 1.2rem; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.card-price del { font-size: .82rem; }
.card-offers { display: flex; align-items: center; gap: .3rem; margin: 0; font-size: .8rem; color: var(--muted); }
.card-offers a { color: var(--primary); font-weight: 700; }

.recent[hidden] { display: none; }
.recent-row { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .35rem; scroll-snap-type: x mandatory; }
.recent-card {
  flex: 0 0 168px; scroll-snap-align: start; display: flex; flex-direction: column; gap: .35rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .55rem; text-decoration: none; color: var(--text);
}
.recent-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.recent-card strong { font-size: .82rem; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-card span { font-size: .85rem; font-weight: 800; color: var(--primary-dark); }
.recent-card:hover { border-color: #c5dccd; color: var(--text); }
.card-cta { width: 100%; min-height: 40px; padding: .45rem .7rem; font-size: .92rem; margin-top: .15rem; }
.card-cta .icon-arrow { margin-left: auto; transition: transform .25s var(--ease); }
.card-cta span { margin-right: auto; }
.card-cta .icon-cart { margin-left: auto; }

@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfe0d4; }
  .card:hover .card-img img { transform: scale(1.07); }
  .card:hover .card-peek { opacity: 1; transform: none; }
  .card:hover .card-title { color: var(--primary-dark); }
  .card:hover .card-cta { background: var(--cta-dark); border-color: var(--cta-dark); }
  .card-cta:hover .icon-arrow { transform: translateX(4px); }
}
@media (max-width: 420px) {
  .card-body { padding: .6rem .6rem 0; }
  .card-foot { padding: .45rem .6rem .6rem; }
  .card-price strong { font-size: 1.05rem; }
  .card-cta .icon-arrow { display: none; }
}
/* Fade-in for cards below the fold (class set by site.js) */
.card.reveal { opacity: 0; transform: translateY(16px); }
.card.reveal.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .3s, border-color .3s; }

.badge { display: inline-flex; align-items: center; padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 800; line-height: 1.45; letter-spacing: .01em; }
.badge-solo { background: #e0f2fe; color: #075985; }
.badge-kit { background: #fef3c7; color: #92400e; }
.badge-set { background: #ede9fe; color: #5b21b6; }
.badge-discount { background: var(--danger); color: #fff; }
.badge-lg { font-size: .95rem; padding: .3rem .75rem; }

/* ---------- Listing: filters + results ---------- */
.listing { display: grid; gap: 1rem; }
.filters { display: none; }
.filters.open { display: block; }
.filter-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.filter-group { border: 0; margin: 0 0 1rem; padding: 0 0 1rem; border-bottom: 1px solid #edf1ee; }
.filter-group legend { font-weight: 800; font-size: .92rem; margin-bottom: .45rem; }
.filter-group:has(.check:nth-of-type(9)) { max-height: 290px; overflow: auto; scrollbar-width: thin; }
.check { display: flex; align-items: center; gap: .55rem; padding: .28rem .3rem; margin: 0 -.3rem; border-radius: 7px; cursor: pointer; font-size: .92rem; }
.check:hover { background: #f3f7f4; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); flex: none; }
.price-buckets { list-style: none; margin: 0 0 .7rem; padding: 0; }
.price-buckets a {
  display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
  padding: .32rem .4rem; margin: 0 -.4rem; border-radius: 7px; color: var(--text); text-decoration: none; font-size: .92rem;
}
.price-buckets a:hover { background: #f3f7f4; color: var(--text); }
.price-buckets a[aria-current="true"] { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.price-buckets .count { color: var(--muted); font-variant-numeric: tabular-nums; }
.price-range { display: flex; align-items: center; gap: .4rem; }
.price-range input { width: 100%; min-width: 0; min-height: 40px; padding: .4rem .55rem; font: inherit; border: 1px solid var(--border); border-radius: 8px; }
.price-range input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 128, 60, .12); }
.price-range .btn { flex: none; min-height: 40px; padding: .4rem .75rem; }
.results-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .8rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .55rem .8rem;
}
.results-count { margin: 0; margin-right: auto; }
.filters-toggle { min-height: 40px; }
.sort { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .88rem; width: 100%; }
.sort > span:first-child { color: var(--muted); margin-right: .2rem; }
.sort a, .sort-current { padding: .3rem .65rem; border-radius: 999px; text-decoration: none; }
.sort a { color: var(--text); }
.sort a:hover { background: #f1f4f2; }
.sort-current { font-weight: 700; background: var(--primary-soft); color: var(--primary-dark); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; padding: 0; }
.chips a { display: inline-flex; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; background: var(--primary); color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; }
.chips a:hover { background: var(--primary-dark); color: #fff; }
@media (min-width: 900px) {
  .listing { grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 1.25rem; }
  .filters { display: block; position: sticky; top: 8.5rem; max-height: calc(100vh - 9.5rem); overflow: auto; scrollbar-width: thin; border-radius: var(--radius); }
  .filters-toggle { display: none; }
  .sort { width: auto; }
}

/* ---------- Pager ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 1.75rem 0; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .75rem; border-radius: 10px; font-weight: 600; }
.pager a { background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .15s, color .15s; }
.pager a:hover { border-color: var(--primary); color: var(--primary-dark); }
.pager [aria-current="page"] { background: var(--primary); color: #fff; }
.pager .gap { min-width: auto; }

/* ---------- Product page ---------- */
.product-top { display: grid; gap: 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1rem; box-shadow: var(--shadow); }
.product-media { position: relative; display: flex; justify-content: center; align-items: center; background: #fff; border-radius: var(--radius); overflow: hidden; min-height: 260px; }
.product-media img { max-height: 460px; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
@media (hover: hover) { .product-media:hover img { transform: scale(1.06); } }
.product-media .badge-lg { position: absolute; top: .6rem; left: .6rem; z-index: 1; }
.product-kicker { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 0 0 .4rem; }
.category-chip { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: #eef3f0; color: var(--brand); font-size: .82rem; font-weight: 700; text-decoration: none; }
.category-chip:hover { background: #d4ecdc; }
.brand-chip { display: inline-block; padding: .18rem .65rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.brand-chip:hover { background: #d4ecdc; }
.product-summary h1 { font-size: 1.4rem; margin: 0 0 .4rem; }
.product-code { margin: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.product-code strong { color: var(--text); font-weight: 700; }

.buy-box { background: linear-gradient(180deg, #fffaf6, #fff 60%); border: 1.5px solid #ffd9c2; border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; }
.buy-label { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cta-dark); }
.buy-price { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: 0; }
.seen { display: inline-flex; align-items: center; gap: .28rem; align-self: center; padding: .12rem .55rem .12rem .12rem; border-radius: 999px; background: #e7f6ec; color: #126b33; font-weight: 800; font-size: .8rem; line-height: 1; }
.seen-mark { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #16803c; color: #fff; }
.seen-mark .icon { width: .72rem; height: .72rem; }
.buy-price strong { font-size: 2.2rem; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.buy-price del { font-size: 1.05rem; }
.buy-saving { margin: 0; align-self: flex-start; padding: .35rem .7rem; border-radius: 8px; background: #e7f6ec; color: #126b33; font-weight: 700; font-size: .85rem; line-height: 1.35; }
.buy-merchant { display: flex; align-items: center; gap: .35rem; margin: 0 0 .25rem; color: var(--muted); }
.buy-merchant a { color: var(--text); font-weight: 800; text-decoration: none; }
.buy-merchant a:hover { color: var(--primary); text-decoration: underline; }
.buy-box .btn.big { margin-top: .1rem; }
.buy-box .btn.ghost.big { font-size: .92rem; min-height: 46px; }
.buy-notes { list-style: none; margin: .35rem 0 0; padding: .7rem 0 0; border-top: 1px dashed #f0d6c5; display: grid; gap: .35rem; font-size: .85rem; color: var(--muted); }
.buy-notes li { display: flex; align-items: center; gap: .45rem; }
.buy-notes .icon { color: var(--primary); }
.lowest { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .9rem 0 0; padding: .65rem .85rem; background: var(--primary-soft); border-radius: 10px; font-size: .9rem; color: #1d4d2f; }
.lowest .icon { color: var(--primary); }
.unavailable { margin: 1rem 0; padding: 1rem; background: #fff7e6; border: 1px solid #f5d48a; border-radius: 10px; }
.unavailable p { margin: .3rem 0 0; }
@media (min-width: 860px) {
  .product-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 1.5rem; gap: 2rem; }
  .product-summary h1 { font-size: 1.65rem; }
  .product-media { min-height: 420px; }
}
@media (min-width: 1100px) { .product-top { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.offer {
  display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1rem;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.offer:hover { border-color: #c9dccf; box-shadow: var(--shadow); }
.offer-best { border: 1.5px solid #9fd3b0; background: linear-gradient(90deg, #f3fbf6, #fff 55%); }
.offer-shop { display: flex; flex-direction: column; gap: .1rem; min-width: 0; grid-column: 1 / -1; }
.offer-tag { align-self: flex-start; padding: .1rem .5rem; border-radius: 999px; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .15rem; }
.offer-merchant { font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.02rem; }
.offer-merchant:hover { color: var(--primary); text-decoration: underline; }
.offer-title { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-updated { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; color: #8a978e; }
.offer-price { display: flex; flex-direction: column; }
.offer-price strong { font-size: 1.3rem; font-weight: 800; white-space: nowrap; }
.offer-price > span { font-size: .82rem; display: flex; gap: .35rem; align-items: center; }
.offer-btn { min-width: 132px; }
@media (min-width: 700px) {
  .offer { grid-template-columns: minmax(0, 1fr) 150px 150px; padding: 1rem 1.2rem; }
  .offer-shop { grid-column: auto; }
  .offer-price { align-items: flex-end; }
}
.disclosure { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

.product-cols { display: grid; gap: 0 1.25rem; }
.product-cols .block { margin-bottom: 0; }
@media (min-width: 900px) { .product-cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: .6rem .2rem; border-bottom: 1px solid #edf1ee; text-align: left; vertical-align: top; font-size: .93rem; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 45%; font-weight: 600; color: var(--muted); }

.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart figcaption { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.chart-grid { stroke: #e7ebe8; stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 11px; }
.chart-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
.chart-area { fill: rgba(22, 128, 60, .1); stroke: none; }
.chart-low { fill: var(--cta); stroke: #fff; stroke-width: 2; }
.chart-empty { display: flex; gap: .8rem; align-items: center; padding: 1rem; border-radius: 10px; background: #f6f8f6; color: var(--muted); }
.chart-empty .icon { color: #9bb2a3; }
.chart-empty p { margin: 0; font-size: .92rem; }

.description { white-space: pre-line; max-width: 80ch; color: #2b3830; position: relative; }
.description p { margin: 0; }
.description.collapsed { max-height: 11.5rem; overflow: hidden; }
.description.collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.5rem; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.more-toggle { margin-top: .8rem; }

/* Mobile sticky buy bar */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: .8rem;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(15, 35, 22, .12); transform: translateY(110%); transition: transform .3s var(--ease);
}
.buy-bar.show { transform: none; }
.buy-bar-price { display: flex; flex-direction: column; margin-right: auto; line-height: 1.15; }
.buy-bar-price span { font-size: .75rem; color: var(--muted); }
.buy-bar-price a { color: inherit; font-weight: 700; }
.buy-bar-price strong { font-size: 1.25rem; font-weight: 800; }
.buy-bar .btn { min-width: 150px; }
@media (min-width: 860px) { .buy-bar { display: none; } }

/* ---------- FAQ ---------- */
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: .55rem; padding: 0 1.1rem; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #c9dccf; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; padding: .85rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--primary); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 .9rem; color: #2b3830; }
.faq-links { margin: 0 0 1rem; padding-left: 1.1rem; display: grid; gap: .35rem; }

/* ---------- Errors ---------- */
.error-page { text-align: center; padding: 2rem 0; }
.error-page .hero-search, .search-page { margin: 1.5rem auto; border: 1px solid var(--border); box-shadow: var(--shadow); }
.search-page { margin-left: 0; }
.error-code { font-size: 3.5rem; font-weight: 800; color: var(--primary); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: #c7dacd; padding: 2.5rem 0 1.25rem; font-size: .92rem; margin-top: 1rem; }
.site-footer a, .site-footer .link { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer .link:hover { color: #ffb27f; text-decoration: underline; }
.site-footer h2 { font-size: .85rem; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-grid { display: grid; gap: 1.75rem; }
.footer-about { order: -1; }
.footer-logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.1rem; color: #fff; margin-top: 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.copyright { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: #8fb09b; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; max-width: 640px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); padding: 1rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 .75rem; font-size: .925rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
