/**
 * Site-specific CSS overrides for Lastify Child.
 * Loaded after the parent theme stylesheet.
 */

.site-header {
	padding-top: env(safe-area-inset-top, 0px);
}

.lastify-mobile-bottom-nav {
	display: none;
}

@media (max-width: 1023px) {
	.lastify-mobile-bottom-nav {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 60;
		display: flex;
		align-items: stretch;
		justify-content: space-around;
		gap: 0;
		min-height: 3.75rem;
		padding: 0.25rem 0.25rem calc(0.25rem + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid hsl(var(--border));
		background: hsl(var(--background) / 0.96);
		backdrop-filter: blur(12px);
		box-shadow: 0 -8px 24px hsl(var(--foreground) / 0.06);
	}

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

	body.hide-mobile-footer .site-footer {
		display: none;
	}

	body.has-mobile-bottom-nav .site-header [data-header-search-toggle],
	body.has-mobile-bottom-nav .site-header [data-diako-cart-link] {
		display: none !important;
	}
}

.lastify-mobile-bottom-nav__item {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.125rem;
	min-width: 0;
	padding: 0.35rem 0.15rem;
	border: 0;
	background: transparent;
	color: hsl(var(--muted-foreground));
	font: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.lastify-mobile-bottom-nav__item:hover,
.lastify-mobile-bottom-nav__item:focus-visible {
	color: hsl(var(--foreground));
	outline: none;
}

.lastify-mobile-bottom-nav__item.is-active {
	color: hsl(var(--primary));
}

.lastify-mobile-bottom-nav__icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.lastify-mobile-bottom-nav__icon {
	width: 1.35rem;
	height: 1.35rem;
}

.lastify-mobile-bottom-nav__label {
	max-width: 100%;
	overflow: hidden;
	font-size: 0.65rem;
	font-weight: 600;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lastify-mobile-bottom-nav .diako-cart-count {
	top: -0.35rem;
	inset-inline-start: auto;
	inset-inline-end: -0.55rem;
}
