/* Micro WooCommerce Bottom Navigation */
.micro-bn {
	display: none;
}

.micro-bn-overlay,
.micro-bn-drawer {
	display: none;
}

@media (max-width: 767px) {
	.micro-bn {
		position: fixed;
		z-index: 99990;
		left: 0;
		right: 0;
		bottom: 0;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		height: 64px;
		padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid rgba(0,0,0,.08);
		box-shadow: 0 -5px 24px rgba(0,0,0,.08);
		box-sizing: content-box;
	}

	.micro-bn-item {
		position: relative;
		min-width: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 3px;
		padding: 5px 2px;
		border: 0;
		background: transparent;
		color: #555;
		text-decoration: none;
		font: inherit;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.micro-bn-item.is-active {
		color: #111;
		font-weight: 600;
	}

	.micro-bn-icon {
		position: relative;
		display: inline-flex;
		width: 24px;
		height: 24px;
		align-items: center;
		justify-content: center;
	}

	.micro-bn-icon svg {
		width: 22px;
		height: 22px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.micro-bn-category .micro-bn-icon svg {
		fill: currentColor;
		stroke: none;
	}

	.micro-bn-label {
		max-width: 100%;
		overflow: hidden;
		font-size: 11px;
		line-height: 1.2;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.micro-bn-badge {
		position: absolute;
		top: -5px;
		right: -7px;
		min-width: 17px;
		height: 17px;
		padding: 0 4px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 999px;
		background: #e53935;
		color: #fff;
		font-size: 9px;
		font-weight: 700;
		line-height: 1;
		box-sizing: border-box;
	}

	.micro-bn-badge[hidden] {
		display: none;
	}

	.micro-bn-overlay {
		position: fixed;
		z-index: 99991;
		inset: 0;
		display: block;
		background: rgba(0,0,0,.42);
		opacity: 0;
		visibility: hidden;
		transition: opacity .25s ease, visibility .25s ease;
	}

	.micro-bn-drawer {
		position: fixed;
		z-index: 99992;
		left: 0;
		right: 0;
		bottom: 0;
		display: block;
		max-height: min(72vh, 620px);
		background: #fff;
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -10px 40px rgba(0,0,0,.18);
		transform: translateY(105%);
		visibility: hidden;
		transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s ease;
		overflow: hidden;
		padding-bottom: env(safe-area-inset-bottom);
	}

	body.micro-bn-drawer-open {
		overflow: hidden;
	}

	body.micro-bn-drawer-open .micro-bn-overlay {
		opacity: 1;
		visibility: visible;
	}

	body.micro-bn-drawer-open .micro-bn-drawer {
		transform: translateY(0);
		visibility: visible;
	}

	.micro-bn-drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 18px 18px 14px;
		border-bottom: 1px solid rgba(0,0,0,.08);
	}

	.micro-bn-drawer-header strong {
		display: block;
		color: #111;
		font-size: 16px;
		line-height: 1.3;
	}

	.micro-bn-drawer-header span {
		display: block;
		margin-top: 3px;
		color: #777;
		font-size: 12px;
	}

	.micro-bn-close {
		flex: 0 0 auto;
		width: 34px;
		height: 34px;
		border: 0;
		border-radius: 50%;
		background: #f2f2f2;
		color: #222;
		font-size: 25px;
		line-height: 1;
		cursor: pointer;
	}

	.micro-bn-category-list {
		max-height: calc(min(72vh, 620px) - 76px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 8px 12px 16px;
	}

	.micro-bn-category-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		min-height: 52px;
		padding: 9px 8px;
		border-bottom: 1px solid rgba(0,0,0,.06);
		color: #222;
		text-decoration: none;
		font-size: 14px;
	}

	.micro-bn-category-row:last-child {
		border-bottom: 0;
	}

	.micro-bn-category-name {
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.micro-bn-category-dot {
		width: 8px;
		height: 8px;
		flex: 0 0 8px;
		border-radius: 50%;
		background: currentColor;
		opacity: .5;
	}

	.micro-bn-category-arrow {
		color: #888;
		font-size: 22px;
		line-height: 1;
	}

	.micro-bn-loading,
	.micro-bn-empty,
	.micro-bn-error {
		padding: 28px 12px;
		color: #777;
		text-align: center;
		font-size: 13px;
	}

	@media (min-width: 768px) {
		.micro-bn,
		.micro-bn-overlay,
		.micro-bn-drawer {
			display: none !important;
		}
	}
}
