/* ==========================================================================
   Related Products by Region — [related_products_by_region]
   Custom card grid — independent of WooCommerce / Divi loop classes.
   ========================================================================== */

/* --- 3-column grid --- */
.hrpbr-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	width: 100%;
	box-sizing: border-box;
}

/* --- Card shell --- */
.hrpbr-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #ffffff;
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.hrpbr-card:hover {
	border-color: #b0b0b0;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* --- Image block --- */
.hrpbr-card__image-link {
	display: block;
	text-decoration: none !important;
}

.hrpbr-card__image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #ffffff;
	padding: 24px 20px;
	box-sizing: border-box;
}

.hrpbr-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	max-width: 100%;
}

/* --- Text body --- */
.hrpbr-card__body {
	padding: 18px 24px 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

/* --- Title --- */
.hrpbr-card__title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 1.4em !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	color: #00625E !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.hrpbr-card__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.hrpbr-card__title a:hover {
	text-decoration: underline !important;
}

/* Superscript ® injected by we-custom-registered-symbol-superscript */
.hrpbr-card__title .we-registered-symbol {
	font-size: 0.58em;
	display: inline-block;
	top: 0;
}

/* --- Description --- */
.hrpbr-card__desc {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 1em !important;
	line-height: 1.65 !important;
	color: #3c3c3c !important;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

/* --- Responsive --- */
@media (min-width: 768px) and (max-width: 1100px) {
	.hrpbr-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.hrpbr-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
