/* RA Peças — estilos do tema (tradução fiel do UI kit do design system).
   Depende dos tokens em colors.css / typography.css / spacing.css. */

/* ---------- Base da página ---------- */
body.rap-dark {
	background: var(--bg-page);
	color: var(--text-body);
	font-family: var(--font-body);
	font-size: var(--text-body-md);
	line-height: var(--leading-body);
	margin: 0;
}
.rap-container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--page-pad-mobile);
	padding-right: var(--page-pad-mobile);
}
@media (min-width: 768px) {
	.rap-container { padding-left: var(--page-pad-desktop); padding-right: var(--page-pad-desktop); }
}
a { color: var(--text-accent); }
.rap-icon { flex: none; }

/* ---------- Tipografia utilitária ---------- */
.rap-h1, .rap-h2, .rap-h3 {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: var(--tracking-display);
	line-height: var(--leading-display);
	color: var(--text-strong);
	margin: 0;
}
.rap-h1 { font-size: var(--text-display-lg); font-weight: var(--weight-display); }
.rap-h2 { font-size: var(--text-display-md); font-weight: var(--weight-display); margin-bottom: 14px; }
.rap-h3 { font-size: var(--text-display-sm); font-weight: var(--weight-display); }
.rap-eyebrow {
	font-size: var(--text-caption); font-weight: var(--weight-semibold);
	letter-spacing: var(--tracking-label); text-transform: uppercase;
	color: var(--text-accent); margin-bottom: 12px;
}
.rap-label {
	font-size: var(--text-caption); font-weight: var(--weight-semibold);
	letter-spacing: var(--tracking-label); text-transform: uppercase;
	color: var(--text-faint);
}
.rap-muted { font-size: var(--text-body-sm); color: var(--text-muted); }
.rap-caption { font-size: var(--text-caption); color: var(--text-faint); margin-top: 8px; }
.rap-mono { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text-faint); }
.rap-link { font-size: var(--text-body-sm); font-weight: var(--weight-semibold); color: var(--text-accent); text-decoration: none; }
.rap-link:hover { text-decoration: underline; }
.rap-link--faint { color: var(--text-muted); }
.rap-section { padding-top: var(--space-8); }
.rap-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rap-section__head .rap-h2 { margin-bottom: 0; }

/* ---------- Logótipo (imagem oficial) ---------- */
.rap-logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.rap-logo img { display: block; height: 46px; width: auto; }
.rap-logo--footer img { height: 60px; }
@media (max-width: 640px) { .rap-logo img { height: 40px; } }

/* ---------- Wordmark (fallback tipográfico) ---------- */
.rap-wordmark {
	font-family: var(--font-display); font-weight: var(--weight-display-heavy);
	font-size: 24px; letter-spacing: var(--tracking-display); text-transform: uppercase;
	line-height: 1; color: var(--text-strong); text-decoration: none; white-space: nowrap;
}
.rap-wordmark span { color: var(--accent); }
.rap-wordmark--sm { font-size: 20px; }

/* ---------- Header ---------- */
.rap-header {
	background: var(--bg-page-deep);
	border-top: 3px solid var(--accent);
	border-bottom: 1px solid var(--border-subtle);
	position: sticky; top: 0; z-index: 20;
}
.rap-header__inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.rap-header__search { flex: 1; min-width: 0; }
.rap-header__phone {
	display: flex; align-items: center; gap: 8px;
	color: var(--text-strong); text-decoration: none;
	font-weight: var(--weight-semibold); font-size: var(--text-body-sm);
}
@media (max-width: 640px) {
	.rap-header__phone span { display: none; }
}

/* ---------- Navegação principal ---------- */
.rap-nav { background: var(--bg-page-deep); border-top: 1px solid var(--border-subtle); }
.rap-nav__inner { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rap-nav__inner::-webkit-scrollbar { display: none; }
.rap-nav__link {
	display: inline-flex; align-items: center; white-space: nowrap;
	padding: 12px 14px; min-height: 44px;
	font-family: var(--font-display); font-size: 15px; letter-spacing: var(--tracking-display);
	text-transform: uppercase; color: var(--text-muted); text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.rap-nav__link:hover { color: var(--text-strong); }
.rap-nav__link.is-active { color: var(--text-strong); border-bottom-color: var(--accent); }

/* ---------- Título de página ---------- */
.rap-pagetitle { margin-bottom: 20px; }
.rap-pagetitle__lead { margin: 8px 0 0; font-size: var(--text-body-lg); color: var(--text-muted); max-width: 620px; }

/* ---------- Páginas de info (Contactos, Abate) ---------- */
.rap-info__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.rap-info__col { display: flex; flex-direction: column; gap: 12px; }
.rap-info__phone { font-size: var(--text-body-md); color: var(--text-body); margin-top: 8px; font-weight: 600; }
.rap-info__actions { display: flex; gap: 10px; }
.rap-consent { display: flex; align-items: flex-start; gap: 8px; font-size: var(--text-body-sm); color: var(--text-muted); }
.rap-consent input { accent-color: var(--accent); margin-top: 3px; }
.rap-consent a { color: var(--text-accent); }

/* ---------- Viaturas ---------- */
.rap-vehgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rap-vehcard {
	display: flex; flex-direction: column; gap: 4px; padding: 16px;
	background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
	text-decoration: none; color: inherit;
	transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.rap-vehcard:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.rap-vehcard__name { font-family: var(--font-display); font-size: var(--text-display-sm); letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--text-strong); line-height: var(--leading-display); }
.rap-vehcard__n { font-size: var(--text-body-sm); color: var(--text-muted); }
.rap-vehcard__cta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-caption); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-accent); margin-top: 4px; }

/* ---------- Banner de cookies ---------- */
.rap-cookiebar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	background: var(--bg-page-deep); border-top: 1px solid var(--border-strong);
	box-shadow: var(--shadow-overlay);
}
.rap-cookiebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.rap-cookiebar p { margin: 0; font-size: var(--text-body-sm); color: var(--text-body); flex: 1; min-width: 240px; }
.rap-cookiebar a { color: var(--text-accent); }
.rap-cookiebar__btns { display: flex; gap: 10px; }

