/*
 * Ajustes de UX (09/11). Carregado só com TRIANGULO_UX_0911 = true
 * (functions.php); ver inc/ux.php. Tudo escopado em body.ux-0911.
 * Origem: Cerebro\Clientes\Triangulo\Revisao-UX-2026-11-09.md (itens rápidos).
 */

/* ---------- Catálogo: topo compacto (os produtos aparecem na primeira tela) ---------- */
body.ux-0911 .catalogo-heroi,
body.ux-0911 .catalogo-heroi--foto,
body.ux-0911.tema-escuro .catalogo-heroi {
	min-height: 0;
}

body.ux-0911 .catalogo-heroi__conteudo {
	padding-top: var(--e-6);
	padding-bottom: var(--e-6);
}

body.ux-0911 .catalogo-heroi__titulo {
	max-width: none;
	font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}

body.ux-0911 .catalogo-heroi__texto {
	margin-bottom: var(--e-4);
}

body.ux-0911 .catalogo {
	padding-top: var(--e-6);
}

@media (max-width: 760px) {
	body.ux-0911 .catalogo-heroi__conteudo {
		padding-top: var(--e-5);
		padding-bottom: var(--e-5);
	}

	body.ux-0911 .catalogo-heroi .breadcrumb {
		display: none;
	}
}

/* ---------- Card de produto: tom e largura no lugar do botão ---------- */
body.ux-0911 .card__info {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 6px 0 0;
	color: var(--tinta-suave);
	font-size: 13.5px;
	line-height: 1.4;
}

body.ux-0911 .card__tom {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

body.ux-0911 .card__tom .chip__tom {
	width: 10px;
	height: 10px;
	margin: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(241, 236, 227, 0.25);
}

body.ux-0911 .card__corpo {
	padding-bottom: 18px;
}

/* ---------- Ficha: fatos rápidos ao lado do título ---------- */
body.ux-0911 .ficha__fatos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: var(--e-4) 0;
	border: 1px solid var(--linha);
	border-radius: 8px;
	overflow: hidden;
	background: var(--linha);
}

body.ux-0911 .ficha__fatos > div {
	padding: 12px 14px;
	background: var(--creme-fundo, #151513);
}

body.ux-0911 .ficha__fatos dt {
	margin: 0 0 2px;
	color: var(--tinta-suave);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

body.ux-0911 .ficha__fatos dd {
	margin: 0;
	color: var(--tinta);
	font-size: 15.5px;
	font-weight: 500;
}

/* ---------- Ficha: especificações em tabela (opções lado a lado) ---------- */
body.ux-0911 .specs-tabela {
	overflow-x: auto;
	border: 1px solid var(--linha);
	border-radius: 10px;
}

body.ux-0911 .specs-tabela table {
	width: 100%;
	min-width: 420px;
	border-collapse: collapse;
	font-size: 15px;
}

body.ux-0911 .specs-tabela th,
body.ux-0911 .specs-tabela td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--linha);
	text-align: left;
}

body.ux-0911 .specs-tabela tbody tr:last-child th,
body.ux-0911 .specs-tabela tbody tr:last-child td {
	border-bottom: 0;
}

body.ux-0911 .specs-tabela thead th {
	color: #d7b47e;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

body.ux-0911 .specs-tabela tbody th {
	color: var(--tinta-suave);
	font-weight: 400;
}

body.ux-0911 .specs-tabela td {
	color: var(--tinta);
	font-weight: 500;
}

/* ---------- Ficha: "Ler mais" ---------- */
body.ux-0911 .ler-mais {
	margin-top: var(--e-3);
	padding: 6px 0;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: none;
	color: #d7b47e;
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

body.ux-0911 .ler-mais:hover {
	color: #ecd3a8;
}

/* ---------- Ficha: barra fixa no celular ---------- */
body.ux-0911 .ficha-barra {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 75;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--linha);
	background: rgba(15, 15, 14, 0.96);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

body.ux-0911 .ficha-barra[hidden] {
	display: none;
}

body.ux-0911 .ficha-barra .botao {
	justify-content: center;
	min-height: 48px;
	padding-inline: 12px;
	font-size: 15px;
}

@media (min-width: 900px) {
	body.ux-0911 .ficha-barra {
		display: none !important;
	}
}

/* Com a barra, o WhatsApp flutuante sai (ela já tem o orçamento pelo WhatsApp). */
body.ux-0911.tem-ficha-barra .whatsapp {
	opacity: 0;
	pointer-events: none;
	transform: translateY(140%);
}

/* ---------- WhatsApp flutuante: recolhe ao descer (celular) ---------- */
body.ux-0911 .whatsapp {
	transition: transform 250ms ease, opacity 250ms ease, box-shadow 200ms ease, background 200ms ease;
}

body.ux-0911 .whatsapp.esta-recolhido {
	opacity: 0;
	pointer-events: none;
	transform: translateY(140%);
}

/* ---------- Topo: lupa da busca ---------- */
body.ux-0911 .site-topo__busca {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #d7b47e;
}

body.ux-0911 .site-topo__busca:hover {
	color: #ecd3a8;
}

body.ux-0911 .site-topo__busca .site-topo__icone {
	width: 20px;
	height: 20px;
}

/* ---------- Rodapé no celular: sanfona ---------- */
body.ux-0911 .rodape__sanfona {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	text-transform: inherit;
	cursor: default;
}

@media (max-width: 899px) {
	body.ux-0911 .rodape__sanfona:not(:disabled) {
		min-height: 44px;
		cursor: pointer;
	}

	body.ux-0911 .rodape__sanfona:not(:disabled)::after {
		content: "+";
		font-size: 20px;
		letter-spacing: 0;
		line-height: 1;
	}

	body.ux-0911 .rodape__sanfona[aria-expanded="true"]::after {
		content: "−";
	}
}

/* O tema dá display às listas do rodapé, e isso ganha do atributo hidden. */
body.ux-0911 .rodape__lista[hidden] {
	display: none;
}

/* Tabela no celular: cabe na tela sem rolar de lado. */
@media (max-width: 600px) {
	body.ux-0911 .specs-tabela table {
		min-width: 0;
		font-size: 14px;
	}

	body.ux-0911 .specs-tabela th,
	body.ux-0911 .specs-tabela td {
		padding: 11px 10px;
	}

	body.ux-0911 .specs-tabela thead th {
		letter-spacing: 0.08em;
	}
}
