/* Nota: não se usa container-type aqui. Dentro de alguns construtores
   de páginas (Elementor) um container de consulta faz o bloco que o
   contém ficar bem mais alto do que o conteúdo — sobrava um espaço
   enorme por baixo no telemóvel. As medidas passam por @media. */
/* =====================================================================
   Orçamentos — Tabela de produtos por categoria ([tabela_produtos])
   Um cartão só: pesquisa e filtros no topo, tabela, rodapé.
   Sem scroll lateral: se não couber, o JS aplica .fpt--compacto e,
   em último caso, .fpt--cartoes (medido no próprio contentor).
   ===================================================================== */

.fpt {
	--fpt-accent: #1f3664;
	--fpt-ink: #0f172a;
	--fpt-ink-2: #334155;
	--fpt-muted: #64748b;
	--fpt-faint: #94a3b8;
	--fpt-line: #e8ebf0;
	--fpt-line-2: #f1f3f6;
	--fpt-sunk: #f8fafc;
	--fpt-surface: #ffffff;
	--fpt-ok: #15803d;
	--fpt-err: #b91c1c;
	--fpt-r: 16px;
	--fpt-r-sm: 10px;
	--fpt-t: .18s cubic-bezier(.4, 0, .2, 1);
	--fpt-pad-x: 18px;

	position: relative;
	color: var(--fpt-ink);
	font-size: 14px;
	line-height: 1.45;
	margin: 0 0 40px;
	-webkit-font-smoothing: antialiased;
}
.fpt *, .fpt *::before, .fpt *::after { box-sizing: border-box; }
.fpt svg { width: 16px; height: 16px; flex: none; }
.fpt .fpt-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.fpt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.po-tabela-aviso { padding: 12px 16px; border: 1px dashed #f59e0b; background: #fffbeb; border-radius: 10px; }

/* ---------- cartão ---------- */
.fpt-card {
	background: var(--fpt-surface);
	border: 1px solid var(--fpt-line);
	border-radius: var(--fpt-r);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -24px rgba(15, 23, 42, .18);
	overflow: hidden;
}

/* ---------- barra de pesquisa e filtros ---------- */
.fpt-toolbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	padding: 16px var(--fpt-pad-x);
	border-bottom: 1px solid var(--fpt-line);
}
.fpt-search { position: relative; flex: 1 1 280px; display: flex; align-items: center; margin: 0; }
.fpt-search > svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--fpt-faint); pointer-events: none; }
.fpt .fpt-search-input {
	width: 100%; height: 42px; margin: 0; padding: 0 14px 0 42px;
	border: 1px solid var(--fpt-line); border-radius: var(--fpt-r-sm);
	background: var(--fpt-sunk); color: var(--fpt-ink);
	font: inherit; font-size: 14px; box-shadow: none; outline: none;
	transition: border-color var(--fpt-t), box-shadow var(--fpt-t), background var(--fpt-t);
}
.fpt .fpt-search-input::placeholder { color: var(--fpt-faint); }
.fpt .fpt-search-input:focus {
	background: var(--fpt-surface); border-color: var(--fpt-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--fpt-accent) 12%, transparent);
}
.fpt .fpt-filters-toggle {
	display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; margin: 0;
	border: 1px solid var(--fpt-line); border-radius: var(--fpt-r-sm); background: var(--fpt-surface);
	font: inherit; font-size: 13.5px; font-weight: 600; color: var(--fpt-ink-2); cursor: pointer;
	transition: border-color var(--fpt-t), background var(--fpt-t), color var(--fpt-t);
}
.fpt .fpt-filters-toggle svg { width: 17px; height: 17px; color: var(--fpt-muted); }
.fpt .fpt-filters-toggle:hover { border-color: #cfd6df; color: var(--fpt-ink); }
.fpt .fpt-filters-toggle[aria-expanded="true"] {
	border-color: color-mix(in srgb, var(--fpt-accent) 40%, #fff);
	background: color-mix(in srgb, var(--fpt-accent) 6%, #fff); color: var(--fpt-accent);
}
.fpt .fpt-filters-toggle[aria-expanded="true"] svg { color: var(--fpt-accent); }
.fpt .fpt-filters-toggle:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--fpt-accent) 20%, transparent); }
.fpt .fpt-badge {
	display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
	border-radius: 999px; background: var(--fpt-accent); color: #fff; font-size: 11.5px; font-weight: 700;
}
.fpt .fpt-badge[hidden] { display: none; }

