/* GYNJET — Black Friday 2026 — AUDITORIA VISUAL v2 (06/11/2026).
   Em teste: carrega só para admin logado ou com ?gjv2=1 (seção 10 do plugin).
   PARTE B = página do produto · PARTE C = home · PARTE D = uma cara só.
   Metas de contraste iguais às da campanha: 4,5:1 pequeno, 3:1 grande. */

/* =====================================================================
 * B1) ABAS DO PRODUTO (Descrição · Informação adicional · Avaliações)
 * ===================================================================== */
body.gj-bf .woocommerce-tabs ul.wc-tabs {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: visible !important;
}
/* a "linha solta" em cima era o ::before/::after decorativo do Astra/Woo */
body.gj-bf .woocommerce-tabs ul.wc-tabs::before,
body.gj-bf .woocommerce-tabs ul.wc-tabs::after,
body.gj-bf .woocommerce-tabs ul.wc-tabs li::before,
body.gj-bf .woocommerce-tabs ul.wc-tabs li::after {
	display: none !important;
	content: none !important;
}
body.gj-bf .woocommerce-tabs ul.wc-tabs li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	border-radius: 0;
}
body.gj-bf .woocommerce-tabs ul.wc-tabs li a {
	display: block;
	padding: 12px 20px !important;
	border-radius: 12px 12px 0 0;
	background: var(--bf-card) !important;
	color: var(--bf-muted) !important;
	border: 1px solid var(--bf-card-borda) !important;
	border-bottom: 0 !important;
	font-weight: 700;
	line-height: 1.3;
}
body.gj-bf .woocommerce-tabs ul.wc-tabs li a:hover,
body.gj-bf .woocommerce-tabs ul.wc-tabs li a:focus-visible {
	color: var(--bf-text) !important;
	background: #17243b !important;
}
body.gj-bf .woocommerce-tabs ul.wc-tabs li.active a {
	background: var(--bf-yellow) !important;
	color: var(--bf-ink) !important;
	border-color: var(--bf-yellow) !important;
}
/* painel do conteúdo */
body.gj-bf .woocommerce-tabs .woocommerce-Tabs-panel {
	background: var(--bf-card) !important;
	border: 1px solid var(--bf-card-borda) !important;
	border-radius: 0 16px 16px 16px;
	padding: 32px !important;
	margin: 0 0 40px;
}
body.gj-bf .woocommerce-Tabs-panel :is(p, ul, ol, h2, h3, h4, table) { max-width: 75ch; }
body.gj-bf .woocommerce-Tabs-panel table { max-width: 100%; }
body.gj-bf .woocommerce-Tabs-panel :is(h2, h3, h4, strong, b) { color: var(--bf-text) !important; }
body.gj-bf .woocommerce-Tabs-panel :is(p, li, span, small, em, td, dd) { color: var(--bf-muted); }
@media (max-width: 768px) {
	body.gj-bf .woocommerce-tabs ul.wc-tabs { flex-wrap: nowrap; overflow-x: auto !important; padding-bottom: 2px !important; }
	body.gj-bf .woocommerce-tabs ul.wc-tabs li { flex: 0 0 auto; }
	body.gj-bf .woocommerce-tabs ul.wc-tabs li a { white-space: nowrap; }
	body.gj-bf .woocommerce-tabs .woocommerce-Tabs-panel { padding: 20px !important; border-radius: 0 12px 12px 12px; }
}

/* =====================================================================
 * B2) TABELA "INFORMAÇÃO ADICIONAL" (Peso/Dimensões estavam em #1e293b)
 * ===================================================================== */
body.gj-bf table.woocommerce-product-attributes {
	width: 100%;
	border-collapse: separate !important;
	border-spacing: 0;
	border: 1px solid var(--bf-card-borda);
	border-radius: 12px;
	overflow: hidden;
	margin: 0;
}
body.gj-bf .woocommerce-product-attributes tr th,
body.gj-bf .woocommerce-product-attributes tr td {
	padding: 14px 18px !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
	background: transparent !important;
	text-align: left;
}
body.gj-bf .woocommerce-product-attributes tr:last-child :is(th, td) { border-bottom: 0 !important; }
body.gj-bf .woocommerce-product-attributes tr:nth-child(even) :is(th, td) { background: rgba(255, 255, 255, .03) !important; }
body.gj-bf .woocommerce-product-attributes-item__label {
	width: 34%;
	color: var(--bf-muted) !important;
	font-weight: 700 !important;
}
body.gj-bf .woocommerce-product-attributes-item__value,
body.gj-bf .woocommerce-product-attributes-item__value p {
	color: var(--bf-text) !important;
	font-style: normal !important;
	margin: 0;
}
@media (max-width: 600px) {
	body.gj-bf .woocommerce-product-attributes :is(th, td) { display: block; width: 100% !important; }
	body.gj-bf .woocommerce-product-attributes th { padding-bottom: 2px !important; border-bottom: 0 !important; }
	body.gj-bf .woocommerce-product-attributes td { padding-top: 0 !important; }
	body.gj-bf .woocommerce-product-attributes tr:nth-child(even) th { background: rgba(255, 255, 255, .03) !important; }
}

