/**
 * Site header — scoped under .vz-header
 */

.vz-header {
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 30;
	color: #fff;
}

.vz-header__topbar {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.5rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	background-color: var(--color-blue-eleva);
	font-size: 0.75rem;
	font-weight: 400;
	text-align: center;
	transition: height 300ms, opacity 300ms;
	overflow: hidden;
}

@media (min-width: 768px) {
	.vz-header__topbar {
		font-size: 0.875rem;
	}
}

.vz-header__main {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 6rem;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	background-color: var(--color-dark-blue-eleva);
	transition: height 300ms, opacity 300ms;
	overflow: hidden;
}

.vz-header__main-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 80rem;
}

.vz-header__logo {
	display: inline-block;
}

.vz-header__logo-img {
	height: 2.5rem;
	width: auto;
}

.vz-header__logo-img--mobile {
	max-width: 4rem;
	height: auto;
}

.vz-header__search {
	width: 20rem;
}

.vz-header__search:not(.vz-header__search--mobile) {
	display: none;
}

@media (min-width: 768px) {
	.vz-header__search:not(.vz-header__search--mobile) {
		display: block;
	}
}

.vz-header__search--mobile {
	width: 100%;
}

.vz-header__search-field {
	position: relative;
}

.vz-header__search-input {
	width: 100%;
	padding-left: 1.125rem;
	padding-right: 3.5rem;
	border-radius: 0.25rem;
	background-color: var(--color-dark-eleva);
	font-size: 1.125rem;
	font-weight: 200;
	line-height: 3.5rem;
	color: #fff;
	border: 0;
}

.vz-header__search-input--mobile {
	height: 3rem;
	line-height: 3rem;
}

.vz-header__search-submit {
	position: absolute;
	top: 0;
	right: 0.75rem;
	height: 100%;
	cursor: pointer;
	background: none;
	border: 0;
	color: inherit;
	padding: 0;
	display: flex;
	align-items: center;
}

.vz-header__user-cart {
	display: flex;
	gap: 1.25rem;
	align-items: center;
}

.vz-header__account {
	color: inherit;
	transition: color 300ms;
}

.vz-header__account:hover {
	color: var(--color-gray-eleva);
}

.vz-header__nav {
	position: relative;
	height: 3rem;
	background-color: var(--color-dark-eleva);
}

.vz-header__nav-container {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	height: 100%;
}

.vz-header__mobile-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 768px) {
	.vz-header__mobile-bar {
		display: none;
	}
}

.vz-header__mobile-actions {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
	font-size: 0.875rem;
	font-weight: 400;
}

.vz-header__mobile-search {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	align-items: center;
	padding-right: 1.125rem;
	z-index: 26;
}

.vz-header__icon-sm {
	width: 1rem;
	height: 1rem;
	cursor: pointer;
}

.vz-header__icon-md {
	width: 1.25rem;
	height: 1.25rem;
	cursor: pointer;
	flex-shrink: 0;
}

.vz-header__menu-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.vz-header__menu {
	align-items: center;
	justify-content: center;
	height: 100%;
	font-weight: 400;
	color: #fff;
	font-size: 1.125rem;
	gap: 1.5rem;
	position: fixed;
	top: 0;
	flex-direction: column;
	width: 100%;
	background-color: var(--color-dark-eleva);
	z-index: 25;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.vz-header__menu {
		display: flex !important;
		position: static;
		flex-direction: row;
		width: auto;
		gap: 0;
		font-size: 0.875rem;
		overflow: visible !important;
	}
}

.vz-header__menu-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: 1rem;
	cursor: pointer;
	list-style: none;
}

@media (min-width: 768px) {
	.vz-header__menu-close {
		display: none;
	}
}

.vz-header__nav-item {
	padding-left: 1rem;
	padding-right: 1rem;
	height: auto;
	list-style: none;
}

@media (min-width: 768px) {
	.vz-header__nav-item {
		height: 100%;
	}
}

.vz-header__menu-link {
	display: flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
	transition: color 300ms;
}

.vz-header__menu-link:hover {
	color: var(--color-gray-eleva);
}

@media (min-width: 768px) {
	.vz-header__menu-link {
		height: 100%;
	}
}

.vz-header__menu-icon {
	width: 1rem;
	height: 1rem;
	margin-right: 0.25rem;
}

.vz-header__submenu-chevron {
	width: 1.5rem;
	height: 1.5rem;
	margin-left: 0.25rem;
	transition: transform 300ms;
}

@media (min-width: 768px) {
	.vz-header__submenu-chevron {
		display: none;
	}
}

.vz-header__submenu-chevron.rotate-180 {
	transform: rotate(180deg);
}

.vz-header__subitems {
	transition: transform 300ms, opacity 300ms;
}

@media (min-width: 768px) {
	.vz-header__nav-container,
	.vz-header__menu,
	.vz-header__nav-item {
		position: static;
	}

	.vz-header__subitems {
		display: flex !important;
		justify-content: center;
		align-items: center;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: auto;
		padding-top: 2.25rem;
		padding-bottom: 2.25rem;
		background-color: var(--color-dark-blue-eleva);
		transform: scaleY(0);
		opacity: 0;
		transform-origin: top center;
		z-index: 20;
	}

	.vz-header__nav-item:hover .vz-header__subitems {
		transform: scaleY(1);
		opacity: 1;
	}
}

.vz-header__subitems-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: max-content;
	max-width: 80rem;
	height: 100%;
	list-style: none;
	margin: 0 auto;
	padding: 0;
}

@media (min-width: 768px) {
	.vz-header__subitems-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 1.25rem;
	}
}

.vz-header__subitem {
	list-style: none;
	transition: transform 300ms;
}

.vz-header__subitem:hover {
	transform: scale(1.1);
}

.vz-header__subitem-link {
	display: block;
	text-align: center;
	color: inherit;
	text-decoration: none;
}

.vz-header__subitem-image {
	display: none;
	width: 8rem;
	height: 8rem;
	border-radius: 9999px;
	object-fit: cover;
}

@media (min-width: 768px) {
	.vz-header__subitem-image {
		display: block;
	}
}

.vz-header__subitem-label {
	display: block;
	margin-top: 0.125rem;
	font-size: 1.125rem;
}

@media (min-width: 768px) {
	.vz-header__subitem-label {
		font-size: 1.25rem;
		font-weight: 400;
	}
}

/* Scrolled compact header */
.vz-header.scrolled > div {
	height: 0;
	opacity: 0;
}

.vz-header.scrolled .velzani-mobile-logo,
.vz-header.scrolled .velzani-mobile-cart {
	display: block;
}