.fpt-filters {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 14px;
	padding: 16px var(--fpt-pad-x) 18px; background: var(--fpt-sunk); border-bottom: 1px solid var(--fpt-line);
}
.fpt-filters[hidden] { display: none; }
.fpt-filter { display: flex; flex-direction: column; gap: 5px; margin: 0; min-width: 0; }
.fpt .fpt-filter-label {
	font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fpt-muted);
}
.fpt .fpt-filter-label small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fpt-faint); }
.fpt .fpt-filter select {
	width: 100%; height: 40px; margin: 0; padding: 0 32px 0 12px;
	border: 1px solid var(--fpt-line); border-radius: var(--fpt-r-sm);
	background-color: var(--fpt-surface); color: var(--fpt-ink-2);
	font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; outline: none;
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center; background-size: 15px;
	transition: border-color var(--fpt-t), box-shadow var(--fpt-t), background-color var(--fpt-t), color var(--fpt-t);
}
.fpt .fpt-filter select:hover { border-color: #cfd6df; }
.fpt .fpt-filter select:focus { border-color: var(--fpt-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fpt-accent) 12%, transparent); }
.fpt .fpt-filter select.is-set {
	border-color: color-mix(in srgb, var(--fpt-accent) 45%, #fff);
	background-color: color-mix(in srgb, var(--fpt-accent) 6%, #fff);
	color: var(--fpt-accent); font-weight: 600;
}

/* filtros ativos */
.fpt-active {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 10px var(--fpt-pad-x); background: var(--fpt-sunk); border-bottom: 1px solid var(--fpt-line);
}
.fpt-active[hidden] { display: none; }
.fpt-active-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fpt .fpt-tag {
	display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 11px; margin: 0;
	border: 1px solid var(--fpt-line); border-radius: 999px; background: var(--fpt-surface);
	font: inherit; font-size: 12.5px; color: var(--fpt-ink-2); cursor: pointer;
	transition: border-color var(--fpt-t), color var(--fpt-t);
}
.fpt .fpt-tag b { font-weight: 600; color: var(--fpt-ink); }
.fpt .fpt-tag svg { width: 14px; height: 14px; color: var(--fpt-faint); }
.fpt .fpt-tag:hover { border-color: #cfd6df; }
.fpt .fpt-tag:hover svg { color: var(--fpt-err); }
.fpt .fpt-clear {
	display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; margin: 0;
	border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600;
	color: var(--fpt-muted); cursor: pointer; border-radius: 8px;
}
.fpt .fpt-clear svg { width: 14px; height: 14px; }
.fpt .fpt-clear:hover { color: var(--fpt-ink); background: var(--fpt-line-2); }

/* ---------- tabela ---------- */
.fpt-scroll { overflow: visible; }
.fpt .fpt-table {
	width: 100%; margin: 0; border: 0; border-collapse: collapse; border-spacing: 0;
	font-variant-numeric: tabular-nums; table-layout: auto;
}
.fpt .fpt-table th, .fpt .fpt-table td { border: 0; background: transparent; }

.fpt .fpt-table thead th {
	padding: 0; text-align: center; vertical-align: middle; white-space: nowrap;
	background: var(--fpt-sunk); border-bottom: 1px solid var(--fpt-line);
}
.fpt .fpt-table thead th.fpt-th-produto { text-align: left; }
.fpt .fpt-table thead th.fpt-th-acao { text-align: right; }

/* Títulos numa só linha, centrados. Texto normal (não maiúsculas
   espaçadas) para caberem sem alargar demasiado as colunas. */
.fpt .fpt-sort {
	position: relative; display: flex; align-items: center; justify-content: center; width: 100%;
	padding: 12px 10px; border: 0; background: transparent; cursor: pointer;
	font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none;
	color: var(--fpt-muted); line-height: 1.2; white-space: nowrap;
}
.fpt .fpt-th-produto .fpt-sort { justify-content: flex-start; padding-left: var(--fpt-pad-x); }
.fpt .fpt-th-txt { display: inline; white-space: nowrap; }
.fpt .fpt-th-txt small {
	margin-left: 3px; font-size: 11px; font-weight: 500; color: var(--fpt-faint);
}
/* O ícone de ordenar não ocupa largura: fica sobreposto à direita. */
.fpt .fpt-sort svg {
	position: absolute; right: 2px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px;
	opacity: 0; transition: opacity var(--fpt-t);
}
.fpt .fpt-th-produto .fpt-sort svg { position: static; margin: 0 0 0 5px; }
.fpt .fpt-sort:hover { color: var(--fpt-ink); }
.fpt .fpt-sort:hover svg { opacity: .55; }
.fpt .fpt-sort:focus-visible { outline: 2px solid var(--fpt-accent); outline-offset: -4px; border-radius: 6px; }
.fpt th[aria-sort="ascending"] .fpt-sort,
.fpt th[aria-sort="descending"] .fpt-sort { color: var(--fpt-accent); }
.fpt th[aria-sort="ascending"] .fpt-sort svg { opacity: 1; clip-path: inset(0 0 50% 0); }
.fpt th[aria-sort="descending"] .fpt-sort svg { opacity: 1; clip-path: inset(50% 0 0 0); }

.fpt .fpt-table tbody td {
	padding: 12px 8px; vertical-align: middle; color: var(--fpt-ink);
	border-bottom: 1px solid var(--fpt-line-2);
}
.fpt .fpt-table tbody tr:last-child td { border-bottom: 0; }
.fpt .fpt-table tbody tr { transition: background var(--fpt-t); }
.fpt .fpt-table tbody tr:hover { background: color-mix(in srgb, var(--fpt-accent) 2.5%, #fff); }
.fpt .fpt-table tbody tr:hover .fpt-td-produto { box-shadow: inset 3px 0 0 var(--fpt-accent); }

/* produto */
.fpt .fpt-td-produto { padding-left: var(--fpt-pad-x); width: 22%; min-width: 250px; }
.fpt .fpt-prod-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fpt .fpt-thumb { display: block; flex: none; }
.fpt .fpt-img {
	display: block; width: 46px !important; height: 46px !important; margin: 0 !important; max-width: none !important;
	object-fit: cover; border-radius: 10px; border: 1px solid var(--fpt-line); background: var(--fpt-sunk);
}
.fpt .fpt-img--vazia {
	background:
		linear-gradient(135deg, transparent 47%, #e5e9ef 47% 53%, transparent 53%),
		var(--fpt-sunk);
}
.fpt .fpt-prod { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fpt .fpt-nome {
	color: var(--fpt-ink); font-weight: 600; font-size: 14px; letter-spacing: -.005em;
	text-decoration: none; line-height: 1.3;
}
.fpt .fpt-nome:hover { color: var(--fpt-accent); }
/* primeira coluna: nome e, por baixo, a referência */
.fpt .fpt-titulo { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.fpt .fpt-sku {
	display: block; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
	font-size: 11.5px; color: var(--fpt-faint); letter-spacing: .01em; white-space: nowrap;
}
.fpt .fpt-cor { display: inline-flex; align-items: center; gap: 7px; }
.fpt .fpt-swatch {
	flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sw, #cbd5e1);
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .18);
}
.fpt .fpt-swatch--neutra { background: conic-gradient(#f87171, #fbbf24, #34d399, #60a5fa, #a78bfa, #f87171); }
.fpt .fpt-swatch--transp { background: repeating-conic-gradient(#e2e8f0 0 25%, #fff 0 50%) 50% / 6px 6px; }

/* medidas */
.fpt .fpt-td-spec { font-size: 13.5px; font-weight: 500; color: var(--fpt-ink-2); text-align: center; }
.fpt .fpt-td-spec.fpt-num { white-space: nowrap; color: var(--fpt-ink); }
/* Texto parte dentro da própria coluna, em vez de alargar a tabela. */
.fpt .fpt-td-spec.fpt-txt { min-width: 88px; max-width: 180px; font-size: 13px; line-height: 1.35; text-wrap: pretty; overflow-wrap: break-word; }
.fpt .fpt-td-preco { text-align: center; }
.fpt .fpt-cor { justify-content: center; }
.fpt .fpt-na { color: #cbd5e1; font-weight: 400; }
.fpt .fpt-td-preco { white-space: nowrap; font-weight: 700; }

/* comprar */
.fpt .fpt-td-acao { width: 1%; white-space: nowrap; text-align: right; padding-right: var(--fpt-pad-x); }
.fpt .fpt-buy { display: inline-flex; align-items: center; gap: 8px; }
.fpt .fpt-qty {
	display: inline-flex; align-items: center; height: 38px;
	border: 1px solid var(--fpt-line); border-radius: var(--fpt-r-sm); background: var(--fpt-surface);
	transition: border-color var(--fpt-t);
}
.fpt .fpt-qty:focus-within { border-color: var(--fpt-accent); }
.fpt .fpt-qty-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 100%; padding: 0; margin: 0; border: 0; background: transparent;
	color: var(--fpt-muted); cursor: pointer; border-radius: 9px;
	transition: color var(--fpt-t), background var(--fpt-t);
}
.fpt .fpt-qty-btn svg { width: 14px; height: 14px; }
.fpt .fpt-qty-btn:hover { color: var(--fpt-ink); background: var(--fpt-line-2); }
.fpt .fpt-qty-input {
	width: 34px; height: 100%; margin: 0; padding: 0; border: 0; background: transparent;
	text-align: center; font: inherit; font-size: 14px; font-weight: 600; color: var(--fpt-ink);
	box-shadow: none; outline: none; -moz-appearance: textfield;
}
.fpt .fpt-qty-input::-webkit-outer-spin-button,
.fpt .fpt-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.fpt .fpt-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	height: 38px; padding: 0 15px; margin: 0;
	border: 1px solid transparent; border-radius: var(--fpt-r-sm);
	font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; white-space: nowrap;
	text-decoration: none; cursor: pointer; box-shadow: none;
	transition: background var(--fpt-t), border-color var(--fpt-t), color var(--fpt-t), box-shadow var(--fpt-t), transform var(--fpt-t);
}
.fpt .fpt-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--fpt-accent) 25%, transparent); }
.fpt .fpt-btn--cart { background: var(--fpt-accent); color: #fff; }
.fpt .fpt-btn--cart svg { width: 16px; height: 16px; }
.fpt .fpt-btn--cart:hover {
	background: color-mix(in srgb, var(--fpt-accent) 88%, #000); color: #fff;
	box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--fpt-accent) 70%, transparent);
}
.fpt .fpt-btn--cart:active { transform: translateY(1px); }
.fpt .fpt-btn--ghost { background: var(--fpt-surface); border-color: var(--fpt-line); color: var(--fpt-ink-2); }
.fpt .fpt-btn--ghost:hover { border-color: #cfd6df; color: var(--fpt-ink); background: var(--fpt-sunk); }
.fpt .fpt-btn--ghost svg { width: 14px; height: 14px; }
.fpt .fpt-btn--off { background: var(--fpt-sunk); color: var(--fpt-faint); cursor: default; }

.fpt .fpt-ico { display: inline-flex; }
.fpt .fpt-btn .fpt-ico-ok { display: none; }
.fpt .fpt-btn--cart.is-loading { color: transparent; pointer-events: none; }
.fpt .fpt-btn--cart.is-loading::after {
	content: ""; position: absolute; width: 16px; height: 16px;
	border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%;
	animation: fpt-spin .7s linear infinite;
}
.fpt .fpt-btn--cart.is-added { background: var(--fpt-ok); }
.fpt .fpt-btn--cart.is-added .fpt-ico-cart { display: none; }
.fpt .fpt-btn--cart.is-added .fpt-ico-ok { display: inline-flex; animation: fpt-pop .3s ease; }
@keyframes fpt-spin { to { transform: rotate(360deg); } }
@keyframes fpt-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* ---------- rodapé / vazio / toast ---------- */
.fpt-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px var(--fpt-pad-x); border-top: 1px solid var(--fpt-line); background: var(--fpt-sunk);
}
.fpt .fpt-count { font-size: 12.5px; color: var(--fpt-muted); font-weight: 500; }
.fpt .fpt-more { height: 34px; font-size: 13px; }
.fpt .fpt-more[hidden] { display: none; }

.fpt-empty {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 48px 20px; text-align: center; color: var(--fpt-muted);
}
.fpt-empty strong { color: var(--fpt-ink); font-size: 15px; }
.fpt-empty .fpt-btn { margin-top: 10px; }
.fpt-empty[hidden] { display: none; }

.fpt-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 99999;
	transform: translate(-50%, 16px); opacity: 0;
	display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px);
	padding: 12px 14px 12px 18px; border-radius: 12px; background: #0f172a; color: #fff;
	font-size: 14px; box-shadow: 0 20px 44px -12px rgba(15, 23, 42, .45);
	transition: opacity .22s ease, transform .22s ease;
}
.fpt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.fpt-toast.is-erro { background: var(--fpt-err); }
.fpt-toast a {
	color: #0f172a; background: #fff; padding: 7px 12px; border-radius: 8px;
	font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.fpt *, .fpt-toast { transition: none !important; animation: none !important; }
}

/* =====================================================================
   COMPACTO — quando a largura normal não chega (aplicado pelo JS)
   ===================================================================== */
.fpt.fpt--compacto { --fpt-pad-x: 14px; }
.fpt.fpt--compacto .fpt-table tbody td { padding: 10px 8px; }
.fpt.fpt--compacto .fpt-sort { padding: 10px 8px 9px; }
.fpt.fpt--compacto .fpt-prod-wrap { gap: 10px; }
.fpt.fpt--compacto .fpt-img { width: 40px !important; height: 40px !important; }
.fpt.fpt--compacto .fpt-td-produto { min-width: 190px; }
.fpt.fpt--compacto .fpt-td-spec.fpt-txt { min-width: 64px; max-width: 130px; font-size: 13px; }
.fpt.fpt--compacto .fpt-nome { font-size: 13.5px; }
.fpt.fpt--compacto .fpt-btn--cart { width: 38px; padding: 0; }
.fpt.fpt--compacto .fpt-btn--cart .fpt-btn-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fpt.fpt--compacto .fpt-qty-btn { width: 26px; }
.fpt.fpt--compacto .fpt-qty-input { width: 28px; }

/* =====================================================================
   CARTÕES — contentor estreito (JS) ou ecrã pequeno (sem JS)
   ===================================================================== */
.fpt.fpt--cartoes .fpt-table,
.fpt.fpt--cartoes .fpt-table tbody { display: block; }
.fpt.fpt--cartoes .fpt-table thead { display: none; }
.fpt.fpt--cartoes .fpt-table tbody tr {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px 16px;
	padding: 16px var(--fpt-pad-x); border-bottom: 1px solid var(--fpt-line);
}
.fpt.fpt--cartoes .fpt-table tbody tr[hidden] { display: none; }
.fpt.fpt--cartoes .fpt-table tbody tr:hover { background: transparent; }
.fpt.fpt--cartoes .fpt-table tbody tr:hover .fpt-td-produto { box-shadow: none; }
.fpt.fpt--cartoes .fpt-table tbody td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
.fpt.fpt--cartoes .fpt-cor { justify-content: flex-start; }
.fpt.fpt--cartoes .fpt-table tbody td.fpt-vazio { display: none; }
.fpt.fpt--cartoes .fpt-td-produto { grid-column: 1 / -1; min-width: 0; width: auto; }
.fpt.fpt--cartoes .fpt-td-spec::before,
.fpt.fpt--cartoes .fpt-td-preco::before {
	content: attr(data-label); display: block; margin-bottom: 2px;
	font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fpt-faint);
}
.fpt.fpt--cartoes .fpt-td-acao { grid-column: 1 / -1; width: auto; padding-right: 0; }
.fpt.fpt--cartoes .fpt-buy { display: flex; width: 100%; }
.fpt.fpt--cartoes .fpt-qty { height: 44px; }
.fpt.fpt--cartoes .fpt-btn { height: 44px; flex: 1; width: auto; padding: 0 16px; }
.fpt.fpt--cartoes .fpt-btn--cart .fpt-btn-txt { position: static; width: auto; height: auto; clip: auto; }
.fpt.fpt--cartoes .fpt-td-acao > .fpt-btn { width: 100%; }
.fpt.fpt--cartoes .fpt-toolbar { padding: 12px var(--fpt-pad-x); }
.fpt.fpt--cartoes .fpt-filters { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.fpt.fpt--cartoes .fpt-td-produto { max-width: none; }
.fpt.fpt--cartoes .fpt-td-spec.fpt-txt { max-width: none; }

/* sem JS: ecrã pequeno usa cartões na mesma */
@media (max-width: 720px) {
	.fpt:not(.fpt--js) .fpt-table, .fpt:not(.fpt--js) .fpt-table tbody { display: block; }
	.fpt:not(.fpt--js) .fpt-table thead { display: none; }
	.fpt:not(.fpt--js) .fpt-table tbody tr { display: block; padding: 14px; border-bottom: 1px solid var(--fpt-line); }
	.fpt:not(.fpt--js) .fpt-table tbody td { display: block; padding: 3px 0; text-align: left; }
}

/* =====================================================================
   AMPLIAR IMAGEM — a imagem cresce a partir da miniatura
   (o painel vive no <body>, fora de .fpt: usa cores próprias)
   ===================================================================== */
.fpt .fpt-zoom {
	position: relative; display: block; padding: 0; margin: 0; border: 0; background: none;
	border-radius: 10px; cursor: zoom-in; line-height: 0;
}
.fpt .fpt-zoom .fpt-img { transition: box-shadow var(--fpt-t), border-color var(--fpt-t); }
.fpt .fpt-zoom-ico {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	border-radius: 10px; background: rgba(15, 23, 42, .45); color: #fff;
	opacity: 0; transition: opacity var(--fpt-t);
}
.fpt .fpt-zoom-ico svg { width: 16px; height: 16px; }
.fpt .fpt-zoom:hover .fpt-zoom-ico,
.fpt .fpt-zoom:focus-visible .fpt-zoom-ico { opacity: 1; }
.fpt .fpt-zoom:hover .fpt-img { border-color: #cfd6df; box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .35); }
.fpt .fpt-zoom:focus-visible { outline: 2px solid var(--fpt-accent); outline-offset: 2px; }
.fpt .fpt-zoom.is-origem .fpt-img { visibility: hidden; } /* a imagem "sai" daqui */

.fpt-lb {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; align-items: center; justify-content: center;
}
.fpt-lb[hidden] { display: none; }
.fpt-lb-fundo {
	position: absolute; inset: 0; background: rgba(15, 23, 42, .78);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	opacity: 0; transition: opacity .32s ease; cursor: zoom-out;
}
.fpt-lb.is-aberto .fpt-lb-fundo { opacity: 1; }
.fpt-lb-img {
	position: fixed; margin: 0; max-width: none; object-fit: cover;
	background: #fff; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55);
	cursor: zoom-out; will-change: left, top, width, height;
}
.fpt-lb-legenda {
	position: fixed; left: 50%; transform: translate(-50%, 8px);
	max-width: min(90vw, 720px); text-align: center; color: #fff;
	font-size: 15px; font-weight: 600; line-height: 1.35;
	opacity: 0; transition: opacity .25s ease .1s, transform .25s ease .1s; pointer-events: none;
}
.fpt-lb-legenda small {
	display: block; margin-top: 3px; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
	font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .65);
}
.fpt-lb.is-aberto .fpt-lb-legenda { opacity: 1; transform: translate(-50%, 0); }
.fpt-lb-fechar {
	position: fixed; top: 20px; right: 20px; width: 44px; height: 44px; padding: 0; margin: 0;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
	opacity: 0; transition: opacity .25s ease, background .18s ease;
}
.fpt-lb-fechar svg { width: 20px; height: 20px; }
.fpt-lb-fechar:hover { background: rgba(255, 255, 255, .26); }
.fpt-lb-fechar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fpt-lb.is-aberto .fpt-lb-fechar { opacity: 1; }
.fpt-lb-carregar {
	position: fixed; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
	border-radius: 50%; animation: fpt-spin .7s linear infinite;
}
.fpt-lb-carregar[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
	.fpt-lb-fundo, .fpt-lb-legenda, .fpt-lb-fechar { transition: none; }
}

.fpt .fpt-filter--off { display: none; }

.fpt-lb-desc {
	margin: 12px auto 0; max-width: 620px;
	font-size: 14px; font-weight: 400; line-height: 1.6; color: rgba(255, 255, 255, .82);
	text-wrap: pretty;
}

/* Loja: convite a escolher categoria (as colunas técnicas dependem dela) */
.fpt-dica {
	display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
	padding: 14px var(--fpt-pad-x); border-bottom: 1px solid var(--fpt-line);
	background: linear-gradient(90deg, color-mix(in srgb, var(--fpt-accent) 7%, #fff), var(--fpt-surface));
}
.fpt-dica[hidden] { display: none; }
.fpt-dica-txt { display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; font-size: 13.5px; color: var(--fpt-ink-2); }
.fpt-dica-txt strong { color: var(--fpt-ink); font-weight: 650; }
.fpt-dica-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.fpt .fpt-dica-cat {
	display: inline-flex; align-items: center; gap: 7px; height: 32px; margin: 0; padding: 0 6px 0 12px;
	border: 1px solid var(--fpt-line); border-radius: 999px; background: var(--fpt-surface);
	font: inherit; font-size: 13px; font-weight: 550; color: var(--fpt-ink); cursor: pointer;
	transition: border-color var(--fpt-t), color var(--fpt-t), box-shadow var(--fpt-t);
}
.fpt .fpt-dica-cat small {
	padding: 3px 7px; border-radius: 999px; background: var(--fpt-sunk);
	font-size: 11px; font-weight: 600; color: var(--fpt-ink-2); font-variant-numeric: tabular-nums;
}
.fpt .fpt-dica-cat:hover { border-color: var(--fpt-accent); color: var(--fpt-accent); box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--fpt-accent) 50%, transparent); }
.fpt .fpt-dica-cat:focus-visible { outline: 2px solid var(--fpt-accent); outline-offset: 2px; }

/* ---------- slider da imagem ampliada ---------- */
.fpt-lb-nav {
	position: fixed; width: 46px; height: 46px; padding: 0; margin: 0; z-index: 2;
	display: grid; place-items: center;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff;
	cursor: pointer; opacity: 0; transition: opacity .25s ease, background .18s ease;
}
.fpt-lb-nav svg { width: 22px; height: 22px; }
.fpt-lb-nav:hover { background: rgba(255, 255, 255, .3); }
.fpt-lb-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fpt-lb-nav[hidden] { display: none; }
.fpt-lb.is-aberto .fpt-lb-nav { opacity: 1; }

.fpt-lb-tira {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
	margin-top: 12px; pointer-events: auto;
}
.fpt-lb-mini {
	width: 54px; height: 54px; padding: 0; margin: 0; overflow: hidden; flex: none;
	border: 2px solid transparent; border-radius: 10px; background: rgba(255, 255, 255, .12);
	cursor: pointer; opacity: .65; transition: opacity .18s ease, border-color .18s ease;
}
.fpt-lb-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fpt-lb-mini:hover { opacity: 1; }
.fpt-lb-mini.is-atual { opacity: 1; border-color: #fff; }
.fpt-lb-mini:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 560px) {
	.fpt-lb-nav { width: 40px; height: 40px; }
	.fpt-lb-mini { width: 44px; height: 44px; }
}
