/**
 * Racing Centers – Frontend styles
 * Enqueued on racing_center single pages.
 */

/* ==========================================================================
   Botão Traçar Rota
   ========================================================================== */

a.rc-tracar-rota-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #EC1313;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 14px 28px;
	border-radius: 6px;
	border: none;
	line-height: 1;
	transition: background 0.2s ease, transform 0.15s ease;
}

a.rc-tracar-rota-btn:hover {
	background: #c90f0f;
	transform: translateY(-1px);
	text-decoration: none;
	color: #ffffff;
}

.rc-tracar-rota-btn__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ==========================================================================
   Produto Cards (Simulador Produtos em Destaque)
   ========================================================================== */

.rc-produtos-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	width: 100%;
}

@media (max-width: 900px) {
	.rc-produtos-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 500px) {
	.rc-produtos-cards {
		grid-template-columns: 1fr 1fr;
	}
}

/* ── Card wrapper ── */
a.rc-produto-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.rc-produto-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
	transform: translateY(-3px);
	text-decoration: none;
}

/* ── Image area ── */
.rc-produto-card__img {
	position: relative;
	width: 100%;
	height: 220px;
	background: #fafafa;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.rc-produto-card__img img {
	width: 180px;
	height: 180px;
	object-fit: contain;
	display: block;
}

/* ── Sale badge ── */
.rc-produto-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #EC1313;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 4px;
	z-index: 1;
}

/* ── Info section ── */
.rc-produto-card__info {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* ── Product name ── */
.rc-produto-card__name {
	font-size: 13px;
	font-weight: 700;
	color: #1a1a1a;
	text-transform: uppercase;
	line-height: 1.3;
	margin: 0 0 10px;
	flex: 1;
}

/* ── Price block ── */
.rc-produto-card__price {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rc-produto-card__regular-price,
.rc-produto-card__regular-price .woocommerce-Price-amount {
	font-size: 12px;
	color: #9e9e9e;
	text-decoration: line-through;
	margin: 0;
}

.rc-produto-card__current-price,
.rc-produto-card__current-price .woocommerce-Price-amount {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
}

.rc-produto-card__pix-price,
.rc-produto-card__pix-price .woocommerce-Price-amount {
	font-size: 12px;
	color: #EC1313;
	margin: 0;
}
