/* Category carousel (desktop header, below menu) + mobile bottom nav. */

.category-carousel {
	overflow-x: auto;
	border-bottom: 1px solid #e5e5e5;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.category-carousel::-webkit-scrollbar { display: none; }

.category-carousel-track {
	display: flex;
	gap: 16px;
	padding: 16px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.category-item {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: inherit;
	min-width: 72px;
}

.category-item-icon {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 50%;
}

.category-item-label {
	font-size: 0.8rem;
	text-align: center;
}

/* Mobile bottom nav */
.mobile-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-around;
	background: #fff;
	border-top: 1px solid #e5e5e5;
	padding: 6px 0;
	z-index: 1000;
}

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

.mobile-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	text-decoration: none;
	color: #555;
	font-size: 0.7rem;
	flex: 1;
	min-width: 0;
	justify-content: flex-start;
	padding: 0 2px;
}

.mobile-nav-item.is-active {
	color: var(--accent, #0f7a94);
}

.mobile-nav-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	transition: background-color .2s ease, transform .2s ease;
}

.mobile-nav-icon svg { display: block; width: 22px; height: 22px; }

.mobile-nav-item.is-active .mobile-nav-icon {
	background: rgba(15, 122, 148, 0.12);
	background: color-mix(in srgb, var(--accent, #0f7a94) 15%, transparent);
	transform: scale(1.08);
}

.mobile-nav-label {
	font-size: 0.7rem;
	line-height: 1.2;
	/* Reserve 2 lines (2 x 1.2) so 1-line and 2-line labels keep items aligned.
	   em-based, so scales with font-size: 2.4em @ 0.7rem = 26.88px. Total nav
	   height ~80px — keep theme.css body padding-bottom / .back-to-top in sync. */
	min-height: 2.4em;
	max-width: 100%;
	text-align: center;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

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

	.mobile-nav-item.is-active .mobile-nav-icon {
		transform: none;
	}
}
