/**
 * Mega menu. O arquivo só é carregado com o interruptor ligado.
 * A base é o celular; o painel largo começa em 1024px.
 */

.vh-mega {
	margin: 0;
}

.vh-mega-lista,
.vh-mega-sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vh-mega--faixa {
	display: none;
}

.vh-mega-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.vh-mega-link {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 3rem;
	padding: var(--vh-espaco-3) var(--vh-espaco-4);
	color: var(--vh-cor-texto);
	font-size: var(--vh-fonte-base);
	font-weight: var(--vh-fonte-peso-semi);
	text-decoration: none;
	border-radius: var(--vh-raio-xl);
	border: 1px solid transparent;
}

.vh-mega-link--sem {
	cursor: default;
}

.vh-mega-link:hover,
.vh-mega-link:focus-visible,
.vh-mega-item.is-atual > .vh-mega-link,
.vh-mega-sub .is-atual > .vh-mega-link {
	color: var(--vh-cor-primaria);
	background: var(--vh-cor-primaria-leve);
	border-color: var(--vh-cor-primaria-media);
}

.vh-mega-abrir {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 2.75rem;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--vh-cor-borda);
	border-radius: var(--vh-raio-lg);
	background: var(--vh-cor-superficie);
	color: var(--vh-cor-texto);
	cursor: pointer;
}

.vh-mega-abrir::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.vh-mega-item.is-aberto > .vh-mega-abrir {
	color: var(--vh-cor-primaria);
	background: var(--vh-cor-primaria-leve);
	border-color: var(--vh-cor-primaria-media);
}

.vh-mega-item.is-aberto > .vh-mega-abrir::before {
	transform: rotate(-135deg);
}

.vh-mega-painel[hidden],
.vh-mega-vitrine[hidden] {
	display: none !important;
}

