/**
 * Mobile Bottom Navigation
 *
 * Glass panel fixed nav bar for mobile devices.
 * Hidden above 768px. Safe-area aware for notched phones.
 *
 * @package SkyyRose_Flagship
 * @since   6.3.0
 */

/* ── Bar ─────────────────────────────────────────────── */

.mobile-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: space-around;
	height: 64px;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: rgba(10, 10, 10, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-top: 1px solid rgba(183, 110, 121, 0.15);
}

/* ── Item ────────────────────────────────────────────── */

.mobile-nav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	gap: 2px;
	padding: 8px 0;
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.mobile-nav__item--active {
	color: #b76e79;
	transform: scale(1.05);
}

.mobile-nav__item:focus-visible {
	outline: 2px solid #b76e79;
	outline-offset: -2px;
	border-radius: 4px;
}

/* ── Icon ────────────────────────────────────────────── */

.mobile-nav__icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.mobile-nav__icon svg {
	display: block;
}

/* ── Label ───────────────────────────────────────────── */

.mobile-nav__label {
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
}

/* ── Cart Badge ──────────────────────────────────────── */

.mobile-nav__badge {
	position: absolute;
	top: -4px;
	right: -6px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 14px;
	height: 14px;
	padding: 0 3px;
	background: #b76e79;
	color: #fff;
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	border-radius: 7px;
}

/* ── Body Spacer ─────────────────────────────────────── */

.has-mobile-nav {
	padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* ── Desktop: Hide ───────────────────────────────────── */

@media (min-width: 769px) {
	.mobile-nav {
		display: none;
	}

	.has-mobile-nav {
		padding-bottom: 0;
	}
}

/* ── Reduced Motion ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.mobile-nav__item {
		transition: none;
	}

	.mobile-nav__item--active {
		transform: none;
	}
}
