:root {
	--komilfo-header-bg: #000;
	--komilfo-header-accent: #b969dd;
	--komilfo-header-text: #fff;
	--komilfo-header-muted: #9a9a9a;
	--komilfo-header-border: #2a2a2a;
	--komilfo-header-input-bg: #111;
	--komilfo-header-max: 1320px;
}

.komilfo-header,
.komilfo-header button,
.komilfo-header input,
.komilfo-header select {
	font-family: 'Roboto', Arial, sans-serif;
}

.wf-wrap {
	max-width: var(--komilfo-header-max);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	width: 100%;
	box-sizing: border-box;
}

.komilfo-header {
	background: var(--komilfo-header-bg);
	color: var(--komilfo-header-text);
	position: relative;
	z-index: 1000;
}

.komilfo-header a {
	color: inherit;
	text-decoration: none;
}

/* Announcement */
.komilfo-header__announcement {
	border-bottom: 1px solid var(--komilfo-header-border);
	padding: 7px 0;
}

.komilfo-header__announcement-text {
	margin: 0;
	text-align: center;
	font-size: 12px;
	line-height: 1.4;
	color: var(--komilfo-header-text);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.komilfo-header__announcement-text i {
	font-size: 11px;
	opacity: .85;
}

.komilfo-header__announcement-sep {
	opacity: .6;
}

/* Main row */
.komilfo-header__main {
	padding: 12px 0 11px;
}

.komilfo-header__main-inner {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	grid-template-areas: "logo search contact actions";
	align-items: center;
	gap: 22px;
}

.komilfo-header__burger {
	display: none;
	grid-area: burger;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--komilfo-header-text);
	cursor: pointer;
	position: relative;
}

.komilfo-header__burger-icon {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 22px;
	height: 2px;
	background: currentColor;
	transition: opacity .2s ease;
}

.komilfo-header__burger-icon--open::before,
.komilfo-header__burger-icon--open::after {
	content: "";
	position: absolute;
	left: 0;
	width: 22px;
	height: 2px;
	background: currentColor;
}

.komilfo-header__burger-icon--open::before { top: -7px; }
.komilfo-header__burger-icon--open::after { top: 7px; }

.komilfo-header__burger-icon--close {
	width: 22px;
	height: 22px;
	background: transparent;
	opacity: 0;
}

.komilfo-header__burger-icon--close::before,
.komilfo-header__burger-icon--close::after {
	content: "";
	position: absolute;
	top: 10px;
	left: 0;
	width: 22px;
	height: 2px;
	background: currentColor;
}

.komilfo-header__burger-icon--close::before { transform: rotate(45deg); }
.komilfo-header__burger-icon--close::after { transform: rotate(-45deg); }

.komilfo-header.is-menu-open .komilfo-header__burger-icon--open { opacity: 0; }
.komilfo-header.is-menu-open .komilfo-header__burger-icon--close { opacity: 1; }

.komilfo-header__branding { grid-area: logo; }
.komilfo-header__logo-link { display: inline-block; line-height: 0; }
.komilfo-header__logo-img,
.komilfo-header__branding .custom-logo {
	width: 170px !important;
	max-width: 170px !important;
	height: auto !important;
	display: block;
	object-fit: contain;
}

.komilfo-header__search--desktop { grid-area: search; min-width: 0; }
.komilfo-header__search--mobile { display: none; padding-bottom: 12px; }

.komilfo-header__contact {
	grid-area: contact;
	text-align: right;
	white-space: nowrap;
}

.komilfo-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

.komilfo-header__phone i {
	color: var(--komilfo-header-accent);
	font-size: 13px;
}

.komilfo-header__hours {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: var(--komilfo-header-muted);
}

.komilfo-header__actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	gap: 18px;
}

.komilfo-header__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 0;
	background: transparent;
	color: var(--komilfo-header-text);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	position: relative;
}

.komilfo-header__cart,
.komilfo-header__wishlist {
	position: relative;
}

.komilfo-header__cart-badge,
.komilfo-header__wishlist-badge {
	position: absolute;
	top: -4px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--komilfo-header-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.komilfo-header__wishlist-badge.is-empty {
	display: none;
}

.komilfo-header__account { position: relative; }

.komilfo-header__account-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 180px;
	background: rgba(0, 0, 0, .92);
	border: 1px solid var(--komilfo-header-border);
	padding: 10px 0;
	z-index: 20;
}

.komilfo-header__account-dropdown ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.komilfo-header__account-dropdown a {
	display: block;
	padding: 8px 16px;
	font-size: 13px;
	color: #fff;
}

.komilfo-header__account-dropdown a:hover {
	color: var(--komilfo-header-accent);
}

.komilfo-header__account.is-open .komilfo-header__account-dropdown,
.komilfo-header__account.showed .komilfo-header__account-dropdown {
	display: block;
}

/* Header search */
.komilfo-search-form--header {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: none;
}

.komilfo-search-form--header .komilfo-search-form__icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--komilfo-header-muted);
	font-size: 14px;
	pointer-events: none;
	z-index: 1;
}