/* =====================================================================
 * B3) AVALIAÇÕES — rótulos, campos e estrelas legíveis no escuro
 * ===================================================================== */
body.gj-bf #reviews :is(label, .comment-reply-title, .woocommerce-noreviews, .comment-form-rating label) {
	color: var(--bf-text) !important;
}
body.gj-bf #reviews :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	background: #0d1526 !important;
	border: 1px solid rgba(255, 255, 255, .18) !important;
	border-radius: 10px !important;
	color: #fff !important;
	box-shadow: none !important;
}
body.gj-bf #reviews p.stars a { color: var(--bf-yellow) !important; }
body.gj-bf #reviews .star-rating,
body.gj-bf #reviews .star-rating::before { color: var(--bf-yellow) !important; }
body.gj-bf #reviews :is(.form-submit input[type="submit"], #submit, button[type="submit"]) {
	background: var(--bf-orange) !important;
	color: var(--bf-ink) !important;
	border-color: var(--bf-orange) !important;
	font-weight: 800;
}
body.gj-bf #reviews .comment_container {
	background: var(--bf-card);
	border: 1px solid var(--bf-card-borda);
	border-radius: 12px;
	padding: 14px 16px;
}
body.gj-bf #reviews :is(.comment-text p, .meta, .woocommerce-review__author, .woocommerce-review__published-date) {
	color: var(--bf-muted) !important;
}
body.gj-bf #reviews .woocommerce-review__author { color: var(--bf-text) !important; }
body.gj-bf #reviews .commentlist li img.avatar { border-radius: 50%; }

/* =====================================================================
 * B4) SELO "Black Friday · até 02/12" dentro do resumo, alinhado ao título
 *     (o PHP mudou o hook; aqui só o respiro)
 * ===================================================================== */
body.gj-bf-campanha .gjbf-selo--resumo {
	display: inline-block;
	margin: 0 0 14px;
	position: static;
}

/* =====================================================================
 * B5) RELACIONADOS — um selo só e colunas alinhadas
 * ===================================================================== */
/* o selo "Oferta"/onsale do tema some quando o card já tem o selo BF */
body.gj-bf-campanha li.product:has(.gjbf-selo--flash) .ast-onsale-card,
body.gj-bf-campanha li.product:has(.gjbf-selo--flash) span.onsale:not(.gjbf-selo--flash) {
	display: none !important;
}
/* categoria, título, preço e botão na mesma altura */
body.gj-bf :is(.related, .up-sells) li.product { display: flex; flex-direction: column; height: 100%; }
body.gj-bf :is(.related, .up-sells) li.product .astra-shop-summary-wrap {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
}
body.gj-bf :is(.related, .up-sells) li.product .ast-woo-product-category { min-height: 1.5em; margin-bottom: 2px; }
body.gj-bf :is(.related, .up-sells) li.product .woocommerce-loop-product__title { min-height: 2.75em; line-height: 1.35; }
body.gj-bf :is(.related, .up-sells) li.product .price { min-height: 3.6em; display: block; }
body.gj-bf :is(.related, .up-sells) li.product .astra-shop-summary-wrap > .button {
	margin-top: auto !important;
	align-self: stretch;
	text-align: center;
}

/* =====================================================================
 * B6) 4 SELOS DO PRODUTO + NOTA DA GARANTIA — padrão de cartão escuro
 * ===================================================================== */
