/**
 * Mert Tomek — Global sepet arayüzü
 * Masaüstü: sağ altta sabit sepet butonu (FAB)
 * Mobil: alt menüdeki Sepet ikonuna canlı sayı rozeti
 */

/* ---------- Sayı rozeti (ortak) ---------- */
.mt-cart-count {
	position: absolute;
	top: -6px;
	right: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #e02020;
	color: #fff;
	font-family: Roboto, Arial, sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transform: scale(0.5);
	transition: opacity 0.18s ease, transform 0.18s ease;
	pointer-events: none;
}

.mt-cart-count.has-items {
	opacity: 1;
	transform: scale(1);
}

/* ---------- Masaüstü FAB ---------- */
.mt-cart-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #fbbe01;
	color: #070707;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mt-cart-fab svg {
	width: 27px;
	height: 27px;
	fill: currentColor;
}

.mt-cart-fab:hover,
.mt-cart-fab:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
	color: #070707;
}

.mt-cart-fab:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* Mobilde FAB gizli — alt menüde Sepet zaten var */
@media (max-width: 768px) {
	.mt-cart-fab {
		display: none;
	}
}

/* ---------- Mobil alt menü rozeti ---------- */
.mt-cart-anchor {
	position: relative;
	display: inline-grid;
	place-items: center;
}

.mt-cart-anchor svg {
	width: 25px;
	height: 25px;
	fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
	.mt-cart-count,
	.mt-cart-fab {
		transition: none;
	}
}