.komilfo-search-form--header .komilfo-search-form__input {
	flex: 1;
	width: 100%;
	height: 42px;
	padding: 0 20px 0 44px;
	border: 1px solid #3a3a3a;
	border-radius: 999px;
	background: var(--komilfo-header-input-bg);
	color: var(--komilfo-header-text);
	font-size: 13px;
	outline: none;
}

.komilfo-search-form--header .komilfo-search-form__input::placeholder {
	color: var(--komilfo-header-muted);
}

.komilfo-search-form--header .komilfo-search-form__input:focus {
	border-color: #555;
}

.komilfo-search-form--header .komilfo-search-form__submit {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.komilfo-search-form--header .komilfo-search-form__results {
	top: calc(100% + 6px);
	border-radius: 8px;
	border: 1px solid #333;
	background: #111;
	color: #fff;
}

.komilfo-search-form--header .komilfo-search-form__results a {
	border-bottom-color: #222;
}

.komilfo-search-form--header .komilfo-search-form__results a:hover {
	background: #1a1a1a;
}

/* Nav panel */
.komilfo-header__nav-panel {
	border-top: 1px solid var(--komilfo-header-border);
	position: relative;
}

.komilfo-header__nav-panel-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 9px 24px 13px;
	position: static;
}

.komilfo-header__categories {
	flex: 1 1 auto;
	min-width: 0;
}

.komilfo-header__nav-divider {
	flex: 0 0 1px;
	align-self: stretch;
	width: 1px;
	background: #3a3a3a;
	margin: 2px 8px;
}

.komilfo-header__mega {
	position: static;
}

.komilfo-header .mega-menu .menu,
.komilfo-header__mega > .menu {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 18px;
	justify-content: flex-start;
}

.komilfo-header .mega-menu .menu-item {
	position: static;
	padding: 0 !important;
	margin: 0 !important;
}

.komilfo-header .mega-menu .menu > .menu-item > a {
	display: block;
	padding: 4px 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--komilfo-header-text) !important;
	background: transparent !important;
	letter-spacing: .02em;
}

.komilfo-header .mega-menu .menu > .menu-item.menu-item--sale > a {
	color: var(--komilfo-header-accent) !important;
}

.komilfo-header .mega-menu .menu > .menu-item > a:hover,
.komilfo-header .mega-menu .menu > .menu-item:hover > a {
	color: var(--komilfo-header-accent) !important;
	text-decoration: none !important;
}

.komilfo-header .mega-menu .menu > .menu-item > .sub-menu,
.komilfo-header .mega-menu .menu > .menu-item > .columns-wrapper {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: 100vw;
	margin: 0 !important;
	padding: 28px clamp(24px, 4vw, 80px);
	background: rgba(0, 0, 0, .98);
	border-top: 1px solid var(--komilfo-header-accent);
	border-bottom: 1px solid rgba(185, 105, 221, .35);
	box-shadow: 0 22px 42px rgba(0, 0, 0, .32);
	z-index: 80;
	list-style: none;
	grid-template-columns: repeat(4, minmax(180px, 1fr));
	gap: 8px 54px;
	box-sizing: border-box;
}

.komilfo-header .mega-menu .menu > .menu-item:hover > .sub-menu,
.komilfo-header .mega-menu .menu > .menu-item:focus-within > .sub-menu,
.komilfo-header .mega-menu .menu > .menu-item:hover > .columns-wrapper,
.komilfo-header .mega-menu .menu > .menu-item:focus-within > .columns-wrapper,
.komilfo-header .mega-menu .menu > .menu-item > .columns-wrapper:hover {
	display: grid;
}

.komilfo-header .mega-menu .menu > .menu-item > .sub-menu::before,
.komilfo-header .mega-menu .menu > .menu-item > .columns-wrapper::before {
	content: '';
	position: absolute;
	top: -30px;
	left: 0;
	right: 0;
	height: 30px;
	background: transparent;
}

.komilfo-header .mega-menu .columns-wrapper > .sub-menu {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent;
	border: 0;
	box-shadow: none;
	list-style: none !important;
}

