/* Mobile bottom navigation */
.sovo-bottom-nav {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(14px);
	border-top: 1px solid var(--sovo-border);
	padding: 0.25rem 0.35rem calc(0.25rem + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -6px 20px rgba(17, 17, 17, 0.05);
}

.site-main--discover ~ .site-footer .sovo-bottom-nav,
body:has(.site-main--discover) .sovo-bottom-nav {
	background: rgba(20, 20, 20, 0.96);
	border-top-color: #2a2a2a;
	color: #cfcfcf;
}

body:has(.site-main--discover) .sovo-bottom-nav__link,
body:has(.site-main--discover) .sovo-bottom-nav__list a {
	color: #9a9a9a;
}

body:has(.site-main--discover) .sovo-bottom-nav__item.is-active .sovo-bottom-nav__link,
body:has(.site-main--discover) .sovo-bottom-nav__list .current-menu-item > a {
	color: #fff;
	background: transparent;
}

.sovo-bottom-nav__list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	max-width: 560px;
}

.sovo-bottom-nav__list > li,
.sovo-bottom-nav__item {
	margin: 0;
}

.sovo-bottom-nav__link,
.sovo-bottom-nav__list a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	min-height: 54px;
	padding: 0.3rem 0.2rem;
	color: #8a8a8a;
	font-size: 0.66rem;
	font-weight: 600;
	text-decoration: none !important;
	border-radius: 12px;
}

.sovo-bottom-nav__item.is-active .sovo-bottom-nav__link,
.sovo-bottom-nav__list .current-menu-item > a,
.sovo-bottom-nav__link[aria-current="page"] {
	color: #111;
	font-weight: 700;
}

.sovo-bottom-nav__link:focus-visible {
	outline: 2px solid var(--sovo-accent);
	outline-offset: 2px;
}

.sovo-bottom-nav__icon {
	display: inline-flex;
	line-height: 0;
}

.sovo-bottom-nav .sovo-cart-count {
	top: 2px;
	right: calc(50% - 20px);
	background: #111;
	color: #fff;
}

/* Breakpoint overridden via --sovo-bottom-nav-bp inline style when set */
@media (max-width: 768px) {
	.sovo-bottom-nav {
		display: block;
		background: var(--sovo-nav-bar-bg, rgba(255, 255, 255, 0.97));
	}
	.sovo-bottom-nav__link,
	.sovo-bottom-nav__list a {
		color: var(--sovo-nav-icon, #8a8a8a);
	}
	.sovo-bottom-nav__item.is-active .sovo-bottom-nav__link,
	.sovo-bottom-nav__list .current-menu-item > a,
	.sovo-bottom-nav__link[aria-current="page"] {
		color: var(--sovo-nav-active, #111);
	}
	.sovo-bottom-nav--bold-active .sovo-bottom-nav__item.is-active .sovo-bottom-nav__label {
		font-weight: 800;
	}
	.sovo-bottom-nav:not(.sovo-bottom-nav--safe) {
		padding-bottom: 0.25rem;
	}
}

@media (min-width: 769px) {
	.sovo-bottom-nav {
		display: none !important;
	}
}

@media (orientation: landscape) and (max-height: 480px) {
	.sovo-bottom-nav__label {
		display: none;
	}
	.sovo-bottom-nav__link,
	.sovo-bottom-nav__list a {
		min-height: 44px;
	}
}