body.gj-bf .rg-product-badges .rg-badge {
	background: var(--bf-card) !important;
	border: 1px solid var(--bf-card-borda) !important;
	border-radius: 14px;
}
body.gj-bf .rg-product-badges .rg-badge strong { color: var(--bf-text) !important; }
body.gj-bf .rg-product-badges .rg-badge span { color: var(--bf-muted) !important; }
body.gj-bf .rg-product-badges .rg-badge__icon {
	background: rgba(245, 255, 72, .12) !important;
	color: var(--bf-yellow) !important;
}
/* a nota da garantia é um div com estilo embutido (facil-dtf-kits.php) */
body.gj-bf div[style*="F5F8FB"] {
	background: var(--bf-card) !important;
	color: var(--bf-text) !important;
	border-left-color: var(--bf-yellow) !important;
}
body.gj-bf div[style*="F5F8FB"] strong { color: var(--bf-text) !important; }

/* =====================================================================
 * C1) ATALHOS (#atalhos) — mídia escura, ícones visíveis, título no escuro
 *     Causa: o "foto fica no branco" genérico pintava a mídia toda de #fff.
 * ===================================================================== */
body.gj-bf #atalhos .rg-cb__img { background: transparent !important; border-radius: 0; }
body.gj-bf #atalhos .rg-cb__card { border: 1px solid var(--bf-card-borda) !important; }
body.gj-bf #atalhos .rg-cb__card--icon { background: linear-gradient(135deg, #00316f, #0a5bc4) !important; }
body.gj-bf #atalhos .rg-cb__card--2.rg-cb__card--icon { background: linear-gradient(135deg, #7c2d12, #c2410c) !important; }
body.gj-bf #atalhos .rg-cb__card--3.rg-cb__card--icon { background: linear-gradient(135deg, #3b0764, #6d28d9) !important; }
/* card 4 = foto da L3250 pronta (PHP trocou a da L1800); foto lê melhor no branco */
body.gj-bf #atalhos .rg-cb__card--4 { background: var(--bf-card) !important; }
body.gj-bf #atalhos .rg-cb__card--4 .rg-cb__img { background: #fff !important; }
/* ícone: círculo bem visível + traço amarelo */
body.gj-bf #atalhos .rg-cb__icon { background: rgba(7, 11, 24, .45) !important; }
body.gj-bf #atalhos .rg-cb__icon svg { stroke: var(--bf-yellow) !important; color: var(--bf-yellow) !important; }
/* título sempre sobre fundo escuro: o véu começa mais cedo e fecha mais forte */
body.gj-bf #atalhos .rg-cb__card::after {
	background: linear-gradient(180deg, rgba(7, 11, 24, 0) 24%, rgba(7, 11, 24, .55) 44%, rgba(7, 11, 24, .94) 66%) !important;
}
body.gj-bf #atalhos .rg-cb__body :is(strong, span) { color: #fff !important; }
body.gj-bf #atalhos .rg-cb__body em { color: var(--bf-yellow) !important; }

/* =====================================================================
 * C2) FAIXA DE CONFIANÇA — itens do mesmo tamanho, ícone e texto maiores,
 *     4 colunas (2 no celular)
 * ===================================================================== */