.komilfo-header .mega-menu .sub-menu li,
.komilfo-header .mega-menu .columns-wrapper li {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.komilfo-header .mega-menu .sub-menu li::marker,
.komilfo-header .mega-menu .columns-wrapper li::marker {
	content: "" !important;
	font-size: 0;
}

.komilfo-header .mega-menu .sub-menu a,
.komilfo-header .mega-menu .columns-wrapper a {
	display: flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 0;
	color: rgba(255, 255, 255, .86) !important;
	background: transparent !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none !important;
	transition: color .2s ease, transform .2s ease;
}

.komilfo-header .mega-menu .sub-menu a::before,
.komilfo-header .mega-menu .columns-wrapper a::before {
	content: none !important;
	display: none !important;
}

.komilfo-header .mega-menu .sub-menu a:hover,
.komilfo-header .mega-menu .columns-wrapper a:hover {
	color: #fff !important;
	transform: translateX(3px);
}

.komilfo-header .mega-menu .columns-wrapper,
.komilfo-header .menu-absolute .columns-wrapper {
	border-top-color: var(--komilfo-header-accent);
}

.komilfo-header .mega-menu .menu-item-has-children .menu-toogle.mobile {
	display: none;
}


.komilfo-header .mega-menu .menu,
.komilfo-header__mega > .menu {
	flex-wrap: nowrap;
}

@media (min-width: 992px) {
	.komilfo-header__nav-panel-inner {
		padding-left: 0;
		padding-right: 0;
	}

	.komilfo-header .mega-menu .menu,
	.komilfo-header__mega > .menu {
		flex-wrap: nowrap;
		white-space: nowrap;
		gap: 4px 14px;
	}

	.komilfo-header .mega-menu .menu > .menu-item > a {
		font-size: 11px;
	}

	.komilfo-header__utility-list a {
		font-size: 10px;
	}

	.komilfo-header__logo-img,
	.komilfo-header__branding .custom-logo {
		width: 160px !important;
		max-width: 160px !important;
	}

	.komilfo-header .menu-absolute {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 30;
	}
}

/* Utility links */
.komilfo-header__utility-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.komilfo-header__utility-list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--komilfo-header-accent) !important;
	letter-spacing: .02em;
	white-space: nowrap;
}

.komilfo-header__utility-list a i {
	font-size: 12px;
}

.komilfo-header__utility-list a:hover {
	opacity: .85;
}

body.komilfo-header-menu-open {
	overflow: hidden;
}

/* Mobile */
@media (max-width: 991px) {
	.wf-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.komilfo-header__announcement {
		padding: 6px 0;
	}

	.komilfo-header__main {
		padding: 10px 0;
	}

	.komilfo-header__main-inner {
		grid-template-columns: 40px 1fr auto;
		grid-template-areas: "burger logo actions";
		gap: 12px 14px;
	}

	.komilfo-header__burger { display: block; }
	.komilfo-header__branding { justify-self: center; }
	.komilfo-header__logo-img,
	.komilfo-header__branding .custom-logo {
		width: 138px !important;
		max-width: 138px !important;
	}

	.komilfo-header__search--desktop,
	.komilfo-header__contact { display: none; }

	.komilfo-header__search--mobile {
		display: block;
		grid-area: search;
		padding: 0 0 12px;
	}

	.komilfo-header__actions { gap: 12px; }

	.komilfo-header__action {
		width: 26px;
		height: 26px;
		font-size: 18px;
	}

	.komilfo-header__nav-panel {
		display: none;
		border-top: 0;
		background: var(--komilfo-header-bg);
	}

	.komilfo-header.is-menu-open .komilfo-header__nav-panel {
		display: block;
		max-height: calc(100vh - 180px);
		overflow: auto;
	}

	.komilfo-header__nav-panel-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0 16px 20px;
		position: relative;
	}

	.komilfo-header__nav-divider {
		width: 100%;
		height: 1px;
		margin: 12px 0;
	}

	.komilfo-header .mega-menu .menu,
	.komilfo-header__mega > .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.komilfo-header .mega-menu .menu > .menu-item {
		position: relative;
		border-bottom: 1px solid var(--komilfo-header-border);
	}

	.komilfo-header .mega-menu .menu > .menu-item > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 0;
		font-size: 13px;
	}

	.komilfo-header .mega-menu .menu > .menu-item-has-children > a::after {
		content: "\f054";
		font-family: "Font Awesome 5 Free";
		font-weight: 900;
		font-size: 11px;
		color: var(--komilfo-header-muted);
		margin-left: 12px;
	}

	.komilfo-header .mega-menu .columns-wrapper,
	.komilfo-header .menu-absolute .columns-wrapper,
	.komilfo-header .mega-menu .menu > .menu-item > .sub-menu {
		position: static !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 0 10px 12px !important;
		border-top: 0 !important;
		border-bottom: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
		display: none !important;
		grid-template-columns: 1fr !important;
		gap: 0 !important;
	}

	.komilfo-header .mega-menu .menu-item.is-expanded > .columns-wrapper,
	.komilfo-header .mega-menu .menu-item.is-expanded > .sub-menu {
		display: block !important;
	}

	.komilfo-header .mega-menu .sub-menu a {
		min-height: 0;
		padding: 8px 0;
		font-size: 12px;
		color: rgba(255, 255, 255, .72) !important;
	}

	.komilfo-header .mega-menu .menu-item-has-children .menu-toogle.mobile {
		display: none !important;
	}

	.komilfo-header__utility-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding-top: 4px;
	}

	.komilfo-header__utility-list a {
		font-size: 12px;
	}

	.komilfo-header__announcement-text {
		font-size: 11px;
		line-height: 1.35;
	}
}

@media (min-width: 992px) {
	.komilfo-header__search--mobile { display: none !important; }
}
