/* Mobile bottom nav — herbal glass bar (mobile only) */
.sri-bnav {
	display: none;
}

@media (max-width: 900px) {
	.sri-bnav {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		padding: 0 0 env(safe-area-inset-bottom, 0);
		pointer-events: none;
		font-family: var(--sri-sans, "Manrope", sans-serif);
	}

	.sri-bnav__bg {
		position: absolute;
		inset: 0;
		overflow: hidden;
		background: linear-gradient(180deg, rgba(18, 59, 42, 0.94) 0%, #0f2f22 100%);
		border-top: 1px solid rgba(228, 200, 144, 0.35);
		box-shadow: 0 -10px 32px rgba(8, 24, 16, 0.28);
		pointer-events: none;
	}

	.sri-bnav__pattern {
		position: absolute;
		inset: 0;
		background-image: url("../images/pattern-herbal.png");
		background-size: 140px auto;
		background-repeat: repeat;
		opacity: 0.11;
		mix-blend-mode: soft-light;
		pointer-events: none;
	}

	.sri-bnav__glow {
		position: absolute;
		left: 50%;
		top: -40%;
		width: 70%;
		height: 90%;
		transform: translateX(-50%);
		background: radial-gradient(ellipse at center, rgba(184, 149, 85, 0.22), transparent 70%);
		pointer-events: none;
	}

	.sri-bnav__inner {
		position: relative;
		z-index: 1;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		align-items: stretch;
		width: min(520px, 100%);
		margin: 0 auto;
		padding: 0.35rem 0.35rem 0.45rem;
		pointer-events: auto;
	}

	.sri-bnav__item {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.2rem;
		min-height: 58px;
		padding: 0.35rem 0.25rem;
		border-radius: 14px;
		text-decoration: none;
		color: rgba(255, 255, 255, 0.72);
		transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
		-webkit-tap-highlight-color: transparent;
	}

	.sri-bnav__item:hover,
	.sri-bnav__item:focus-visible {
		color: #fff;
		background: rgba(255, 255, 255, 0.06);
		outline: none;
	}

	.sri-bnav__item.is-active {
		color: #f3e6c8;
		background: rgba(228, 200, 144, 0.12);
	}

	.sri-bnav__item.is-active .sri-bnav__ico {
		background: linear-gradient(160deg, #e4c890 0%, #b89555 100%);
		color: #123b2a;
		box-shadow: 0 6px 14px rgba(184, 149, 85, 0.35);
	}

	.sri-bnav__ico {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.08);
		font-size: 0.95rem;
		transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	}

	.sri-bnav__item:active .sri-bnav__ico {
		transform: scale(0.94);
	}

	.sri-bnav__lbl {
		font-size: 0.62rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		line-height: 1.1;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.sri-bnav__item--cart .sri-bnav__ico .sri-badge {
		top: -5px;
		right: -7px;
		min-width: 17px;
		height: 17px;
		line-height: 17px;
		font-size: 0.6rem;
		background: #e4c890;
		color: #123b2a;
		border: 1.5px solid #0f2f22;
		box-sizing: border-box;
	}

	/* Clearance for fixed bottom bar */
	body {
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
	}

	/* WhatsApp sits above the bar, with clear gap */
	.sri-wa-float {
		bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
		right: 0.9rem !important;
		z-index: 9995 !important;
	}

	.sri-footer__bnav-spacer {
		display: block;
		height: calc(96px + env(safe-area-inset-bottom, 0px));
		width: 100%;
		pointer-events: none;
	}
}

@media (min-width: 901px) {
	.sri-footer__bnav-spacer {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sri-bnav__item,
	.sri-bnav__ico {
		transition: none;
	}
}
