/* VH Product Match Engine */
.vh-mt {
	--vh-mt-accent: #2f9e44;
	box-sizing: border-box;
	margin: 12px 0;
}

.vh-mt *,
.vh-mt *::before,
.vh-mt *::after {
	box-sizing: border-box;
}

.vh-mt-title {
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #1f2d24;
}

.vh-mt-body .swiper {
	position: relative;
}

.vh-mt-body .swiper-container {
	overflow: hidden;
}

.vh-mt-body .product-thumb {
	margin: 0;
}

/* ---- ızgaradan çevrilen yatay şerit ---- */

.vh-mt-strip {
	display: flex;
	gap: var(--vh-mt-gap, 10px);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.vh-mt-strip::-webkit-scrollbar {
	display: none;
}

.vh-mt-strip > .vh-mt-cell {
	flex: 0 0 var(--vh-mt-cell, calc((100% - 10px) / 2));
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	scroll-snap-align: start;
}

.vh-mt-dots {
	display: flex !important;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
	line-height: 1;
}

.vh-mt-dot {
	display: block !important;
	width: 7px;
	height: 7px;
	border-radius: 99px;
	background: #c9cfd4;
	cursor: pointer;
	transition: width .18s ease, background .18s ease;
}

.vh-mt-dot.is-on {
	width: 20px;
	background: var(--vh-mt-accent);
}

/* Nokta göstergesi — Journal ayarı kapalıysa biz ekliyoruz, görünür olsun */
.vh-mt .swiper-pagination {
	position: static;
	visibility: visible;
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
	line-height: 1;
}

.vh-mt .swiper-pagination-bullet {
	width: 7px;
	height: 7px;
	border-radius: 99px;
	background: #c9cfd4;
	opacity: 1;
	transition: width .18s ease, background .18s ease;
}

.vh-mt .swiper-pagination-bullet-active {
	width: 20px;
	background: var(--vh-mt-accent);
}

/* Swiper başlatılamazsa yatay kaydırmalı ızgaraya düş */
.vh-mt-nosw .swiper-wrapper {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
}

.vh-mt-nosw .swiper-wrapper > .product-layout {
	flex: 0 0 46%;
	scroll-snap-align: start;
}

.vh-mt-nosw .swiper-buttons,
.vh-mt-nosw .swiper-pagination {
	display: none;
}

/* Journal modülü seçilmediğinde */
.vh-mt-grid {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
}

.vh-mt-item {
	flex: 0 0 132px;
	display: block;
	padding: 8px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
}

.vh-mt-item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: contain;
	background: #f5f5f5;
	border-radius: 6px;
}

.vh-mt-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 6px 0 3px;
	font-size: 12px;
	line-height: 1.3;
}

.vh-mt-price {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--vh-mt-accent);
}

@media (min-width: 768px) {
	.vh-mt-title {
		font-size: 17px;
	}

	.vh-mt-strip > .vh-mt-cell {
		flex-basis: var(--vh-mt-cell-d, calc((100% - 30px) / 4));
	}

	.vh-mt-nosw .swiper-wrapper > .product-layout {
		flex-basis: 23%;
	}

	.vh-mt-item {
		flex-basis: 160px;
	}
}
