/* ==========================================================================
   Hidroparts Produtos — layout interno
   Fonte: Space Grotesk em todos os textos
   ========================================================================== */

.hm-produto,
.hm-produto * {
	font-family: 'Space Grotesk', sans-serif !important;
	box-sizing: border-box;
}

:root {
	--hm-red: #8a1f24;
	--hm-red-2: #b23a40;
	--hm-text: #333;
	--hm-yellow: #f5a623;
	--hm-green: #25d366;
	--hm-border: #e3e3e3;
}

.hm-produto {
	color: var(--hm-text);
	max-width: 1140px;
	margin: 0 auto;
}

/* ---- Topo: imagem + dados ------------------------------------------------ */
.hm-produto__topo {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}

.hm-produto__imagem {
	flex: 1 1 360px;
	min-width: 300px;
}

.hm-produto__imagem .hm-prod-img,
.hm-produto__imagem img {
	width: 100%;
	height: auto;
	border: 2px solid var(--hm-red);
	border-radius: 4px;
	display: block;
	background: #fff;
}

.hm-produto__imagem .hm-prod-img--vazio {
	aspect-ratio: 1 / 1;
	border-style: dashed;
}

.hm-produto__dados {
	flex: 1 1 420px;
	min-width: 300px;
}

.hm-produto__titulo {
	color: var(--hm-red-2);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 18px;
	text-transform: uppercase;
}

.hm-produto__codigo {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 16px;
}

.hm-produto__descricao {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 14px;
}
.hm-produto__descricao p { margin: 0 0 10px; }

.hm-produto__fiscal p {
	font-size: 15px;
	margin: 0 0 4px;
}

.hm-produto__bt-label {
	font-weight: 600;
	margin: 22px 0 10px;
}

/* ---- Botões -------------------------------------------------------------- */
.hm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
	transition: filter .15s ease;
	cursor: pointer;
}
.hm-btn:hover { filter: brightness(.93); }

.hm-btn--pdf {
	background: var(--hm-red);
	color: #fff;
}
.hm-btn--pdf svg { flex: 0 0 auto; }

.hm-produto__acoes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}
.hm-btn--cotacao { background: var(--hm-yellow); color: #fff; }
.hm-btn--whats   { background: var(--hm-green);  color: #fff; }

/* ---- Produtos relacionados ---------------------------------------------- */
.hm-relacionados {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid var(--hm-border);
	text-align: center;
}
.hm-relacionados__titulo {
	color: var(--hm-red-2);
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0 0 30px;
}
.hm-relacionados__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.hm-card {
	text-decoration: none;
	color: var(--hm-text);
	border: 1px solid var(--hm-border);
	border-radius: 6px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: box-shadow .15s ease;
}
.hm-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.hm-card__img img {
	width: 100%;
	height: 220px;
	object-fit: contain;
	display: block;
}
.hm-card__nome {
	font-size: 15px;
	font-weight: 500;
	text-align: center;
}

/* ---- Responsivo ---------------------------------------------------------- */
@media (max-width: 782px) {
	.hm-produto__topo { gap: 24px; }
	.hm-produto__titulo { font-size: 24px; }
	.hm-relacionados__grid { grid-template-columns: 1fr; }
}
