:root {
  --bg: #f4f7f4;
  --paper: #ffffff;
  --ink: #192820;
  --muted: #516358;
  --line: rgba(25,40,32,0.1);
  --brand: #1a5e41;
  --brand-deep: #113d2b;
  --brand-soft: rgba(26,94,65,0.08);
  --brand-mid: rgba(26,94,65,0.15);
  --shadow: 0 4px 20px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
  --r: 14px;
  --r-lg: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #effaf2; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #effaf2 0%, #f5f1e6 45%, #fbeef4 100%);
  background-attachment: fixed;
  font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body, p, a, span, input, select, summary { overflow-wrap: break-word; }
h1, h2, h3, .button, .filter-chip, .nav-link { overflow-wrap: normal; word-break: normal; hyphens: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { padding-bottom: 64px; }
.shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); flex: 0 0 auto; }
.brand-copy { display: grid; gap: 2px; min-width: 0; }
.brand-kicker { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand-title { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.brand-id { font-size: 13px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.site-nav { display: flex; gap: 2px; }
.nav-link { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background 0.15s, color 0.15s; }
.nav-link:hover, .nav-link.is-active { background: var(--brand-soft); color: var(--brand); }
.header-cta { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* BUTTONS */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px;
  border: 1.5px solid transparent; border-radius: 999px;
  cursor: pointer; font: 600 15px/1.2 inherit;
  white-space: nowrap; text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.button-small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.button-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.button-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.button-secondary { border-color: var(--line); background: var(--paper); color: var(--brand); }
.button-secondary:hover { border-color: var(--brand); background: var(--brand-soft); }
.button-vk { background: linear-gradient(135deg, #0077ff, #0866d6); color: #fff; border-color: transparent; }
.button-vk:hover { background: linear-gradient(135deg, #0866d6, #0550b8); }
.button-telegram { background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; border-color: transparent; }
.button-telegram:hover { background: linear-gradient(135deg, #229ed9, #1e8fc6); }
.button-max { background: linear-gradient(135deg, #5856ff, #4946d0); color: #fff; border-color: transparent; }
.button-max:hover { background: linear-gradient(135deg, #4946d0, #3a37b3); }
.button-footer-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  background: linear-gradient(135deg, #9ce356, #6fd66f);
  border: 1.5px solid transparent; border-radius: 999px;
  color: #0d3a26; font: 700 14px/1 inherit; cursor: pointer;
  box-shadow: 0 4px 14px rgba(110, 200, 100, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.button-footer-outline:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(110, 200, 100, 0.45); background: linear-gradient(135deg, #b3ee72, #82dd82); }
.button-buy { width: 100%; }

/* EYEBROW / LABELS */
.eyebrow { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: 8px; }

/* HERO (HOME) */
.hero { padding: 56px 0 44px; }
.hero-inner { max-width: 700px; }
.hero h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 800; line-height: 1.08; margin: 0 0 14px; }
.hero-desc { font-size: clamp(15px, 2vw, 18px); color: var(--muted); line-height: 1.72; margin: 0 0 10px; max-width: 58ch; }
.hero-partner { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.hero-partner strong { color: var(--ink); font-weight: 700; }
.hero-social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero-social-row .button { min-width: 120px; flex: 1 1 110px; min-height: 42px; font-size: 14px; }
.hero-cta .button-primary { min-height: 50px; min-width: 200px; font-size: 16px; }

/* VALUE STRIP */
.value-strip { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.value-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-item { display: flex; align-items: center; gap: 14px; }
.value-icon { font-size: 28px; line-height: 1; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); border-radius: 14px; flex: 0 0 auto; }
.value-body { display: grid; gap: 2px; min-width: 0; }
.value-body strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.value-body span { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* CATEGORY TILES */
.section--categories { padding: 48px 0 20px; }
.category-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-tile {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: 20px;
  background: var(--tile-bg, var(--paper));
  border: 1px solid rgba(0,0,0,0.04);
  color: var(--tile-color, var(--ink));
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.category-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.category-tile__icon {
  font-size: 32px; line-height: 1;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.6);
  border-radius: 16px;
  flex: 0 0 auto;
}
.category-tile__body { display: grid; gap: 3px; min-width: 0; }
.category-tile__name { font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--tile-color, var(--ink)); }
.category-tile__desc { font-size: 13px; color: var(--tile-color, var(--muted)); opacity: 0.85; line-height: 1.4; }

/* CATALOG HERO + HOME HERO GRADIENT (shared) */
.catalog-hero, .hero--gradient {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #effaf2 0%, #f5f1e6 45%, #fbeef4 100%);
}
.catalog-hero { padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.hero--gradient { padding: 56px 0 48px; }
.hero--gradient .hero__inner, .catalog-hero__inner { position: relative; z-index: 2; }
.catalog-hero__blob { position: absolute; border-radius: 50%; filter: blur(38px); opacity: 0.55; pointer-events: none; z-index: 1; }
.catalog-hero__blob--1 { width: 320px; height: 320px; top: -110px; right: -80px; background: radial-gradient(circle, #95e0b6, transparent 65%); }
.catalog-hero__blob--2 { width: 260px; height: 260px; top: 40px; left: -90px; background: radial-gradient(circle, #fcd5a8, transparent 65%); }
.catalog-hero__blob--3 { width: 220px; height: 220px; bottom: -90px; right: 30%; background: radial-gradient(circle, #f9c8de, transparent 65%); opacity: 0.45; }
.catalog-hero .breadcrumbs { color: rgba(25,40,32,0.65); }
.catalog-hero .eyebrow { color: var(--brand); margin-bottom: 6px; }
.catalog-hero__title { font-size: clamp(26px, 4.2vw, 42px); font-weight: 800; margin: 4px 0 8px; line-height: 1.1; max-width: 22ch; }
.catalog-hero__subtitle { font-size: clamp(14px, 1.8vw, 17px); color: var(--muted); margin: 0 0 16px; max-width: 56ch; line-height: 1.6; }
.catalog-hero__stats { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.catalog-stat strong { color: var(--ink); font-weight: 800; }
.catalog-stat--dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: 0.5; display: inline-block; }
.catalog-stat--accent { color: #b85c00; }
.catalog-stat--accent strong { color: #9a3d00; }
.catalog-hero__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-size: 13px; font-weight: 700; color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
}
.quick-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); background: #fff; }
.quick-pill__icon { font-size: 16px; line-height: 1; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--qp-bg, var(--brand-soft)); flex: 0 0 auto; }
.quick-pill--sale { color: #9a3d00; } .quick-pill--sale .quick-pill__icon { background: #ffe4cc; }
.quick-pill--home { color: #1a5e41; } .quick-pill--home .quick-pill__icon { background: #d2efde; }
.quick-pill--beauty { color: #a8316b; } .quick-pill--beauty .quick-pill__icon { background: #fad6e6; }
.quick-pill--health { color: #1565a3; } .quick-pill--health .quick-pill__icon { background: #cee6f9; }
.quick-pill--food { color: #6b5d1f; } .quick-pill--food .quick-pill__icon { background: #ece5c4; }
.quick-pill--kids { color: #a55a00; } .quick-pill--kids .quick-pill__icon { background: #ffe1bf; }

/* DISCOUNT BADGE on product card */
.product-card { position: relative; }
.product-card__media { position: relative; }
.discount-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #ff6b35, #d23800);
  color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(210, 56, 0, 0.35);
}
.product-card--discount { box-shadow: 0 0 0 1px rgba(210, 56, 0, 0.05); }

/* EMPTY STATE */
.empty-state {
  display: grid; place-items: center; gap: 10px;
  padding: 60px 24px; text-align: center;
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r-lg);
  margin-top: 8px;
}
.empty-state[hidden] { display: none !important; }
.empty-state__icon { font-size: 48px; line-height: 1; margin-bottom: 8px; }
.empty-state__title { font-size: 22px; font-weight: 800; margin: 0; }
.empty-state__text { font-size: 15px; color: var(--muted); margin: 0; max-width: 40ch; line-height: 1.55; }
.empty-state .button { margin-top: 8px; min-width: 200px; }
.product-grid.is-empty { display: none; }

/* PAGE INTRO */
.page-intro { padding: 36px 0 16px; }
.page-intro--compact { padding-bottom: 8px; }
.page-intro h1 { font-size: clamp(24px, 4vw, 38px); font-weight: 800; margin: 6px 0 10px; line-height: 1.1; }
.lead { font-size: clamp(15px, 2vw, 17px); color: var(--muted); margin: 0 0 14px; max-width: 60ch; line-height: 1.7; }

/* SECTION */
.section { padding: 36px 0; }
.section--compact { padding-top: 12px; }
.section--home-preview { padding: 40px 0; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 800; margin: 0 0 6px; line-height: 1.1; }
.section-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.section-heading--compact { margin-bottom: 18px; }
.section-heading--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-cta { display: flex; justify-content: center; margin-top: 24px; }
.section-cta .button { min-width: 220px; min-height: 46px; }

/* PRODUCT GRID */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* PRODUCT CARD */
.product-card {
  background: var(--paper); border: 1px solid #c4d5c8; border-radius: var(--r-lg); box-shadow: 0 2px 8px rgba(20,61,45,.04);
  overflow: hidden; display: grid; grid-template-rows: auto 1fr;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.product-card:hover { transform: translateY(-3px); border-color: #9fbaa9; box-shadow: 0 6px 18px rgba(20,61,45,.08); }
.product-card__media {
  background: #f6faf6; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.product-card__media img { max-height: 170px; object-fit: contain; }
.product-card__body { display: grid; gap: 8px; padding: 12px 14px 14px; }
.product-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.product-card h3 { font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0; }
.product-card h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 4px; color: var(--ink); font-size: 12px; line-height: 1.3; }
.product-rating > svg { display: block; flex: 0 0 14px; width: 14px; height: 14px; fill: #f8bd18; }
.product-rating__count { color: var(--muted); }
.product-card__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; min-height: 0; }
.product-card__purchase { display: grid; gap: 6px; }
.product-card__info-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price-cluster { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-current, .big-price { font-size: 18px; font-weight: 800; color: var(--brand); line-height: 1; }
.big-price { font-size: clamp(26px, 4vw, 38px); }
.price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.product-actions .button { min-height: 34px; font-size: 12px; padding: 0 8px; border-radius: 8px; }
.product-line { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.product-code { font-size: 11px; color: var(--muted); white-space: nowrap; }
.meta-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: var(--brand-soft); color: var(--brand); font-weight: 600; white-space: nowrap; }
.product-card__info-row .meta-pill.family-pill { --family-bg: #EFF1F2; --family-ink: #54616B; display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 12px; line-height: 1.3; white-space: normal; max-width: 100%; background: var(--family-bg); color: var(--family-ink); }
.product-card__info-row .family-pill[data-section='home'] { --family-bg: #E6F7EE; --family-ink: #1B6846; }
.product-card__info-row .family-pill[data-section='beauty'] { --family-bg: #FCEAF3; --family-ink: #93416E; }
.product-card__info-row .family-pill[data-section='health'] { --family-bg: #E8F2FF; --family-ink: #2E5E93; }
.product-card__info-row .family-pill[data-section='products'] { --family-bg: #F2F7DA; --family-ink: #596620; }
.product-card__info-row .family-pill[data-section='kids'] { --family-bg: #FFF0DF; --family-ink: #95541F; }
.product-card__info-row .family-pill[data-section='other'] { --family-bg: #EFF1F2; --family-ink: #54616B; }
.sticker { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: #fff3e0; color: #c05e00; font-weight: 600; }
.sticker-row { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.tag-row, .meta-list { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* CATALOG LAYOUT */
.section--catalog-layout { padding-top: 14px; }
.catalog-layout { display: grid; grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); gap: 22px; align-items: start; }

/* SIDEBAR */
.catalog-sidebar {
  position: sticky; top: 76px;
  max-width: 100%; max-height: calc(100vh - 96px);
  overflow-y: auto; overflow-x: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; display: grid; gap: 12px;
  font-size: 13px;
  scrollbar-width: thin; scrollbar-color: rgba(25,40,32,0.18) transparent;
}
.catalog-sidebar::-webkit-scrollbar { width: 6px; }
.catalog-sidebar::-webkit-scrollbar-track { background: transparent; }
.catalog-sidebar::-webkit-scrollbar-thumb { background: rgba(25,40,32,0.18); border-radius: 999px; }
.catalog-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(25,40,32,0.32); }
.sidebar-header { display: none; align-items: center; justify-content: space-between; }
.sidebar-title { font-size: 16px; font-weight: 700; }
.sidebar-close-btn { display: none; width: 32px; height: 32px; border: none; background: none; font-size: 20px; cursor: pointer; color: var(--muted); border-radius: 8px; align-items: center; justify-content: center; }
.sidebar-close-btn:hover { background: var(--bg); }
.sidebar-search-input {
  width: 100%; height: 36px; padding: 0 10px;
  border: 1.5px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 13px; background: var(--bg); color: var(--ink);
  transition: border-color 0.15s;
}
.sidebar-search-input:focus { outline: none; border-color: var(--brand); background: var(--paper); }
.filter-group { display: grid; gap: 8px; min-width: 0; }
.filter-group--divider { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px; }
.filter-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.filter-select {
  width: 100%; height: 34px; padding: 0 8px;
  border: 1.5px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 12px; background: var(--bg); color: var(--ink);
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--brand); }
.price-range-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.price-input {
  flex: 1; min-width: 0; height: 34px; padding: 0 6px;
  border: 1.5px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 12px; background: var(--bg); color: var(--ink); text-align: center;
}
.price-input:focus { outline: none; border-color: var(--brand); }
.price-range-sep { color: var(--muted); flex: 0 0 auto; }
.filter-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 12px/1.25 inherit; cursor: pointer; background: var(--paper); color: var(--muted);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  text-align: center; max-width: 100%; min-width: 0;
  overflow-wrap: anywhere; word-break: normal; white-space: normal;
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-chip--full { width: 100%; justify-content: flex-start; padding: 8px 11px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.filter-chip--discount.is-active { background: #9a3d00; border-color: #9a3d00; }
.filter-group--accordion { }
.filter-group__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 6px 0; font: 600 12px/1.2 inherit; color: var(--ink); cursor: pointer;
  transition: color 0.12s;
}
.filter-group__toggle:hover { color: var(--brand); }
.filter-group__arrow { font-size: 11px; opacity: 0.5; transition: transform 0.2s; }
.filter-group--open .filter-group__arrow { transform: rotate(180deg); }
.filter-group__body { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 8px; }
.filter-group--open .filter-group__body { display: grid; }
.filter-group__body .filter-chip { width: 100%; min-height: 31px; padding-inline: 8px; border-radius: 8px; font-size: 11px; }
.button-reset-filters { width: 100%; min-height: 32px; font-size: 12px; border-radius: 8px; margin-top: 2px; }
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 200;
  opacity: 0; transition: opacity 0.22s;
}
.sidebar-overlay.is-visible { display: block; opacity: 1; }

/* CATALOG MAIN */
.catalog-main { min-width: 0; }
.catalog-main-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.filter-toggle-btn {
  display: none; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: 600 13px inherit; cursor: pointer; background: var(--paper); color: var(--ink);
  transition: border-color 0.15s;
}
.filter-toggle-btn:hover { border-color: var(--brand); }
.filter-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700;
}
.filter-count-badge:empty { display: none; }
.results-count { font-size: 13px; color: var(--muted); font-weight: 500; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; padding: 10px 12px; background: var(--brand-soft); border-radius: 12px; align-items: center; }
.active-filters[hidden] { display: none !important; }
.active-filter-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-right: 4px; }
.active-filter-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink); }
.active-filter-pill__x { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 10px; cursor: pointer; border: none; line-height: 1; }
.active-filter-pill__x:hover { background: var(--brand-deep); }
.active-filters-clear { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--brand); font-size: 12px; font-weight: 600; text-decoration: underline; padding: 4px 8px; }
.active-filters-clear:hover { color: var(--brand-deep); }

/* DETAIL / PRODUCT PAGE */
.hero-panel, .detail-card, .note-card, .buy-box, .message-card, .faq-item {
  position: relative;
  background: linear-gradient(180deg, #fdfffe 0%, #f4faf5 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 2px 14px rgba(26, 94, 65, 0.04);
}
.detail-card--wide, .note-card--purchase, .hero-panel:not(.hero-panel--simple) { padding: 28px; }
.detail-card::before, .note-card::before, .buy-box::before, .hero-panel::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: linear-gradient(90deg, #1a5e41, #6fd66f, #9ce356);
  border-radius: 0 0 3px 3px;
  opacity: 0.85;
}
.note-card--reviews-preview::before, .hero-panel--simple::before { opacity: 1; }
.faq-item::before, .message-card::before { display: none; }
.hero-panel--simple { background: linear-gradient(160deg, #fff, #f4f7f4); }
.product-media-card {
  background: #f6faf6; border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; min-height: 280px;
}
.product-media-card img { max-height: 300px; object-fit: contain; }
.product-hero { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr); gap: 22px; }
.product-hero__body { display: grid; gap: 14px; }
.detail-grid { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.detail-sidebar { display: grid; gap: 12px; align-self: start; }
.detail-card { display: grid; gap: 12px; }
.detail-section { display: grid; gap: 12px; }
.detail-section h2 { font-size: clamp(18px, 2.5vw, 26px); font-weight: 700; margin: 0; }
.buy-box { display: grid; gap: 12px; }
.buy-box p, .message-card p { margin: 0; }
.buy-stack { display: grid; gap: 10px; }
.buy-lead { color: var(--muted); font-size: 15px; }
.buy-consult { display: grid; gap: 8px; }
.buy-consult-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
}
.buy-consult-title::before, .buy-consult-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.buy-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.buy-buttons .button { min-height: 42px; padding-inline: 8px; border-radius: 10px; }
.message-preview { margin: 0; padding: 14px; border-radius: 12px; background: var(--bg); font-size: 14px; line-height: 1.65; }
.message-card { display: grid; gap: 12px; }
.note-card { display: grid; gap: 12px; }
.note-card--purchase { }
.note-card .button { justify-self: start; }
.rich-text p { margin: 0 0 12px; line-height: 1.7; font-size: 15px; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { padding-left: 20px; margin: 0 0 12px; }
.rich-text li { margin-bottom: 5px; line-height: 1.6; font-size: 15px; }
.rich-text b, .rich-text strong { font-weight: 700; }
.benefits-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.benefits-list li { padding-left: 18px; position: relative; font-size: 14px; line-height: 1.6; }
.benefits-list li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* REVIEWS */
.note-card--reviews-preview {
  position: relative;
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, #fdfffe 0%, #f4faf5 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid; gap: 18px;
  box-shadow: 0 2px 14px rgba(26, 94, 65, 0.04);
}
.note-card--reviews-preview::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: linear-gradient(90deg, #1a5e41, #6fd66f, #9ce356);
  border-radius: 0 0 3px 3px;
}
.reviews-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 0; }
.reviews-header > div { display: grid; gap: 4px; min-width: 0; }
.reviews-header .eyebrow { margin-bottom: 0; font-size: 11px; }
.reviews-header h2 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 800; margin: 0; line-height: 1.15; }
.reviews-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.reviews-total { color: var(--ink); font-weight: 600; }
.review-rating--summary {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #fff8e1, #ffe8a3);
  color: #8a5a00; font-weight: 800; font-size: 14px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.18);
}
.review-rating--summary::before { content: '★'; color: #f59e0b; font-size: 15px; line-height: 1; }
.reviews-preview-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reviews-list { display: grid; gap: 14px; }
.reviews-list--full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.review-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; display: grid; gap: 10px;
  position: relative; transition: border-color 0.15s, box-shadow 0.15s;
}
.review-card:hover { border-color: rgba(26, 94, 65, 0.25); box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
.review-card--compact { background: rgba(255,255,255,0.7); }
.review-card__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.review-card__meta > div { display: grid; gap: 2px; min-width: 0; }
.review-author { font-weight: 700; font-size: 14px; color: var(--ink); }
.review-date { font-size: 11px; color: var(--muted); }
.review-rating {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(245, 158, 11, 0.12); color: #b45309;
  font-weight: 700; font-size: 12px; white-space: nowrap; flex: 0 0 auto;
}
.review-rating::before { content: '★'; color: #f59e0b; font-size: 13px; line-height: 1; }
.review-text { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0; }
.reviews-preview-footer { margin-top: 4px; display: flex; }
.reviews-preview-footer .button { min-width: 180px; }

/* FAQ */
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.faq-item { }
.faq-item h3 { font-size: 15px; font-weight: 700; margin: 0 0 7px; }
.faq-item p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }

/* CATEGORY / BRANDS */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-grid--families { grid-template-columns: repeat(4, 1fr); }
.category-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; align-content: start; transition: transform 0.18s, box-shadow 0.18s; }
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.category-card h3 { font-size: 17px; font-weight: 700; margin: 0; }
.category-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.card-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.catalog-section-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.catalog-section-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; align-content: start; }
.catalog-section-card h3 { font-size: 17px; font-weight: 700; margin: 0; }
.catalog-section-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.catalog-section-links { display: flex; flex-wrap: wrap; gap: 7px; }
.catalog-section-card--promo { background: linear-gradient(160deg, #fff, #eef8ee); }
.filter-chip--solid { background: var(--brand); color: #fff; border-color: var(--brand); }

/* BREADCRUMBS */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; color: var(--muted); margin-bottom: 12px; font-size: 13px; }
.breadcrumbs__sep { opacity: 0.45; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

/* FOOTER */
.site-footer {
  position: relative;
  margin-top: 56px;
  padding: 56px 0 40px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 0%, rgba(26, 94, 65, 0.04) 100%);
}
.site-footer::before {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(1200px, calc(100% - 32px)); height: 3px;
  background: linear-gradient(90deg, #1a5e41, #6fd66f, #9ce356);
  border-radius: 0 0 3px 3px;
}
.footer-grid { display: grid; gap: 18px; }
.footer-grid--rich { grid-template-columns: 1.1fr 1fr 0.85fr; }
.footer-col {
  position: relative;
  display: grid; gap: 12px; align-content: start;
  padding: 24px;
  background: linear-gradient(180deg, #fdfffe 0%, #f4faf5 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 2px 14px rgba(26, 94, 65, 0.04);
}
.footer-col::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: linear-gradient(90deg, #1a5e41, #6fd66f, #9ce356);
  border-radius: 0 0 3px 3px; opacity: 0.85;
}
.footer-eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.footer-name { font-size: clamp(18px, 2.5vw, 24px); font-weight: 800; color: var(--ink); margin: 0; line-height: 1.2; }
.footer-id { font-size: 13px; color: var(--muted); margin: 0; font-weight: 600; }
.footer-id-big {
  display: inline-flex; align-items: center; align-self: start;
  font-size: 18px; font-weight: 800; color: var(--brand-deep);
  padding: 8px 14px; border-radius: 10px;
  background: var(--brand-soft);
  margin: 0;
}
.footer-desc { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }
.footer-steps { padding-left: 18px; margin: 0; }
.footer-steps li { font-size: 14px; line-height: 1.7; color: var(--ink); margin-bottom: 6px; }
.footer-steps li::marker { color: var(--brand); font-weight: 700; }
.footer-social { display: grid; gap: 8px; margin-top: 4px; }
.footer-social .button { width: 100%; border-radius: 10px; min-height: 42px; font-size: 14px; }
.footer-col .button-footer-outline { align-self: start; margin-top: 4px; }

/* MISC */
.is-hidden { display: none !important; }
.muted, .toolbar-note { color: var(--muted); font-size: 14px; }
.toolbar-bar { display: flex; justify-content: flex-end; align-items: center; }
.search-field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.search-field input, .search-field select { height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; color: var(--ink); }
.contact-links-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.region-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.region-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; }
.region-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.region-query-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* RESPONSIVE 1100px — 3-col products, keep sidebar readable */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: minmax(260px, 290px) minmax(0, 1fr); gap: 16px; }
  .catalog-sidebar { padding: 14px; font-size: 13px; }
  .filter-group__body { grid-template-columns: 1fr; }
  .detail-grid, .product-hero { grid-template-columns: 1fr; }
  .footer-grid--rich { grid-template-columns: 1fr 1fr; }
  .faq-list, .reviews-list--full { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .category-grid--families { grid-template-columns: repeat(3, 1fr); }
  .region-layout, .region-info-grid { grid-template-columns: 1fr; }
}

/* RESPONSIVE 820px — sidebar becomes drawer, 2-col products */
@media (max-width: 820px) {
  .value-strip-grid { grid-template-columns: 1fr; gap: 14px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(320px, 90vw); max-height: 100vh;
    border-radius: 0; z-index: 300; padding: 16px;
    transform: translateX(-100%);
    transition: transform 0.26s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto; overflow-x: hidden;
  }
  .catalog-sidebar.is-open { transform: translateX(0); }
  .sidebar-header { display: flex; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .sidebar-close-btn { display: flex; }
  .filter-toggle-btn { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid--rich { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .buy-buttons { grid-template-columns: 1fr; }
}

/* RESPONSIVE 480px — mobile */
@media (max-width: 480px) {
  .shell { width: min(1200px, calc(100% - 16px)); }
  .category-tiles { grid-template-columns: 1fr; gap: 10px; }
  .category-tile { padding: 14px 16px; gap: 12px; }
  .category-tile__icon { width: 44px; height: 44px; font-size: 24px; border-radius: 12px; }
  .category-tile__name { font-size: 15px; }
  .category-tile__desc { font-size: 12px; }
  .site-header { position: sticky; }
  .header-shell { gap: 8px; padding: 8px 0; }
  .brand-logo { width: 40px; height: 40px; border-radius: 9px; }
  .brand-title { font-size: 14px; }
  .brand-kicker, .brand-id { display: none; }
  .hero { padding: 24px 0 20px; }
  .hero h1 { font-size: clamp(24px, 8vw, 36px); margin-bottom: 10px; }
  .hero-desc { font-size: 14px; }
  .hero-social-row { gap: 8px; }
  .hero-social-row .button { min-width: 0; flex: 1 1 30%; font-size: 13px; min-height: 38px; padding: 0 10px; }
  .hero-cta .button-primary { width: 100%; min-height: 46px; font-size: 15px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card__media { padding: 10px; }
  .product-card__body { padding: 8px 8px 10px; gap: 6px; }
  .product-card h3 { font-size: 12px; }
  .price-current { font-size: 15px; }
  .product-actions { grid-template-columns: 1fr 1fr; gap: 4px; }
  .product-actions .button { font-size: 11px; min-height: 28px; padding: 0 4px; }
  .catalog-main-bar { flex-wrap: wrap; }
  .filter-toggle-btn { flex: 1; justify-content: center; }
  .results-count { width: 100%; text-align: center; font-size: 12px; }
  .category-grid, .catalog-section-grid { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .buy-buttons { grid-template-columns: 1fr; }
  .reviews-list--full { grid-template-columns: 1fr; }
  .product-hero, .detail-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .footer-grid--rich { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: clamp(19px, 7vw, 26px); }
  .header-cta { display: none; }
  .catalog-sidebar { width: min(310px, 94vw); }
  .section { padding: 24px 0; }
  .catalog-hero { padding: 24px 0 20px; }
  .catalog-hero__title { font-size: clamp(22px, 7.5vw, 30px); }
  .catalog-hero__subtitle { font-size: 14px; }
  .catalog-hero__stats { font-size: 13px; gap: 4px 8px; margin-bottom: 14px; }
  .catalog-hero__quick { gap: 6px; }
  .quick-pill { padding: 6px 12px 6px 8px; font-size: 12px; }
  .quick-pill__icon { width: 22px; height: 22px; font-size: 14px; }
  .catalog-hero__blob--1 { width: 200px; height: 200px; top: -80px; right: -60px; }
  .catalog-hero__blob--2 { width: 180px; height: 180px; top: 20px; left: -70px; }
  .catalog-hero__blob--3 { display: none; }
  .empty-state { padding: 40px 16px; }
  .empty-state__icon { font-size: 40px; }
  .empty-state__title { font-size: 18px; }
  .discount-badge { font-size: 11px; padding: 3px 8px; top: 8px; left: 8px; }
  .note-card--reviews-preview { padding: 22px 18px 18px; gap: 14px; }
  .note-card--reviews-preview::before { left: 16px; right: 16px; }
  .reviews-header { flex-direction: column; gap: 10px; }
  .review-rating--summary { align-self: flex-start; }
  .reviews-preview-list { grid-template-columns: 1fr; }
}
/* Keep the shared three-link navigation usable on legacy mobile pages only. */
@media (max-width: 899px) {
  body:not(.home-page) .header-shell { flex-wrap: wrap; }
  body:not(.home-page) .header-actions { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
  body:not(.home-page) .header-actions .site-nav { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body:not(.home-page) .header-actions .nav-link,
  body:not(.home-page) .header-actions .header-cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 44px; padding: 6px 5px; font-size: 13px; line-height: 1.25; text-align: center; white-space: normal; }
}
/* Keep the final footer links clear of the fixed control on narrow screens. */
body.has-back-to-top .site-footer,
body.home-page.has-back-to-top .home-footer {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
.back-to-top {
  position: fixed;
  z-index: 125;
  left: calc(18px + env(safe-area-inset-left, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #cfe3d5;
  border-radius: 14px;
  background: #fff;
  color: #1a5e41;
  box-shadow: 0 4px 14px rgba(13, 65, 37, .09);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.back-to-top[hidden] { display: none !important; }
.back-to-top svg { display: block; width: 22px; height: 22px; pointer-events: none; }
.back-to-top:hover { border-color: #9bc6aa; color: #1a5e41; box-shadow: 0 6px 17px rgba(13, 65, 37, .14); transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid #258957; outline-offset: 4px; }
@media (max-width: 699px) {
  .back-to-top { left: calc(10px + env(safe-area-inset-left, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top, .back-to-top:hover { transition: none; transform: none; }
}