/*
Theme Name: Tá Fixe
Version: 1.14.12
*/

/* =========================================================================
   1. Tokens de design
   ========================================================================= */
:root {
	/* Cor da marca = ROXO do logótipo (ação: títulos, pesquisa, links, botões).
	   Base neutra p/ a hierarquia aguentar a preto e branco. */
	--brand:        #8a34d1;
	--brand-600:    #7226b0;
	--brand-ink:    #ffffff;

	--accent:       #8a34d1;
	--accent-600:   #7226b0;
	--accent-ink:   #ffffff;

	--ink:          #1d2230;
	--muted:        #5c6675;
	--bg:           #f3f5f9;
	--card:         #ffffff;
	--line:         #e6e9f0;

	--price-bg:     transparent;
	--price-ink:    #7226b0; /* preço no roxo escuro da marca */
	--discount:     #16a34a;
	--strike:       #dc2626;
	--flame:        #8a34d1; /* "mínimo"/fixe no roxo da marca (5.9:1 em branco) */

	/* ESCALA DE CANTOS — usar SEMPRE estas variáveis, nunca px à mão:
	     caixas (cartões, menu, hero, barras, painéis) → var(--radius)
	     etiquetas pequenas dentro de caixas (chips, selos) → var(--radius-sm)
	     cápsulas (botões, pills) → 999px · avatares → 50%
	   Regra: o que está DENTRO tem sempre raio menor do que a caixa que o
	   contém. Os plugins usam var(--radius,10px) — com fallback, porque no
	   wp-admin estes tokens não existem. */
	--radius:       10px;
	--radius-sm:    8px;
	--shadow:       0 1px 2px rgba(31,45,61,.07);
	--shadow-hover: 0 4px 14px rgba(31,45,61,.12);

	--container:    1140px;
	--gap:          18px;
	--header-h:     104px; /* altura real: barra + nav de categorias (sticky) */

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

[data-theme="dark"] {
	--ink:    #e8e9ee;
	--muted:  #9aa0ac;
	--bg:     #14161f;
	--card:   #1a1a2e;
	--line:   #2a2d3e;
	/* Roxo mais claro para contraste no escuro (fundo navy combina) */
	--brand:      #b06ef0;
	--brand-600:  #9a4fe0;
	--accent:     #b06ef0;
	--accent-600: #9a4fe0;
	--flame:      #b06ef0;
	--price-bg:   transparent;
	--price-ink:  #c9a6f5;
	--shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
	--shadow-hover: 0 2px 6px rgba(0,0,0,.5), 0 14px 34px rgba(0,0,0,.45);
}

/* =========================================================================
   2. Reset / base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
/* O atributo hidden GANHA SEMPRE a qualquer display de classe (já causou 3
   bugs: promo, formulários da conta, botão Instalar da PWA). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	transition: background-color .25s ease, color .25s ease;
}
::selection { background: color-mix(in srgb, var(--brand) 24%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

img { max-width: 100%; height: auto; display: block; }
/* Links de conteúdo: roxo escuro em repouso, roxo claro no hover.
   SEM sublinhado em lado nenhum (decisão do dono, site inteiro). */
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
.tafixe-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 1000; }

/* =========================================================================
   3. Header
   ========================================================================= */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--card);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.1);
}
/* Header compacto: mobile = 2 linhas (marca em cima, pesquisa em baixo);
   desktop = 1 linha (logo | pesquisa larga | ações), estilo Chollometro. */
.header-bar {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	grid-template-areas:
		"burger brand actions"
		"search search search";
	align-items: center;
	gap: 2px 8px;
	padding: 6px 0 8px;
}
.hb-burger  { grid-area: burger; }
.hb-brand   { grid-area: brand; }
.hb-search  { grid-area: search; min-width: 0; }
.hb-actions { grid-area: actions; }
.icon-btn {
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 0; border-radius: var(--radius);
	color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; display: block; }