body.gj-bf .rg-selos--v2 .rg-selos__row {
	display: grid !important;              /* o tema usa flex no desktop: o 4º item caía sozinho na linha de baixo */
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 14px !important;
	align-items: stretch;
	padding: 18px 20px;
}
body.gj-bf .rg-selos--v2 .rg-selo { padding: 16px 18px; height: 100%; }
body.gj-bf .rg-selos--v2 .rg-selo__icon { flex: 0 0 52px; width: 52px; height: 52px; }
body.gj-bf .rg-selos--v2 .rg-selo__icon svg { width: 26px; height: 26px; }
body.gj-bf .rg-selos--v2 .rg-selo strong { font-size: 16px !important; }
body.gj-bf .rg-selos--v2 .rg-selo span { font-size: 13.5px !important; }
@media (max-width: 1024px) {
	body.gj-bf .rg-selos--v2 .rg-selos__row { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
	body.gj-bf .rg-selos--v2 .rg-selos__row { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; padding: 14px 16px; }
	body.gj-bf .rg-selos--v2 .rg-selo { padding: 12px 12px; }
	body.gj-bf .rg-selos--v2 .rg-selo__icon { flex-basis: 42px; width: 42px; height: 42px; }
}

/* =====================================================================
 * C3) SETAS DOS CARROSSÉIS — fora dos cards no desktop, escondidas no celular
 *     (só os carrosséis de produto [data-car]; as setas do hero ficam)
 * ===================================================================== */
@media (min-width: 1025px) {
	body.gj-bf .rg-car[data-car] { padding: 0 60px; }
	body.gj-bf .rg-car[data-car] > .rg-car__arrow--prev { left: 2px; }
	body.gj-bf .rg-car[data-car] > .rg-car__arrow--next { right: 2px; }
}
@media (max-width: 1024px) {
	body.gj-bf .rg-car[data-car] > .rg-car__arrow { display: none !important; }
}

/* =====================================================================
 * C4) CELULAR
 * ===================================================================== */
/* a) linha neon diagonal do hero não passa por cima do texto */
@media (max-width: 768px) {
	body.gj-bf .gjbf-hero::before { display: none !important; }
}
/* b) ícones de busca, carrinho e menu na cor do texto */
body.gj-bf-campanha :is(.astra-search-icon, .ast-search-icon, .ast-site-header-cart a,
	.ast-site-header-cart .ast-icon, .ast-header-navigation-arrow,
	.ast-mobile-menu-trigger-minimal, .ast-mobile-menu-trigger-fill, .ast-mobile-menu-trigger-outline,
	.menu-toggle, .main-header-menu .menu-link .ast-icon) {
	color: var(--bf-text) !important;
}
body.gj-bf-campanha :is(.ast-site-header-cart svg, .astra-search-icon svg, .menu-toggle svg, .ast-mobile-svg) {
	fill: currentColor !important;
}
/* c) respiro embaixo do rodapé: WhatsApp flutuante e "voltar ao topo" não
      cobrem o CNPJ */
@media (max-width: 920px) {
	body.gj-bf-campanha :is(.site-footer, .rg-footer) { padding-bottom: 120px !important; }
}

/* =====================================================================
 * C5) RODAPÉ — ícone do relógio aparecia como ponto branco: o tema aplica
 *     fill:currentColor em todo svg do rodapé, mas os ícones de 24px são
 *     desenhados a TRAÇO (o relógio preenchido vira um círculo cheio).
 *     Só o do WhatsApp (viewBox 32) é desenhado a preenchimento.
 * ===================================================================== */
body.gj-bf-campanha :is(.rg-footer, .site-footer, .footer-adv) li svg:not([viewBox="0 0 32 32"]) {
	fill: none !important;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* =====================================================================
 * C6) RITMO ÚNICO ENTRE SEÇÕES — o #empresas somava margem 96px em cima e
 *     embaixo ao padding, dobrando o vão depois do Pit Stop; e a nota
 *     "Atendimento somente no balcão" empurrava mais 21px no fim da seção.
 * ===================================================================== */
body.gj-bf #primary .entry-content > #empresas {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: clamp(56px, 6.5vw, 96px) !important;
	padding-bottom: clamp(56px, 6.5vw, 96px) !important;
}
body.gj-bf .rg-sv__note { margin-bottom: 0 !important; }

/* =====================================================================
 * D) UMA CARA SÓ — cabeçalho e rodapé escuros em TODAS as páginas da
 *    campanha (o conteúdo das páginas claras continua claro)
 * ===================================================================== */