/* ---------- Pesquisa ---------- */
.rap-search { display: flex; align-items: center; gap: 8px; position: relative; }
.rap-search input[type="search"] {
	flex: 1; min-width: 0; min-height: var(--tap-min);
	background: var(--surface-input); color: var(--text-strong);
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	padding: 0 12px 0 38px; font-family: var(--font-body); font-size: var(--text-body-md);
	transition: border-color var(--dur-fast) var(--ease-out);
}
.rap-search input[type="search"]::placeholder { color: var(--text-faint); }
.rap-search input[type="search"]:focus { outline: none; border-color: var(--border-focus); }
.rap-search__icon { position: absolute; left: 12px; color: var(--text-faint); display: flex; }
.rap-search--compact input[type="search"] { min-height: 40px; }

/* ---------- Botões ---------- */
.rap-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--tap-min); padding: 0 var(--space-5);
	background: var(--accent); color: var(--text-on-accent);
	border: 1px solid transparent; border-radius: var(--radius-md);
	font-family: var(--font-body); font-weight: var(--weight-semibold); font-size: var(--text-body-md);
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background var(--dur-fast) var(--ease-out);
}
.rap-btn:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.rap-btn:active { background: var(--accent-pressed); }
.rap-btn--secondary { background: transparent; color: var(--text-strong); border-color: var(--border-strong); }
.rap-btn--secondary:hover { background: var(--surface-hover); color: var(--text-strong); }
.rap-btn--full { width: 100%; }

/* ---------- CTA de contacto (montra / leads) ---------- */
.rap-callcta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	margin-top: 10px;
}
.rap-callcta__tel {
	flex: 1 1 auto; min-width: 0; gap: 6px;
	font-size: var(--text-body-sm); padding: 0 var(--space-4);
}
.rap-callcta__ico { font-size: 1.05em; line-height: 1; }
.rap-callcta__wa {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: var(--tap-min); padding: 0 var(--space-4);
	border: 1px solid #25d366; border-radius: var(--radius-md);
	color: #128c3e; background: transparent; text-decoration: none;
	font-family: var(--font-body); font-weight: var(--weight-semibold); font-size: var(--text-body-sm);
	white-space: nowrap; transition: background var(--dur-fast) var(--ease-out);
}
.rap-callcta__wa:hover { background: rgba(37,211,102,.12); color: #0f7a35; }
.rap-callcta.is-sold { opacity: .9; }
.rap-callcta__sold {
	flex: 1 1 auto;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: var(--tap-min); padding: 0 var(--space-4);
	border-radius: var(--radius-md); background: var(--surface-hover);
	color: var(--text-muted); font-weight: var(--weight-semibold); font-size: var(--text-body-sm);
}
/* Bloco de contacto na ficha da peça */
.rap-single-lead { margin: var(--space-4) 0; }
.rap-single-lead__note {
	margin: 0 0 10px; color: var(--text-muted); font-size: var(--text-body-sm); line-height: 1.5;
}
.rap-callcta--big { gap: 10px; }
.rap-callcta--big .rap-callcta__tel { font-size: var(--text-body-md); min-height: 52px; }
.rap-callcta--big .rap-callcta__wa { min-height: 52px; font-size: var(--text-body-md); }

/* ---------- Hero (banner azul da marca) ---------- */
.rap-hero {
	position: relative;
	background:
		linear-gradient(120deg, rgba(0,74,173,.95) 0%, rgba(0,55,127,.93) 55%, rgba(0,42,99,.96) 100%),
		url(../img/hero-bg.jpg) center 35% / cover no-repeat;
	border-bottom: 3px solid var(--accent-bright);
}
.rap-hero .rap-container { padding-top: var(--space-12); padding-bottom: var(--space-10); }
.rap-hero .rap-eyebrow { color: var(--accent-bright); }
.rap-hero__title {
	font-family: var(--font-display); font-weight: var(--weight-display-heavy);
	font-size: clamp(38px, 6vw, 60px); line-height: var(--leading-display);
	letter-spacing: var(--tracking-display); text-transform: uppercase;
	color: #ffffff; margin: 0 0 10px; max-width: 640px; text-wrap: balance;
}
.rap-hero__sub { margin: 0 0 24px; font-size: var(--text-body-lg); color: rgba(255,255,255,.86); max-width: 520px; }
.rap-hero__search { max-width: 640px; }
.rap-hero__trust { margin-top: 24px; }
.rap-hero .rap-trust span { color: rgba(255,255,255,.92); }
.rap-hero .rap-trust__ic { color: var(--accent-bright); }

/* ---------- Painel de pesquisa (livre / avançada) ---------- */
.rap-searchpanel {
	background: var(--surface-card); border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay);
	padding: 8px; max-width: 660px;
}
.rap-searchpanel__tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.rap-searchtab {
	flex: 1; min-height: 40px; padding: 8px 12px;
	font-family: var(--font-display); font-size: 14px; letter-spacing: var(--tracking-display);
	text-transform: uppercase; color: var(--text-muted);
	background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer;
	transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.rap-searchtab:hover { color: var(--text-strong); background: var(--surface-hover); }
.rap-searchtab.is-active { color: var(--text-on-accent); background: var(--accent); }
.rap-searchpane { display: none; }
.rap-searchpane.is-active { display: flex; gap: 8px; align-items: flex-end; }
.rap-searchpane[data-rap-pane="livre"] .rap-search { flex: 1; }
.rap-searchpane[data-rap-pane="avancada"].is-active { flex-direction: column; align-items: stretch; }
.rap-searchgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; margin-bottom: 8px; }
.rap-searchgrid .rap-field { min-width: 0; }
@media (max-width: 620px) { .rap-searchgrid { grid-template-columns: 1fr; } .rap-searchpane[data-rap-pane="livre"].is-active { flex-direction: column; align-items: stretch; } }

