/* TND Premium Bottom Menu — styles */

.tnd-bottom-menu {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: space-around;
	height: 64px;
	padding: 6px 8px calc(env(safe-area-inset-bottom, 0px));
	background: color-mix(in srgb, var(--tnd-bm-bg, #fff) 78%, transparent);
	backdrop-filter: blur(18px) saturate(180%);
	-webkit-backdrop-filter: blur(18px) saturate(180%);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	animation: tnd-bm-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tnd-bm-rise {
	from { transform: translateY(100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.tnd-bottom-menu.tnd-bm-no-labels { height: 58px; }

.tnd-bm-item {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	text-decoration: none !important;
	color: #8a8a99;
	transition: color 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.tnd-bm-item:hover,
.tnd-bm-item:focus {
	color: var(--tnd-bm-primary, #7c3aed);
}

.tnd-bm-icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tnd-bm-svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	transition: stroke-width 0.25s ease;
}

.tnd-bm-label {
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1;
	opacity: 0.85;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Active state — premium pop + color pill */
.tnd-bm-item.is-active {
	color: var(--tnd-bm-primary, #7c3aed);
	transform: translateY(-2px);
}

.tnd-bm-item.is-active .tnd-bm-icon-wrap {
	transform: scale(1.12);
}

.tnd-bm-item.is-active .tnd-bm-svg {
	stroke-width: 2.2;
	filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--tnd-bm-primary, #7c3aed) 45%, transparent));
}

.tnd-bm-item.is-active .tnd-bm-label {
	opacity: 1;
	font-weight: 700;
}

.tnd-bm-item.is-active::before {
	content: "";
	position: absolute;
	top: -6px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--tnd-bm-primary, #7c3aed);
	animation: tnd-bm-dot-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tnd-bm-dot-pop {
	from { transform: scale(0); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

/* Cart badge */
.tnd-bm-badge {
	position: absolute;
	top: -6px;
	right: -10px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--tnd-bm-accent, #22c55e);
	color: #fff;
	font-size: 9.5px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	animation: tnd-bm-badge-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tnd-bm-badge-pop {
	0% { transform: scale(0); }
	60% { transform: scale(1.25); }
	100% { transform: scale(1); }
}

.tnd-bm-item.tnd-bm-cart.is-active .tnd-bm-badge {
	animation: tnd-bm-badge-pulse 1.6s ease-in-out infinite;
}

@keyframes tnd-bm-badge-pulse {
	0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tnd-bm-accent, #22c55e) 55%, transparent); }
	50% { box-shadow: 0 0 0 5px transparent; }
}

/* Ripple / tap feedback */
.tnd-bm-item::after {
	content: "";
	position: absolute;
	inset: 2px 10px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--tnd-bm-primary, #7c3aed) 12%, transparent);
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: -1;
}

.tnd-bm-item:active::after {
	opacity: 1;
	transform: scale(1);
}

/* Prevent content being hidden under fixed bar */
body.tnd-bm-active { padding-bottom: 70px; }

/* Small screens tighten spacing */
@media (max-width: 360px) {
	.tnd-bm-label { font-size: 9.5px; }
	.tnd-bm-svg { width: 20px; height: 20px; }
}
