.mgs-product-list {
	width: 100%;
}

.mgs-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	justify-items: center;
	text-align: center;
	margin: 0 0 24px;
}

.mgs-product-card {
	width: 100%;
	max-width: 140px;
	margin: 0;
}

.mgs-product-link {
	display: block;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.mgs-product-image-wrap {
	display: block;
	width: 100%;
	aspect-ratio: 120 / 170;
	overflow: hidden;
	background: #f2f2f2;
}

.mgs-product-image,
.mgs-product-image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.mgs-product-image {
	object-fit: cover;
}

.mgs-product-title {
	display: -webkit-box;
	width: 100%;
	margin-top: 5px;
	overflow: hidden;
	color: #337ab7;
	font-size: 12px;
	line-height: 1.4;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mgs-product-link:hover .mgs-product-title,
.mgs-product-link:focus .mgs-product-title {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.mgs-product-grid {
		gap: 8px;
	}

	.mgs-product-card {
		max-width: none;
	}
}