/* ---------- Filtros do catálogo ---------- */
.rap-filters {
	background: var(--surface-card); border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 20px;
}
.rap-filters__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rap-filters__field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 160px; }
.rap-filters__field > span { font-size: var(--text-caption); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.rap-filters__field select {
	min-height: 44px; width: 100%;
	background: var(--surface-input); color: var(--text-strong);
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	padding: 0 12px; font-family: var(--font-body); font-size: var(--text-body-md);
}
.rap-filters__field select:focus { outline: none; border-color: var(--border-focus); }
.rap-filters__actions { display: flex; gap: 8px; }
.rap-filters__toggles { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.rap-check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-body-sm); color: var(--text-body); cursor: pointer; }
.rap-check input { accent-color: var(--accent); width: 16px; height: 16px; }
@media (max-width: 640px) {
	.rap-filters__field { min-width: 100%; }
	.rap-filters__actions { width: 100%; }
	.rap-filters__actions .rap-btn { flex: 1; }
}

/* ---------- Fila de confiança ---------- */
.rap-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.rap-trust span { display: flex; align-items: center; gap: 10px; color: var(--text-body); font-size: var(--text-body-sm); }
.rap-trust__ic { color: var(--accent); }

/* ---------- Categorias ---------- */
.rap-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rap-catcard {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	min-height: 52px; padding: 0 14px;
	background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
	text-decoration: none; font-family: var(--font-display); font-weight: var(--weight-display);
	font-size: 18px; letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--text-strong);
	transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.rap-catcard:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.rap-catcard__icon { display: inline-flex; color: var(--accent-bright, var(--accent)); flex: none; }
.rap-catcard__label { flex: 1; }
.rap-catcard__chev { color: var(--text-faint); }
.rap-catcard:hover .rap-catcard__chev { color: var(--accent); }

/* ---------- Grelha e cards de peças (premium) ---------- */
.rap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 22px; }
@media (max-width: 560px) { .rap-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.rap-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
	overflow: hidden; text-decoration: none; color: inherit; isolation: isolate;
	transition: transform .45s var(--ease-out), border-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
/* filete vermelho que se desenha no topo ao passar o rato */
.rap-card::after {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3;
	background: var(--accent); transform: scaleX(0); transform-origin: left;
	transition: transform .5s var(--ease-out);
}
.rap-card:hover { transform: translate3d(0,-6px,0); border-color: var(--border-strong); box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }
.rap-card:hover::after { transform: scaleX(1); }

.rap-card__media { position: relative; overflow: hidden; }
.rap-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.rap-card--compact .rap-card__body { padding: 11px 13px 13px; }
.rap-card__title {
	font-family: var(--font-display); font-size: var(--text-display-sm); font-weight: var(--weight-display);
	text-transform: uppercase; letter-spacing: var(--tracking-display); line-height: 1.1;
	color: var(--text-strong);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	transition: color .3s var(--ease-out);
}
.rap-card:hover .rap-card__title { color: #fff; }
.rap-card__vehicle { font-size: var(--text-body-sm); color: var(--text-muted); }
.rap-card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.rap-card__oem { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text-faint); }
.rap-card__loja { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-caption); color: var(--text-faint); }
.rap-card__loja .rap-icon { color: var(--accent); }
.rap-loja-line { display: flex; align-items: center; gap: 8px; font-size: var(--text-body-sm); color: var(--text-body); }
.rap-loja-line .rap-icon { color: var(--accent); flex: none; }
.rap-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.rap-card__go { display: inline-flex; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.rap-card:hover .rap-card__go { opacity: 1; transform: translateX(0); }

/* chip de estado (Vendida/Reservada) sobre a foto */
.rap-card__status { position: absolute; top: 10px; left: 10px; z-index: 2; }
.rap-card__status .rap-badge { background: rgba(5,5,5,.82); backdrop-filter: blur(4px); }

/* overlay "Ver peça" que aparece ao passar o rato */
.rap-card__view {
	position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase;
	letter-spacing: var(--tracking-label); font-size: var(--text-body-sm); color: #fff;
	background: linear-gradient(0deg, rgba(5,5,5,.55), rgba(153,1,0,.28));
	opacity: 0; transition: opacity .4s var(--ease-out);
}
.rap-card__view .rap-icon { color: var(--accent-bright); }
.rap-card:hover .rap-card__view { opacity: 1; }

/* ---------- Foto de peça (4:3 + fallback) ---------- */
.rap-photo {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 100%; aspect-ratio: 4 / 3;
	background: var(--surface-raised); border-radius: var(--radius-md); overflow: hidden;
}
.rap-photo--flush { border-radius: 0; }
.rap-photo--lg { border-radius: var(--radius-lg); }
.rap-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.rap-card:hover .rap-photo img { transform: scale(1.06); }
.rap-photo__fallback {
	display: none; flex-direction: column; align-items: center; gap: 8px; color: var(--text-faint);
	font-size: var(--text-caption); letter-spacing: 0.04em; text-transform: uppercase;
}
.rap-photo.is-fallback img { display: none; }
.rap-photo.is-fallback .rap-photo__fallback { display: flex; }

/* ---------- Preço e badges ---------- */
.rap-price { font-family: var(--font-display); font-weight: var(--weight-display); color: var(--text-accent); line-height: 1; white-space: nowrap; }
.rap-price--sm { font-size: var(--text-body-lg); }
.rap-price--md { font-size: 22px; }
.rap-price--lg { font-size: 34px; }
.rap-price--consult {
	font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-label);
	color: var(--text-muted);
}
.rap-price--consult.rap-price--sm { font-size: var(--text-body-sm); }
.rap-price--consult.rap-price--md { font-size: var(--text-body-md); }
.rap-price--consult.rap-price--lg { font-size: var(--text-body-lg); }
.rap-badge {
	display: inline-flex; align-items: center; padding: 4px 10px;
	border-radius: var(--radius-sm); font-size: var(--text-caption);
	font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase;
}
.rap-badge--available { color: var(--state-available); border: 1px solid currentColor; }
.rap-badge--onRequest { color: var(--state-on-request); border: 1px solid currentColor; }
.rap-badge--sold { color: var(--text-body); border: 1px solid var(--border-strong); }

/* ---------- Catálogo ---------- */
.rap-catalog { padding-top: var(--space-8); }
.rap-catalog .rap-h1 { font-size: clamp(30px, 5vw, 52px); }
.rap-count { margin: 6px 0 22px; font-size: var(--text-body-md); letter-spacing: .04em; }
.rap-count::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.rap-filters {
	display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
	padding: 14px 16px; margin-bottom: 28px;
	background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}