/* Toggle claro/escuro: mostra o ícone certo por CSS (sem JS a trocar texto) */
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.header-right { display: inline-flex; gap: 2px; align-items: center; }
/* Canais WhatsApp e Telegram no header: círculo com a cor da app. */
.tf-canal { width: 34px; height: 34px; border-radius: 50%; color: #fff; margin: 0 2px; }
.tf-canal svg { width: 18px; height: 18px; }
.tf-canal--wpp { background: #25d366; }
.tf-canal--tg { background: #229ed9; }
.tf-canal--tg svg { margin-left: -2px; }
.tf-canal:hover { filter: brightness(1.08); }
.tf-canal--wpp:hover { background: #25d366; }
.tf-canal--tg:hover { background: #229ed9; }
/* Menu ☰ (telemóvel): os mesmos canais em linha com o ícone. */
.tf-canal-m { display: flex !important; align-items: center; gap: 10px; }
.tf-canal-m svg { width: 18px; height: 18px; flex: 0 0 auto; }
.tf-canal-m--wpp svg { color: #25d366; }
.tf-canal-m--tg svg { color: #229ed9; }

.site-brand { text-align: center; line-height: 1.05; }
.site-brand .wordmark {
	font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em;
	color: var(--brand); text-decoration: none;
}
.site-brand .wordmark img { display: inline-block; max-height: 34px; width: auto; }
.site-brand .tagline { display: block; font-size: .68rem; color: var(--muted); font-weight: 500; }

/* Nav de categorias */
.cat-nav { border-top: 1px solid var(--line); background: var(--card); }
/* O scroll horizontal encolhe; o botão "Todas" fica sempre visível à direita
   — é o único acesso às categorias que não cabem na linha. */
.cat-nav__row { display: flex; align-items: center; gap: 6px; }
.cat-nav__row .cat-nav__scroll { flex: 1 1 auto; min-width: 0; }
.cat-nav__all {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; gap: 6px;
	height: 32px; padding: 0 10px;
	border: 1px solid var(--line); border-radius: 999px;
	background: var(--card); color: var(--ink);
	font-size: .86rem; font-weight: 700; line-height: 1;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.cat-nav__all svg { width: 16px; height: 16px; display: block; }
.cat-nav__all:hover { border-color: var(--brand); color: var(--brand); }
.cat-nav__all[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
/* No telemóvel só o ícone — cada pixel conta nesta linha. */
.cat-nav__all-txt { display: none; }
@media (min-width: 720px) { .cat-nav__all-txt { display: inline; } }

.cat-nav__scroll {
	display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
	margin: 0; padding: 6px 0; list-style: none; /* sem marcadores • dos <li> */
}
.cat-nav__scroll::-webkit-scrollbar { display: none; }
.cat-nav__scroll li { flex: 0 0 auto; list-style: none; }
.cat-nav--secondary { border-top: 0; }
.cat-nav--secondary .cat-nav__scroll { padding-top: 0; }
.cat-nav--secondary a { font-size: .82rem; color: var(--muted); }
.cat-nav a {
	flex: 0 0 auto;
	color: var(--ink); text-decoration: none;
	font-size: .9rem; font-weight: 600; white-space: nowrap;
	padding: 6px 11px; border-radius: 999px;
}
.cat-nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
/* NOTA: o WP põe a classe no <li>, não no <a>. */
.cat-nav .current-menu-item > a,
.cat-nav .current-menu-ancestor > a,
.cat-nav a.active {
	color: var(--brand);
	background: color-mix(in srgb, var(--brand) 10%, transparent);
}

/* Pesquisa colapsável */
/* Pesquisa integrada no header (sempre visível). */
.hb-search .search-form input[type="search"] { padding: 7px 8px 7px 0; }
.hb-search .search-form button { width: 34px; height: 34px; }

/* Pesquisa: pílula única com ícone (header + sidebar) */
.search-form {
	display: flex; align-items: center;
	background: var(--bg); border: 1px solid var(--line);
	border-radius: 999px; padding: 3px 3px 3px 16px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.search-form:focus-within {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.search-form input[type="search"] {
	flex: 1; min-width: 0; border: 0; outline: none;
	background: transparent; color: var(--ink);
	padding: 9px 8px 9px 0;
	font-size: 16px; /* >=16px evita o zoom automático do Safari iOS ao focar */
}
.search-form input[type="search"]::placeholder { color: var(--muted); }
.search-form button {
	flex: 0 0 auto; width: 38px; height: 38px;
	border: 0; border-radius: 999px; cursor: pointer;
	background: var(--brand); color: var(--brand-ink);
	font-size: 16px; line-height: 1;
	display: inline-flex; align-items: center; justify-content: center;
}
.search-form button:hover { background: var(--brand-600); }

/* Bloco/widget de pesquisa NATIVO do WordPress (core/search) — combinar com o tema */
.wp-block-search { margin: 0; }
.wp-block-search__label { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; display: block; }
.wp-block-search .wp-block-search__inside-wrapper {
	border: 1px solid var(--line); border-radius: 999px;
	background: var(--bg); padding: 3px 3px 3px 6px; overflow: hidden;
}
.wp-block-search .wp-block-search__input {
	border: 0 !important; background: transparent !important; outline: none;
	color: var(--ink); padding: 9px 12px; font-size: 16px; margin: 0;
}
.wp-block-search .wp-block-search__button {
	margin: 0; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--brand); color: var(--brand-ink);
	font-weight: 700; padding: 9px 16px;
}
.wp-block-search .wp-block-search__button:hover { background: var(--brand-600); }
.wp-block-search .wp-block-search__button svg { fill: currentColor; }
/* Variante com botão de ícone */
.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper { padding: 3px; }

/* Ivory Search (plugin de produção) — mesmo visual do tema */
.is-search-form {
	display: flex; align-items: center;
	background: var(--bg); border: 1px solid transparent;
	border-radius: 999px; padding: 3px 3px 3px 14px;
}
.is-search-form:focus-within { border-color: var(--brand); }
.is-search-form input.is-search-input {
	flex: 1; min-width: 0; border: 0 !important; background: transparent !important;
	outline: none; color: var(--ink); padding: 8px 8px 8px 0; font-size: 16px;
}
.is-search-form button.is-search-submit, .is-search-form .is-search-icon {
	border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink);
	width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
}

/* =========================================================================
   4. Layout principal (mobile-first: 1 coluna)
   ========================================================================= */
.site-main { padding: 14px 0 40px; }
.layout { display: block; }
.content-area { min-width: 0; }
.sidebar { margin-top: 24px; }

/* Título de secção (Home sem hero — estilo "Chollos destacados") */
.page-head { margin: 4px 0 14px; }
.page-head h1 { font-size: 1.3rem; margin: 0 0 2px; }
.page-head p { margin: 0; font-size: .88rem; color: var(--muted); }

/* Cupão na single: maior e centrado */
.single-cupao { text-align: center; margin: 18px 0 0; }
.single-cupao .cupao-chip { padding: 10px 16px; }
.single-cupao .cupao-chip__code { font-size: 1.05rem; }

/* "Avisa-me" do bot de alertas (plugin cupoestafixe-bot).
   A especificidade dupla é de propósito: o shortcode traz um <style> inline
   com o azul-Telegram genérico, e este bloco tem de o vencer. */
.single-alerta { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px 0 0; text-align: center; }
.single-alerta .ctf-alerta-botao {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: color-mix(in srgb, #229ED9 12%, var(--card)); color: #1b87ba !important;
	border: 1px solid color-mix(in srgb, #229ED9 45%, var(--line));
	font-weight: 800; font-size: .9rem; text-decoration: none !important;
	padding: 11px 20px; border-radius: 999px; line-height: 1.2;
}
.single-alerta .ctf-alerta-botao:hover { background: #229ED9; color: #fff !important; border-color: #229ED9; }
.single-alerta__nota { font-size: .78rem; color: var(--muted); max-width: 34rem; }
[data-theme="dark"] .single-alerta .ctf-alerta-botao { color: #6fc4ea !important; }

/* Breadcrumbs */
.tafixe-breadcrumb { font-size: .8rem; color: var(--muted); margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tafixe-breadcrumb a { color: var(--muted); text-decoration: none; }
.tafixe-breadcrumb a:hover { color: var(--brand); }
.tafixe-breadcrumb .sep { color: var(--line); }
.tafixe-breadcrumb .current, .tafixe-breadcrumb .breadcrumb_last { color: var(--ink); font-weight: 600; }

/* Hero */
.hero {
	background: var(--card);
	color: var(--ink); border-radius: var(--radius);
	border: 1px solid var(--line); box-shadow: var(--shadow);
	padding: 16px 18px; margin-bottom: 14px;
}
.hero h1 { font-size: 1.15rem; margin: 0 0 6px; color: var(--ink); }
.hero p { margin: 0; font-size: .92rem; color: var(--muted); }
.hero a { color: var(--brand-600); text-decoration: none; font-weight: 700; }
.hero a:hover { color: var(--accent); }
/* Título das páginas (Destaques, Mais Votados, pesquisa…): compacto para os
   deals aparecerem logo no telemóvel — fio de cor à esquerda em vez de caixa alta. */
.hero.hero--pag {
	padding: 10px 14px; margin-bottom: 10px;
	border-left: 4px solid var(--accent, #ff6a00);
	font-size: 1.05rem; line-height: 1.25;
}
.hero.hero--pag h1, h1.hero.hero--pag { margin: 0; font-size: 1.05rem; font-weight: 800; }
@media (min-width: 880px) {
	.hero.hero--pag { padding: 14px 20px; margin-bottom: 14px; }
	.hero.hero--pag h1, h1.hero.hero--pag { font-size: 1.3rem; }
}
/* Links das lojas quando o hero está desligado (page-head sobre fundo claro) */
.page-head p a { color: var(--brand-600); font-weight: 700; text-decoration: none; }
.page-head p a:hover { color: var(--accent); text-decoration: none; }

/* Tabs: barra branca com sublinhado laranja (estilo Chollometro) */
.tabs {
	/* --tg = espaço entre abas; o separador fica a meio dele. */
	--tg: 18px;
	display: flex; gap: var(--tg); margin: 2px 0 14px; padding: 0 14px;
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
	overflow-x: auto; scrollbar-width: none;
}
[data-theme="dark"] .tabs { border: 1px solid var(--line); }
.tabs a {
	position: relative;
	flex: 0 0 auto; padding: 11px 2px;
	font-size: .86rem; font-weight: 800;
	color: var(--muted); text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-color: var(--brand); }
/* Separador vertical pequeno e cinzento entre abas (pedido do dono, 28/10/2026). */
.tabs a + a::before {
	content: ""; position: absolute; top: 50%; left: calc(var(--tg) / -2 - .5px);
	width: 1px; height: 13px; margin-top: -8px;
	background: var(--muted); opacity: .35; pointer-events: none;
}
/* Em ecrãs estreitos, 4 abas não cabem: aperta o espaçamento para a 4.ª
   ESPREITAR na borda — é a pista visual de que a barra desliza. */
@media (max-width: 430px) {
	.tabs { --tg: 13px; padding: 0 12px; }
	.tabs a { font-size: .8rem; padding: 10px 1px; }
}
.tabs a { white-space: nowrap; }
/* Com 5 abas, a barra desliza: um esbatido na borda direita mostra que há
   mais. Some quando se chega ao fim (classe posta pelo app.js). */
@media (max-width: 879px) {
	.tabs { position: relative; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
	.tabs.is-fim { -webkit-mask-image: none; mask-image: none; }
}
/* Computador com coluna estreita (≈880–1100px): as 5 abas cabem sem deslizar. */
@media (min-width: 880px) and (max-width: 1100px) {
	.tabs { --tg: 14px; }
}

/* =========================================================================
   5. Cards de desconto
   ========================================================================= */
.feed { display: flex; flex-direction: column; gap: 12px; }

.tafixe-card {
	position: relative;
	display: flex; gap: 16px; align-items: flex-start;
	background: var(--card); border: 0;
	border-radius: var(--radius); padding: 14px;
	box-shadow: var(--shadow);
	transition: box-shadow .18s ease;
}
.tafixe-card:hover { box-shadow: var(--shadow-hover); }
[data-theme="dark"] .tafixe-card { border: 1px solid var(--line); }

/* Thumb sempre quadrado 1:1; fundo cinza dá limite visível no card branco. */
.card-thumb { flex: 0 0 104px; width: 104px; position: relative; }
.card-thumb img {
	width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover;
	display: block; border-radius: var(--radius-sm); background: var(--bg);
}
[data-theme="dark"] .card-thumb img { background: #fff; }
/* Placeholder quando o post não tem imagem */
.card-thumb__ph {
	display: flex; align-items: center; justify-content: center;
	width: 100%; aspect-ratio: 1 / 1;
	background: var(--bg); border-radius: var(--radius-sm);
	font-size: 30px; opacity: .55;
}
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.card-title {
	font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
.card-title a:hover { color: var(--accent); }

/* Rendering mais rápido em feeds longos: só pinta os cards perto do viewport. */
/* (content-visibility removido: causava cards "em branco" no scroll rápido do
   telemóvel e saltos de layout que baralhavam os elementos fixed no iOS.) */

.card-dates { font-size: .72rem; color: var(--muted); }

/* Linha de topo do card: votação à esquerda (estilo temperatura), data à direita */
/* flex-wrap: em larguras intermédias (≈880–1100px) os votos + a data não
   cabiam na mesma linha e a data (nowrap, sem encolher) saía do cartão e
   passava POR BAIXO dos botões de curadoria. Agora desce de linha — e o
   padding-right que reserva o espaço dos botões vale para as duas linhas. */
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 4px 8px; min-height: 30px; flex-wrap: wrap; }
.card-top__votes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
/* wrap: sem isto os dois pills (Fixe + Terminado) eram inquebráveis e o
   segundo entrava por baixo dos botões de curadoria em larguras apertadas. */
.card-top__votes .tafixe-votes { gap: 6px; flex-wrap: wrap; }
.card-top__votes .vote-pill { padding: 4px 10px; font-size: .72rem; min-height: 0; }
/* flex: 0 1 auto + min-width:0 → pode encolher e cortar com reticências em
   vez de transbordar. */
.card-top__date { font-size: .7rem; color: var(--muted); white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card-top__date .updated { color: var(--brand-600); font-weight: 600; }
.card-date-m { display: none; } /* data mini: só existe no layout mobile */
.card-meta__store a { color: inherit; text-decoration: none; }
.card-meta__store a:hover strong { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
/* Invólucro neutro (loja + descrição + ações); só ganha forma no desktop compacto. */
.card-foot { display: contents; }

/* Descrição curta do desconto (2 linhas) */
.card-excerpt {
	margin: 2px 0 0; font-size: .88rem; color: var(--muted);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.card-dates .updated { color: var(--brand-600); font-weight: 600; }

.card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.store-badge {
	font-size: .68rem; font-weight: 700; text-transform: uppercase;
	color: var(--muted); border: 1px solid var(--line);
	padding: 2px 7px; border-radius: var(--radius-sm); white-space: nowrap;
}
/* Preço em texto grande laranja (estilo referência), sem caixa. */
.price-pill {
	display: inline-flex; align-items: baseline; gap: 4px;
	background: transparent; color: var(--price-ink);
	font-weight: 800; font-size: 1.2rem; line-height: 1;
	padding: 0; white-space: nowrap;
}

/* Linha do preço (preço + mínimo + cupão) */
.card-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* CUPÃO — chip tracejado clicável; é um <a> real para a loja (à prova de JS) */
.cupao-chip {
	display: inline-flex; align-items: center; gap: 7px;
	border: 1.5px dashed var(--brand);
	background: color-mix(in srgb, var(--brand) 7%, transparent);
	border-radius: var(--radius-sm); padding: 5px 10px;
	text-decoration: none !important; cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.cupao-chip:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); }
/* Código parcialmente oculto (páginas de cupões): teaser que pede o clique */
.cupao-chip.is-oculto .cupao-chip__mask { font-style: normal; letter-spacing: inherit; opacity: .5; } /* mesmo espaçamento do código: cada ponto ocupa o lugar de uma letra */
.cupao-chip.is-oculto .cupao-chip__hint { background: var(--brand); color: var(--brand-ink); }
/* Selo "New" no cartão de cupão: flutua no canto de cima, a verde.
   (campanha com menos de 3 dias, ou cupão que acabou de chegar ao site) */
.tf-cupao--novo { position: relative; }
.tf-cupao__novo {
	position: absolute; top: -9px; right: 12px; z-index: 1;
	background: #16a34a; color: #fff; font-size: .66rem; font-weight: 800;
	letter-spacing: .04em; line-height: 1.5; padding: 1px 9px; border-radius: 999px;
	box-shadow: 0 2px 6px rgba(22, 163, 74, .35); white-space: nowrap; pointer-events: none;
}
/* Sem "encolher" ao toque: o chip mexia-se e arrastava o que estava ao lado. */
.cupao-chip:active { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.cupao-chip__scissors { font-size: .85rem; }
.cupao-chip__code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 800; font-size: .85rem; letter-spacing: .06em;
	color: var(--ink); text-transform: uppercase;
}
.cupao-chip__hint {
	font-size: .68rem; font-weight: 800; text-transform: uppercase;
	color: var(--flame); border-left: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
	padding-left: 7px;
}
.cupao-chip.is-copied .cupao-chip__hint { color: var(--discount); }
/* Páginas de cupões: a etiqueta ("Ver código" → "Copiar") ocupa SEMPRE a
   mesma caixa — mesma largura, mesmo enchimento, nos dois estados — para o
   chip não mudar de tamanho ao revelar. E nunca parte nem é cortada. */
.cupao-chip { max-width: 100%; box-sizing: border-box; }
.cupao-chip__code { white-space: nowrap; }
.cupao-chip__hint { white-space: nowrap; flex: 0 0 auto; }
.tf-cupao .cupao-chip__hint {
	box-sizing: content-box; min-width: 7em; text-align: center;
	padding: 3px 8px; border-left: 0; border-radius: 6px; line-height: 1.4;
	background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.tf-cupao .cupao-chip { padding-right: 6px; }

/* Linha de meta: loja + autor */
.card-meta {
	display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px;
	font-size: .76rem; color: var(--muted);
}
.card-meta strong { color: var(--ink); font-weight: 700; }

/* Ícones de ação (comentários, partilhar) */
.action-ico {
	display: inline-flex; align-items: center; gap: 5px;
	min-width: 34px; height: 34px; padding: 0 8px;
	border: 0; border-radius: 999px; background: transparent;
	color: var(--muted); font-size: .8rem; font-weight: 700;
	text-decoration: none; cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.action-ico:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }

/* Votação "quente": 🔥 em tons de fogo, 🚫 neutro (estilo temperatura Pepper) */
.vote-pill[data-vote="fixe"] {
	color: var(--flame);
	background: color-mix(in srgb, var(--flame) 12%, transparent);
	border-color: transparent; font-weight: 800;
}
[data-theme="dark"] .vote-pill[data-vote="fixe"] { background: color-mix(in srgb, var(--flame) 20%, transparent); }
.flame-badge {
	display: inline-flex; align-items: center; gap: 3px;
	font-size: .66rem; font-weight: 800; text-transform: uppercase;
	color: var(--flame); border: 1px solid color-mix(in srgb, var(--flame) 40%, transparent);
	padding: 2px 7px; border-radius: var(--radius-sm); white-space: nowrap;
}
/* Subscreva e Poupe: selo no card + caixa de passos na página do deal. */
.sns-badge {
	display: inline-flex; align-items: center; gap: 3px;
	font-size: .66rem; font-weight: 800; text-transform: uppercase;
	color: #0e7490; background: color-mix(in srgb, #06b6d4 12%, transparent);
	border: 1px solid color-mix(in srgb, #06b6d4 45%, transparent);
	padding: 2px 7px; border-radius: var(--radius-sm); white-space: nowrap;
}
[data-theme="dark"] .sns-badge { color: #67e8f9; }
/* Cupão da Amazon (marcar «Aplicar cupão»): selo no card + aviso colado ao
   botão amarelo na página do deal (pedido do dono, 26/11/2026). */
.cupamz-badge {
	display: inline-flex; align-items: center; gap: 3px;
	font-size: .66rem; font-weight: 800; text-transform: uppercase;
	color: #15803d; background: color-mix(in srgb, #22c55e 14%, transparent);
	border: 1px solid color-mix(in srgb, #22c55e 50%, transparent);
	padding: 2px 7px; border-radius: var(--radius-sm); white-space: nowrap;
}
[data-theme="dark"] .cupamz-badge { color: #4ade80; }
.tf-cupamz {
	display: flex; flex-direction: column; gap: 2px; margin: 0 auto 8px; max-width: 440px;
	padding: 10px 12px; text-align: left; border-radius: var(--radius-sm);
	background: color-mix(in srgb, #22c55e 14%, var(--card, #fff));
	border: 2px solid #22c55e; color: var(--ink);
}
.tf-cupamz__t { font-weight: 800; font-size: 1rem; color: #15803d; }
[data-theme="dark"] .tf-cupamz__t { color: #4ade80; }
.tf-cupamz__s { font-size: .86rem; line-height: 1.4; }
.tf-sns {
	margin: 12px auto 0; max-width: 440px; text-align: left; font-size: .84rem;
	background: color-mix(in srgb, #06b6d4 8%, var(--card));
	border: 1px solid color-mix(in srgb, #06b6d4 35%, transparent);
	border-radius: var(--radius); color: var(--ink);
}
.tf-sns__tit {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 8px 12px; cursor: pointer; list-style: none; font-weight: 700;
	-webkit-user-select: none; user-select: none;
}
.tf-sns__tit::-webkit-details-marker { display: none; }
/* Título sempre numa linha: encolhe e, em último caso, corta com "…". */
.tf-sns__tit > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
	.tf-sns__tit { gap: 8px; padding: 8px 10px; font-size: .8rem; }
	.tf-sns__ver { font-size: .72rem; }
	.tf-sns__pre { display: none; } /* "Preço com" sai no telemóvel: cabe numa linha. */
}
.tf-sns__ver { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 700; color: #0e7490; white-space: nowrap; }
[data-theme="dark"] .tf-sns__ver { color: #67e8f9; }
.tf-sns__ver::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.tf-sns[open] .tf-sns__ver::after { transform: translateY(1px) rotate(-135deg); }
.tf-sns__passos { margin: 0; padding: 0 12px 0 32px; line-height: 1.5; }
.tf-sns__passos li { margin: 2px 0; }
.tf-sns__mais { display: inline-block; margin: 4px 12px 10px; font-size: .8rem; font-weight: 700; color: var(--brand-600); text-decoration: none; }
.tf-sns__mais:hover { text-decoration: underline; }
.tf-sns[open] .tf-sns__passos { padding-bottom: 4px; }
.tf-sns:not(:has(.tf-sns__mais))[open] .tf-sns__passos { padding-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .tf-sns__ver::after { transition: none; } }

/* O selo é link para a página dos mínimos históricos. */
a.flame-badge { text-decoration: none; transition: background .15s ease, border-color .15s ease; }
a.flame-badge:hover { background: color-mix(in srgb, var(--flame) 12%, transparent); border-color: var(--flame); }

/* Página "Mínimos históricos" */
/* Paginação por números nesta página, mesmo com o feed em modo scroll. */
.tafixe-scroll .tafixe-minimos__pag { display: flex; }
.tafixe-minimos__conta { margin: 4px 0 12px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.tafixe-faq { display: grid; gap: 8px; margin: 10px 0 18px; }
.tafixe-faq details { border: 1px solid var(--line); border-radius: var(--radius, 10px); padding: 10px 14px; background: var(--card); }
.tafixe-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.tafixe-faq details p { margin: 8px 0 0; color: var(--muted); }
.tafixe-nota-afiliado { margin-top: 18px; color: var(--muted); }

/* CTA "ABRIR DESCONTO" */
.cta-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: var(--brand); color: var(--brand-ink) !important;
	font-weight: 800; font-size: .85rem; text-decoration: none !important;
	white-space: nowrap; /* nunca quebra em "bolha" */
	padding: 8px 14px; border-radius: var(--radius); border: 0; cursor: pointer;
	box-shadow: var(--shadow);
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cta-button:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.cta-button:active { transform: scale(.97); }
/* Barra inferior: botão + pills de votação + comentários numa linha
   (quebra para baixo no mobile). Ancorada ao fundo do card. */
.card-actions {
	display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
	margin-top: auto; padding-top: 4px;
}
/* CTA em pílula, encostado à direita (estilo "Ir al chollo") */
.card-actions .cta-button {
	background: #ffd814; color: #111 !important;
}
.card-actions .cta-button:hover { background: #f2c200; }
.card-actions .cta-button { /* base */
	padding: 9px 18px; font-size: .82rem;
	border-radius: 999px; margin-left: auto;
}
.comments-count { font-size: .76rem; color: var(--muted); white-space: nowrap; }

/* Estado TERMINADO (preenchido pelo tafixe-descontos via classe) */
/* Acinzentar a FOTO, não o contentor: o selo "Terminado" vive lá dentro e
   apanhava o grayscale — ficava um rótulo cinzento em cima de foto cinzenta. */
.tafixe-esgotado .card-thumb img,
.tafixe-esgotado .card-thumb__ph { filter: grayscale(1); opacity: .6; }
.tafixe-esgotado .card-title a { color: var(--muted); }
/* Selo dentro da miniatura (canto superior esquerdo da foto). A sombra
   garante leitura mesmo sobre imagens claras. */
.terminado-badge {
	position: absolute; top: 6px; left: 6px; z-index: 2;
	background: #dc2626; color: #fff;
	font-size: .62rem; font-weight: 800; letter-spacing: .04em;
	padding: 3px 7px; border-radius: var(--radius-sm); white-space: nowrap; text-transform: uppercase;
	box-shadow: 0 1px 4px rgba(0,0,0,.35);
}

/* Pills de votação (markup vem do tafixe-descontos; estilos base aqui) */
.tafixe-votes { display: flex; gap: 8px; flex-wrap: nowrap; }
.tafixe-votes .vote-pill { white-space: nowrap; min-width: 0; }
.vote-pill {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: .78rem; font-weight: 700;
	background: var(--bg); color: var(--ink);
	/* Cantos alinhados com o tema (não cápsula total). */
	border: 1px solid var(--line); border-radius: var(--radius-sm, 8px);
	padding: 5px 11px; cursor: pointer; white-space: nowrap;
	transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.vote-pill:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.vote-pill:active { transform: scale(.94); }
.vote-pill[disabled] { opacity: .55; cursor: default; }
.vote-pill .count { color: var(--muted); }

/* Banner entre cards (tafixe-banners) — o gap do feed já dá o ritmo */
.tafixe-banner { margin: 0; text-align: center; }
.tafixe-banner img { display: inline-block; border-radius: var(--radius); }

/* =========================================================================
   6. Single
   ========================================================================= */
.single-deal { background: var(--card); border: 0; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
[data-theme="dark"] .single-deal { border: 1px solid var(--line); }
.single-deal .entry-title { font-size: 1.15rem; text-wrap: balance; }
/* Categorias por baixo do título (por cima da data) */
.single-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0 8px; }
.single-meta .single-cats, .single-meta .card-dates { margin: 0; }
.single-cats__pill {
	display: inline-block; padding: 3px 11px; border-radius: 999px;
	background: color-mix(in srgb, var(--brand) 10%, transparent);
	color: var(--brand-600); font-size: .74rem; font-weight: 700; text-decoration: none;
}
.single-cats__pill:hover { background: var(--brand); color: #fff; text-decoration: none; }
/* A caixa da imagem tem o tamanho da própria imagem (width:auto) — com
   width:100% + contain os cantos redondos ficavam na caixa, fora da foto. */
.single-thumb img { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; margin: 0 auto 16px; border-radius: var(--radius); }
.entry-content { font-size: 1.02rem; }
.entry-content a { font-weight: 600; }

/* --- Tabelas no conteúdo (ex.: comparativos "X ou Y") ---------------------
   Mobile-first: as células QUEBRAM linha (nada de scroll lateral); cartão
   com bordas, cabeçalho destacado e linhas zebradas — legível nos 2 temas. */
.entry-content table {
	width: 100%; border-collapse: separate; border-spacing: 0;
	background: var(--card); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden;
	margin: 18px 0; font-size: .92rem; line-height: 1.45;
}
.entry-content table th,
.entry-content table td {
	padding: 10px 12px; border-bottom: 1px solid var(--line);
	text-align: left; vertical-align: top;
	overflow-wrap: break-word; hyphens: auto; /* quebra nos espaços; só hifeniza se a palavra não couber */
}
.entry-content table thead th {
	font-size: .74rem; text-transform: uppercase; letter-spacing: .04em;
	color: var(--brand-600); background: color-mix(in srgb, var(--brand) 8%, transparent);
}
.entry-content table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.entry-content table tbody tr:last-child td { border-bottom: 0; }
.entry-content table td:first-child,
.entry-content table tbody th { font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) {
	.entry-content table { font-size: .84rem; }
	.entry-content table th, .entry-content table td { padding: 8px 9px; }
	.entry-content table td:first-child { white-space: normal; } /* 1.ª coluna também quebra no telemóvel */
}

/* --- Imagens com legenda ([caption]) --------------------------------------
   Centradas a sério (o width inline do WP deixava-as encostadas) + legenda
   discreta. Vale para .wp-caption clássico e <figure> moderno. */
.entry-content .wp-caption,
.entry-content figure.aligncenter {
	max-width: 100%; margin: 18px auto; text-align: center;
}
.entry-content .wp-caption img { margin: 0 auto; border-radius: var(--radius); }
.entry-content .wp-caption-text,
.entry-content figcaption {
	margin: 8px 0 0; font-size: .8rem; color: var(--muted); text-align: center;
}
.entry-content img.aligncenter { display: block; margin: 18px auto; border-radius: var(--radius); }
/* TERMINADO: etiqueta vermelha SOBRE a imagem (como nas thumbs da home) */
.single-thumb { position: relative; }
/* Caixa vermelha SEMPRE — esteja onde estiver no DOM (server ou JS). */
.terminado-single {
	display: inline-block; background: #dc2626; color: #fff;
	font-weight: 800; letter-spacing: .05em; font-size: .8rem;
	text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-sm);
}
.single-thumb .terminado-single { position: absolute; top: 12px; left: 12px; z-index: 2; }
.terminado-single--linha { display: table; margin: 10px auto 2px; }

.single-cta { margin: 22px 0; text-align: center; }
.single-cta .cta-button { font-size: 1.05rem; padding: 14px 28px; width: 100%; max-width: 440px; }
/* CTA por baixo da imagem: AMARELO (alto contraste com o azul do site) e mais alto. */
.single-cta--topo { margin: 14px 0 18px; }
.single-cta--topo .cta-button {
	background: #ffd814; color: #111 !important;
	padding: 17px 28px; font-size: 1.08rem; max-width: 560px;
}
.single-cta--topo .cta-button:hover { background: #f2c200; }
/* Cupão DENTRO da zona do botão, metade-metade (26/11/2026). Mobile first:
   os dois com a mesma altura; o cupão à esquerda, tracejado, também abre a
   loja (o código ✂️ é copiado). */
.single-cta--duplo { display: flex; align-items: stretch; gap: 8px; max-width: 560px; margin-left: auto; margin-right: auto; }
.single-cta--duplo > * { flex: 1 1 0; min-width: 0; max-width: none !important; width: auto !important; }
.single-cta--duplo .cta-button { padding: 12px 10px; font-size: .98rem; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; display: flex; align-items: center; justify-content: center; text-align: center; }
.single-cta--duplo .cupao-chip,
.single-cta--duplo .cta-cupamz {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	padding: 8px 6px; border: 2px dashed #16a34a; border-radius: var(--radius-sm);
	background: color-mix(in srgb, #22c55e 12%, var(--card, #fff)); color: var(--ink) !important;
	text-decoration: none !important; text-align: center; line-height: 1.2;
}
.single-cta--duplo .cupao-chip__scissors { display: none; }
.single-cta--duplo .cupao-chip__code { font-size: 1rem; letter-spacing: .04em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.single-cta--duplo .cupao-chip__code::before { content: "✂️ "; letter-spacing: 0; }
/* Sem «Copiar» (o toque copia na mesma e mostra «Copiado» por cima);
   em vez disso, a etiqueta «Cupão» por cima do código. */
.single-cta--duplo .cupao-chip__hint { display: none !important; }
.single-cta--duplo .cupao-chip::before {
	content: "Cupão"; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
	text-transform: uppercase; color: #15803d; line-height: 1;
}
[data-theme="dark"] .single-cta--duplo .cupao-chip::before { color: #4ade80; }
/* Pulso suave para chamar a atenção (só a sombra: nada mexe à volta). */
@keyframes tf-cupao-pulso {
	0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
	50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}
.single-cta--duplo .cupao-chip,
.single-cta--duplo .cta-cupamz { animation: tf-cupao-pulso 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
	.single-cta--duplo .cupao-chip,
	.single-cta--duplo .cta-cupamz { animation: none; }
}
.cta-cupamz__t { font-weight: 800; font-size: 1rem; color: #15803d; }
[data-theme="dark"] .cta-cupamz__t { color: #4ade80; }
.cta-cupamz__s { font-size: .7rem; font-weight: 700; color: var(--muted); }
.single-cta--duplo .cupao-chip:hover,
.single-cta--duplo .cta-cupamz:hover { background: color-mix(in srgb, #22c55e 20%, var(--card, #fff)); }
.single-actions { display: flex; justify-content: center; gap: 10px; margin: 18px 0 4px; }
/* Votação por baixo do botão amarelo: dois botões grandes, à largura do CTA,
   com contraste para se verem — mobile first. */
.single-votos { margin: -6px auto 18px; max-width: 560px; }
.single-votos .tafixe-votes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.single-votos .vote-pill {
	justify-content: center; min-height: 48px; padding: 10px 14px;
	font-size: .98rem; border-width: 2px; border-radius: var(--radius, 10px);
	background: var(--card, var(--bg));
}
.single-votos .vote-pill .count { font-size: 1.05rem; color: var(--ink); }
.single-votos .vote-pill[data-vote="fixe"] { border-color: color-mix(in srgb, var(--flame, #ff7a1a) 55%, var(--line)); }
.single-votos .vote-pill[data-vote="end"] { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.single-votos .vote-pill:hover { transform: translateY(-1px); }
body.tafixe-esgotado-single .single-thumb img { filter: grayscale(1); opacity: .7; }

/* CTA fixo no fundo (só mobile, só na single) — o botão está sempre à mão.
   translateZ(0)+will-change dão-lhe CAMADA PRÓPRIA de composição: sem isso o
   iOS (PWA) não recompõe o fixed durante o momentum scroll e o botão "anda"
   com a página, preso a meio do ecrã. Transform num ANTEPASSADO é que parte o
   position:fixed; no próprio elemento é seguro e é a correção. */
.single-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	background: var(--card); border-top: 1px solid var(--line);
	box-shadow: 0 -4px 12px rgba(31,45,61,.08);
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	transform: translateZ(0);
	will-change: transform;
}
.single-sticky .cta-button { width: 100%; font-size: 1rem; padding: 13px; background: #ffd814; color: #111 !important; }
.single-sticky .cta-button:hover { background: #f2c200; }
body.single { padding-bottom: 74px; }
body.single .tafixe-install { display: none; } /* nunca 2 barras fixas */
@media (min-width: 880px) {
	.single-deal .entry-title { font-size: 1.4rem; }
	.single-sticky { display: none; }
	body.single { padding-bottom: 0; }
}

/* Descontos relacionados */
.tafixe-related { margin: 20px 0; }
.tafixe-related__title { font-size: 1.05rem; margin: 0 0 12px; }
.comments-area { margin-top: 20px; }

/* 404 */
.tafixe-404-search { margin: 0 0 18px; }
.tafixe-404-title { font-size: 1.05rem; margin: 0 0 12px; }

/* =========================================================================
   Páginas de cupões por loja ([cupao] + classes editoriais tf-*)
   Substitui o <style> inline antigo — apagar esse bloco dos posts.
   ========================================================================= */
.tf-cupao {
	display: flex; flex-direction: column; gap: 12px;
	background: var(--card); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 16px; margin: 14px 0;
}
[data-theme="dark"] .tf-cupao { border: 1px solid var(--line); }
.tf-cupao__t { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.3; }
.tf-cupao__d { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.tf-cupao__side { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tf-cupao__side .cta-button { margin-left: auto; border-radius: 999px; }
.tf-cupao__nocode { font-size: .78rem; font-weight: 700; color: var(--discount); }
.tf-cupao__expirado { display: inline-block; margin-top: 6px; font-size: .72rem; font-weight: 700; color: var(--muted); }
.tf-cupao--exp { opacity: .62; }
.tf-cupao--exp .cupao-chip { border-style: dotted; }

/* Folha do cupão (clique num código oculto): mobile first — folha em baixo,
   à largura do ecrã, com a zona segura do iPhone; em ecrãs largos vira cartão
   ao centro. O código é o elemento maior: é o que a pessoa vai colar. */
.tf-cs { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: flex-end; justify-content: center; }
.tf-cs__fundo { position: absolute; inset: 0; background: rgba(10, 12, 20, .55); opacity: 0; transition: opacity .2s ease; }
.tf-cs__folha {
	position: relative; width: 100%; max-width: 460px; box-sizing: border-box;
	background: var(--card, #fff); color: var(--ink, #1d2230);
	border-radius: 18px 18px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -12px 40px rgba(0, 0, 0, .28); text-align: center;
	transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.tf-cs.is-in .tf-cs__fundo { opacity: 1; }
.tf-cs.is-in .tf-cs__folha { transform: translateY(0); }
.tf-cs__x {
	position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: transparent; color: var(--muted, #5c6675); font-size: 18px; cursor: pointer;
}
.tf-cs__estado { margin: 0 0 4px; font-size: .95rem; font-weight: 800; color: var(--muted, #5c6675); }
.tf-cs__estado.is-ok { color: var(--discount, #16a34a); }
.tf-cs__tit { margin: 0 0 14px; font-size: .88rem; line-height: 1.35; color: var(--muted, #5c6675); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tf-cs__codigo {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; box-sizing: border-box;
	padding: 14px 16px; margin: 0 0 14px; cursor: pointer;
	background: color-mix(in srgb, var(--brand, #8a34d1) 7%, transparent);
	border: 2px dashed var(--brand, #8a34d1); border-radius: var(--radius, 10px); color: var(--ink, #1d2230);
}
.tf-cs__cod { font: 800 1.55rem/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; overflow-wrap: anywhere; text-align: left; }
.tf-cs__copiar { flex: 0 0 auto; font-size: .78rem; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: var(--brand, #8a34d1); color: var(--brand-ink, #fff); }
.tf-cs__barra { height: 4px; border-radius: 999px; background: var(--line, #e6e9f0); overflow: hidden; margin: 0 0 8px; }
.tf-cs__barra i { display: block; height: 100%; width: 0; background: var(--brand, #8a34d1); }
.tf-cs.is-a-contar.is-in .tf-cs__barra i { width: 100%; transition: width 3s linear; }
.tf-cs.is-manual .tf-cs__barra { display: none; }
.tf-cs__conta { margin: 0 0 14px; font-size: .9rem; min-height: 1.3em; }
.tf-cs__ir {
	display: block; width: 100%; box-sizing: border-box; padding: 15px 18px; border-radius: 999px;
	background: #ffd814; color: #111 !important; font-weight: 800; font-size: 1.02rem; text-decoration: none !important;
}
.tf-cs__ir:active { transform: scale(.98); }
.tf-cs.is-manual .tf-cs__ir { animation: tf-cs-pulso 1.1s ease-in-out infinite; }
@keyframes tf-cs-pulso { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, #ffd814 35%, transparent); } }
.tf-cs__ficar { margin: 10px 0 0; padding: 10px; width: 100%; border: 0; background: transparent; color: var(--muted, #5c6675); font-size: .88rem; cursor: pointer; }
@media (min-width: 720px) {
	.tf-cs { align-items: center; }
	.tf-cs__folha { border-radius: 18px; padding-bottom: 18px; transform: translateY(24px); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
	.tf-cs.is-in .tf-cs__folha { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.tf-cs__folha, .tf-cs__fundo { transition: none; }
	.tf-cs.is-manual .tf-cs__ir { animation: none; }
}

/* "Copiado" pequenino por cima do cupão: posição fixa, fora do fluxo — não
   acrescenta altura nem empurra nada. */
.tf-copiado {
	position: fixed; z-index: 10060; pointer-events: none;
	transform: translate(-50%, -60%); opacity: 0;
	padding: 2px 8px; border-radius: 999px;
	background: var(--discount, #16a34a); color: #fff;
	font-size: .68rem; font-weight: 800; line-height: 1.5; letter-spacing: .02em; white-space: nowrap;
	transition: opacity .15s ease, transform .15s ease;
}
.tf-copiado.is-in { opacity: 1; transform: translate(-50%, -125%); }
@media (prefers-reduced-motion: reduce) { .tf-copiado { transition: none; } }
/* Urgência (<24h para o fim): selo quente com pulsação subtil. Os links e o
   chip do código ficam SEMPRE clicáveis, mesmo terminados (decisão do dono). */
.tf-cupao__urgente {
	display: inline-block; margin-top: 6px;
	font-size: .74rem; font-weight: 800; color: #b45309;
	background: color-mix(in srgb, #f59e0b 14%, transparent);
	border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent);
	border-radius: 999px; padding: 3px 10px;
	animation: tf-cupao-pulse 2s ease-in-out infinite;
}
[data-theme="dark"] .tf-cupao__urgente { color: #fbbf24; }
@keyframes tf-cupao-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .tf-cupao__urgente { animation: none; } }
@media (min-width: 680px) {
	.tf-cupao { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; }
	.tf-cupao__body { flex: 1; min-width: 0; }
	.tf-cupao__side { flex: 0 0 auto; }
	.tf-cupao__side .cta-button { margin-left: 0; }
}

/* Caixas editoriais (dicas, avisos, destaque, afiliado) */
/* "body" à frente: algumas páginas trazem um <style> próprio no texto com
   fundos claros fixos (ex.: Prozis) que, no tema escuro, deixava o texto
   claro sobre fundo claro. Assim ganham sempre as cores do tema. */
body .tf-tip, body .tf-warning, body .tf-highlight, body .tf-affiliate {
	padding: 14px 16px; margin: 18px 0; border-radius: 0;
	border-left: 4px solid; font-size: .95rem; line-height: 1.55; color: var(--ink);
}
body .tf-affiliate { color: var(--muted); }
body .tf-toc a { color: var(--brand-600); }
body .tf-tip       { background: color-mix(in srgb, #f59e0b 10%, var(--card)); border-color: #f59e0b; }
body .tf-warning   { background: color-mix(in srgb, var(--strike) 8%, var(--card)); border-color: var(--strike); }
body .tf-highlight { background: color-mix(in srgb, var(--discount) 10%, var(--card)); border-color: var(--discount); }
body .tf-affiliate { background: color-mix(in srgb, var(--brand) 7%, var(--card)); border-color: var(--brand); font-size: .85rem; color: var(--muted); }
body .tf-tip strong { color: #b45309; }
body .tf-warning strong { color: var(--strike); }
body .tf-highlight strong { color: var(--discount); }
[data-theme="dark"] body .tf-tip strong { color: #fbbf24; }

/* Índice */
body .tf-toc { background: var(--bg); color: var(--ink); border-left: 4px solid var(--brand); padding: 16px 20px; margin: 22px 0; }
body .tf-toc h3 { color: var(--ink); margin: 0 0 8px; font-size: 1rem; }
.tf-toc ol { margin: 0; padding-left: 20px; }
.tf-toc li { margin-bottom: 4px; }

/* CTA grande de página */
.tf-cta {
	background: linear-gradient(120deg, var(--brand), var(--accent));
	color: #fff !important; text-align: center;
	padding: 24px 18px; margin: 26px 0; border-radius: var(--radius);
}
.tf-cta p { color: #fff; margin: 0 0 10px; font-size: 1.02rem; }
.tf-cta .tf-cupao-code {
	display: inline-block; background: rgba(255,255,255,.16);
	border: 2px dashed #fff; padding: 6px 18px; border-radius: var(--radius-sm);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 800; letter-spacing: 2px; font-size: 1.15rem; margin: 4px 0;
}
.tf-cta a.tf-btn {
	display: inline-block; background: #fff; color: var(--brand-600) !important;
	font-weight: 800; padding: 12px 28px; border-radius: 999px;
	text-decoration: none !important; font-size: 1rem; margin-top: 8px;
}
.tf-cta a.tf-btn:hover { transform: translateY(-1px); }

/* Tabelas editoriais (scroll horizontal no mobile, nunca rebentam o layout) */
.tf-table-wrap, .entry-content .tf-table { display: block; overflow-x: auto; }
.tf-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .92rem; }
.tf-table th { background: var(--brand); color: #fff; padding: 10px 14px; text-align: left; white-space: nowrap; }
.tf-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tf-table tr:nth-child(even) td { background: var(--bg); }

/* --- Skin Chollometro para as caixas dos módulos (sem contorno no claro) --- */
.tafixe-auth, .tafixe-conta, .tafixe-sugerir, .tafixe-alertas,
.tafixe-top__champ, .tafixe-top__row, .tafixe-top__tabs, .tafixe-install {
	border-color: transparent !important;
	box-shadow: var(--shadow);
}
[data-theme="dark"] .tafixe-auth, [data-theme="dark"] .tafixe-conta,
[data-theme="dark"] .tafixe-sugerir, [data-theme="dark"] .tafixe-alertas,
[data-theme="dark"] .tafixe-top__champ, [data-theme="dark"] .tafixe-top__row,
[data-theme="dark"] .tafixe-top__tabs, [data-theme="dark"] .tafixe-install {
	border-color: var(--line) !important;
}

/* Pesquisa do header: campo cinzento sem contorno (como a referência) */
.search-form { border-color: transparent; }
.search-form:focus-within { border-color: var(--brand); }

/* Paginação: pills brancos sem contorno */
.pagination .page-numbers { border-color: transparent; box-shadow: var(--shadow); }
[data-theme="dark"] .pagination .page-numbers { border-color: var(--line); }

/* =========================================================================
   MOBILE (<880px): layout próprio do card — o lado-a-lado do desktop não
   cabe em 390px. Grelha: votos em linha inteira no topo; thumb pequeno ao
   lado de título+preço; cupão/meta/descrição/ações a toda a largura.
   ========================================================================= */
@media (max-width: 879px) {
	/* Header compacto: sem tagline, wordmark contido numa linha */
	.site-brand .tagline { display: none; }
	.site-brand .wordmark { font-size: 1.15rem; white-space: nowrap; }
	.hb-brand { min-width: 0; overflow: hidden; }
	.page-head h1 { font-size: 1.1rem; }
	.page-head p { font-size: .8rem; }

	/* Card em grelha. Gap vertical 3px (era 6): compensa a linha da data para
	   o card NÃO crescer. */
	.tafixe-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 3px 12px; align-items: start; }
	.card-body { display: contents; }
	.card-top { grid-column: 1 / -1; grid-row: 1; }
	.card-top__date { display: none; } /* a data completa vive na single */
	.card-thumb { grid-column: 1; grid-row: 2 / span 4; width: 120px; }
	/* Data minúscula por cima do título (pedido do dono: informar sem engordar). */
	.card-date-m {
		display: block; grid-column: 2; grid-row: 2;
		font-size: .6rem; line-height: 1.1; color: var(--muted);
		white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	}
	.card-title {
		grid-column: 2; grid-row: 3; font-size: .87rem; margin: 0;
		display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
		overflow: hidden;
	}
	.card-price-row { grid-column: 2; grid-row: 4; align-self: start; margin: 0; }
	.card-meta, .card-excerpt, .card-actions { grid-column: 1 / -1; }

	/* Elementos compactos que nunca transbordam */
	.price-pill { font-size: 1.05rem; }
	.flame-badge, .sns-badge, .cupamz-badge { font-size: .6rem; }
	.cupao-chip { padding: 4px 9px; }
	.cupao-chip__hint { display: none; } /* mobile: só ✂️ + código */

	/* Alvos de toque (≥40px nas ações principais) */
	.vote-pill { min-height: 40px; padding: 8px 13px; }
	.card-top__votes .vote-pill { min-height: 32px; padding: 6px 11px; }
	.card-actions .cta-button { min-height: 40px; }
	.action-ico { min-height: 40px; min-width: 40px; }
	.comments-count { padding: 8px 4px; }

	/* Banner de instalação mais discreto */
	.tafixe-install { padding: 10px 12px; gap: 8px; }
	.tafixe-install__icon { font-size: 20px; }
	.tafixe-install__txt strong { font-size: .85rem; }
	.tafixe-install__desc { font-size: .72rem; }
}

/* =========================================================================
   7. Sidebar / widgets
   ========================================================================= */
.widget {
	background: var(--card); border: 0;
	border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px;
	box-shadow: var(--shadow);
}
[data-theme="dark"] .widget { border: 1px solid var(--line); }
.widget-title { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 12px; }
/* Um link colado num comentário (ex.: URL de loja com 120 carateres) não
   tem espaços onde quebrar e saía pela borda do cartão. Quebra em qualquer
   ponto, só quando não cabe — só no texto dos itens: no botão "Pesquisar"
   partia a palavra ao meio. */
.widget li, .widget p { overflow-wrap: anywhere; word-break: break-word; }
.widget button, .widget .search-form button { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink); text-decoration: none; }
.widget a:hover { color: var(--brand); }

/* Botão "Sugerir" do header */
.btn-sugerir { display: inline-flex; align-items: center; gap: 2px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-600); font-size: .84rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-sugerir:hover { background: var(--accent); color: #fff; text-decoration: none; }
@media (max-width: 640px) { .btn-sugerir { padding: 7px 9px; } .btn-sugerir__txt { display: none; } }

/* =========================================================================
   Mobile (≤879px): cards mais limpos + header centrado e não-fixo
   ========================================================================= */
@media (max-width: 879px) {
	/* Sem descrição nos cards. */
	.card-excerpt { display: none; }
	/* Sem breadcrumbs (caminho do site). */
	.tafixe-breadcrumb { display: none; }

	/* Logo/título ao CENTRO DO ECRÃ: sai do grid (posição absoluta ancorada
	   ao header inteiro) — os lados têm nº de ícones diferente e o grid
	   nunca daria o centro geométrico do telemóvel. */
	.header-bar { position: relative; }
	.hb-brand {
		grid-area: auto; position: absolute; left: 50%; top: 6px;
		transform: translateX(-50%);
		height: 40px; display: flex; align-items: center;
		max-width: calc(100vw - 256px); overflow: hidden; white-space: nowrap;
		z-index: 1;
	}
	/* Ícones compactos; toggle de tema e botão Sugerir saem do header no
	   mobile (vivem no menu ☰) — mais espaço para o logo centrado. */
	.hb-actions .icon-btn { width: 36px; height: 36px; }
	.hb-actions .theme-toggle { display: none; }
	.hb-actions .btn-sugerir { display: none; }
	.hb-actions .tf-canal { display: none; } /* no telemóvel: menu ☰ */
	/* Header desliza com a página (não fica fixo). */
	.site-header { position: static; }

	/* Sem preço no card (já está na imagem). O cupão e o 🔥 mantêm-se. */
	.card-price-row .price-pill { display: none; }
	/* Se a linha ficar sem nada visível (sem cupão/🔥), não ocupa espaço. */
	.card-price-row:not(:has(.cupao-chip)):not(:has(.flame-badge)):not(:has(.sns-badge)):not(:has(.cupamz-badge)) { display: none; }

	/* Ações recompostas: comentários no topo-direita; CTA sobe para junto
	   do título (menos espaço em branco). */
	.tafixe-card { position: relative; }
	.card-actions { display: contents; }
	.card-actions > a.action-ico { position: absolute; top: 8px; right: 6px; }
	.card-actions > button.js-share { position: absolute; top: 8px; right: 46px; }
	.card-actions .cta-button { grid-column: 2; grid-row: 5; justify-self: start; align-self: start; margin-top: 0; }
	/* Mais compacto (pedido do dono, 02/10/2026): selos colados um ao outro,
	   mais baixos, e botão mais pequeno. Altura mínima do botão 36px (alvo de
	   toque continua confortável; a linha inteira do card também é link). */
	.card-price-row { gap: 4px 6px; }
	.flame-badge, .sns-badge, .cupamz-badge { padding: 1px 6px; line-height: 1.45; }
	.card-actions .cta-button { min-height: 36px; padding: 6px 14px; font-size: .78rem; margin-top: 2px; }
	/* Menu de categorias (pedido do dono, 10/11/2026): menos espaço entre
	   as categorias, para caberem mais, e a ponta direita a desvanecer —
	   percebe-se que dá para deslizar. O espaço no fim deixa a última
	   categoria sair de baixo do desvanecido. */
	.cat-nav__scroll {
		gap: 0; padding-right: 26px;
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
		mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
	}
	.cat-nav a { padding: 5px 7px; font-size: .86rem; }
	.cat-nav--secondary a { font-size: .8rem; }
	/* Ainda mais compacto (pedido do dono, 10/11/2026): o selo diz só
	   "🔥 MÍNIMO" e sai a linha "Disponível na …" (a loja está na imagem
	   e na página do desconto). */
	.tafixe-card .flame-badge__longo { display: none; }
	.tafixe-card .card-meta { display: none; }
	/* Votos no topo não colidem com os ícones à direita. */
	.card-top { padding-right: 84px; }

	/* Menus de categorias centrados (margens auto: centra quando cabe,
	   continua a fazer scroll quando não cabe). */
	.cat-nav__scroll li:first-child { margin-left: auto; }
	.cat-nav__scroll li:last-child { margin-right: auto; }
}

/* Balão de comentários VERDE quando há conversa (incentiva o clique) */
.action-ico.has-comments { color: #16a34a; }

/* =========================================================================
   Botão flutuante "saltar" (canto inferior direito): ↓ rodapé / ↑ topo.
   O JS mede os OUTROS flutuantes (promo, barra da single, banner de
   notificações) e sobe o botão acima deles — nunca se sobrepõem.
   translateZ(0): camada própria (iOS PWA, ver nota do .single-sticky). ========================================================================= */
#tf-jump {
	position: fixed; right: 10px;
	bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	z-index: 9991;
	width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid var(--line);
	background: color-mix(in srgb, var(--card) 90%, transparent);
	backdrop-filter: blur(4px);
	color: var(--muted);
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-hover);
	cursor: pointer;
	opacity: 0; pointer-events: none;
	transform: translateY(6px) translateZ(0); will-change: transform;
	transition: opacity .2s ease, transform .2s ease, bottom .25s ease, color .15s ease;
}
#tf-jump.is-on { opacity: .85; pointer-events: auto; transform: translateY(0) translateZ(0); }
#tf-jump:hover { opacity: 1; color: var(--ink); }
#tf-jump .up { display: none; }
#tf-jump[data-mode="up"] .up { display: block; }
#tf-jump[data-mode="up"] .down { display: none; }
.action-ico.has-comments span { font-weight: 800; }

/* Botão "avisa-me deste desconto" (single) */
.tafixe-watch-wrap { text-align: center; margin: 14px 0 4px; }
.tafixe-watch {
	display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
	background: var(--bg); color: var(--ink); font-weight: 700; font-size: .88rem;
	text-decoration: none; cursor: pointer;
}
.tafixe-watch:hover { border-color: var(--brand); color: var(--brand-600); text-decoration: none; }
.tafixe-watch.is-on { background: #e8f7ee; border-color: #16a34a; color: #15803d; }
.tafixe-watch__hint { display: block; margin-top: 6px; font-size: .74rem; color: var(--muted); }

/* Bloco "Últimos comentários" (widget) — sem avatares e compacto.
   Sem avatar por decisão do dono: metade dos comentários não tinha nenhum
   (os do Feedback entram sem email associado) e a margem esquerda ficava aos
   altos. Sem avatares, todas as linhas encostam ao mesmo sítio.
   O núcleo indenta o texto 3.25em enquanto o bloco tiver a classe
   has-avatars — por isso não basta esconder a imagem, é preciso anular
   também o recuo. Seletores com .widget ol… de propósito: têm de ganhar ao
   CSS embutido do bloco, impresso no <head> com especificidade 0,3,0. */
.widget ol.wp-block-latest-comments { margin: 0; padding: 0; }
.widget ol.wp-block-latest-comments .wp-block-latest-comments__comment-avatar { display: none; }
.widget ol.wp-block-latest-comments .wp-block-latest-comments__comment {
	min-height: 0;          /* núcleo: 2.25em, reservado para o avatar */
	margin-bottom: .55em;   /* núcleo: 1em */
	line-height: 1.35;      /* núcleo: 1.5 com datas/excertos */
}
/* Fim da coluna fantasma. */
.widget ol.wp-block-latest-comments .wp-block-latest-comments__comment-meta,
.widget ol.wp-block-latest-comments .wp-block-latest-comments__comment-excerpt { margin-left: 0; }
.widget ol.wp-block-latest-comments .wp-block-latest-comments__comment-date {
	margin-top: 1px;
	font-size: .72em;
	opacity: .8;
}
.widget ol.wp-block-latest-comments .wp-block-latest-comments__comment-excerpt p {
	margin: .25em 0 0;      /* núcleo: .36em 0 1.4em */
	font-size: .85em;
	line-height: 1.4;
}

/* Miniatura do desconto em cada comentário (mobile first: 64px, um pouco
   maior no desktop). O texto ocupa o resto e quebra sem empurrar a imagem. */
.tf-lc .wp-block-latest-comments__comment { display: flex; gap: 10px; align-items: flex-start; }
.tf-lc__thumb { flex: 0 0 auto; }
.tf-lc__img {
	display: block; width: 64px; height: 64px; object-fit: cover;
	border-radius: var(--radius-sm); background: var(--bg);
}
.tf-lc__img--vazio { display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.tf-lc__img--logo { object-fit: contain; padding: 8px; box-sizing: border-box; background: var(--card); border: 1px solid var(--line); }
.tf-lc__body { min-width: 0; flex: 1 1 auto; }
.tf-lc .wp-block-latest-comments__comment-date { display: block; }
@media (min-width: 880px) { .tf-lc__img { width: 72px; height: 72px; } }

/* Comentários recentes com avatar */
.rc-item { padding: 10px 0; }
.rc-link { display: flex; gap: 10px; align-items: flex-start; }
.rc-avatar { border-radius: 50%; flex: 0 0 auto; width: 40px; height: 40px; }
.rc-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rc-author { font-weight: 700; color: var(--ink); }
.rc-post { font-size: .86rem; color: var(--muted); }
/* Contagem do dia (topo da sidebar) */
.tf-hoje__n { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 0; }
.tf-hoje__n b { font-size: 2.6rem; line-height: 1; font-weight: 800; color: var(--brand-600); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.tf-hoje__n span { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.rc-link:hover .rc-author { color: var(--brand); }
.cat-list a::before { content: "▸"; color: var(--brand); margin-right: 7px; }

/* Lista de comentários do desconto — compacta (28/09/2026, pedido do dono):
   avatar de 32px à esquerda, nome + data na mesma linha, texto logo por baixo,
   👍 e "Responder" lado a lado, #N discreto à direita. */
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { position: relative; }
.comment-list .comment-body {
	position: relative; padding: 10px 0 10px 42px; border-top: 1px solid var(--line);
}
.comment-list > .comment:first-child > .comment-body { border-top: 0; padding-top: 4px; }
/* #N (numeração em modules/conteudo): canto superior direito, pequeno. */
.comments-area .comment-list .comment > .comment-body::before {
	position: absolute; top: 10px; right: 0; margin: 0; display: block;
	font-size: .72rem; font-weight: 700; color: var(--muted); line-height: 1.4;
}
.comments-area .comment-list > .comment:first-child > .comment-body::before { top: 4px; }
.comment-list .comment-meta {
	display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 0;
	padding-right: 28px; line-height: 1.35;
}
.comment-list .comment-author { display: contents; }
.comment-list .avatar {
	position: absolute; left: 0; top: 10px; width: 32px; height: 32px; border-radius: 50%;
}
.comment-list > .comment:first-child > .comment-body .avatar { top: 4px; }
.comment-list .comment-author .fn { font-weight: 700; font-style: normal; color: var(--ink); font-size: .92rem; }
.comment-list .comment-author .fn a { color: inherit; text-decoration: none; }
.comment-list .says { display: none; }
.comment-list .comment-metadata,
.comment-list .comment-metadata a { font-size: .76rem; color: var(--muted); text-decoration: none; }
.comment-list .comment-metadata .edit-link { margin-left: 4px; }
.comment-list .comment-content { margin: 3px 0 0; overflow-wrap: anywhere; word-break: break-word; line-height: 1.5; }
.comment-list .comment-content p { margin: 0 0 6px; }
.comment-list .comment-content p:last-of-type { margin-bottom: 0; }
.comment-list .comment-content .tafixe-com-img { margin-top: 6px; }
/* 👍 e Responder na mesma linha */
.comment-list .comment-content .tafixe-clike-row { display: inline-flex; vertical-align: middle; margin: 6px 12px 0 0; }
.comment-list .reply { display: inline-flex; vertical-align: middle; margin-top: 6px; }
.comment-list .comment-content:has(.tafixe-clike-row) { display: inline; }
.comment-list .comment-content:has(.tafixe-clike-row) > p,
.comment-list .comment-content:has(.tafixe-clike-row) > .tafixe-com-img { display: block; }
.comment-list .reply a { font-size: .8rem; font-weight: 700; color: var(--brand-600); text-decoration: none; }
/* Respostas: alinhadas com o texto de quem comentou. */
.comment-list .children { position: relative; margin-left: 42px; }
.comment-list .children .comment-body { border-top: 0; padding-top: 6px; padding-bottom: 6px; }
.comment-list .children .avatar { top: 6px; width: 28px; height: 28px; }
.comment-list .children .comment-body { padding-left: 36px; }
.comments-area .comment-list .children .comment > .comment-body::before { top: 6px; }

/* Comentários com mais de 30 dias: ficam esbatidos porque falam de preços e
   campanhas que já mudaram. Não desaparecem — ao passar o rato (ou ao tocar)
   voltam ao normal, e o texto mantém contraste suficiente para se ler. */
.comment-list .tafixe-com-antigo > .comment-body { opacity: .55; filter: grayscale(1); transition: opacity .18s ease, filter .18s ease; }
.comment-list .tafixe-com-antigo > .comment-body:hover,
.comment-list .tafixe-com-antigo > .comment-body:focus-within { opacity: 1; filter: none; }
@media (hover: none) {
	.comment-list .tafixe-com-antigo > .comment-body { opacity: .68; }
}
@media (prefers-reduced-motion: reduce) {
	.comment-list .tafixe-com-antigo > .comment-body { transition: none; }
}

.comment-list .avatar { border-radius: 50%; }
.comment-list .comment-author { display: flex; align-items: center; gap: 10px; }
.comment-list .comment-author .fn { font-weight: 700; font-style: normal; color: var(--ink); }
.comment-list .comment-metadata,
.comment-list .comment-metadata a { font-size: .8rem; color: var(--muted); text-decoration: none; }
.comment-list .comment-content { margin: 8px 0 0; overflow-wrap: anywhere; word-break: break-word; }
.comment-list .reply a { font-size: .82rem; font-weight: 700; color: var(--brand-600); text-decoration: none; }

/* =========================================================================
   8. Paginação / footer
   ========================================================================= */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 20px 0 0; }
.pagination .page-numbers {
	min-width: 40px; text-align: center;
	padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600;
	transition: border-color .15s ease, background .15s ease;
}
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* Scroll infinito: números escondidos (ficam como fonte do link "seguinte"
   para o JS e fallback sem JS via noscript UX degradada aceitável) */
.tafixe-scroll .pagination { display: none; }
.tafixe-more-wrap { text-align: center; margin: 20px 0 0; }
#tafixe-more { min-width: 240px; }
#tafixe-more.is-loading { opacity: .6; pointer-events: none; }

.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 30px 0 22px; margin-top: 30px; color: var(--muted); font-size: .88rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-grid { display: grid; gap: 26px 32px; grid-template-columns: 1fr; }
.footer-brand { max-width: 460px; }
.footer-wordmark { display: block; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--brand); }
.footer-tagline { display: block; font-size: .74rem; margin: 1px 0 10px; }
.footer-note { margin: 0; line-height: 1.5; }
.footer-col__title { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin: 0 0 10px; }
.footer-col__text { line-height: 1.55; }
.footer-col__text a { color: var(--brand-600); font-weight: 600; text-decoration: none; }
.footer-col__text a:hover { color: var(--accent); }
.footer-nav { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { font-weight: 600; }
.footer-copy { margin: 18px 0 0; font-size: .78rem; }
/* ≥560px: caixas em 2 colunas; a marca ocupa a linha toda */
@media (min-width: 560px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
/* ≥880px: marca + 3 caixas lado a lado */
@media (min-width: 880px) {
	.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: start; }
	.footer-brand { grid-column: auto; }
}

/* =========================================================================
   9. Menu mobile (off-canvas)
   ========================================================================= */
.mobile-menu { position: fixed; inset: 0; z-index: 100; visibility: hidden; transition: visibility .25s; }
/* Menu aberto → as caixas flutuantes saem (newsletter/WhatsApp, banner de
   notificações, pills de novos/atualizar, CTA fixo, convite de instalação).
   Nada fica sobreposto ao menu; ao fechar voltam sozinhas. */
body.tafixe-menu-open .tf-promo,
body.tafixe-menu-open .tafixe-notif-banner,
body.tafixe-menu-open .tafixe-novos,
body.tafixe-menu-open .single-sticky,
body.tafixe-menu-open #tf-jump,
body.tafixe-menu-open .tafixe-install,
/* O painel das categorias precisa do mesmo: a newsletter e o botão de
   saltar ficavam POR CIMA da folha e tapavam as últimas categorias. */
body.tafixe-cats-open .tf-promo,
body.tafixe-cats-open .tafixe-notif-banner,
body.tafixe-cats-open .tafixe-novos,
body.tafixe-cats-open .single-sticky,
body.tafixe-cats-open #tf-jump,
body.tafixe-cats-open .tafixe-install { display: none !important; }
.mobile-menu.is-open { visibility: visible; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s ease; }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu__panel {
	position: absolute; top: 0; left: 0; bottom: 0; width: 82%; max-width: 320px;
	background: var(--card); padding: 10px 18px 18px; overflow-y: auto;
	box-shadow: var(--shadow-hover);
	transform: translateX(-102%); transition: transform .25s ease;
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mobile-menu__title { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mobile-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu__theme { display: block; width: 100%; margin-top: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); font-weight: 700; font-size: .9rem; text-align: left; }
.mobile-menu__panel a { display: block; padding: 11px 6px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 600; }
.mobile-menu__extra { margin-top: 14px; padding-top: 6px; border-top: 2px solid var(--line); }
.mobile-menu__extra a { border-bottom: 0; padding: 9px 6px; color: var(--muted); }
/* Entrada para todas as categorias — primeiro item do menu, destacada. */
.mobile-menu__all {
	display: flex; align-items: center; gap: 9px;
	width: 100%; margin: 2px 0 12px; padding: 12px;
	border: 1px solid var(--brand); border-radius: var(--radius);
	background: color-mix(in srgb, var(--brand) 8%, transparent);
	color: var(--brand-600); font: 700 .95rem/1 inherit; text-align: left;
}
.mobile-menu__all svg { width: 18px; height: 18px; flex: 0 0 auto; }
.mobile-menu__all span:first-of-type { flex: 1 1 auto; }
.mobile-menu__all-n {
	flex: 0 0 auto; min-width: 22px; padding: 3px 7px;
	border-radius: 999px; background: var(--brand); color: var(--brand-ink);
	font-size: .74rem; text-align: center;
}
[data-theme="dark"] .mobile-menu__all { color: var(--brand); }

/* =========================================================================
   9b. Painel "Todas as categorias"
   Mobile-first: folha que sobe de baixo (o polegar chega lá).
   ≥880px: vira um cartão centrado por baixo do cabeçalho.
   ========================================================================= */
.tf-cats { position: fixed; inset: 0; z-index: 120; }
.tf-cats[hidden] { display: none; }
.tf-cats__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.tf-cats__panel {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; flex-direction: column;
	max-height: 82vh;
	background: var(--card);
	border-radius: var(--radius) var(--radius) 0 0; /* painel encostado em baixo: só os cantos de cima */
	box-shadow: var(--shadow-hover);
	animation: tfCatsSobe .2s ease-out;
	/* iPhone: não deixar a última linha por baixo da barra de gestos. */
	padding-bottom: env(safe-area-inset-bottom, 0);
}
@keyframes tfCatsSobe { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.tf-cats__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 14px 10px; border-bottom: 1px solid var(--line);
}
.tf-cats__title { font-weight: 800; font-size: 1rem; color: var(--ink); }
.tf-cats__grid {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
	padding: 12px 14px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.tf-cats__item {
	display: flex; align-items: center; gap: 8px;
	padding: 11px 12px;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--bg); color: var(--ink);
	font-weight: 600; font-size: .88rem; text-decoration: none;
	transition: border-color .15s ease, color .15s ease;
}
.tf-cats__item:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.tf-cats__nome { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-cats__n { flex: 0 0 auto; font-size: .74rem; font-weight: 700; color: var(--muted); }
.tf-cats__item:hover .tf-cats__n { color: inherit; }
@media (min-width: 560px) { .tf-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 880px) {
	.tf-cats__panel {
		/* Encosta ao fundo REAL do cabeçalho (medido no JS ao abrir): a altura
		   fixa falhava com a barra do WordPress ou com a 2.ª linha de
		   categorias, e o painel tapava a navegação. */
		top: calc(var(--tf-cats-top, var(--header-h)) + 8px); bottom: auto;
		left: 50%; transform: translateX(-50%);
		width: min(var(--container), calc(100% - 24px));
		max-height: min(70vh, 560px);
		border-radius: var(--radius);
	}
	@keyframes tfCatsSobe { from { transform: translate(-50%, -8px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
	.tf-cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 16px 20px; }
}

/* =========================================================================
   10. Desktop (>= 880px): 2 colunas
   ========================================================================= */
@media (min-width: 880px) {
	/* 1 linha: logo à esquerda, pesquisa larga ao centro, ações à direita. */
	.header-bar {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "brand search actions";
		gap: 18px; padding: 9px 0;
	}
	.hb-burger { display: none; }
	.site-brand { text-align: left; }
	.site-brand .wordmark { font-size: 1.45rem; }
	.hb-search .search-form { max-width: 560px; }

	.layout { display: grid; grid-template-columns: 1fr 312px; gap: 26px; align-items: start; }
	.sidebar { margin-top: 0; position: sticky; top: calc(var(--header-h) + 16px); }

	.feed { gap: 16px; }
	.card-thumb { flex: 0 0 200px; width: 200px; }
	.tafixe-card { padding: 18px 20px; gap: 20px; }
	.card-body { gap: 9px; }
	.card-title { font-size: 1.16rem; }
	.card-excerpt { font-size: .88rem; }

	.hero { padding: 26px 28px; }
	.hero h1 { font-size: 1.45rem; }
}

/* =========================================================================
   CARD DESKTOP COMPACTO (28/09/2026, pedido do dono) — SÓ >= 880px.
   Loja, 💬, partilhar e "Abrir desconto" passam a uma linha só, por baixo da
   descrição; menos espaço vertical. O mobile não é tocado.
   PARA VOLTAR ATRÁS: apagar este bloco inteiro (a .card-foot fica neutra).
   ========================================================================= */
@media (min-width: 880px) {
	.card-body { gap: 6px; }
	.card-foot {
		display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
		margin-top: auto;
	}
	.card-foot .card-excerpt { flex: 0 0 100%; order: -1; margin: 0 0 2px; }
	.card-foot .card-meta { flex: 1 1 auto; min-width: 0; }
	.card-foot .card-actions { margin: 0 0 0 auto; padding-top: 0; flex-wrap: nowrap; }
	.card-foot .card-actions .cta-button { padding: 8px 16px; }
}
/* ======================= fim do CARD DESKTOP COMPACTO ===================== */

@media (min-width: 1024px) {
	.hamburger { display: none; }
}

/* ---------------------------------------------------------------------
 * Barra de aviso importante (topo, acima do header) — Customizer.
 * Mobile-first: compacta, texto centrado; estática (não cobre nada).
 * ------------------------------------------------------------------- */
.tf-aviso {
	background: linear-gradient(135deg, #dc2626, #b91c1c);
	color: #fff;
	text-align: center;
	padding: 9px 14px;
	font-size: .88rem;
	line-height: 1.45;
	font-weight: 600;
	letter-spacing: .1px;
	box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
}
.tf-aviso a {
	color: #fff;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.tf-aviso a:hover { opacity: .85; }
.tf-aviso strong { font-weight: 800; }
@media (min-width: 880px) {
	.tf-aviso { font-size: .95rem; padding: 10px 16px; }
}
/* O vermelho é deliberadamente igual no modo escuro — é um aviso. */

/* =========================================================================
   Tema de evento: Ofertas Prime (Personalizar → Tema de evento)
   Só troca as variáveis de cor — tudo o resto do site segue sozinho.
   Liga-se com a classe "tf-ev-prime" no <body> (datas no Customizer).
   ========================================================================= */
body.tf-ev-prime {
	--brand: #2563eb; --brand-600: #1d4ed8; --brand-ink: #ffffff;
	--accent: #2563eb; --accent-600: #1d4ed8; --accent-ink: #ffffff;
	--flame: #2563eb; --price-ink: #1d4ed8;
	--bg: #eaf1fe;
}
[data-theme="dark"] body.tf-ev-prime {
	--brand: #6ea0ff; --brand-600: #4f86f7; --accent: #6ea0ff; --accent-600: #4f86f7;
	--flame: #6ea0ff; --price-ink: #9dbfff;
	--bg: #0b1430; --card: #111d42; --line: #1f2e5c;
}
/* Cabeçalho e hero no azul do evento, com texto branco. */
body.tf-ev-prime .site-header { background: #2f6fed; border-bottom-color: #2558c9; }
[data-theme="dark"] body.tf-ev-prime .site-header { background: #142a6b; border-bottom-color: #1f2e5c; }
body.tf-ev-prime .hb-brand .wordmark,
body.tf-ev-prime .hb-brand .tagline,
body.tf-ev-prime .hb-burger,
body.tf-ev-prime .hb-actions > .icon-btn,
body.tf-ev-prime .hb-actions > a { color: #ffffff; }
body.tf-ev-prime .hero {
	background: linear-gradient(135deg, #3b7bf5 0%, #2459e0 100%);
	border-color: transparent; color: #ffffff;
}
body.tf-ev-prime .hero h1 { color: #ffffff; font-weight: 900; letter-spacing: -.01em; }
body.tf-ev-prime .hero p { color: rgba(255, 255, 255, .9); }
body.tf-ev-prime .hero a { color: #ffffff; text-decoration: none; }
body.tf-ev-prime .hero a:hover { color: #ffffff; opacity: .85; }
/* Contador do evento (por baixo do cabeçalho). */
.tf-ev-conta {
	background: linear-gradient(90deg, #1d4ed8, #3b7bf5); color: #fff;
	text-align: center; font-size: .9rem; padding: 7px 0; line-height: 1.35;
}
[data-theme="dark"] .tf-ev-conta { background: linear-gradient(90deg, #13285f, #1e3f8f); }
.tf-ev-conta .tafixe-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.tf-ev-conta__txt { font-weight: 600; }
.tf-ev-conta__t {
	font-variant-numeric: tabular-nums; font-weight: 900; letter-spacing: .02em;
	background: rgba(255, 255, 255, .16); padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}

/* =========================================================================
   Tema de evento: Black Friday (Personalizar → Tema de evento)
   Por omissão o site fica preto: o <html> já vem com data-theme="dark"
   (header.php), por isso tudo o que tem modo escuro segue sozinho; aqui só
   se põe o preto puro e a cor de destaque escolhida (classe tf-bf-*).
   Quem não gostar passa à "Black Friday clara" no botão claro/escuro:
   conteúdo claro, mas cabeçalho, topo, contador e rodapé continuam pretos.
   Contraste da cor de destaque sobre o preto (mín. 4,5:1): amarelo 14,9 ·
   dourado 10,8 · laranja 8,0 · roxo 6,3 · vermelho 5,8. No claro, o texto
   usa um tom escuro da mesma cor (--bf-txt, ≥ 5:1 no branco). O botão
   "Abrir desconto" continua amarelo em todas — é o botão que vende.
   ========================================================================= */
body.tf-ev-black,
body.tf-bf-amarelo { --bf: #ffd60a; --bf-600: #f5c400; --bf-ink: #111111; --bf-txt: #111111; --bf-txt-ink: #ffd60a; }
body.tf-bf-vermelho { --bf: #ff3347; --bf-600: #e81d33; --bf-ink: #111111; --bf-txt: #c8102e; --bf-txt-ink: #ffffff; }
body.tf-bf-dourado  { --bf: #e3b341; --bf-600: #c99a2e; --bf-ink: #111111; --bf-txt: #7d5f12; --bf-txt-ink: #ffffff; }
body.tf-bf-laranja  { --bf: #ff7a00; --bf-600: #e86a00; --bf-ink: #111111; --bf-txt: #b93d0a; --bf-txt-ink: #ffffff; }
body.tf-bf-roxo     { --bf: #b06ef0; --bf-600: #9a4fe0; --bf-ink: #ffffff; --bf-txt: #7226b0; --bf-txt-ink: #ffffff; }
body.tf-ev-black {
	--bg: #000000; --card: #111111; --line: #262626;
	--ink: #f5f5f5; --muted: #a3a3a3;
	--brand: var(--bf); --brand-600: var(--bf-600); --brand-ink: var(--bf-ink);
	--accent: var(--bf); --accent-600: var(--bf-600); --accent-ink: var(--bf-ink);
	--flame: var(--bf); --price-ink: var(--bf);
	--shadow: 0 1px 2px rgba(0,0,0,.7);
	--shadow-hover: 0 0 0 1px color-mix(in srgb, var(--bf) 35%, transparent), 0 10px 28px rgba(0,0,0,.8);
}
/* Preço: no vermelho fica branco (o vermelho é o do preço riscado). */
body.tf-bf-vermelho { --price-ink: #ffffff; }
/* No telemóvel, puxar a página para baixo mostra preto, não o azul-noite. */
html[data-tema-forcado="black"] { background: #000; }

/* Black Friday clara (escolha do visitante no botão claro/escuro). */
html:not([data-theme="dark"]) body.tf-ev-black {
	--bg: #f4f4f5; --card: #ffffff; --line: #e4e4e7;
	--ink: #18181b; --muted: #52525b;
	--brand: var(--bf-txt); --brand-600: var(--bf-txt); --brand-ink: var(--bf-txt-ink);
	--accent: var(--bf-txt); --accent-600: var(--bf-txt); --accent-ink: var(--bf-txt-ink);
	--flame: var(--bf-txt); --price-ink: #111111;
	--shadow: 0 1px 2px rgba(0,0,0,.08);
	--shadow-hover: 0 6px 18px rgba(0,0,0,.14);
}
/* …mas o que é "Black Friday" continua preto: o cabeçalho e o rodapé
   recebem as cores do preto (só valem lá dentro). */
html:not([data-theme="dark"]) body.tf-ev-black .site-header,
html:not([data-theme="dark"]) body.tf-ev-black .site-footer {
	--bg: #161616; --card: #000000; --line: #262626;
	--ink: #f5f5f5; --muted: #a3a3a3;
	--brand: var(--bf); --brand-600: var(--bf-600); --brand-ink: var(--bf-ink);
	--accent: var(--bf); --accent-600: var(--bf-600); --accent-ink: var(--bf-ink);
	color-scheme: dark;
}

/* Botão claro/escuro em estilo Black Friday. No computador, o ícone do
   cabeçalho na cor de destaque; no menu ☰, uma pílula preta com o fio. */
body.tf-ev-black .theme-toggle { color: var(--bf); }
.mobile-menu__theme--bf {
	text-align: center; background: #000; color: #ffffff;
	border: 2px solid var(--bf); border-radius: 999px;
}
.mobile-menu__theme--bf b { color: var(--bf); font-weight: 900; letter-spacing: .04em; }
.mobile-menu__theme--bf .bf-para-preto { display: none; }
html:not([data-theme="dark"]) .mobile-menu__theme--bf .bf-para-claro { display: none; }
html:not([data-theme="dark"]) .mobile-menu__theme--bf .bf-para-preto { display: inline; }

/* Cabeçalho preto com um fio da cor de destaque. */
body.tf-ev-black .site-header { background: #000; border-bottom: 2px solid var(--bf); }
body.tf-ev-black .cat-nav { background: #000; border-top-color: #1c1c1c; }
body.tf-ev-black .search-form { background: #161616; border-color: #2c2c2c; }

/* Topo da página (hero): preto com um brilho da cor de destaque e a etiqueta. */
body.tf-ev-black .hero {
	background:
		radial-gradient(130% 120% at 100% 0%, color-mix(in srgb, var(--bf) 24%, transparent) 0%, transparent 60%),
		#0b0b0b;
	border: 1px solid color-mix(in srgb, var(--bf) 40%, #262626);
	color: #ffffff;
}
body.tf-ev-black .hero::before {
	content: "BLACK FRIDAY";
	display: inline-block; margin-bottom: 10px;
	background: var(--bf); color: var(--bf-ink);
	font-size: .72rem; font-weight: 900; letter-spacing: .14em; line-height: 1;
	padding: 6px 10px; border-radius: 999px;
}
/* Nas páginas (Destaques, Mais Votados…) sem etiqueta: só o título, compacto. */
body.tf-ev-black .hero.hero--pag::before { content: none; display: none; }
body.tf-ev-black .hero.hero--pag { border-left: 4px solid var(--bf); }
body.tf-ev-black .hero h1 { color: #ffffff; font-weight: 900; letter-spacing: -.01em; }
body.tf-ev-black .hero p { color: #d4d4d4; }
body.tf-ev-black .hero a { color: var(--bf); text-decoration: none; }
body.tf-ev-black .hero a:hover { color: var(--bf); opacity: .85; }

/* Contador: faixa da cor de destaque, números grandes em blocos pretos. */
body.tf-ev-black .tf-ev-conta { background: var(--bf); color: var(--bf-ink); padding: 8px 0; }
body.tf-ev-black .tf-ev-conta__txt { font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.tf-ev-conta--blocos .tf-ev-conta__t { display: inline-flex; gap: 6px; background: none; padding: 0; border-radius: 0; letter-spacing: 0; }
.tf-ev-b {
	display: inline-flex; flex-direction: column; align-items: center;
	min-width: 48px; padding: 5px 6px 4px;
	background: #000; color: #ffffff; border-radius: var(--radius-sm); line-height: 1;
}
.tf-ev-b b { font-size: 1.3rem; font-weight: 900; color: var(--bf, #ffd60a); font-variant-numeric: tabular-nums; }
.tf-ev-b i { font-style: normal; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #d4d4d4; margin-top: 3px; }
@media (min-width: 880px) {
	body.tf-ev-black .tf-ev-conta { padding: 10px 0; }
	body.tf-ev-black .tf-ev-conta__txt { font-size: .95rem; }
	.tf-ev-b { min-width: 58px; }
	.tf-ev-b b { font-size: 1.55rem; }
}

/* Rodapé preto com o mesmo fio. */
body.tf-ev-black .site-footer { background: #000; border-top: 2px solid var(--bf); }

/* Telemóvel: sem o botão flutuante ↓ fim / ↑ topo (pedido do dono, 07/10/2026). */
@media (max-width: 879px) { #tf-jump { display: none !important; } }

/* =========================================================================
   Pesquisa sem resultados + link da Amazon colado (26/11/2026)
   ========================================================================= */
.tf-pesq-amz { margin: 0 0 14px; padding: 9px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, #22c55e 12%, var(--card, #fff)); border: 1px solid color-mix(in srgb, #22c55e 45%, transparent); font-size: .9rem; font-weight: 600; }
.tf-vazio { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px 18px; margin: 0 0 var(--gap, 18px); box-shadow: var(--shadow); }
.tf-vazio__ico { font-size: 2.4rem; line-height: 1; margin-bottom: 8px; }
.tf-vazio__t { font-size: 1.15rem; line-height: 1.3; margin: 0 0 8px; overflow-wrap: anywhere; }
.tf-vazio__s { color: var(--muted); margin: 0 auto 14px; max-width: 460px; }
.tf-vazio__dicas { list-style: none; margin: 0 auto 14px; padding: 0; max-width: 460px; text-align: left; font-size: .92rem; color: var(--muted); }
.tf-vazio__dicas li { position: relative; padding: 4px 0 4px 22px; }
.tf-vazio__dicas li::before { content: "✓"; position: absolute; left: 2px; color: var(--brand); font-weight: 800; }
.tf-vazio__acoes { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 14px; }
.tf-vazio__acoes .cta-button { width: 100%; max-width: 360px; }
.tf-vazio__sec { font-weight: 700; font-size: .9rem; text-decoration: none; }
.tf-vazio__form { max-width: 460px; margin: 0 auto 14px; }
.tf-vazio__form .search-form { width: 100%; }
.tf-vazio__lbl { margin: 4px 0 6px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tf-vazio__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 10px; }
.tf-vazio__chips a { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: .85rem; font-weight: 700; text-decoration: none; }
.tf-vazio__chips a small { color: var(--muted); font-weight: 600; }
.tf-vazio__chips a:hover { border-color: var(--brand); }
.tf-vazio__chips--atalhos { margin-bottom: 0; }
.tf-vazio__h { font-size: 1.05rem; margin: 6px 0 12px; }
