/*! Qubtiva Hero Slider */

.qhs {
	--qhs-speed: 700ms;
	--qhs-ease: cubic-bezier(.22, .61, .36, 1);
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	color: #fff;
	-webkit-tap-highlight-color: transparent;
}

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

/* Kenardan kenara: bulunduğu kutudan taşıp ekran genişliğine yayılır.
   --wd-scroll-w WoodMart'ın hesapladığı kaydırma çubuğu genişliğidir; JS gerekirse --qhs-vw / --qhs-shift ile düzeltir. */
.qhs.qhs--stretch {
	width: var(--qhs-vw, calc(100vw - var(--wd-scroll-w, 0px)));
	max-width: none;
	margin-left: calc(50% - var(--qhs-vw, calc(100vw - var(--wd-scroll-w, 0px))) / 2 + var(--qhs-shift, 0px));
	margin-right: 0;
}

/* Yükseklik görselin oranından gelir (--qhs-ar widget çıktısında cihaz bazında yazılır). */
.qhs__viewport {
	position: relative;
	z-index: 0;
	width: 100%;
	aspect-ratio: var(--qhs-ar, 16 / 9);
	max-height: var(--qhs-maxh, none);
	overflow: hidden;
	background-color: var(--qhs-bg, #e9eef2);
	touch-action: pan-y pinch-zoom;
}

.qhs--fixed .qhs__viewport {
	aspect-ratio: auto;
	height: var(--qhs-h, 600px);
	max-height: none;
}

.qhs__track {
	display: flex;
	width: 100%;
	height: 100%;
	transform: translate3d(0, 0, 0);
	transition-property: transform;
	transition-duration: 0ms;
	transition-timing-function: var(--qhs-ease);
	will-change: transform;
}

.qhs__slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Solarak geçiş */
.qhs--fade .qhs__track {
	display: block;
	position: relative;
	transform: none !important;
	will-change: auto;
}

.qhs--fade .qhs__slide {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--qhs-speed) ease, visibility 0s linear var(--qhs-speed);
}

.qhs--fade .qhs__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity var(--qhs-speed) ease, visibility 0s;
}

/* Görsel */
.qhs .qhs__media {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.qhs .qhs__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: var(--qhs-focus, 50% 50%);
	-webkit-user-drag: none;
	-webkit-user-select: none;
	user-select: none;
}

/* Tüm slayt bağlantısı */
.qhs .qhs__cover {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: block;
	background: transparent;
}

.qhs .qhs__slide--linked .qhs__content {
	pointer-events: none;
}

.qhs .qhs__slide--linked .qhs__content a {
	pointer-events: auto;
}

/* İçerik: görselin üzerinde yüzde koordinatla konumlanır.
   left:X% ve translateX(-X%) birlikte, 0'da sol kenara, 50'de ortaya, 100'de sağ kenara hizalar; kutu taşmaz. */
.qhs .qhs__content {
	position: absolute;
	z-index: 3;
	top: var(--qhs-y, 50%);
	left: var(--qhs-x, 8%);
	width: max-content;
	max-width: min(var(--qhs-cw, 560px), 94%);
	transform: translate(calc(-1 * var(--qhs-x, 8%)), calc(-1 * var(--qhs-y, 50%)));
	text-align: left;
	color: inherit;
}

.qhs .qhs__title {
	margin: 0 0 14px;
	padding: 0;
	color: inherit;
	font-family: var(--wd-title-font, inherit);
	font-size: clamp(26px, 3.4vw, 52px);
	font-style: normal;
	font-weight: var(--wd-title-font-weight, 500);
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
}

.qhs .qhs__desc {
	margin: 0 0 22px;
	color: inherit;
	font-size: clamp(14px, 1.15vw, 17px);
	line-height: 1.55;
}

.qhs .qhs__content > :last-child {
	margin-bottom: 0;
}