.rap-filters select {
	min-width: 180px; min-height: 44px;
	background: var(--surface-input); color: var(--text-strong);
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	padding: 0 12px; font-family: var(--font-body); font-size: var(--text-body-sm);
	transition: border-color .3s var(--ease-out);
}
.rap-filters select:hover, .rap-filters select:focus { border-color: var(--accent); outline: none; }
.rap-check { display: flex; align-items: center; gap: 8px; font-size: var(--text-body-sm); color: var(--text-body); cursor: pointer; }
.rap-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.rap-empty {
	text-align: center; padding: var(--space-12) var(--space-4);
	border: 1px dashed var(--border-strong); border-radius: var(--radius-md);
}
.rap-empty .rap-h3, .rap-empty .rap-h1 { margin-bottom: 6px; }
.rap-empty__btn { margin-top: 16px; }
.rap-pagination { display: flex; justify-content: center; margin: var(--space-8) 0; gap: 4px; }
.rap-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 12px;
	border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
	color: var(--text-body); text-decoration: none; font-size: var(--text-body-sm);
	transition: background .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.rap-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.rap-pagination .page-numbers:hover:not(.current) { border-color: var(--accent); color: #fff; }
/* (A revelação no scroll dos cards usa o sistema data-reveal, ligado no main.js.) */

/* ---------- Detalhe da peça ---------- */
.rap-detail { padding-top: var(--space-5); padding-bottom: 88px; }
.rap-back {
	display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap-min);
	font-size: var(--text-body-sm); font-weight: var(--weight-semibold);
	color: var(--text-muted); text-decoration: none; margin-bottom: 4px;
}
.rap-back:hover { color: var(--text-strong); }
.rap-detail__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.rap-detail__info { display: flex; flex-direction: column; gap: 14px; }
.rap-detail__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rap-detail__vehicle { font-size: var(--text-body-md); color: var(--text-muted); }
.rap-detail__price { padding: 16px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.rap-detail__price .rap-muted { margin-top: 6px; }
.rap-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.rap-tag {
	display: inline-flex; align-items: center; padding: 4px 10px;
	background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
	font-size: var(--text-caption); color: var(--text-body);
}
.rap-tag--mono { font-family: var(--font-mono); }

/* ---------- Painéis e formulário de lead ---------- */
.rap-panel {
	background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
	padding: var(--space-5); display: flex; flex-direction: column; gap: 14px;
}
.rap-panel .rap-h3 { margin-bottom: 0; }
.rap-field { display: flex; flex-direction: column; gap: 6px; }
.rap-field span { font-size: var(--text-caption); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.rap-field input, .rap-field select {
	min-height: var(--tap-min); width: 100%; min-width: 0;
	background: var(--surface-input); color: var(--text-strong);
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	padding: 0 12px; font-family: var(--font-body); font-size: var(--text-body-md);
}
.rap-field input:focus, .rap-field select:focus { outline: none; border-color: var(--border-focus); }
.rap-field input::placeholder { color: var(--text-faint); }
.rap-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.rap-form-error {
	padding: 10px 12px; border: 1px solid var(--state-sold); border-radius: var(--radius-sm);
	color: var(--state-sold); font-size: var(--text-body-sm);
}

/* ---------- Barra fixa de contacto (mobile, detalhe) ---------- */
.rap-contactbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	background: var(--bg-page-deep); border-top: 1px solid var(--border-subtle);
	padding: 10px 0;
}
.rap-contactbar__inner { display: flex; gap: 10px; }
@media (min-width: 900px) {
	.rap-contactbar { display: none; }
	.rap-detail { padding-bottom: var(--space-12); }
}

/* ---------- Banner CTA ---------- */
.rap-cta-banner {
	background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
	padding: var(--space-5); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between;
}
.rap-cta-banner .rap-muted { margin-top: 4px; }

/* ---------- Footer ---------- */
.rap-footer { background: var(--bg-page-deep); border-top: 1px solid var(--border-subtle); margin-top: var(--space-12); }
.rap-footer__inner { display: flex; flex-direction: column; gap: 20px; padding-top: var(--space-8); padding-bottom: var(--space-8); }
.rap-footer__cols { display: flex; gap: 32px; flex-wrap: wrap; font-size: var(--text-body-sm); color: var(--text-muted); }
.rap-footer__cols > div { display: flex; flex-direction: column; gap: 6px; }
.rap-footer__cols a { color: var(--text-muted); text-decoration: none; }
.rap-footer__cols a:hover { color: var(--text-body); text-decoration: underline; }
.rap-footer__legal { font-size: var(--text-caption); color: var(--text-faint); border-top: 1px solid var(--border-subtle); padding-top: 16px; }

/* ---------- Conteúdo prose (páginas) ---------- */
.rap-page { max-width: 760px; }
.rap-prose { margin-top: var(--space-6); }
.rap-prose h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); color: var(--text-strong); font-size: var(--text-display-md); }
.rap-prose h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); color: var(--text-strong); font-size: var(--text-display-sm); }
.rap-prose p, .rap-prose li { color: var(--text-body); font-size: var(--text-body-md); }
.rap-prose a { color: var(--text-accent); }
.rap-prose ul { color: var(--text-body); padding-left: 20px; }
.rap-legal-note { font-size: var(--text-caption) !important; color: var(--text-faint) !important; border-top: 1px solid var(--border-subtle); padding-top: 12px; margin-top: 8px; }

