/*
Theme Name: Tudobello
Template: blocksy
Description: Tema da loja B2B Tudobello (tema-filho do Blocksy): cabeçalho, rodapé, cartas de produto e página inicial próprios.
Version: 0.1.0
Text Domain: tudobello
*/

/* ===== Base ===== */
:root {
  --tb-verde: #8CC63F;
  --tb-verde-esc: #5E9223;
  --tb-verde-claro: #F2F7EA;
  --tb-preto: #181A19;
  --tb-texto: #3F4542;
  --tb-cinza: #7A817C;
  --tb-linha: #E6EAE2;
  --tb-fundo: #FAFBF8;
  --tb-raio: 14px;
  --tb-sombra: 0 10px 30px rgba(24, 26, 25, .08);
  --tb-largura: 1320px;
  --tb-letra: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { font-family: var(--tb-letra); color: var(--tb-texto); background: #fff; }
h1, h2, h3, h4, .page-title { font-family: var(--tb-letra); color: var(--tb-preto); letter-spacing: -.2px; }
a { transition: color .15s; }
.tb-wrap { max-width: var(--tb-largura); margin: 0 auto; padding: 0 24px; }
@media (max-width: 689px) { .tb-wrap { padding: 0 16px; } }
.tb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Barra de topo ===== */
.tb-topo { background: var(--tb-preto); color: #D9DED6; font-size: 13px; }
.tb-topo .tb-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.tb-topo-msgs { display: flex; gap: 22px; flex-wrap: wrap; }
.tb-topo-msgs span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--tb-verde); margin-right: 8px; vertical-align: middle; }
.tb-topo a { color: #fff; text-decoration: none; font-weight: 600; }
.tb-topo a:hover { color: var(--tb-verde); }
@media (max-width: 899px) { .tb-topo-msgs span:not(:first-child) { display: none; } }
@media (max-width: 599px) { .tb-topo .tb-wrap > div:last-child { display: none; } .tb-topo .tb-wrap { justify-content: center; font-size: 12px; } }
.tb-pesquisa { min-width: 0; box-sizing: border-box; }
.tb-pesquisa *, .tb-pesquisa *::before { box-sizing: border-box; }

/* ===== Cabeçalho ===== */
.tb-cab { background: #fff; border-bottom: 1px solid var(--tb-linha); position: sticky; top: 0; z-index: 50; }
.admin-bar .tb-cab { top: 32px; }
.tb-nav-extra { display: none; }
@media (max-width: 999px) {
  /* O id evita que a regra #header do Blocksy anule o cabeçalho fixo. */
  #header.tb-cab { position: sticky; top: 0; }
  .admin-bar #header.tb-cab { top: 32px; }
}
@media (max-width: 782px) { .admin-bar #header.tb-cab { top: 46px; } }
@media (max-width: 600px) { .admin-bar #header.tb-cab { top: 0; } }
@media (min-width: 1000px) {
  /* Em computador só o menu fica preso ao topo; o logótipo aparece nele quando o principal sai de vista. */
  /* Em computador o cabeçalho não fica fixo: sem o desvio de 32 px da barra de administração, que o punha por cima do menu. */
  .tb-cab, .admin-bar .tb-cab { position: relative; top: 0; border-bottom: 0; }
  .tb-nav { position: sticky; top: 0; z-index: 49; background: #fff; border-bottom: 1px solid var(--tb-linha); transition: box-shadow .2s; }
  .admin-bar .tb-nav { top: 32px; }
  .tb-nav.tb-nav-preso { box-shadow: 0 6px 18px rgba(24, 26, 25, .08); }
  .tb-nav > .tb-wrap { display: flex; align-items: center; justify-content: space-between; }
  /* A margem negativa desconta o espaço à direita do último item do menu, para o centrado ser medido a partir do texto. */
  .tb-nav-extra { display: flex; align-items: center; flex: 1 1 auto; margin-left: -14px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .2s, transform .2s, visibility .2s; }
  .tb-nav-preso .tb-nav-extra { opacity: 1; visibility: visible; transform: none; }
  .tb-nav-extra .tb-icones { margin-inline: auto; }
  .tb-nav-extra .tb-icone { padding: 3px 10px; }
  .tb-nav-extra .tb-icone strong { max-width: 120px; }
  .tb-nav-logo { display: block; flex: none; }
  .tb-nav-logo img { display: block; height: 32px; width: auto; }
}
/* Sem largura para tudo: primeiro saem os textos, depois a conta; o carrinho fica sempre. */
@media (min-width: 1000px) and (max-width: 1319px) {
  .tb-nav-extra .tb-icone small, .tb-nav-extra .tb-icone strong { display: none; }
  .tb-nav-extra .tb-icone { gap: 0; }
}
@media (min-width: 1000px) and (max-width: 1099px) {
  .tb-nav-extra .tb-conta { display: none; }
}
.tb-cab-linha { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 14px 0; }
.tb-logo img { height: 52px; width: auto; display: block; }
.tb-pesquisa { max-width: 640px; width: 100%; justify-self: center; }
.tb-pesquisa .dgwt-wcas-search-wrapp { max-width: none; }
.tb-pesquisa .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input { height: 46px; border-radius: 999px; border: 1.5px solid var(--tb-linha); background: var(--tb-fundo); padding-left: 58px !important; font-size: 15px; }
.tb-pesquisa .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:focus { border-color: var(--tb-verde); background: #fff; }
/* Lupa centrada na vertical dentro da caixa, à esquerda; o texto começa depois dela. */
.tb-pesquisa .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit { border-radius: 999px; background: var(--tb-verde) !important; width: 38px !important; height: 38px !important; min-width: 38px; top: 50% !important; left: 14px !important; right: auto !important; margin: 0 !important; padding: 0 !important; transform: translateY(-50%); display: flex !important; align-items: center; justify-content: center; }
.tb-pesquisa .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit svg { margin: 0 !important; position: static !important; }
.tb-pesquisa .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::before { display: none; }
.tb-icones { display: flex; align-items: center; gap: 6px; }
.tb-icone { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--tb-preto); text-decoration: none; line-height: 1.15; }
.tb-icone:hover { background: var(--tb-verde-claro); color: var(--tb-preto); }
.tb-icone svg { width: 24px; height: 24px; flex: none; }
.tb-icone small { display: block; font-size: 11px; color: var(--tb-cinza); }
.tb-icone strong { display: block; font-size: 14px; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-carrinho { position: relative; }
.tb-carrinho-n { position: absolute; top: 2px; right: calc(100% - 42px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--tb-verde); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tb-menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--tb-preto); cursor: pointer; }
.tb-menu-btn svg { width: 26px; height: 26px; }

/* Navegação */
.tb-nav { border-top: 1px solid var(--tb-linha); }
.tb-nav > .tb-wrap > ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tb-nav li { position: relative; list-style: none; }
.tb-nav > .tb-wrap > ul > li > a { display: block; padding: 13px 14px; font-size: 14px; font-weight: 600; color: var(--tb-preto); text-decoration: none; letter-spacing: .2px; }
.tb-nav > .tb-wrap > ul > li > a:hover, .tb-nav li.current-menu-item > a, .tb-nav li.current-menu-ancestor > a { color: var(--tb-verde-esc); }
.tb-nav > .tb-wrap > ul > li.menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.tb-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 230px; padding: 10px; margin: 0; background: #fff; border: 1px solid var(--tb-linha); border-radius: var(--tb-raio); box-shadow: var(--tb-sombra); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility 0s linear .15s; z-index: 60; }
/* Só abre se o cursor parar na categoria: ao atravessar o menu a caminho da página, não abre. */
.tb-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s .3s, transform .15s .3s, visibility 0s linear .3s; }
.tb-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.tb-nav .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--tb-texto); text-decoration: none; }
.tb-nav .sub-menu a:hover { background: var(--tb-verde-claro); color: var(--tb-preto); }
.tb-nav li.tb-destaque > a { color: #C0392B !important; }
/* Marcas: menu em colunas */
.tb-nav li.tb-marcas-menu > .sub-menu { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); width: 560px; }

@media (max-width: 999px) {
  .tb-cab-linha { grid-template-columns: auto 1fr auto; gap: 10px; padding: 10px 0; }
  .tb-menu-btn { display: block; order: -1; }
  .tb-logo img { height: 40px; }
  .tb-pesquisa { grid-column: 1 / -1; order: 5; max-width: none; }
  .tb-icone small, .tb-icone strong { display: none; }
  .tb-nav { display: none; }
  .tb-nav.aberto { display: block; position: fixed; inset: 0 auto 0 0; width: min(86vw, 360px); background: #fff; z-index: 100; overflow-y: auto; box-shadow: var(--tb-sombra); border: 0; padding-top: 12px; }
  .tb-nav.aberto > .tb-wrap > ul { flex-direction: column; }
  .tb-nav.aberto .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; display: block; width: auto; }
  .tb-nav.aberto > .tb-wrap > ul > li > a::after { display: none; }
  .tb-nav.aberto li { display: block !important; width: 100%; border-bottom: 1px solid var(--tb-linha); }
  .tb-nav.aberto .sub-menu li { border: 0; }
  .tb-nav.aberto li.tb-marcas-menu > .sub-menu { display: block !important; width: auto; }
  .tb-nav.aberto > .tb-wrap > ul > li > a { padding: 14px 4px; font-size: 16px; }
  .tb-sombra-menu { display: none; position: fixed; inset: 0; background: rgba(24, 26, 25, .45); z-index: 99; }
  .tb-sombra-menu.aberto { display: block; }
}

/* ===== Título das listagens ===== */
.woocommerce-shop .hero-section, .tax-product_cat .hero-section, .tax-product_brand .hero-section { padding: 0 !important; min-height: 0 !important; background: none !important; }
.tax-product_cat .hero-section .entry-header, .tax-product_brand .hero-section .entry-header, .woocommerce-shop .hero-section .entry-header { max-width: var(--tb-largura); padding: 28px 24px 0; text-align: left; }
.hero-section .page-title { font-size: 32px; margin: 0; }
.hero-section[data-type="type-2"] { --min-height: 0px; }
.hero-section[data-type="type-2"] > .entry-header { min-height: 0 !important; padding: 26px 0 0 !important; align-items: flex-start !important; text-align: left !important; }
.hero-section[data-type="type-2"] > .entry-header, .tb-wrap-hero { max-width: var(--tb-largura); margin: 0 auto; }
[data-vertical-spacing] { --theme-content-vertical-spacing: 26px; }
.tb-filtros select { width: auto; max-width: 260px; flex: none; }
.hero-section .page-description, .term-description { color: var(--tb-cinza); }

/* ===== Barra de filtros ===== */
.tb-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 22px; }
.tb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--tb-linha); background: #fff; font-size: 14px; color: var(--tb-texto); text-decoration: none; white-space: nowrap; }
.tb-chip:hover { border-color: var(--tb-verde); color: var(--tb-preto); }
.tb-chip.ativo { background: var(--tb-preto); border-color: var(--tb-preto); color: #fff; }
.tb-chip small { color: var(--tb-cinza); font-size: 12px; }
.tb-chip.ativo small { color: #C9CEC6; }
.tb-filtros select { height: 38px; border-radius: 999px; border: 1.5px solid var(--tb-linha); padding: 0 34px 0 14px; font-size: 14px; background-color: #fff; }
.tb-filtros .tb-sep { flex: 1; }
.woo-listing-top { margin-bottom: 18px; }

/* ===== Cartas de produto ===== */
ul.products { --grid-columns-gap: 22px; }
ul.products li.product { background: #fff; border: 1px solid var(--tb-linha); border-radius: var(--tb-raio); padding: 12px 12px 16px !important; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; text-align: left !important; }
ul.products li.product:hover { box-shadow: var(--tb-sombra); transform: translateY(-2px); border-color: #D7DED0; }
ul.products li.product figure { width: 100%; margin: 0 0 12px !important; border-radius: 10px; overflow: hidden; background: #fff; }
@media (min-width: 1100px) {
  ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
ul.products li.product figure img { aspect-ratio: 1 / 1 !important; object-fit: contain; width: 100%; }
ul.products li.product .entry-meta { display: none; }
[data-products] .product, ul.products li.product { --horizontal-alignment: flex-start; --text-horizontal-alignment: left; text-align: left; }
ul.products li.product .tb-b2b, ul.products li.product .tb-card-cores { justify-content: flex-start; }
.tb-card-marca { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--tb-verde-esc); margin: 0 0 4px; }
ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; font-weight: 600; line-height: 1.35; margin: 0 0 6px; min-height: 2.7em; }
ul.products li.product .woocommerce-loop-product__title a { color: var(--tb-preto); }
.tb-card-cores { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tb-cinza); margin: 0 0 6px; }
.tb-card-cores i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); margin-right: -9px; }
.tb-card-cores i:last-of-type { margin-right: 4px; }
ul.products li.product .tb-b2b { justify-content: flex-start; margin: 2px 0 8px; }
ul.products li.product .ct-woo-card-actions { margin: auto 0 0 !important; border: 0 !important; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
ul.products li.product .ct-woo-card-actions .price { padding: 0; }
.tb-sem-acesso ul.products li.product .ct-woo-card-actions .button, ul.products li.product.outofstock .ct-woo-card-actions .button { display: none; }
.out-of-stock-badge { background: #181A19 !important; color: #fff !important; border-radius: 999px !important; font-size: 12px !important; padding: 3px 10px !important; width: auto !important; height: auto !important; }
.tb-sem-stock { font-size: 12px; font-weight: 700; color: #B3261E; white-space: nowrap; }
.single-product .stock.out-of-stock { font-weight: 700; color: #B3261E; }
ul.products li.product .ct-woo-card-actions .button { background: var(--tb-verde-esc) !important; color: #fff !important; border: 0 !important; }
ul.products li.product .ct-woo-card-actions .button:hover { background: var(--tb-preto) !important; color: #fff !important; }
ul.products li.product .ct-woo-card-actions .added_to_cart { color: var(--tb-verde-esc) !important; background: none !important; padding: 0; font-size: 13px; font-weight: 600; opacity: 1 !important; visibility: visible !important; white-space: nowrap; }
/* Com rato: barra por cima do fundo da imagem, visível ao passar o cursor no cartão. */
@media (hover: hover) and (min-width: 690px) {
  ul.products li.product { container-type: inline-size; position: relative; }
  ul.products li.product .ct-woo-card-actions { position: static !important; justify-content: space-between; }
  ul.products li.product .ct-woo-card-actions .price { margin-right: auto; }
  ul.products li.product .ct-woo-card-actions .button { position: absolute; top: calc(12px + 100cqw - 42px); left: 12px; width: 100cqw; height: 42px; padding: 0 8px; display: flex; align-items: center; justify-content: center; border-radius: 0 0 10px 10px !important; background: var(--tb-preto) !important; opacity: 0; transition: opacity .15s, background .15s; z-index: 3; }
  ul.products li.product:hover .ct-woo-card-actions .button, ul.products li.product:focus-within .ct-woo-card-actions .button { opacity: 1; }
  ul.products li.product .ct-woo-card-actions .button:hover { background: var(--tb-verde-esc) !important; }
}
/* Sem rato (telemóvel e tablet): botão sempre visível, a toda a largura. */
@media (hover: none), (max-width: 689px) {
  ul.products li.product .ct-woo-card-actions { flex-wrap: wrap !important; }
  ul.products li.product .ct-woo-card-actions .price { flex: 1 1 100%; }
  ul.products li.product .ct-woo-card-actions .button { flex: 1 1 100%; width: 100%; display: flex; align-items: center; justify-content: center; border-radius: 10px !important; padding: 10px 6px; line-height: 1.2; text-align: center; }
}
ul.products li.product .price { font-size: 17px; font-weight: 700; color: var(--tb-preto); }
ul.products li.product .price del { font-size: 13px; font-weight: 400; color: var(--tb-cinza); }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .woocommerce-price-suffix { font-size: 11px; font-weight: 500; color: var(--tb-cinza); }
ul.products li.product .button { border-radius: 999px; padding: 8px 14px; font-size: 13px; min-height: 0; }
.onsale, span.onsale { background: #181A19 !important; color: #fff !important; border-radius: 999px !important; font-size: 12px !important; padding: 3px 10px !important; }

@media (max-width: 689px) {
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  ul.products li.product { padding: 8px 8px 12px !important; }
  ul.products li.product .woocommerce-loop-product__title { font-size: 13px !important; }
  ul.products li.product .tb-b2b span { font-size: 11px; padding: 1px 6px; }
  ul.products li.product .price { font-size: 15px; }
  .tb-pesquisa { padding: 0 2px; }
  .hero-section .page-title { font-size: 26px; }
}

/* Imagem provisória (sem fotografia) */
.tb-ph { width: 100%; aspect-ratio: 1 / 1; display: block; }

/* ===== Página de produto ===== */
.single-product .tb-prod-marca { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.single-product .tb-prod-marca a { color: var(--tb-verde-esc); text-decoration: none; }
.single-product .product_title { font-size: 30px; line-height: 1.2; }
.single-product .summary .price { font-size: 26px; font-weight: 700; color: var(--tb-preto); }
.single-product .woocommerce-product-gallery { border-radius: var(--tb-raio); overflow: hidden; background: #fff; }
.single-product .product-entry-wrapper { --product-gallery-width: 34%; }
.single-product .woocommerce-product-gallery .ct-media-container,
.single-product .woocommerce-product-gallery .ct-media-container img { aspect-ratio: 1 / 1 !important; object-fit: contain; }
@media (max-width: 689px) {
  .single-product .woocommerce-product-gallery { max-width: 300px; margin-inline: auto; }
}
.single-product .variations .woo-variation-items-wrapper .button-variable-item { border-radius: 999px !important; padding: 0 12px !important; }
.single-product .variations td, .single-product .variations th { padding-bottom: 6px; }
.woocommerce-tabs .tabs li a { font-weight: 600; }

/* ===== Botões ===== */
.button, button.button, .wp-element-button, input[type=submit], .single_add_to_cart_button, .checkout-button { border-radius: 999px !important; font-weight: 600 !important; }

/* ===== Página inicial ===== */
.home .hero-section { display: none; }
.home main#main { padding-top: 0; }
.tb-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 20%, rgba(140,198,63,.22), transparent 60%), linear-gradient(135deg, #181A19 0%, #232724 100%); color: #fff; }
.tb-hero .tb-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; min-height: 440px; padding-top: 48px; padding-bottom: 48px; }
.tb-hero-eti { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(140,198,63,.16); color: var(--tb-verde); font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.tb-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); line-height: 1.08; margin: 18px 0 14px; font-weight: 800; }
.tb-hero h1 em { font-style: normal; color: var(--tb-verde); }
.tb-hero p { color: #C9CEC6; font-size: 17px; max-width: 540px; }
.tb-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.tb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; transition: .15s; }
.tb-btn-verde { background: var(--tb-verde); color: var(--tb-preto); }
.tb-btn-verde:hover { background: #9fd45a; color: var(--tb-preto); }
.tb-btn-linha { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.tb-btn-linha:hover { background: #fff; color: var(--tb-preto); }
.tb-hero-num { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tb-hero-num div { padding: 22px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.tb-hero-num strong { display: block; font-size: 34px; color: #fff; line-height: 1; }
.tb-hero-num span { font-size: 13px; color: #AEB5AB; }
.tb-folha { position: absolute; right: -60px; bottom: -80px; width: 340px; opacity: .08; pointer-events: none; }
@media (max-width: 899px) { .tb-hero .tb-wrap { grid-template-columns: 1fr; min-height: 0; } }

.tb-hero, .tb-promo-faixa { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.home .entry-content > .tb-wrap, .home .entry-content > * { max-width: none; }
.home .entry-content { margin-top: 0; }
.tb-promo-faixa svg { width: 20px; height: 20px; color: var(--tb-verde-esc); flex: none; }
.tb-promo-faixa { background: var(--tb-verde-claro); border-bottom: 1px solid #E1EBD3; }
.tb-promo-faixa .tb-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; font-size: 15px; color: var(--tb-preto); text-align: center; flex-wrap: wrap; }
.tb-promo-faixa strong { color: var(--tb-verde-esc); }

.tb-secao { padding: 56px 0 8px; }
.tb-secao-cab { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.tb-secao-cab h2 { font-size: 28px; margin: 0; }
.tb-secao-cab a { font-weight: 600; color: var(--tb-verde-esc); text-decoration: none; white-space: nowrap; }

.tb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tb-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 22px 10px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--tb-linha); text-decoration: none; color: var(--tb-preto); transition: .18s; }
.tb-cat:hover { background: #fff; box-shadow: var(--tb-sombra); transform: translateY(-3px); color: var(--tb-preto); border-color: #D7DED0; }
.tb-cat-ic { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--tb-verde-esc); box-shadow: inset 0 0 0 1px var(--tb-linha); }
.tb-cat:hover .tb-cat-ic { background: var(--tb-verde); color: #fff; }
.tb-cat-ic svg { width: 30px; height: 30px; }
.tb-cat strong { font-size: 15px; }
.tb-cat small { color: var(--tb-cinza); font-size: 12px; }

.tb-marcas-grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tb-marca-cart { height: 84px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--tb-linha); background: #fff; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tb-preto); text-decoration: none; font-size: 15px; transition: .15s; padding: 0 10px; text-align: center; }
.tb-marca-cart:hover { border-color: var(--tb-verde); color: var(--tb-verde-esc); box-shadow: var(--tb-sombra); }

.tb-vantagens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 56px 0; }
.tb-vant { padding: 22px; border-radius: 18px; background: var(--tb-fundo); border: 1px solid var(--tb-linha); }
.tb-vant svg { width: 30px; height: 30px; color: var(--tb-verde-esc); margin-bottom: 10px; }
.tb-vant strong { display: block; color: var(--tb-preto); margin-bottom: 4px; font-size: 16px; }
.tb-vant p { margin: 0; font-size: 14px; color: var(--tb-cinza); line-height: 1.5; }
@media (max-width: 899px) { .tb-vantagens { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tb-vantagens { grid-template-columns: 1fr; } }

.tb-cta { margin: 0 0 56px; border-radius: 22px; padding: 36px; background: linear-gradient(120deg, var(--tb-verde) 0%, #A9D86B 100%); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--tb-preto); }
.tb-cta h2 { margin: 0 0 6px; font-size: 26px; }
.tb-cta p { margin: 0; }
.tb-cta .tb-btn { background: var(--tb-preto); color: #fff; }

/* ===== Rodapé ===== */
.tb-rodape { background: var(--tb-preto); color: #AEB5AB; font-size: 14px; margin-top: 40px; }
.tb-rodape-grelha { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 52px 0 36px; }
.tb-rodape h4 { color: #fff; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 14px; }
.tb-rodape ul { list-style: none; margin: 0; padding: 0; }
.tb-rodape li { margin: 0 0 8px; }
.tb-rodape a { color: #D9DED6; text-decoration: none; }
.tb-rodape a:hover { color: var(--tb-verde); }
.tb-rodape-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; }
.tb-rodape-logo img { height: 40px; width: auto; display: block; }
.tb-rodape-base { border-top: 1px solid rgba(255,255,255,.08); }
.tb-rodape-base .tb-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 13px; }
.tb-pag { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-pag span { padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; font-size: 12px; font-weight: 600; }
@media (max-width: 899px) { .tb-rodape-grelha { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tb-rodape-grelha { grid-template-columns: 1fr; } }
