/**
 * ==========================================================
 * GM THEME v2
 * File: assets/css/sections/featured.css
 * Description: Ana sayfa ürün seçkisi yerleşimi
 * ==========================================================
 */

.gm-featured-section {
	overflow: hidden;
	background: #fafaf8;
}

.gm-featured-section .gm-shell {
	position: relative;
}

.gm-featured-heading {
	max-width: 820px;
	margin: 0 auto clamp(32px, 4vw, 48px) !important;
	text-align: center;
}

.gm-featured-heading h2 {
	margin: 0;
	color: #20242a;
	font-size: clamp(28px, 2.25vw, 38px) !important;
	font-weight: 500 !important;
	line-height: 1.2;
	letter-spacing: -0.035em;
}

.gm-featured-heading p {
	max-width: 720px;
	margin: 12px auto 0;
	color: #6f6f6f;
	font-size: clamp(14px, 1.1vw, 17px) !important;
	font-weight: 400;
	line-height: 1.6;
}

.gm-featured-viewport {
	width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.gm-featured-viewport::-webkit-scrollbar {
	display: none;
}

.gm-featured-track,
.gm-featured-track > .woocommerce {
	width: 100%;
	min-width: 0;
}

body.home .gm-featured-track ul.products {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: clamp(18px, 2vw, 28px) !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	list-style: none !important;
}

body.home .gm-featured-track ul.products li.product.gm-product-loop-item {
	position: relative !important;
	display: flex !important;
	grid-template-columns: none !important;
	grid-template-rows: none !important;
	flex: 0 0 calc((100% - (2 * clamp(18px, 2vw, 28px))) / 3) !important;
	max-width: calc((100% - (2 * clamp(18px, 2vw, 28px))) / 3) !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.home .gm-featured-track ul.products li.product.gm-product-loop-item > .gm-product-card {
	display: flex !important;
	width: 100% !important;
	height: 100% !important;
}

.gm-featured-arrows button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	cursor: pointer;
}

.gm-featured-arrows button:disabled {
	cursor: default;
	opacity: 0.35;
}

.gm-featured-dots {
	display: none;
}

/* ==========================================================
   FEATURED PROGRESS — DESKTOP
========================================================== */

.gm-featured-progress {
	display: block;
	width: 320px;
	max-width: 34vw;
	height: 4px;
	margin: 28px auto 0;
	overflow: hidden;
	border-radius: var(--gm-radius-pill);
	background: var(--gm-color-border);
}

.gm-featured-progress span {
	display: block;
	width: 33.333%;
	height: 100%;
	border-radius: inherit;
	background: var(--gm-color-primary);
	transform: translateX(0);
	will-change: transform;
	transition:
		transform
		var(--gm-motion-normal)
		var(--gm-motion-premium);
}

@media (max-width: 767px) {

	.gm-featured-progress {
		display: none;
	}

}

@media (max-width: 767px) {
	.gm-featured-heading {
		margin-bottom: 28px !important;
	}

	.gm-featured-arrows {
		display: none !important;
	}

	body.home .gm-featured-track ul.products {
		gap: 0 !important;
	}

	body.home .gm-featured-track ul.products li.product.gm-product-loop-item {
		flex-basis: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.gm-featured-dots {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		margin-top: 22px;
	}

	.gm-featured-dots button {
		width: 7px;
		height: 7px;
		min-width: 7px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #d8d9d6;
		box-shadow: none;
		font-size: 0;
		cursor: pointer;
		transition: width 180ms ease, background-color 180ms ease;
	}

	.gm-featured-dots button.is-active {
		width: 22px;
		border-radius: 999px;
		background: #20242a;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gm-featured-viewport {
		scroll-behavior: auto;
	}
}
