/* ==========================================================================
   Zilento Related Products Widget Styles
   ========================================================================== */

.zilento-related-products-wrapper {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

/* --- Header Layout --- */
.zilento-related-header {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 40px;
}

.zilento-related-title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	color: #004838;
	line-height: 1.2;
}

.zilento-related-subtitle {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	color: #2d3748;
	line-height: 1.5;
	text-align: right;
}

/* --- Responsive Grid --- */
.zilento-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

/* --- Card Items --- */
.zilento-related-card {
	display: flex;
	flex-direction: column;
	background: transparent;
	transition: transform 0.25s ease;
}

.zilento-card-image-link {
	display: block;
	width: 100%;
	text-decoration: none;
	margin-bottom: 16px;
}

.zilento-card-image {
	width: 100%;
	overflow: hidden;
	border-radius: 0px;
}

.zilento-card-image img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.zilento-related-card:hover .zilento-card-image img {
	transform: scale(1.03);
}

.zilento-card-title {
	margin: 0 0 12px 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.zilento-card-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.zilento-card-title a:hover {
	color: #004838;
}

.zilento-card-link-wrap {
	margin-top: auto;
}

.zilento-card-link {
	display: inline-block;
	color: #004838;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.zilento-card-link:hover {
	opacity: 0.85;
	text-decoration: underline;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 991px) {
	.zilento-related-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.zilento-related-subtitle {
		text-align: left;
	}

	.zilento-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.zilento-related-grid {
		grid-template-columns: 1fr;
	}

	.zilento-related-title {
		font-size: 26px;
	}
}
