:root {
	--erl-text: #1a1a1a;
	--erl-muted: #777;
	--erl-soft: #f5f2f4;
	--erl-line: #eeeeee;
	--erl-accent: var(--e-global-color-secondary, #cd9fb2);
	--erl-white: #ffffff;
	--erl-ease: cubic-bezier(.16, 1, .3, 1);
	--erl-t: 240ms cubic-bezier(.16, 1, .3, 1);
}

.erl-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--erl-white);
	color: var(--erl-text);
	font-family: inherit;
}

.erl-header__top {
	height: 18px;
	background: var(--erl-accent);
}

.erl-header__bar {
	border-bottom: 1px solid var(--erl-line);
	background: var(--erl-white);
}

.erl-header__inner {
	width: min(1440px, calc(100% - 80px));
	height: 80px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 180px 1fr auto;
	align-items: center;
	gap: 32px;
}

.erl-header__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--erl-text);
}

.erl-header__logo img {
	display: block;
	width: 150px;
	height: auto;
}

.erl-nav {
	height: 100%;
	display: flex;
	justify-content: center;
}

.erl-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 34px;
	height: 100%;
}

.erl-nav__item {
	height: 100%;
	display: flex;
	align-items: center;
}

.erl-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	color: var(--erl-text);
	text-decoration: none;
	cursor: pointer;
	transition: color var(--erl-t);
}

.erl-nav__link:hover,
.erl-nav__link.is-active {
	color: var(--erl-accent);
}

.erl-nav__link span {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	margin-top: 2px;
}

.erl-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
}

.erl-header__icon,
.erl-header__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--erl-text);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
	transition: color var(--erl-t);
}

.erl-header__icon:hover,
.erl-header__cart:hover {
	color: var(--erl-accent);
}

.erl-header svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.erl-header__cart {
	width: 42px;
	height: 52px;
	background: color-mix(in srgb, var(--erl-accent) 82%, white);
	margin-left: 2px;
}

.erl-header__cart-count {
	position: absolute;
	top: 8px;
	right: 7px;
	min-width: 15px;
	height: 15px;
	border-radius: 999px;
	background: var(--erl-text);
	color: #fff;
	font-size: 10px;
	line-height: 15px;
	text-align: center;
}

/* MEGA MENU */

.erl-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #f8f8f8;
	border-bottom: 1px solid var(--erl-line);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition:
		opacity var(--erl-t),
		visibility var(--erl-t),
		transform var(--erl-t);
	pointer-events: none;
	z-index: 998;
}

.erl-header.is-mega-open .erl-mega {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.erl-mega__inner {
	width: min(1440px, calc(100% - 80px));
	margin: 0 auto;
	padding: 36px 0 44px;
}

.erl-mega__panel {
	display: none;
}

.erl-mega__panel.is-active {
	display: block;
}

.erl-mega__grid {
	display: grid;
	grid-template-columns: 180px 1fr 260px;
	gap: 40px;
}

.erl-mega__grid--simple {
	grid-template-columns: 260px 260px 1fr;
}

.erl-mega__col {
	min-width: 0;
}

.erl-mega__col--wide {
	padding-right: 20px;
}

.erl-mega__title {
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid #111;
	font-size: 11px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: #111;
}

.erl-mega a {
	display: block;
	width: fit-content;
	margin: 0 0 12px;
	color: #111;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 400;
	transition: color var(--erl-t), opacity var(--erl-t);
}

.erl-mega a:hover {
	color: var(--erl-accent);
}

.erl-mega__columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(160px, 1fr));
	gap: 34px;
}

.erl-mega__more {
	margin-top: 20px !important;
	font-size: 12px !important;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--erl-accent) !important;
}

/* SEARCH */

.erl-search {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-bottom: 1px solid var(--erl-line);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--erl-t), visibility var(--erl-t), transform var(--erl-t);
	z-index: 1000;
}

.erl-search.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.erl-search__form {
	width: min(980px, calc(100% - 48px));
	margin: 0 auto;
	height: 92px;
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 18px;
}

.erl-search input[type="search"] {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--erl-line);
	padding: 14px 0;
	outline: none;
	font-size: 22px;
	font-weight: 300;
	color: var(--erl-text);
}

.erl-search input[type="search"]::placeholder {
	color: #b8b8b8;
}

.erl-search button {
	border: 0;
	background: none;
	padding: 0;
	color: var(--erl-text);
	cursor: pointer;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .12em;
}

.erl-search button:hover {
	color: var(--erl-accent);
}

/* MOBILE */

.erl-header__burger {
	display: none;
	width: 28px;
	height: 22px;
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
}

.erl-header__burger span {
	display: block;
	width: 28px;
	height: 1px;
	background: var(--erl-text);
}

.erl-header__burger span + span {
	margin-top: 8px;
}

.erl-mobile {
	position: fixed;
	inset: 0;
	background: #fff;
	z-index: 1002;
	transform: translateX(-100%);
	transition: transform 360ms var(--erl-ease);
	padding: 24px;
	display: flex;
	flex-direction: column;
}

.erl-mobile.is-open {
	transform: translateX(0);
}

.erl-mobile__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--erl-line);
}

.erl-mobile__logo img {
	width: 130px;
	height: auto;
	display: block;
}

.erl-mobile__head button {
	border: 0;
	background: none;
	font-size: 34px;
	line-height: 1;
	font-weight: 200;
	cursor: pointer;
}

.erl-mobile__nav {
	display: flex;
	flex-direction: column;
	padding-top: 32px;
}

.erl-mobile__nav a {
	color: var(--erl-text);
	text-decoration: none;
	font-size: clamp(28px, 8vw, 46px);
	font-weight: 300;
	line-height: 1.25;
	padding: 10px 0;
	border-bottom: 1px solid var(--erl-line);
}

.erl-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.12);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--erl-t), visibility var(--erl-t);
	z-index: 997;
}

.erl-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

body.erl-no-scroll {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.erl-header__inner {
		width: min(100% - 32px, 100%);
		height: 72px;
		grid-template-columns: 40px 1fr auto;
	}

	.erl-header__burger {
		display: block;
	}

	.erl-nav {
		display: none;
	}

	.erl-header__logo {
		justify-content: center;
	}

	.erl-header__logo img {
		width: 132px;
	}

	.erl-header__actions {
		gap: 12px;
	}

	.erl-header__icon:nth-child(2) {
		display: none;
	}

	.erl-mega {
		display: none;
	}
}

@media (max-width: 640px) {
	.erl-header__top {
		height: 14px;
	}

	.erl-header__inner {
		height: 66px;
	}

	.erl-header__logo img {
		width: 120px;
	}

	.erl-search__form {
		height: auto;
		padding: 24px 0;
		grid-template-columns: 1fr auto;
	}

	.erl-search input[type="search"] {
		grid-column: 1 / -1;
		font-size: 18px;
	}

	.erl-search button[type="submit"] {
		justify-self: start;
	}
}