body.gj-bf-campanha:not(.gj-bf) :is(.ast-primary-header-bar, .ast-above-header-bar, .ast-below-header-bar,
	.main-header-bar, .ast-mobile-header-wrap .ast-mobile-header-content) {
	background: #080f1d;
	border-color: #22304a;
}
body.gj-bf-campanha:not(.gj-bf) :is(.main-header-menu .menu-link, .ast-header-account-wrap a,
	.ast-site-header-cart a, .ast-above-header-bar a, .ast-above-header-bar .ast-builder-html-element) {
	color: var(--bf-text);
}
body.gj-bf-campanha:not(.gj-bf) .main-header-menu .sub-menu { background: #101b30; border-color: #22304a; }
body.gj-bf-campanha:not(.gj-bf) .main-header-menu .menu-link:hover { color: var(--bf-yellow); background: #17243b; }
body.gj-bf-campanha:not(.gj-bf) .custom-logo-link {
	display: inline-block;
	background: #fff;
	padding: 6px 10px;
	border-radius: 8px;
}
body.gj-bf-campanha:not(.gj-bf) :is(input[type="search"], .search-field) { color: #14213a; background: #fff; }
body.gj-bf-campanha:not(.gj-bf) :is(.site-footer, .footer-adv, .ast-small-footer, .rg-footer) {
	background: #050810;
	border-top: 1px solid #22304a;
}
body.gj-bf-campanha:not(.gj-bf) :is(.site-footer, .rg-footer) :is(a, h2, h3, h4, .widget-title, .ast-footer-copyright) {
	color: var(--bf-text);
}
body.gj-bf-campanha:not(.gj-bf) :is(.site-footer, .rg-footer) :is(p, li, span, small, address) { color: var(--bf-muted); }
body.gj-bf-campanha:not(.gj-bf) :is(.site-footer, .rg-footer) :is(h2, h3, h4, .widget-title, strong, b) { color: var(--bf-text) !important; }
body.gj-bf-campanha:not(.gj-bf) :is(.site-footer, .rg-footer) li a { color: var(--bf-text); }
/* o selo do Google no rodapé é um cartão BRANCO: mantém as cores próprias
   (a regra de texto claro do rodapé escuro não pode vazar para ele) */
body.gj-bf-campanha :is(.site-footer, .rg-footer) .rg-gbadge.rg-gbadge,
body.gj-bf-campanha :is(.site-footer, .rg-footer) .rg-gbadge.rg-gbadge strong { color: #0f3d6e !important; }
body.gj-bf-campanha :is(.site-footer, .rg-footer) .rg-gbadge.rg-gbadge small { color: #475569 !important; }
body.gj-bf-campanha :is(.site-footer, .rg-footer) .rg-gbadge.rg-gbadge .rg-gbadge__g { color: #4285f4 !important; }
body.gj-bf-campanha :is(.site-footer, .rg-footer) .rg-gbadge.rg-gbadge .rg-gbadge__stars { color: #f59e0b !important; } /* decorativo — a nota 4,7 está escrita ao lado */

/* submenus e painéis do cabeçalho: a mesma correção AA da campanha escura,
   agora em toda página da campanha (o tema filho pinta #0f3d6e !important) */
body.gj-bf-campanha :is(.ast-below-header-bar, .main-header-menu, .ast-mobile-popup-content, .ast-mobile-header-content) .sub-menu .menu-link {
	color: var(--bf-text) !important;
}
body.gj-bf-campanha :is(.ast-below-header-bar, .main-header-menu, .ast-mobile-popup-content, .ast-mobile-header-content) .sub-menu .menu-link:hover,
body.gj-bf-campanha :is(.ast-below-header-bar, .main-header-menu, .ast-mobile-popup-content, .ast-mobile-header-content) .sub-menu .menu-link:focus-visible,
body.gj-bf-campanha :is(.ast-below-header-bar, .main-header-menu, .ast-mobile-popup-content, .ast-mobile-header-content) .sub-menu :is(.current-menu-item, .current_page_item) > .menu-link {
	color: var(--bf-yellow) !important;
	background: rgba(255, 255, 255, .06);
}
body.gj-bf-campanha .rg-hm__item:hover > .rg-hm__label,
body.gj-bf-campanha .rg-hm__item:focus-within > .rg-hm__label,
body.gj-bf-campanha .rg-hm__item:hover > .rg-hm__label span,
body.gj-bf-campanha .rg-hm__item:focus-within > .rg-hm__label span {
	background: var(--bf-card);
	color: var(--bf-yellow) !important;
}
body.gj-bf-campanha .rg-hm__label, body.gj-bf-campanha .rg-hm__label span { color: var(--bf-text); }
body.gj-bf-campanha .rg-hm__panel {
	background: var(--bf-card);
	border-color: var(--bf-card-borda);
	box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
}
body.gj-bf-campanha .rg-hm__panel a { color: var(--bf-text) !important; }
body.gj-bf-campanha .rg-hm__panel a svg { color: var(--bf-muted); }
body.gj-bf-campanha .rg-hm__panel a:hover,
body.gj-bf-campanha .rg-hm__panel a:focus-visible {
	background: rgba(255, 255, 255, .06);
	color: var(--bf-yellow) !important;
}
body.gj-bf-campanha .rg-hm__hint { color: var(--bf-muted) !important; border-top-color: var(--bf-card-borda); }
/* menu do celular escuro em toda página da campanha */
body.gj-bf-campanha :is(.ast-mobile-header-content, .ast-mobile-popup-drawer) .ast-mobile-popup-inner { background: #080f1d; }
body.gj-bf-campanha :is(.ast-mobile-header-content, .ast-mobile-popup-drawer) :is(.sub-menu, .menu-item, .main-header-menu) { background: #101b30 !important; }
body.gj-bf-campanha :is(.ast-mobile-header-content, .ast-mobile-popup-drawer) :is(.menu-link, .ast-menu-toggle) {
	color: var(--bf-text) !important;
	background: transparent !important;
}

/* /loja/ e categorias: sem selo duplo — o "Oferta" do tema some quando o
   card já tem o selo "Black Friday" (regra em B5, vale na campanha toda) */
