/* Related cards stay independent from the main single-product grid. */
.po-product-detail .related.products.po-related-products {
	display: block !important;
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
	margin: 28px 0 0;
	float: none;
}

.po-product-detail .related.products.po-related-products > h2 {
	margin: 0 0 18px;
	font-family: var(--po-display);
	font-size: clamp(30px, 3.2vw, 42px);
	font-style: italic;
	font-weight: 900;
	line-height: .95;
	text-transform: uppercase;
}

.po-product-detail .po-related-products__grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	gap: clamp(12px, 1.5vw, 20px);
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.po-product-detail .po-related-products__grid::before,
.po-product-detail .po-related-products__grid::after {
	display: none !important;
	content: none !important;
}

.po-product-detail .po-related-products__item {
	display: block !important;
	float: none !important;
	clear: none !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.po-product-detail .po-related-products__item > .po-product-card {
	display: flex;
	width: 100%;
	height: 100%;
	min-width: 0;
}

.po-product-detail .po-related-products__item .po-product-card__image {
	display: grid;
	width: 100%;
	height: auto;
	min-height: 0;
	aspect-ratio: 1 / 1;
	padding: clamp(8px, 1.25vw, 16px);
	overflow: hidden;
}

.po-product-detail .po-related-products__item .po-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.po-product-detail .po-related-products__item .po-product-card__body {
	align-items: stretch;
	min-width: 0;
	padding: 13px 14px 14px;
}

.po-product-detail .po-related-products__item .po-product-card__brand {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.po-product-detail .po-related-products__item .po-product-card__title {
	width: 100%;
	min-width: 0;
	margin-right: 0;
	font-size: clamp(12px, 1vw, 14px);
	line-height: 1.4;
	word-break: normal;
	overflow-wrap: break-word;
}

.po-product-detail .po-related-products__item .po-product-card__title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.po-product-detail .po-related-products__item .po-product-card__price {
	width: 100%;
	min-width: 0;
	margin-top: auto;
	font-size: clamp(13px, 1vw, 15px);
	line-height: 1.35;
}

.po-product-detail .po-related-products__item .po-promotion-preview {
	gap: 3px 6px;
}

.po-product-detail .po-related-products__item .po-promotion-preview .po-promotion-label {
	font-size: 10px;
	line-height: 1.35;
}

.po-product-detail .po-related-products__item .po-card-quick {
	min-height: 40px;
	margin-top: 12px;
	padding: 9px 11px;
	font-size: 10px;
}

@media (max-width: 767px) {
	.po-product-detail .related.products.po-related-products {
		margin-top: 24px;
	}

	.po-product-detail .related.products.po-related-products > h2 {
		margin-bottom: 14px;
		font-size: clamp(26px, 7vw, 34px);
	}

	.po-product-detail .po-related-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.po-product-detail .po-related-products__item .po-product-card__image {
		padding: 8px;
	}

	.po-product-detail .po-related-products__item .po-product-card__body {
		padding: 10px;
	}

	.po-product-detail .po-related-products__item .po-product-card__title {
		font-size: 12px;
	}

	.po-product-detail .po-related-products__item .po-product-card__price {
		font-size: 13px;
	}

	.po-product-detail .po-related-products__item .po-card-quick {
		min-height: 36px;
		margin-top: 9px;
		padding: 8px;
		font-size: 9px;
	}
}
