.e-n-menu-wrapper .e-n-menu-heading > .e-n-menu-item:first-child {
	position: static;
}

.e-n-menu-wrapper .e-n-menu-heading > .e-n-menu-item:first-child > .e-n-menu-content {
	display: block !important;
	position: fixed !important;
	top: var(--shoptimizer-all-products-mega-top, 0) !important;
	left: 0 !important;
	right: 0;
	width: 100vw;
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
	visibility: hidden;
	z-index: 999;
}

.e-n-menu-wrapper .e-n-menu-heading > .e-n-menu-item:first-child:hover > .e-n-menu-content,
.e-n-menu-wrapper .e-n-menu-heading > .e-n-menu-item:first-child:focus-within > .e-n-menu-content {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

.shoptimizer-all-products-mega {
	width: 100%;
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.shoptimizer-all-products-mega__inner {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	width: min(1440px, calc(100% - 48px));
	min-height: 300px;
	margin: 0 auto;
}

.shoptimizer-all-products-mega__tabs {
	display: flex;
	flex-direction: column;
	padding: 20px 0;
	border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.shoptimizer-all-products-mega__tab {
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 0 22px;
	color: #222;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.shoptimizer-all-products-mega__tab:hover,
.shoptimizer-all-products-mega__tab.is-active {
	background: #f5f5f5;
	color: #111;
}

.shoptimizer-all-products-mega__panels {
	padding: 24px 0 24px 28px;
}

.shoptimizer-all-products-mega__panel {
	display: none;
}

.shoptimizer-all-products-mega__panel.is-active {
	display: block;
}

.shoptimizer-all-products-mega__products {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px;
}

.shoptimizer-all-products-mega__product {
	display: block;
	min-width: 0;
	color: #222;
	text-decoration: none;
}

.shoptimizer-all-products-mega__image {
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #f7f7f7;
}

.shoptimizer-all-products-mega__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
}

.shoptimizer-all-products-mega__product:hover .shoptimizer-all-products-mega__image img {
	transform: scale(1.04);
}

.shoptimizer-all-products-mega__name {
	display: block;
	margin-top: 10px;
	overflow: hidden;
	color: #222;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 1024px) {
	.e-n-menu-wrapper .e-n-menu-heading > .e-n-menu-item:first-child > .e-n-menu-content {
		position: static;
		opacity: 1;
		width: 100%;
		visibility: visible;
		transform: none;
	}

	.shoptimizer-all-products-mega__inner {
		grid-template-columns: 1fr;
		width: 100%;
	}

	.shoptimizer-all-products-mega__tabs {
		flex-direction: row;
		overflow-x: auto;
		padding: 12px;
		border-right: 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	}

	.shoptimizer-all-products-mega__tab {
		flex: 0 0 auto;
	}

	.shoptimizer-all-products-mega__panels {
		padding: 18px;
	}

	.shoptimizer-all-products-mega__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
