/* AI Store Plus — üst şerit + fırsat kartı (aistore-promo.php). Sürüm ASPPR_VERSION ile ?ver= olarak yüklenir. */

:root {
	--asp-promo-h: 34px;
}
@media (max-width: 768px) {
	:root {
		--asp-promo-h: 30px;
	}
}

/* ------------------------------------------------------------------ Üst şerit */

.asp-promo {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	height: var(--asp-promo-h);
	overflow: hidden;
	background-color: #0c0a22;
	background-image: radial-gradient(55% 190% at 50% 0%, rgba(109, 78, 236, .40), rgba(109, 78, 236, 0) 72%), linear-gradient(90deg, #0a081d, #16103b 50%, #0a081d);
	border-bottom: 1px solid rgba(255, 255, 255, .07);
	color: #fff;
	font-size: 13px;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}
.asp-promo .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.asp-promo__vp {
	height: 100%;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
.asp-promo__in {
	display: flex;
	width: max-content;
	height: 100%;
	animation: asp-promo-run var(--asp-promo-dur, 120s) linear infinite;
	will-change: transform;
}
.asp-promo:hover .asp-promo__in {
	animation-play-state: paused;
}
.asp-promo .asp-promo__track {
	display: flex;
	flex: none;
	align-items: center;
	gap: 26px;
	height: 100%;
	margin: 0;
	padding: 0 13px;
	list-style: none;
}
.asp-promo .asp-promo__i {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	list-style: none;
}
.asp-promo .asp-promo__b img {
	display: block;
	width: auto;
	max-width: none;
	height: 18px;
	opacity: .93;
}
.asp-promo .asp-promo__b span {
	color: rgba(255, 255, 255, .84);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .01em;
}
.asp-promo .asp-promo__s {
	gap: 6px;
	height: 24px;
	padding: 0 12px 0 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(109, 78, 236, .50), rgba(219, 39, 119, .30));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .01em;
}
.asp-promo__ic {
	flex: none;
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.asp-promo__ic--crown {
	color: #fcd34d;
}
.asp-promo__ic--tag {
	color: #6ee7b7;
}
.asp-promo__ic--bolt {
	color: #fde047;
	fill: rgba(253, 224, 71, .25);
}
@keyframes asp-promo-run {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (max-width: 768px) {
	.asp-promo__in {
		animation-duration: var(--asp-promo-dur-m, var(--asp-promo-dur, 100s));
	}
	.asp-promo__vp {
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
		mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
	}
	.asp-promo .asp-promo__track {
		gap: 20px;
		padding: 0 10px;
	}
	.asp-promo .asp-promo__i {
		gap: 6px;
	}
	.asp-promo .asp-promo__b img {
		height: 16px;
	}
	.asp-promo .asp-promo__b span,
	.asp-promo .asp-promo__s {
		font-size: 12px;
	}
	.asp-promo .asp-promo__s {
		height: 22px;
		padding: 0 10px 0 7px;
		gap: 5px;
	}
	.asp-promo__ic {
		width: 14px;
		height: 14px;
	}
}

/* Hareket azaltma: akış yok, şerit parmakla/izleme paneliyle yana kaydırılır. */
@media (prefers-reduced-motion: reduce) {
	.asp-promo__in {
		animation: none;
		transform: none;
	}
	.asp-promo__vp {
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		-webkit-mask-image: none;
		mask-image: none;
	}
	.asp-promo__vp::-webkit-scrollbar {
		display: none;
	}
	.asp-promo .asp-promo__track + .asp-promo__track {
		display: none;
	}
}

/* Dil bayrakları (alt tema: position:absolute, sayfanın tepesine göre) şerit kadar aşağı. Alt temadaki değerler:
   12 px; 768 px altında 15 px; yönetici çubuğu açıkken 44 px, 782 px altında 61 px. */
body.asp-has-promo .asp-header-lang-switcher {
	top: calc(12px + var(--asp-promo-h));
}
body.asp-has-promo.admin-bar .asp-header-lang-switcher {
	top: calc(44px + var(--asp-promo-h));
}
@media (max-width: 782px) {
	body.asp-has-promo.admin-bar .asp-header-lang-switcher {
		top: calc(61px + var(--asp-promo-h));
	}
}
@media (max-width: 768px) {
	body.asp-has-promo .asp-header-lang-switcher {
		top: calc(15px + var(--asp-promo-h));
	}
}

/* ------------------------------------------------------------------ Fırsat kartı (sol alt) */

.asp-deal {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 380; /* WoodMart: araç çubuğu 350, yapışkan header 390, karartma 400, yan paneller 500 */
	width: 320px;
	max-width: calc(100vw - 40px);
	color: #fff;
	font-size: 13px;
	line-height: 1.3;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
	-webkit-font-smoothing: antialiased;
}
.asp-deal[hidden] {
	display: none !important;
}
.asp-deal.is-in {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .45s ease, transform .45s ease, visibility 0s;
}
.asp-deal.is-in.is-covered,
.asp-deal.is-out {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.asp-deal__card {
	position: relative;
	overflow: hidden;
	padding: 12px 14px 14px 12px;
	border-radius: 16px;
	background-color: #110e2b;
	background-image: linear-gradient(135deg, rgba(109, 78, 236, .26), rgba(17, 14, 43, 0) 58%);
	box-shadow: 0 18px 42px -12px rgba(9, 7, 30, .62), 0 2px 8px rgba(9, 7, 30, .28), inset 0 0 0 1px rgba(255, 255, 255, .10);
}
.asp-deal__slides {
	position: relative;
	height: 78px;
}
.asp-deal .asp-deal__slide,
.asp-deal .asp-deal__slide:hover,
.asp-deal .asp-deal__slide:focus {
	color: #fff;
	text-decoration: none;
}
.asp-deal__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}
.asp-deal__slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .4s ease .08s, transform .4s ease .08s, visibility 0s;
}
.asp-deal__slide:hover .asp-deal__name {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.asp-deal__slide:focus-visible {
	outline: 2px solid #a78bfa;
	outline-offset: 3px;
	border-radius: 10px;
}
.asp-deal__img {
	flex: none;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 12px;
	background: #1b1640;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.asp-deal .asp-deal__img img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.asp-deal__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}
.asp-deal__chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 19px;
	padding: 0 8px 0 6px;
	border-radius: 999px;
	background: rgba(167, 139, 250, .20);
	box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .38);
	color: #ddd6fe;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}
.asp-deal__chip svg {
	flex: none;
	width: 12px;
	height: 12px;
	fill: currentColor;
}
.asp-deal__chip--day {
	background: linear-gradient(90deg, #f59e0b, #fcd34d);
	box-shadow: none;
	color: #231600;
}
.asp-deal__chip--best {
	background: rgba(255, 77, 106, .18);
	box-shadow: inset 0 0 0 1px rgba(255, 77, 106, .48);
	color: #ffc2cc;
}
.asp-deal__chip--deal {
	background: rgba(34, 197, 94, .18);
	box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .48);
	color: #b4f5cc;
}
.asp-deal__chip--low {
	background: rgba(251, 146, 60, .18);
	box-shadow: inset 0 0 0 1px rgba(251, 146, 60, .50);
	color: #fed7aa;
}
.asp-deal__chip--new {
	background: rgba(34, 211, 238, .16);
	box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .46);
	color: #b5f5fd;
}
.asp-deal__name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}
.asp-deal__price {
	max-width: 100%;
	overflow: hidden;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.asp-deal__price .woocommerce-Price-amount {
	color: inherit;
}
.asp-deal__price del {
	margin-right: 4px;
	opacity: .55;
	font-weight: 500;
}
.asp-deal__price ins {
	text-decoration: none;
}
.asp-deal__price .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.asp-deal__bar {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: rgba(255, 255, 255, .07);
}
.asp-deal__fill {
	display: block;
	width: 100%;
	height: 100%;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(90deg, #6d4eec, #ec4899);
	animation: asp-deal-bar 3s linear forwards; /* bitişi (animationend) bir sonraki ürüne geçirir */
}
.asp-deal.is-paused .asp-deal__fill {
	animation-play-state: paused;
}
@keyframes asp-deal-bar {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}
.asp-deal .asp-deal__x {
	position: absolute;
	top: -9px;
	right: -9px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 26px;
	min-width: 0;
	height: 26px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #2a2452;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .2);
	color: #fff;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease;
}
.asp-deal .asp-deal__x::after {
	content: "";
	position: absolute;
	inset: -8px; /* dokunma alanı */
}
.asp-deal .asp-deal__x:hover,
.asp-deal .asp-deal__x:focus {
	background: #6d4eec;
	color: #fff;
}
.asp-deal .asp-deal__x:focus-visible {
	outline: 2px solid #c4b5fd;
	outline-offset: 2px;
}
.asp-deal__x svg {
	width: 12px;
	height: 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
}

/* Tablet ve telefon: WoodMart alt araç çubuğunun (55 px) üstünde. */
@media (max-width: 1024px) {
	body.sticky-toolbar-on .asp-deal {
		bottom: calc(67px + env(safe-area-inset-bottom, 0px));
	}
}
@media (max-width: 768px) {
	.asp-deal {
		left: 12px;
		bottom: 12px;
		width: min(300px, calc(100vw - 76px)); /* sağda "yukarı çık" düğmesine yer */
	}
	.asp-deal__card {
		padding: 9px 11px 11px 9px;
		border-radius: 14px;
	}
	.asp-deal__slides {
		height: 54px;
	}
	.asp-deal__slide {
		gap: 10px;
	}
	.asp-deal__img {
		width: 50px;
		height: 50px;
		border-radius: 10px;
	}
	.asp-deal__body {
		gap: 3px;
	}
	.asp-deal__chip {
		height: 17px;
		padding: 0 7px 0 5px;
		font-size: 10.5px;
	}
	.asp-deal__name {
		-webkit-line-clamp: 1;
		font-size: 12.5px;
	}
	.asp-deal__price {
		font-size: 13px;
	}
	.asp-deal .asp-deal__x {
		top: -8px;
		right: -8px;
		width: 24px;
		height: 24px;
	}
}
/* Yatay telefon gibi alçak ekranlarda içeriği kapatmasın. */
@media (max-height: 480px) {
	.asp-deal {
		display: none !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	.asp-deal,
	.asp-deal.is-in,
	.asp-deal__slide,
	.asp-deal__slide.is-active {
		transform: none;
		transition: none;
	}
	.asp-deal__bar {
		opacity: 0; /* zamanlayıcı olarak çalışmaya devam eder, görünmez */
	}
}
@media print {
	.asp-promo,
	.asp-deal {
		display: none !important;
	}
}
