/* Catálogo de produtos: cabeçalho e barra fixa como as outras páginas de Soluções naturais; cada família com o tom do seu tema,
   cartões com fundo suave (sem bordas nem linhas) e pesquisa em campo suave. Os grupos ficam sempre na página: a pesquisa só os esconde. */
.category-group[data-tom="fertilidade"]     { --tom: #7a4d2b; --tom-suave: #f1e7de; }
.category-group[data-tom="correcao"]        { --tom: #5b6b73; --tom-suave: #e8edef; }
.category-group[data-tom="bioestimulantes"] { --tom: #2f6b3a; --tom-suave: #e6f0e3; }
.category-group[data-tom="microrganismos"]  { --tom: #2a7473; --tom-suave: #e1f0ef; }
.category-group[data-tom="pragas"]          { --tom: #a3472f; --tom-suave: #f6e5df; }
.category-group[data-tom="doencas"]         { --tom: #7d3350; --tom-suave: #f3e4e9; }
.category-group[data-tom="prevencao"]       { --tom: #1f6f8b; --tom-suave: #e2eff4; }
.category-group[data-tom="substratos"]      { --tom: #6f5d1f; --tom-suave: #f1ecd6; }

/* Destaque do separador ativo na barra fixa, na cor da família. */
html body #main .reading-nav a[href$="#cat-fertilidade"]     { --hero-accent: #7a4d2b; }
html body #main .reading-nav a[href$="#cat-correcao"]        { --hero-accent: #5b6b73; }
html body #main .reading-nav a[href$="#cat-bioestimulantes"] { --hero-accent: #2f6b3a; }
html body #main .reading-nav a[href$="#cat-microrganismos"]  { --hero-accent: #2a7473; }
html body #main .reading-nav a[href$="#cat-pragas"]          { --hero-accent: #a3472f; }
html body #main .reading-nav a[href$="#cat-doencas"]         { --hero-accent: #7d3350; }
html body #main .reading-nav a[href$="#cat-prevencao"]       { --hero-accent: #1f6f8b; }
html body #main .reading-nav a[href$="#cat-substratos"]      { --hero-accent: #6f5d1f; }
html body #main .reading-nav a.is-vazio { opacity: 0.4; }

/* Pesquisa: campo suave e a contagem ao lado. */
html body .catalogue-explorer { padding: 0 0 3rem !important; }
html body .catalogue-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 1.6rem; padding: 0.4rem 0 2rem; }
html body .catalogue-busca { display: grid; gap: 0.45rem; flex: 1 1 360px; max-width: 650px; }
html body .catalogue-tools label { margin: 0; color: #4f755c; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
html body .catalogue-tools input[type="search"] { max-width: none; width: 100%; padding: 0.95rem 1.2rem; border: 0 !important; border-radius: 14px; background: #f4f1e8 !important; box-shadow: none !important; color: #20342a; }
html body .catalogue-tools input[type="search"]:focus { outline: 2px solid #4f755c; outline-offset: 2px; }
html body #product-count { margin: 0 0 0.9rem; color: #646f66; font-size: 0.85rem; }

/* Famílias: sem linhas; o título e os cartões ganham o tom do tema. */
html body .catalogue-groups { display: block; }
html body .category-group { margin: 0 0 3.2rem; --tom: #4f755c; --tom-suave: #eef2ea; }
html body .category-group.is-vazio { height: 0; margin: 0; overflow: hidden; visibility: hidden; }
html body .category-banner { margin: 0 0 1.4rem; padding: 0; border-bottom: 0; }
html body .category-image { border-radius: 16px; }
html body .category-banner-body h2 { color: var(--tom); }
html body .category-count { color: #646f66; }
html body .product-card { border: 0; background: var(--tom-suave); border-radius: 16px; }
html body .product-card[hidden] { display: none; }
html body .product-card small:not(.is-available):not(.is-soon) { color: var(--tom); }
html body .product-card .product-refs { border-top: 0; padding-top: 0.4rem; }
html body .product-card .product-refs a, html body .product-card .card-action, html body .product-card h3 a:hover { color: var(--tom) !important; }
html body .product-card .card-action { font-weight: 700; }
html body .catalogue-empty { background: #f4f1e8; border-radius: 16px; }
html body .catalogue-empty[hidden] { display: none; }
html body .catalogue-empty button { margin-left: 0.4rem; }

/* «Relacionado» dentro do banner escuro: legível. */
html body .bio-banner-hero .topic-back-links { margin: 1.1rem 0 0; color: #c9d8cd; }
html body .bio-banner-hero .topic-back-links a { --cap: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5) !important; color: #fff !important; }
html body .bio-banner-hero .topic-back-links a:hover, html body .bio-banner-hero .topic-back-links a:focus-visible { background: #fff; color: #173825 !important; }
