/**
 * Mobil alt sabit menü — Toptan Mum child theme (Mikrokomponent dock ile uyumlu davranış).
 * body.toptanmum-mobile-dock-active: içerik alt padding.
 */
.toptanmum-mobile-dock {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100050;
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}

.toptanmum-mobile-dock__inner {
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	max-width: 560px;
	margin: 0 auto;
	gap: 2px;
}

.toptanmum-mobile-dock__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-width: 0;
	padding: 6px 2px;
	text-decoration: none;
	color: #333;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.15;
	border: none;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
	border-radius: 8px;
	font-family: inherit;
}

/* iOS Safari: ilk dokunuşun SVG/span’e takılmaması — tıklama doğrudan butona/linke gider */
.toptanmum-mobile-dock__item svg,
.toptanmum-mobile-dock__item > span {
	pointer-events: none;
}

.toptanmum-mobile-dock__item:active {
	background: rgba(0, 0, 0, 0.06);
}

.toptanmum-mobile-dock__item svg {
	display: block;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	opacity: 0.92;
}

.toptanmum-mobile-dock__item--accent svg {
	color: #556b2f;
}

.toptanmum-mobile-dock__item--cart {
	position: relative;
}

.toptanmum-mobile-dock__badge {
	position: absolute;
	top: 0;
	right: 50%;
	transform: translateX(14px);
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: #6a6e49;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	pointer-events: none;
}

@media (max-width: 768px) {
	.toptanmum-mobile-dock {
		display: block;
	}

	body.toptanmum-mobile-dock-active {
		padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
	}
}

@media (min-width: 769px) {
	.toptanmum-mobile-dock {
		display: none !important;
	}

	body.toptanmum-mobile-dock-active {
		padding-bottom: 0;
	}
}