.vh-mega--gaveta,
.vh-mega--gaveta .vh-mega-lista,
.vh-mega--gaveta .vh-mega-item,
.vh-mega--gaveta .vh-mega-painel {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.vh-mega--gaveta .vh-mega-painel {
	flex: 1 1 100%;
	padding: 0 0 0.35rem;
	overflow: hidden;
}

.vh-mega--gaveta .vh-mega-sub {
	margin-left: 0.35rem;
	padding-left: 0.65rem;
	border-left: 2px solid var(--vh-cor-borda);
}

.vh-mega--gaveta .vh-mega-sub .vh-mega-link {
	min-height: 2.75rem;
	font-size: var(--vh-fonte-sm);
}

.vh-mega--gaveta .vh-mega-sub > li.is-foco > .vh-mega-link {
	color: var(--vh-cor-primaria);
	font-weight: var(--vh-fonte-peso-bold);
}

.vh-mega--gaveta .vh-mega-item.is-aberto > .vh-mega-painel {
	animation: vh-mega-surgir 0.28s ease;
}

.vh-mega-vitrine {
	display: flex;
	gap: var(--vh-espaco-3);
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	padding: 0.35rem 0 0.85rem;
	margin-inline: 0;
	max-width: 100%;
	min-width: 0;
	scrollbar-width: none;
}

.vh-mega-vitrine::-webkit-scrollbar {
	display: none;
}

.vh-mega-vitrine-rotulo {
	flex: 0 0 100%;
	scroll-snap-align: none;
	margin: 0.15rem 0 0;
	font-size: var(--vh-fonte-xs);
	font-weight: var(--vh-fonte-peso-bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--vh-cor-texto-suave);
}

.vh-mega--gaveta .vh-mega-item {
	border-bottom: 1px solid var(--vh-cor-borda);
}

.vh-mega--gaveta .vh-mega-link {
	border: 0;
	border-radius: 0;
	background: transparent;
	padding-inline: 0;
}

.vh-mega--gaveta .vh-mega-link:hover,
.vh-mega--gaveta .vh-mega-link:focus-visible,
.vh-mega--gaveta .vh-mega-item.is-atual > .vh-mega-link {
	background: transparent;
	border-color: transparent;
	text-decoration: none;
}

.vh-mega--gaveta .vh-mega-abrir {
	position: relative;
	border: 0;
	background: transparent;
}

.vh-mega--gaveta .vh-mega-abrir::before,
.vh-mega--gaveta .vh-mega-abrir::after {
	content: "";
	position: absolute;
	width: 0.8rem;
	height: 1.5px;
	border: 0;
	background: currentColor;
	transform: none;
}

.vh-mega--gaveta .vh-mega-abrir::after {
	transform: rotate(90deg);
}

.vh-mega--gaveta .vh-mega-item.is-aberto > .vh-mega-abrir {
	color: var(--vh-cor-texto);
	background: transparent;
	border-color: transparent;
}

.vh-mega--gaveta .vh-mega-item.is-aberto > .vh-mega-abrir::before,
.vh-mega--gaveta .vh-mega-item.is-aberto > .vh-mega-abrir::after {
	width: 0.8rem;
	height: 1.5px;
	border: 0;
	background: currentColor;
	transform: none;
}

.vh-mega-card {
	flex: 0 0 clamp(9.5rem, 42vw, 12rem);
	scroll-snap-align: start;
}

.vh-mega-vitrine > .vh-mega-card:last-child {
	scroll-snap-align: end;
}

.vh-mega-item.is-aberto .vh-mega-card {
	animation: vh-mega-surgir 0.36s ease both;
}

.vh-mega-item.is-aberto .vh-mega-card:nth-child(2) { animation-delay: 0.05s; }
.vh-mega-item.is-aberto .vh-mega-card:nth-child(3) { animation-delay: 0.1s; }
.vh-mega-item.is-aberto .vh-mega-card:nth-child(4) { animation-delay: 0.15s; }
.vh-mega-item.is-aberto .vh-mega-card:nth-child(5) { animation-delay: 0.2s; }

.vh-mega-fundo {
	display: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
	body.vh-mega-ativo .vh-header-menu-mobile {
		display: inline-flex;
	}

	body.vh-mega-ativo .vh-nav-mobile {
		display: block !important;
	}

	body.vh-mega-ativo.vh-menu-aberto .vh-nav-mobile-backdrop {
		display: block !important;
	}

	body.vh-mega-ativo .vh-nav-mobile-principal {
		display: none;
	}
}

@media (max-width: 1023px) {
	body.vh-mega-ativo .vh-header-mvp-inner {
		position: relative;
		z-index: calc(var(--vh-z-header) + 4);
		background: var(--vh-cor-superficie);
	}

	body.vh-mega-ativo .vh-nav-mobile-backdrop {
		display: none !important;
	}

	html:has(body.vh-mega-ativo.vh-menu-aberto),
	body.vh-mega-ativo.vh-menu-aberto {
		overflow: hidden;
		overscroll-behavior: none;
	}

	body.vh-mega-ativo .vh-nav-mobile {
		inset: 0;
		width: 100%;
		max-width: none;
		height: 100dvh;
		border: 0;
		box-shadow: none;
		background: var(--vh-cor-superficie);
		transform: none;
		opacity: 0;
		visibility: hidden;
		overflow-x: clip;
		overflow-y: auto;
		overscroll-behavior-x: none;
		touch-action: pan-y;
		transition: opacity 0.32s ease, visibility 0.32s ease;
	}

	body.vh-mega-ativo .vh-nav-mobile-inner,
	body.vh-mega-ativo .vh-mega--gaveta,
	body.vh-mega-ativo .vh-mega--gaveta .vh-mega-lista,
	body.vh-mega-ativo .vh-mega--gaveta .vh-mega-item,
	body.vh-mega-ativo .vh-mega--gaveta .vh-mega-painel,
	body.vh-mega-ativo .vh-mega--gaveta .vh-mega-vitrines {
		max-width: 100%;
		min-width: 0;
		overflow-x: clip;
	}

	body.vh-mega-ativo .vh-mega--gaveta .vh-mega-vitrine {
		touch-action: pan-x pan-y;
		overscroll-behavior-x: none;
	}

	body.vh-mega-ativo.vh-menu-aberto .vh-nav-mobile {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

@media (min-width: 1024px) {
	.vh-mega--gaveta {
		display: none;
	}

	body.vh-mega-ativo .vh-header-mvp {
		border-bottom: 0;
	}

	body.vh-mega-ativo .vh-header-mvp-inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		padding-top: 0;
	}

	body.vh-mega-ativo .vh-header-atalhos {
		display: flex;
		grid-column: 1 / -1;
		align-items: center;
		justify-content: flex-end;
		min-height: 1.75rem;
		padding-top: 0.35rem;
		padding-bottom: 0.3rem;
		border-bottom: 1px solid var(--vh-cor-borda);
	}

	body.vh-mega-ativo .vh-header-atalhos .vh-nav-desktop-list,
	body.vh-mega-ativo .vh-header-atalhos .vh-nav-desktop .vh-nav-desktop-list {
		gap: 1rem;
	}

	body.vh-mega-ativo .vh-header-atalhos .vh-nav-desktop-list a {
		font-size: var(--vh-fonte-xs);
		font-weight: var(--vh-fonte-peso-medio);
		color: var(--vh-cor-texto-suave);
	}

	body.vh-mega-ativo .vh-header-atalhos .vh-nav-desktop-list a:hover,
	body.vh-mega-ativo .vh-header-atalhos .vh-nav-desktop-list a:focus-visible {
		text-decoration: none;
	}

	body.vh-mega-ativo .vh-header-busca {
		grid-column: 1;
		justify-self: start;
		width: min(100%, 26rem);
		max-width: none;
		min-width: 0;
		background: var(--vh-cor-fundo);
		order: 0;
	}

	body.vh-mega-ativo .vh-header-logo {
		grid-column: 2;
		justify-self: center;
		order: 0;
	}

	body.vh-mega-ativo .vh-header-acoes {
		display: flex;
		grid-column: 3;
		justify-self: end;
		min-width: 0;
		order: 0;
	}

	body.vh-mega-ativo .vh-nav-desktop {
		flex: 0 1 auto;
		justify-content: flex-end;
		min-width: 0;
		order: 0;
	}

	body.vh-mega-ativo .vh-nav-desktop-list,
	body.vh-mega-ativo .vh-nav-desktop .vh-nav-desktop-list {
		justify-content: flex-end;
		flex-wrap: wrap;
	}

	body.vh-mega-ativo .vh-header-icones {
		order: 0;
	}

	.vh-mega--faixa {
		display: block;
		position: relative;
		border-top: 0;
		background: var(--vh-cor-primaria);
		color: var(--vh-cor-texto-invertido);
	}

	.vh-mega--faixa .vh-mega-lista {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 0.15rem 1.25rem;
		position: static;
		max-width: var(--vh-container-max);
		margin-inline: auto;
		padding: 0.15rem var(--vh-container-padding) 0;
	}

	.vh-mega--faixa .vh-mega-link {
		min-height: 2.75rem;
		padding: 0.4rem 0.1rem 0.55rem;
		border: 0;
		border-radius: 0;
		background: transparent;
		font-size: var(--vh-fonte-sm);
		white-space: nowrap;
	}

	.vh-mega--faixa .vh-mega-lista > .vh-mega-item > .vh-mega-link {
		flex: 0 0 auto;
		width: fit-content;
		max-width: 100%;
		padding-inline: 0;
		color: var(--vh-cor-texto-invertido);
	}

	.vh-mega--faixa a:hover,
	.vh-mega--faixa a:focus-visible {
		text-decoration: none;
	}

	.vh-mega--faixa .vh-mega-lista > .vh-mega-item > .vh-mega-link:hover,
	.vh-mega--faixa .vh-mega-lista > .vh-mega-item > .vh-mega-link:focus-visible,
	.vh-mega--faixa .vh-mega-lista > .vh-mega-item.is-aberto > .vh-mega-link,
	.vh-mega--faixa .vh-mega-lista:not(:hover):not(:focus-within) > .vh-mega-item.is-atual > .vh-mega-link {
		background: transparent;
		border-color: transparent;
		box-shadow: none;
		text-decoration: none;
		color: var(--vh-cor-texto-invertido);
	}

	.vh-mega--faixa .vh-mega-abrir,
	.vh-mega--faixa .vh-mega-item.is-aberto > .vh-mega-abrir {
		flex-basis: 1.75rem;
		width: 1.75rem;
		height: 1.75rem;
		border: 0;
		background: transparent;
		color: var(--vh-cor-texto-invertido);
	}

	.vh-mega--faixa .vh-mega-item.is-aberto > .vh-mega-painel {
		animation: vh-mega-descer 0.32s ease;
	}

	.vh-mega--faixa .vh-mega-painel {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 2;
		padding: var(--vh-espaco-6) calc(max(0px, (100% - var(--vh-container-max)) / 2) + var(--vh-container-padding)) var(--vh-espaco-8);
		background: var(--vh-cor-superficie);
		border-top: 1px solid var(--vh-cor-borda);
		box-shadow: var(--vh-sombra-lg);
	}

	.vh-mega--faixa .vh-mega-painel--cheio:not([hidden]) {
		display: grid;
		grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
		gap: 1.5rem 2rem;
		width: auto;
		max-width: none;
		margin-inline: 0;
	}

	.vh-mega--faixa .vh-mega-colunas > .vh-mega-sub {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
		gap: 0.35rem 1.5rem;
		margin: 0;
	}

	.vh-mega--faixa .vh-mega-colunas > .vh-mega-sub > li {
		min-width: 0;
	}

	.vh-mega--faixa .vh-mega-sub .vh-mega-sub {
		margin: 0.15rem 0 0;
	}

	.vh-mega--faixa .vh-mega-sub > li > .vh-mega-link {
		flex: 0 0 auto;
		width: fit-content;
		max-width: 100%;
		min-height: 0;
		padding: 0.2rem 0 0.35rem;
		white-space: normal;
		font-size: var(--vh-fonte-sm);
		font-weight: var(--vh-fonte-peso-bold);
		color: var(--vh-cor-texto);
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.vh-mega--faixa .vh-mega-sub .vh-mega-sub .vh-mega-link {
		min-height: 2rem;
		padding: 0.15rem 0;
		font-weight: var(--vh-fonte-peso-regular);
		color: var(--vh-cor-texto-suave);
	}

	.vh-mega--faixa .vh-mega-sub .vh-mega-link:hover,
	.vh-mega--faixa .vh-mega-sub .vh-mega-link:focus-visible,
	.vh-mega--faixa .vh-mega-painel:not(:has(.vh-mega-sub .vh-nav-rotulo:hover)) .vh-mega-sub > li.is-atual > .vh-mega-link {
		background: transparent;
		box-shadow: none;
		text-decoration: none;
	}

	.vh-mega--faixa .vh-mega-sub .vh-nav-rotulo:hover,
	.vh-mega--faixa .vh-mega-sub .vh-mega-link:focus-visible .vh-nav-rotulo,
	.vh-mega--faixa .vh-mega-painel:not(:has(.vh-mega-sub .vh-nav-rotulo:hover)) .vh-mega-sub > li.is-atual > .vh-mega-link .vh-nav-rotulo {
		color: var(--vh-cor-primaria);
		box-shadow: inset 0 -2px 0 currentColor;
	}

	.vh-mega--faixa .vh-mega-sub .vh-mega-sub {
		margin-left: 0.75rem;
	}

	.vh-mega--faixa .vh-mega-vitrine {
		display: flex;
		gap: var(--vh-espaco-3);
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 0;
		margin-inline: 0;
		padding: 0.35rem 0 0.85rem;
		scrollbar-width: none;
	}

	.vh-mega--faixa .vh-mega-vitrine-rotulo {
		margin: 0 0 var(--vh-espaco-3);
	}

	.vh-mega--faixa .vh-mega-card {
		flex: 0 0 11.5rem;
	}

	.vh-mega-fundo {
		position: fixed;
		inset: 0;
		z-index: calc(var(--vh-z-header) - 1);
		display: block;
		border: 0;
		padding: 0;
		background: rgba(26, 18, 40, 0.28);
		cursor: pointer;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.28s ease, visibility 0.28s ease;
	}

	body.vh-mega-painel-aberto .vh-mega-fundo {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

@keyframes vh-mega-surgir {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes vh-mega-descer {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vh-mega-abrir::before,
	.vh-mega-painel,
	.vh-mega-card,
	.vh-mega-card-img,
	.vh-mega-fundo {
		animation: none;
		transition: none;
	}
}

.vh-mega-faixa {
	position: relative;
	max-width: 100%;
	min-width: 0;
}

.vh-mega-marcas-seta {
	position: absolute;
	z-index: 2;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	translate: 0 -50%;
	border: 1px solid var(--vh-cor-borda);
	border-radius: var(--vh-raio-full);
	background: var(--vh-cor-superficie);
	color: var(--vh-cor-texto);
	box-shadow: var(--vh-sombra-md);
	cursor: pointer;
}

.vh-mega-marcas-seta[hidden] {
	display: none;
}

.vh-mega-marcas-seta--antes {
	left: var(--vh-espaco-2);
}

.vh-mega-marcas-seta--depois {
	right: var(--vh-espaco-2);
}

.vh-mega-marcas-seta:hover,
.vh-mega-marcas-seta:focus-visible {
	background: var(--vh-cor-fundo);
	color: var(--vh-cor-texto);
	outline: 2px solid var(--vh-cor-primaria);
	outline-offset: 2px;
}

.vh-mega-marcas-seta svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
}

.vh-mega-marcas {
	display: flex;
	gap: 0.75rem;
	max-width: 100%;
	min-width: 0;
	margin: 0 0 0.75rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.vh-mega-marcas::-webkit-scrollbar {
	display: none;
}

.vh-mega-marca-item {
	flex: 0 0 auto;
	min-width: 0;
}

.vh-mega-marca {
	position: relative;
	display: block;
	width: clamp(12.5rem, 70vw, 18rem);
	aspect-ratio: 3 / 4;
	overflow: hidden;
	scroll-snap-align: start;
	border-radius: var(--vh-raio-produto);
	background: var(--vh-cor-texto);
	color: var(--vh-cor-texto-invertido);
	text-decoration: none;
}

.vh-mega-marca-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vh-mega-marca-nome {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 1.5rem 0.55rem 0.65rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
	font-size: var(--vh-fonte-xs);
	font-weight: var(--vh-fonte-peso-bold);
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.vh-mega-marca:hover,
.vh-mega-marca:focus-visible {
	color: var(--vh-cor-texto-invertido);
	text-decoration: none;
}

.vh-mega-marca-item:last-child .vh-mega-marca {
	scroll-snap-align: end;
}

.vh-mega-marca-item.is-foco .vh-mega-marca,
.vh-mega-marca-item.is-atual .vh-mega-marca {
	box-shadow: inset 0 0 0 2px var(--vh-cor-primaria);
}

@media (min-width: 1024px) {
	.vh-mega--faixa .vh-mega-painel--cheio:has(.vh-mega-marcas) {
		grid-template-columns: minmax(0, 1fr);
	}

	.vh-mega--faixa .vh-mega-painel--cheio:has(.vh-mega-marcas) .vh-mega-colunas,
	.vh-mega--faixa .vh-mega-painel--cheio:has(.vh-mega-marcas) .vh-mega-vitrines {
		grid-column: 1 / -1;
	}

	.vh-mega--faixa .vh-mega-marcas-faixa .vh-mega-marcas-seta {
		display: none;
	}

	.vh-mega--faixa .vh-mega-marcas {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
		gap: var(--vh-espaco-4);
		overflow: visible;
		scroll-snap-type: none;
	}

	.vh-mega--faixa .vh-mega-marca {
		width: 100%;
		max-width: 20rem;
		justify-self: center;
	}

	.vh-mega--faixa .vh-mega-marca-nome {
		padding: 2.5rem var(--vh-espaco-3) var(--vh-espaco-4);
		font-size: var(--vh-fonte-sm);
	}
}
