.related-materials-section {
	padding: 80px 0;
	overflow: hidden;
}

.related-materials-heading {
	margin-bottom: 42px;
	text-align: center;
}

.related-materials-heading h2 {
	margin: 0;
	font-size: clamp(30px, 3vw, 42px);
	font-weight: 700;
}

.related-materials-heading::after {
	display: block;
	width: 50px;
	height: 3px;
	margin: 20px auto 0;
	background: var(--heading-color);
	content: "";
}

.related-materials-grid.category-product-list {
	padding: 0;
}

.related-materials-grid .product-card {
	display: flex;
	flex-direction: column;
	border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
	box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 92%);
}

.related-materials-grid .product-image {
	padding-top: 72%;
}

.related-materials-grid .product-image .main-image {
	transition: transform .45s ease;
}

.related-materials-grid .product-card:hover .product-image .main-image {
	transform: scale(1.06);
	opacity: 1;
}

.related-materials-grid .product-overlay {
	background: color-mix(in srgb, var(--heading-color), transparent 78%);
}

.related-materials-view {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	transform: translate(-50%, -42%);
	border-radius: 50%;
	background: var(--surface-color);
	color: var(--heading-color);
	font-size: 20px;
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
}

.related-materials-grid .product-card:hover .related-materials-view {
	transform: translate(-50%, -50%);
	opacity: 1;
}

.related-materials-grid .product-details {
	flex: 1;
}

.related-materials-grid .product-title {
	margin-bottom: 12px;
	font-size: 20px;
	line-height: 1.3;
}

.related-materials-description {
	display: -webkit-box;
	overflow: hidden;
	margin-bottom: 20px;
	color: color-mix(in srgb, var(--default-color), transparent 25%);
	font-size: 14px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.related-materials-description p {
	margin: 0;
}

.related-materials-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--heading-color);
	font-weight: 600;
	text-decoration: none;
}

.related-materials-more i {
	transition: transform .25s ease;
}

.related-materials-more:hover {
	color: var(--accent-color);
}

.related-materials-more:hover i {
	transform: translateX(4px);
}

@media (max-width: 767.98px) {
	.related-materials-section {
		padding: 56px 0;
	}

	.related-materials-heading {
		margin-bottom: 30px;
	}
}