/* ---------- Hero 3D (motor V8 explodido, reage ao scroll) ---------- */
.rcp3d{ position:relative; height:420vh; background:#0b0e13; }
.rcp3d__stage{ position:sticky; top:0; height:100vh; overflow:hidden; background:
   radial-gradient(120% 90% at 70% 10%, #16202e 0%, #0b0e13 55%, #05070a 100%); }
.rcp3d__canvas{ position:absolute; inset:0; width:100%; height:100%; display:block; }
.rcp3d__poster{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position:center; display:none; }
.rcp3d__stage::after{ content:''; position:absolute; inset:0; z-index:2; pointer-events:none;
   background:linear-gradient(90deg, transparent 38%, rgba(5,7,10,.62) 74%); }
.rcp3d__overlay{ position:absolute; right:0; top:0; height:100%; width:min(46%, 600px);
   display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
   padding:0 6vw 0 0; z-index:3;
   color:#fff; font-family:'Anton',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
   pointer-events:none; text-shadow:0 2px 30px rgba(0,0,0,.55); }
.rcp3d__eyebrow{ margin:0 0 10px; font-family:system-ui,sans-serif; font-weight:700; letter-spacing:.22em;
   text-transform:uppercase; font-size:clamp(11px,1.1vw,14px); color:#5be2fc; }
.rcp3d__title{ margin:0 0 14px; font-weight:400; line-height:.92; letter-spacing:.01em;
   text-transform:uppercase; font-size:clamp(34px,5.2vw,80px); }
.rcp3d__sub{ margin:0 0 22px; max-width:36ch; font-family:system-ui,sans-serif; font-weight:400;
   font-size:clamp(15px,1.5vw,20px); color:rgba(255,255,255,.85); line-height:1.4; }
.rcp3d__cta{ pointer-events:auto; display:inline-flex; align-items:center; gap:.4em;
   font-family:system-ui,sans-serif; font-weight:600; font-size:clamp(15px,1.4vw,18px);
   background:#004aad; color:#fff; text-decoration:none; padding:14px 26px; border-radius:10px;
   box-shadow:0 10px 30px rgba(0,74,173,.45); transition:background .2s, transform .2s; will-change:transform; }
.rcp3d__cta:hover{ background:#0059d1; transform:translate3d(0,-1px,0); }
.rcp3d__hint{ position:absolute; left:50%; bottom:22px; transform:translateX(-50%); z-index:3;
   display:flex; flex-direction:column; align-items:center; gap:6px; color:rgba(255,255,255,.55);
   font:600 11px/1 system-ui,sans-serif; letter-spacing:.2em; text-transform:uppercase; }
.rcp3d__hintdot{ animation:rcp3dDot 1.6s ease-in-out infinite; will-change:transform, opacity; }
@keyframes rcp3dDot{ 0%,100%{ transform:translate3d(0,0,0); opacity:1 } 50%{ transform:translate3d(0,6px,0); opacity:.3 } }
.rcp3d__loader{ position:absolute; inset:0; z-index:4; display:flex; flex-direction:column;
   align-items:center; justify-content:center; gap:14px; color:#8ea0b6;
   font:600 13px/1 system-ui,sans-serif; letter-spacing:.15em; text-transform:uppercase;
   background:#0b0e13; transition:opacity .6s; will-change:opacity; }
.rcp3d__bar{ width:200px; height:3px; background:#1c2634; border-radius:3px; overflow:hidden; }
.rcp3d__bar i{ display:block; height:100%; width:0%; background:linear-gradient(90deg,#004aad,#5be2fc); transition:width .2s; }
.rcp3d.is-ready .rcp3d__loader{ opacity:0; pointer-events:none; }
@media (max-width:900px){
  .rcp3d{ height:auto; }
  .rcp3d__stage{ position:relative; height:74vh; }
  .rcp3d__canvas{ display:none; }
  .rcp3d__poster{ display:block; }
  .rcp3d__hint{ display:none; }
  .rcp3d__loader{ display:none; }
  .rcp3d__stage::after{ background:linear-gradient(0deg, rgba(5,7,10,.8) 4%, transparent 52%); }
  .rcp3d__overlay{ right:auto; left:0; top:auto; bottom:6%; height:auto; width:auto; padding:0 8vw; }
}
@media (prefers-reduced-motion:reduce){
  .rcp3d{ height:auto; }
  .rcp3d__stage{ position:relative; height:78vh; }
  .rcp3d__canvas{ display:none; }
  .rcp3d__poster{ display:block; }
  .rcp3d__hint, .rcp3d__loader{ display:none; }
  .rcp3d__hintdot{ animation:none; }
}

/* =========================================================================
 * Camada de dinamismo — revelações no scroll + micro-interações (subtil).
 * Tudo desligado em prefers-reduced-motion (bloco no fim).
 * ====================================================================== */

/* Revelação ao entrar no ecrã (JS adiciona data-reveal + .is-inview). */
[data-reveal]{
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--rvd, 0ms);
}
[data-reveal]:not(.is-inview){ will-change: opacity, transform; }
[data-reveal].is-inview{ opacity: 1; transform: none; }

/* Header: sombra + compacta ao fazer scroll. */
.rap-header{
  transition: box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.rap-header__inner{
  transition: padding var(--dur-base) var(--ease-out);
}
.rap-header.is-scrolled{ box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.rap-header.is-scrolled .rap-header__inner{ padding-top: 7px; padding-bottom: 7px; }

/* (Cartões de peça: hover premium definido na secção "Grelha e cards de peças".) */

/* Cartões de categoria: elevação leve + seta que desliza. */
.rap-catcard{
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.rap-catcard:hover{ transform: translate3d(0,-3px,0); box-shadow: var(--shadow-card); }
.rap-catcard__chev{ transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.rap-catcard:hover .rap-catcard__chev{ transform: translateX(3px); }

/* Cartões default do WooCommerce (catálogo): mesma elevação. */
ul.products li.product{
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
ul.products li.product:hover{ transform: translate3d(0,-4px,0); box-shadow: var(--shadow-overlay); }
ul.products li.product img{ transition: transform .5s var(--ease-out); }
ul.products li.product:hover img{ transform: scale(1.04); }

/* Botões / CTA: pressão subtil. */
.rap-btn{ transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.rap-btn:hover{ transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,74,173,.28); }
.rap-btn:active{ transform: translateY(0); box-shadow: none; }
.rap-callcta__tel, .rap-callcta__wa{ transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.rap-callcta__tel:hover, .rap-callcta__wa:hover{ transform: translateY(-1px); }

/* Links de navegação/rodapé: sublinhado que cresce. */
.rap-link{ position: relative; }
.rap-link::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background: var(--accent); transition: right var(--dur-base) var(--ease-out);
}
.rap-link:hover::after{ right:0; }

@media (prefers-reduced-motion:reduce){
  [data-reveal]{ opacity:1 !important; transform:none !important; transition:none !important; }
  .rap-card:hover, .rap-catcard:hover, ul.products li.product:hover,
  .rap-btn:hover, .rap-callcta__tel:hover, .rap-callcta__wa:hover{ transform:none !important; }
  .rap-card:hover .rap-photo img, ul.products li.product:hover img{ transform:none !important; }
  .rap-catcard:hover .rap-catcard__chev{ transform:none !important; }
}

/* =========================================================================
 * Catálogo WooCommerce — revestir o loop default com o nosso card.
 * (grelha de altura igual, foto 4:3, título 2 linhas, CTA encostado ao fundo)
 * ====================================================================== */
.woocommerce ul.products,
.woocommerce-page ul.products{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 14px; margin: 0 0 28px !important; padding: 0 !important; list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after{ content: none !important; display: none !important; }

.woocommerce ul.products li.product{
  width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important;
  display: flex; flex-direction: column; text-align: left;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); overflow: hidden;
}
.woocommerce ul.products li.product::before,
.woocommerce ul.products li.product::after{ content: none !important; }

.woocommerce ul.products li.product a.woocommerce-loop-product__link{
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
}
.woocommerce ul.products li.product img{
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  margin: 0 !important; display: block; background: var(--gray-100);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  padding: 12px 14px 0; margin: 0;
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: var(--text-display-sm); line-height: var(--leading-display);
  letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--text-strong);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.4em;
}
.woocommerce ul.products li.product .price{
  display: block; padding: 6px 14px 0; margin: 0;
  color: var(--text-accent) !important; font-family: var(--font-display);
  font-weight: var(--weight-display); font-size: 20px; line-height: 1;
}
.woocommerce ul.products li.product .price del{ color: var(--text-faint); font-weight: 400; margin-right: 6px; }
.woocommerce ul.products li.product .price ins{ text-decoration: none; }
/* CTA encostado ao fundo → todos os botões alinham entre cards */
.woocommerce ul.products li.product .rap-callcta{
  margin: auto 14px 14px; padding-top: 12px;
}

/* =========================================================================
 * Ficha de peça (WooCommerce single-product) — layout + especificações.
 * ====================================================================== */
.single-product div.product{
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  column-gap: 32px; row-gap: 28px; align-items: start;
  margin-top: var(--space-6);
}
.single-product div.product > .woocommerce-product-gallery,
.single-product div.product > .summary{
  width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important;
}
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .related,
.single-product div.product > .up-sells{ grid-column: 1 / -1; }
@media (max-width: 820px){
  .single-product div.product{ grid-template-columns: 1fr; column-gap: 0; row-gap: 20px; }
}

/* Galeria / moldura da foto */
.single-product .woocommerce-product-gallery{ position: relative; margin: 0; }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image{
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--gray-100);
}
.single-product .woocommerce-product-gallery img{ display: block; width: 100%; height: auto; margin: 0; }
.single-product .woocommerce-product-gallery__trigger{ z-index: 3; }

/* Miniaturas da galeria (fotos do feed) */
.rap-thumbs{
  list-style: none; margin: 10px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px;
}
.rap-thumb{
  display: block; width: 100%; padding: 0; cursor: pointer;
  background: var(--gray-100); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  overflow: hidden; line-height: 0;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.rap-thumb img{ width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.rap-thumb:hover{ border-color: var(--border-strong); transform: translateY(-2px); }
.rap-thumb.is-active{ border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0,74,173,.18); }

/* Topo do resumo: badge + veículo, título, preço */
.rap-single-top{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rap-single-vehicle{ font-size: var(--text-body-md); color: var(--text-muted); font-weight: var(--weight-semibold); }
.single-product .summary .product_title{ margin: 2px 0 4px; }
.single-product .summary p.price{ margin: 10px 0 2px; }
.single-product .summary p.price .amount{ font-family: var(--font-display); font-weight: var(--weight-display); font-size: 30px; color: var(--text-accent); }
.single-product .summary p.price del .amount{ font-size: 20px; color: var(--text-faint); }

/* Especificações */
.rap-specs{
  list-style: none; margin: 16px 0 4px; padding: 6px 16px;
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}
.rap-specs li{
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--border-subtle);
}
.rap-specs li:last-child{ border-bottom: 0; }
.rap-specs__k{ color: var(--text-muted); font-size: var(--text-body-sm); white-space: nowrap; }
.rap-specs__v{ color: var(--text-strong); font-weight: var(--weight-semibold); text-align: right; }
.rap-specs__v.rap-mono{ font-family: var(--font-mono); font-weight: 400; }
.single-product .rap-loja-line{ margin: 14px 0 2px; }

/* Abas (descrição) */
.single-product .woocommerce-tabs{ margin-top: 8px; }
.single-product .woocommerce-tabs ul.tabs{
  margin: 0 0 16px; padding: 0; list-style: none; display: flex; gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
}
.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after{ content: none !important; display: none !important; }
.single-product .woocommerce-tabs ul.tabs li{ background: none; border: 0; margin: 0; padding: 0; border-radius: 0; }
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after{ content: none !important; }
.single-product .woocommerce-tabs ul.tabs li a{
  display: inline-block; padding: 10px 4px; color: var(--text-muted); text-decoration: none;
  font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase;
  letter-spacing: var(--tracking-display); border-bottom: 2px solid transparent;
}
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover{ color: var(--text-strong); border-bottom-color: var(--accent); }
.single-product .woocommerce-tabs .panel{ margin: 0; color: var(--text-body); line-height: 1.65; }
.single-product .woocommerce-tabs .panel h2{
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display);
  font-size: 20px; margin: 0 0 10px; color: var(--text-strong);
}
.single-product .woocommerce-tabs .panel p{ margin: 0 0 8px; }

/* Peças relacionadas */
.single-product .related > h2, .single-product .up-sells > h2{
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display);
  color: var(--text-strong); margin: 8px 0 14px;
}

/* =========================================================================
 * Hero cinematográfico (.rcpc) — frames em canvas conduzidos pelo scroll.
 * Substitui o hero 3D (.rcp3d); estilos daquele mantêm-se para reversão.
 * ====================================================================== */
.rcpc{ position:relative; height:300vh; background:#eef2f7; }
.rcpc__stage{ position:sticky; top:0; height:100vh; overflow:hidden; }
.rcpc__canvas{ position:absolute; inset:0; width:100%; height:100%; display:block; }

.rcpc__poster{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:none; }
.rcpc.is-static .rcpc__poster{ display:block; }

/* Íris: o site branco nasce do fundo do túnel do cilindro no fim do scroll.
   O JS conduz --iris de 0% a 130% (raio do círculo branco, cor = fundo da página). */
.rcpc__iris{
  position:absolute; inset:-12%; pointer-events:none; z-index:1;
  background:radial-gradient(circle at 50% 46%,
    var(--bg-page,#f4f6f9) 0%,
    var(--bg-page,#f4f6f9) var(--iris,0%),
    rgba(244,246,249,0) calc(var(--iris,0%) + 24%));
  will-change:background;
}

/* Véu de luz para legibilidade do texto escuro à direita */
.rcpc__stage::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(to left, rgba(240,245,250,.78) 0%, rgba(240,245,250,.42) 30%, rgba(240,245,250,0) 55%);
}
/* Transição suave para o corpo claro do site */
.rcpc::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:80px; pointer-events:none;
  background:linear-gradient(to bottom, rgba(244,246,249,0) 0%, var(--bg-page, #f4f6f9) 100%);
}

.rcpc__overlay{
  position:absolute; top:0; right:0; height:100%;
  width:min(46%,600px); padding:0 5vw 0 0;
  display:flex; flex-direction:column; justify-content:center; gap:14px;
  z-index:2; color:var(--text-strong,#14181d);
  will-change:transform;
}
/* Entrada animada do texto (staggered) quando o hero fica pronto */
.rcpc__overlay > *{ opacity:0; transform:translateY(20px); }
.rcpc.is-ready .rcpc__overlay > *{ animation:rcpcin .7s var(--ease-out) forwards; }
.rcpc.is-ready .rcpc__overlay > :nth-child(1){ animation-delay:.05s; }
.rcpc.is-ready .rcpc__overlay > :nth-child(2){ animation-delay:.16s; }
.rcpc.is-ready .rcpc__overlay > :nth-child(3){ animation-delay:.28s; }
.rcpc.is-ready .rcpc__overlay > :nth-child(4){ animation-delay:.40s; }
@keyframes rcpcin{ to{ opacity:1; transform:none; } }
.rcpc__eyebrow{
  margin:0; color:var(--accent,#004AAD); font-size:13px; font-weight:600;
  letter-spacing:.22em; text-transform:uppercase;
}
.rcpc__title{
  margin:0; font-family:var(--font-display); font-weight:var(--weight-display);
  font-size:clamp(40px,5.2vw,84px); line-height:.95; letter-spacing:var(--tracking-display);
  text-transform:uppercase; color:var(--text-strong,#14181d);
}
.rcpc__sub{ margin:0; max-width:44ch; color:rgba(20,24,29,.78); font-size:var(--text-body-md); line-height:1.55; }
.rcpc__ctas{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.rcpc__cta{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:48px; padding:0 22px; border-radius:var(--radius-md);
  background:var(--accent,#004AAD); color:#fff; text-decoration:none;
  font-weight:var(--weight-semibold); font-size:var(--text-body-md);
  transition:background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  will-change:transform;
}
.rcpc__cta:hover{ background:var(--accent-hover,#0a58c4); color:#fff; transform:translateY(-1px); }
.rcpc__cta--ghost{ background:rgba(255,255,255,.65); border:1px solid rgba(20,24,29,.28); color:var(--text-strong,#14181d); }
.rcpc__cta--ghost:hover{ background:#fff; color:var(--text-strong,#14181d); }
.rcpc__cta--wa{ background:rgba(255,255,255,.65); border:1px solid #25d366; color:#128c3e; }
.rcpc__cta--wa:hover{ background:rgba(37,211,102,.14); color:#0f7a35; }

.rcpc__hint{
  position:absolute; left:50%; bottom:26px; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:6px;
  color:rgba(20,24,29,.55); font-size:11px; letter-spacing:.2em; text-transform:uppercase;
  z-index:2; opacity:0; transition:opacity .6s var(--ease-out);
}
.rcpc.is-ready .rcpc__hint{ opacity:1; }
.rcpc.is-deep .rcpc__hint{ opacity:0; }
.rcpc__hintdot{ animation:rcpcdot 1.6s var(--ease-out) infinite; will-change:transform; }
@keyframes rcpcdot{ 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(9px);opacity:0} 100%{transform:translateY(0);opacity:0} }

.rcpc__loader{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color:rgba(20,24,29,.6); font-size:12px; letter-spacing:.14em; text-transform:uppercase; z-index:3;
  transition:opacity .5s var(--ease-out);
}
.rcpc.is-ready .rcpc__loader{ opacity:0; pointer-events:none; }
.rcpc__bar{ width:180px; height:2px; background:rgba(20,24,29,.15); border-radius:2px; overflow:hidden; }
.rcpc__bar i{ display:block; width:0; height:100%; background:var(--accent,#004AAD); transition:width .3s var(--ease-out); }

@media (max-width:900px){
  .rcpc{ height:240vh; }
  .rcpc__overlay{ width:auto; left:0; right:0; top:auto; bottom:8%; height:auto; padding:0 7vw; }
  .rcpc__title{ font-size:clamp(34px,10vw,54px); }
}
@media (prefers-reduced-motion:reduce){
  .rcpc{ height:auto; }
  .rcpc__overlay > *{ opacity:1 !important; transform:none !important; animation:none !important; }
  .rcpc__stage{ position:relative; height:82vh; }
  .rcpc__canvas, .rcpc__hint, .rcpc__loader{ display:none; }
  .rcpc__poster{ display:block; }
  .rcpc__hintdot{ animation:none; }
}

/* Descrição da peça (texto do feed arrumado) */
.rap-desc-h{
  font-family: var(--font-display); font-weight: var(--weight-display);
  text-transform: uppercase; letter-spacing: var(--tracking-display);
  font-size: 16px; color: var(--text-strong);
  margin: 18px 0 6px; padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}

/* =========================================================================
 * Dinâmica do corpo do site (para acompanhar o hero) — v1.9.4
 * ====================================================================== */

/* Faixa de números reais */
.rap-stats{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px;
  padding:22px 24px; background:var(--surface-card);
  border:1px solid var(--border-subtle); border-radius:var(--radius-lg);
}
.rap-stat{ display:flex; flex-direction:column; gap:4px; }
.rap-stat__n{
  font-family:var(--font-display); font-weight:var(--weight-display);
  font-size:clamp(30px,3.4vw,44px); line-height:1; color:var(--accent);
  font-variant-numeric:tabular-nums;
}
.rap-stat__l{ font-size:var(--text-body-sm); color:var(--text-muted); }

/* Fita de marcas em movimento contínuo */
.rap-marquee{
  overflow:hidden; margin-top:26px; padding:12px 0;
  border-top:1px solid var(--border-subtle); border-bottom:1px solid var(--border-subtle);
  background:var(--bg-page-deep,#fff);
  -webkit-mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent);
          mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent);
}
.rap-marquee__track{
  display:inline-flex; align-items:center; gap:26px; white-space:nowrap;
  padding-left:26px; will-change:transform;
  animation:rcpmarq 46s linear infinite;
}
.rap-marquee__track a{
  font-family:var(--font-display); font-weight:var(--weight-display);
  font-size:19px; letter-spacing:var(--tracking-display); text-transform:uppercase;
  color:var(--text-faint); text-decoration:none;
  transition:color var(--dur-fast) var(--ease-out);
}
.rap-marquee__track a:hover{ color:var(--accent); }
.rap-marquee__track span{ color:var(--border-strong); font-size:12px; }
.rap-marquee:hover .rap-marquee__track{ animation-play-state:paused; }
@keyframes rcpmarq{ from{ transform:translate3d(0,0,0);} to{ transform:translate3d(-50%,0,0);} }

/* Títulos de secção: sublinhado que se desenha ao entrar no ecrã */
.rap-section .rap-h2{ position:relative; padding-bottom:10px; }
.rap-section .rap-h2::after{
  content:""; position:absolute; left:0; bottom:0; height:3px; width:64px;
  background:linear-gradient(90deg,var(--accent),#5BE2FC);
  transform:scaleX(0); transform-origin:left center;
  transition:transform .7s var(--ease-out) .15s;
}
.rap-section .rap-h2.is-inview::after,
.rap-section .is-inview .rap-h2::after{ transform:scaleX(1); }

/* Banner CTA em azul da marca, com brilho a atravessar */
.rap-cta-banner--brand{
  position:relative; overflow:hidden;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px;
  padding:30px 32px; border-radius:var(--radius-lg); border:0;
  background:linear-gradient(120deg,#004AAD 0%,#01337a 60%,#002a63 100%);
  color:#fff;
}
.rap-cta-banner--brand::before{
  content:""; position:absolute; top:-40%; bottom:-40%; width:34%;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.14),transparent);
  transform:translateX(-140%) skewX(-12deg);
  animation:rcpsheen 5.5s var(--ease-out) infinite;
  pointer-events:none; will-change:transform;
}
@keyframes rcpsheen{ 0%,55%{ transform:translateX(-140%) skewX(-12deg);} 85%,100%{ transform:translateX(420%) skewX(-12deg);} }
.rap-cta-banner__title{
  font-family:var(--font-display); font-weight:var(--weight-display);
  font-size:clamp(24px,2.6vw,34px); letter-spacing:var(--tracking-display);
  text-transform:uppercase; line-height:1.05;
}
.rap-cta-banner__sub{ margin-top:6px; color:rgba(255,255,255,.82); font-size:var(--text-body-md); max-width:52ch; }
.rap-cta-banner__actions{ display:flex; flex-wrap:wrap; gap:10px; }
.rap-btn--light{ background:#fff; color:#004AAD; }
.rap-btn--light:hover{ background:#eaf1fb; color:#00398a; }
.rap-btn--outline{ background:transparent; border:1px solid rgba(255,255,255,.55); color:#fff; }
.rap-btn--outline:hover{ background:rgba(255,255,255,.12); color:#fff; }

@media (prefers-reduced-motion:reduce){
  .rap-marquee__track{ animation:none; }
  .rap-cta-banner--brand::before{ animation:none; }
  .rap-section .rap-h2::after{ transform:scaleX(1); transition:none; }
}

/* ======================================================================
 * HOMEPAGE — secções sob o hero cinematográfico
 * ==================================================================== */
.rap-section--alt { background: var(--bg-page-deep); }
.rap-section { padding-bottom: var(--space-8); }
.rap-section__head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 22px; }
.rap-section__lead { margin: 2px 0 0; color: var(--text-muted); font-size: var(--text-body-md); max-width: 60ch; }

/* Peças em stock na homepage */
.rap-home-parts__more { display: flex; justify-content: center; margin-top: 28px; }
.rap-home-parts__more .rap-btn { gap: 10px; }

/* Cartões de categoria (homepage): maiores, com contagem real */
.rap-home-cats .rap-catgrid, #categorias .rap-catgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
#categorias .rap-catcard { min-height: 76px; padding: 0 18px; font-size: 20px; }
.rap-catcard__label { display: flex; flex-direction: column; gap: 3px; }
.rap-catcard__count {
	font-family: var(--font-body); font-weight: var(--weight-regular); text-transform: none;
	letter-spacing: 0; font-size: var(--text-body-sm); color: var(--text-muted);
}
.rap-catcard { transition: background .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out); }
.rap-catcard:hover { border-color: var(--accent); transform: translate3d(0,-3px,0); }
.rap-catcard:hover .rap-catcard__chev { color: var(--accent); }

/* Como funciona — passos numerados */
.rap-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.rap-steps li { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.rap-steps__n {
	font-family: var(--font-display); font-weight: var(--weight-display); font-size: 13px;
	color: var(--accent); letter-spacing: var(--tracking-label);
}
.rap-steps strong { font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase; letter-spacing: var(--tracking-display); font-size: var(--text-display-sm); color: var(--text-strong); line-height: 1.15; }
.rap-steps span:not(.rap-steps__n) { color: var(--text-muted); font-size: var(--text-body-sm); }

/* CTA final da homepage */
.rap-home-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.rap-home-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .rap-home-cta__actions .rap-btn { flex: 1; } }