/* Buton – sitedeki .btn-color-primary ve .qubtiva-buton2 gradyanlarıyla aynı */
.qhs .qhs__btn {
	--qhs-btn-bg: linear-gradient(135deg, #6fd600 0%, #28a745 55%, #087a3a 100%);
	--qhs-btn-bg-hover: linear-gradient(135deg, #087a3a 0%, #28a745 55%, #6fd600 100%);
	--qhs-btn-color: #fff;
	position: relative;
	z-index: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 42px;
	margin: 0;
	padding: 5px 20px;
	overflow: hidden;
	border: 0;
	border-radius: 35px;
	background: var(--qhs-btn-bg);
	color: var(--qhs-btn-color);
	font-family: var(--wd-text-font, inherit);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color .3s ease, box-shadow .3s ease;
	isolation: isolate;
}

.qhs .qhs__btn::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	border-radius: inherit;
	background: var(--qhs-btn-bg-hover);
	opacity: 0;
	transition: opacity .3s ease;
}

.qhs .qhs__btn:hover,
.qhs .qhs__btn:focus-visible {
	color: var(--qhs-btn-color-hover, var(--qhs-btn-color));
	text-decoration: none;
}

.qhs .qhs__btn:hover::before,
.qhs .qhs__btn:focus-visible::before {
	opacity: 1;
}

.qhs .qhs__btn--blue {
	--qhs-btn-bg: linear-gradient(90deg, #27547e 0%, #3976a1 32%, #4585b2 52%, #306893 76%, #285a84 100%);
	--qhs-btn-bg-hover: linear-gradient(90deg, #285a84 0%, #306893 24%, #4585b2 48%, #3976a1 68%, #27547e 100%);
}

.qhs .qhs__btn--white {
	--qhs-btn-bg: #fff;
	--qhs-btn-bg-hover: #eef3f6;
	--qhs-btn-color: #1d2b36;
}

.qhs .qhs__btn--dark {
	--qhs-btn-bg: #1d2b36;
	--qhs-btn-bg-hover: #0d1419;
}

.qhs .qhs__btn--custom {
	--qhs-btn-bg: #27547e;
	--qhs-btn-bg-hover: var(--qhs-btn-bg);
}

/* Oklar – WoodMart "style-1": zeminsiz ince ok, 50px tıklama alanı.
   all:unset temanın global button stillerini (padding, min-height, arka plan, büyük harf…) sıfırlar. */
.qhs .qhs__arrow {
	all: unset;
	position: absolute;
	top: 50%;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--qhs-arrow-size, 50px);
	height: var(--qhs-arrow-size, 50px);
	margin-top: calc(var(--qhs-arrow-size, 50px) / -2);
	padding: 0;
	border-radius: var(--qhs-arrow-radius, 0);
	background: var(--qhs-arrow-bg, transparent);
	color: var(--qhs-arrow-color, #fff);
	cursor: pointer;
	opacity: .85;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35));
	transition: color .25s ease, background-color .25s ease, opacity .25s ease;
}

.qhs .qhs__arrow--prev {
	left: var(--qhs-arrow-offset, 0px);
}

.qhs .qhs__arrow--next {
	right: var(--qhs-arrow-offset, 0px);
}

.qhs .qhs__arrow:hover {
	opacity: 1;
	background: var(--qhs-arrow-bg-hover, var(--qhs-arrow-bg, transparent));
	color: var(--qhs-arrow-color-hover, var(--qhs-arrow-color, #fff));
}

.qhs .qhs__arrow:focus-visible {
	opacity: 1;
	outline: 2px solid currentColor;
	outline-offset: -6px;
}

.qhs .qhs__arrow[disabled] {
	opacity: .35;
	cursor: default;
}

.qhs .qhs__arrow svg {
	display: block;
	width: var(--qhs-arrow-icon, 24px);
	height: var(--qhs-arrow-icon, 24px);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

/* Sayfalama – WoodMart "number-2": 01 —, aktif çizgi uzar.
   Stil (numara / nokta) ve konum (görselin üzerinde / altında) widget'ta cihaz bazında seçilir
   ve buradaki --qhs-* değişkenleriyle uygulanır; değişken yoksa masaüstü varsayılanı geçerlidir. */
.qhs .qhs__pagination {
	position: var(--qhs-pag-position, absolute);
	right: var(--qhs-pag-side, 15px);
	bottom: var(--qhs-pag-bottom-eff, var(--qhs-pag-bottom, 15px));
	left: var(--qhs-pag-side, 15px);
	z-index: 6;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px var(--qhs-pag-gap, var(--qhs-pag-gap-auto, 30px));
	margin: var(--qhs-pag-mt, 0px) 0 0;
	padding: 0;
	pointer-events: none;
}

.qhs .qhs__bullet {
	all: unset;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	box-sizing: border-box;
	color: var(--qhs-pag-color, var(--qhs-pag-auto-color, #fff));
	font-family: var(--wd-text-font, inherit);
	font-size: var(--qhs-pag-size, 12px);
	font-weight: 600;
	line-height: 1;
	text-shadow: var(--qhs-pag-shadow, 0 1px 2px rgba(0, 0, 0, .25));
	cursor: pointer;
	pointer-events: auto;
	transition: color .25s ease;
}

/* Parmakla kolay basılsın diye görünmez büyük dokunma alanı */
.qhs .qhs__bullet::before {
	content: "";
	position: absolute;
	top: -10px;
	right: 0;
	bottom: -10px;
	left: 0;
}

.qhs .qhs__num {
	display: var(--qhs-num-display, block);
}

.qhs .qhs__line {
	position: relative;
	display: block;
	width: var(--qhs-line-w, 1.3em);
	height: var(--qhs-line-h, 2px);
	overflow: hidden;
	border-radius: var(--qhs-line-radius, 0);
	opacity: var(--qhs-line-opacity, 1);
	transition: width .25s ease, opacity .25s ease;
}

.qhs .qhs__line::before,
.qhs .qhs__fill {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: currentColor;
}

.qhs .qhs__fill {
	display: none;
	transform-origin: left center;
}

.qhs .qhs__bullet:hover .qhs__line {
	width: var(--qhs-line-w-hover, 2.5em);
	opacity: var(--qhs-line-opacity-hover, 1);
}

.qhs .qhs__bullet.is-active {
	color: var(--qhs-pag-color-active, var(--qhs-pag-color, var(--qhs-pag-auto-color, #fff)));
}

.qhs .qhs__bullet.is-active .qhs__line {
	width: var(--qhs-line-w-active, 3.2em);
	opacity: 1;
}

.qhs .qhs__bullet:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* İlerleme çizgisi (opsiyonel) */
.qhs--progress.is-autoplay .qhs__bullet.is-active .qhs__line::before {
	opacity: .35;
}

.qhs--progress.is-autoplay .qhs__bullet.is-active .qhs__fill {
	display: block;
	animation: qhs-fill var(--qhs-delay, 6000ms) linear forwards;
}

.qhs--progress.is-paused .qhs__bullet.is-active .qhs__fill {
	animation-play-state: paused;
}

@keyframes qhs-fill {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

/* Sürükleme */
.qhs.is-dragging .qhs__viewport {
	cursor: grabbing;
	-webkit-user-select: none;
	user-select: none;
}

.qhs.is-dragging .qhs__slide a {
	pointer-events: none;
}

/* Elementor editöründe boş durum */
.qhs-empty {
	padding: 40px 20px;
	border: 2px dashed #c5ced6;
	color: #6d7882;
	font-size: 14px;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.qhs .qhs__track,
	.qhs--fade .qhs__slide,
	.qhs .qhs__line,
	.qhs .qhs__btn,
	.qhs .qhs__btn::before {
		transition: none !important;
	}

	.qhs .qhs__fill {
		animation: none !important;
	}
}
