/*
 * v2.0.4 FOUC kaitse:
 * põhimenüü alamloendid on peidetud juba CSS faili esimestest baitidest.
 */
.hnp-desktop-menu__panel {
	visibility: hidden;
	opacity: 0;
}
.hnp-desktop-menu__submenu {
	visibility: hidden;
	opacity: 0;
}


:root {
	--hnp-green: #2f6f3e;
	--hnp-green-dark: #285f35;
	--hnp-border: #e5e9ee;
	--hnp-text: #536174;
	--hnp-title: #344054;
}

/* DESKTOP */
.hnp-desktop-menu,
.hnp-desktop-menu * {
	box-sizing: border-box;
}

.hnp-desktop-menu {
	position: relative;
	display: inline-block;
	z-index: 999;
}

.hnp-desktop-menu__trigger {
	appearance: none;
	min-height: 46px;
	padding: 0 17px;
	border: 0;
	background: var(--hnp-green);
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.hnp-desktop-menu__burger {
	width: 17px;
	display: grid;
	gap: 4px;
}

.hnp-desktop-menu__burger span {
	height: 2px;
	background: currentColor;
}

.hnp-desktop-menu__chevron {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.hnp-desktop-menu__panel {
	position: absolute;
	top: 100%;
	left: 0;
	width: 975px;
	height: 520px;
	background: #fff;
	border-top: 3px solid var(--hnp-green);
	box-shadow: 0 14px 34px rgba(24,39,57,.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(7px);
	transition: .16s ease;
	overflow: hidden;
}

.hnp-desktop-menu:hover > .hnp-desktop-menu__panel,
.hnp-desktop-menu.is-open > .hnp-desktop-menu__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.hnp-desktop-menu__list {
	list-style: none;
	margin: 0;
	padding: 10px 9px;
	width: 325px;
	height: 100%;
	background: #fff;
	border-right: 1px solid var(--hnp-border);
}

.hnp-desktop-menu__item {
	position: relative;
	margin: 0;
}

.hnp-desktop-menu__link {
	min-height: 42px;
	padding: 9px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--hnp-text);
	font-size: 14px;
	text-decoration: none !important;
}

.hnp-desktop-menu__item.is-active > .hnp-desktop-menu__link {
	background: #f4f7fb;
	color: var(--hnp-green);
	font-weight: 700;
}

.hnp-desktop-menu__arrow {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid #8995a4;
	border-top: 1.5px solid #8995a4;
	transform: rotate(45deg);
}

.hnp-desktop-menu__submenu {
	position: absolute;
	top: calc(-1 * var(--hnp-item-top, 0px));
	left: 316px;
	width: 325px;
	height: 520px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(7px);
	transition: .14s ease;
	background: #fff;
}

.hnp-desktop-menu__item.is-active > .hnp-desktop-menu__submenu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
}

/* MOBILE OVERLAY */
.hnp-mobile-overlay {
	display: none;
}

@media (max-width: 1024px) {
	.hnp-desktop-menu {
		display: none;
	}

	.hnp-mobile-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100000;
		visibility: hidden;
		pointer-events: none;
	}

	.hnp-mobile-overlay.is-open {
		visibility: visible;
		pointer-events: auto;
	}

	.hnp-mobile-overlay__backdrop {
		position: absolute;
		inset: 0;
		background: rgba(15,23,42,.46);
		opacity: 0;
		transition: opacity .2s ease;
	}

	.hnp-mobile-overlay.is-open .hnp-mobile-overlay__backdrop {
		opacity: 1;
	}

	.hnp-mobile-overlay__drawer {
		position: absolute;
		top: 0;
		left: 0;
		width: min(100vw, 440px);
		height: 100dvh;
		background: #fff;
		transform: translateX(-100%);
		transition: transform .22s ease;
		overflow-y: auto;
	}

	.hnp-mobile-overlay.is-open .hnp-mobile-overlay__drawer {
		transform: translateX(0);
	}

	.hnp-mobile-overlay__header {
		min-height: 70px;
		padding: 12px 14px;
		display: grid;
		grid-template-columns: 32px 1fr 32px;
		grid-template-rows: auto auto;
		align-items: center;
		column-gap: 8px;
		border-bottom: 1px solid #edf0f3;
		background: #fff;
		position: sticky;
		top: 0;
		z-index: 2;
	}

	.hnp-mobile-overlay__back,
	.hnp-mobile-overlay__close {
		appearance: none;
		width: 32px;
		height: 42px;
		border: 0;
		background: transparent;
		position: relative;
		cursor: pointer;
	}

	.hnp-mobile-overlay__back::before {
		content: "";
		position: absolute;
		top: 15px;
		left: 9px;
		width: 9px;
		height: 9px;
		border-left: 2px solid var(--hnp-text);
		border-bottom: 2px solid var(--hnp-text);
		transform: rotate(45deg);
	}

	.hnp-mobile-overlay__close::before,
	.hnp-mobile-overlay__close::after {
		content: "";
		position: absolute;
		top: 20px;
		left: 8px;
		width: 17px;
		height: 2px;
		background: #667085;
	}

	.hnp-mobile-overlay__close::before { transform: rotate(45deg); }
	.hnp-mobile-overlay__close::after { transform: rotate(-45deg); }

	.hnp-mobile-overlay__title {
		color: var(--hnp-title);
		font-size: 16px;
		font-weight: 800;
		text-transform: uppercase;
	}

	.hnp-mobile-overlay__all {
		margin-top: 4px;
		color: var(--hnp-green);
		font-size: 12px;
		font-weight: 700;
		text-decoration: none !important;
	}

	.hnp-mobile-overlay__all::after {
		content: "›";
		margin-left: 5px;
		font-size: 16px;
	}

	.hnp-mobile-overlay__list {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.hnp-mobile-overlay__item {
		margin: 0;
		border-bottom: 1px solid var(--hnp-border);
	}

	.hnp-mobile-overlay__row {
		min-height: 50px;
		display: flex;
	}

	.hnp-mobile-overlay__link {
		flex: 1;
		display: flex;
		align-items: center;
		padding: 12px 8px 12px 16px;
		color: var(--hnp-text);
		font-size: 13px;
		font-weight: 500;
		text-transform: uppercase;
		text-decoration: none !important;
	}

	.hnp-mobile-overlay__open {
		appearance: none;
		width: 48px;
		border: 0;
		background: transparent;
		position: relative;
		cursor: pointer;
	}

	.hnp-mobile-overlay__open::before {
		content: "";
		position: absolute;
		top: 20px;
		right: 18px;
		width: 8px;
		height: 8px;
		border-right: 1.6px solid var(--hnp-text);
		border-top: 1.6px solid var(--hnp-text);
		transform: rotate(45deg);
	}

	.hnp-mobile-overlay__screen-inner {
		animation: hnp-in .18s ease;
	}

	.hnp-mobile-overlay__screen-inner.is-back {
		animation-name: hnp-back;
	}

	@keyframes hnp-in {
		from { opacity: 0; transform: translateX(18px); }
		to { opacity: 1; transform: translateX(0); }
	}

	@keyframes hnp-back {
		from { opacity: 0; transform: translateX(-18px); }
		to { opacity: 1; transform: translateX(0); }
	}
}


/* v2.0.1 – Hoovik headeri TOOTED nupu mõõt ja joondus */
@media (min-width: 1025px) {
	.hnp-desktop-menu {
		display: flex;
		align-items: stretch;
		height: 100%;
		min-width: 180px;
	}

	.hnp-desktop-menu__trigger {
		width: 180px;
		min-width: 180px;
		height: 42px;
		min-height: 42px;
		padding: 0 16px;
		justify-content: flex-start;
		gap: 11px;
		border-radius: 0;
		line-height: 1;
	}

	.hnp-desktop-menu__trigger > span:nth-child(2) {
		flex: 1 1 auto;
		text-align: left;
		white-space: nowrap;
	}

	.hnp-desktop-menu__chevron {
		flex: 0 0 auto;
		margin-left: auto;
	}

	.whb-header-bottom .hnp-desktop-menu,
	.whb-header-bottom .hnp-desktop-menu__trigger,
	.whb-row .hnp-desktop-menu,
	.whb-row .hnp-desktop-menu__trigger {
		align-self: stretch;
	}

	.whb-header-bottom .hnp-desktop-menu__trigger,
	.whb-row .hnp-desktop-menu__trigger {
		display: flex;
		align-items: center;
	}
}


/* v2.0.2 – TOOTED nupp ja kampaanialingid ühel järjestikusel real */
@media (min-width: 1025px) {
	/* Eemalda plugina HTML-elemendi ümbert WoodMarti lisavahed */
	.whb-header-bottom .wd-header-html:has(.hnp-desktop-menu),
	.whb-header-bottom .wd-header-html:has(.hnp-desktop-menu) > div {
		margin: 0 !important;
		padding: 0 !important;
		height: 100% !important;
		display: flex !important;
		align-items: stretch !important;
	}

	/* Nupp täidab täpselt alumise headerirea kõrguse */
	.whb-header-bottom .hnp-desktop-menu {
		width: 180px;
		min-width: 180px;
		height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		display: flex !important;
		align-items: stretch !important;
	}

	.whb-header-bottom .hnp-desktop-menu__trigger {
		width: 180px;
		min-width: 180px;
		height: 100% !important;
		min-height: 42px;
		margin: 0 !important;
		padding: 0 14px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: flex-start !important;
		border-radius: 0 !important;
	}

	/* Võta TOOTED elemendi ja järgmise naviploki vahelt kunstlik vahe ära */
	.whb-header-bottom .wd-header-html:has(.hnp-desktop-menu) + .wd-header-nav,
	.whb-header-bottom .wd-header-html:has(.hnp-desktop-menu) + .wd-header-menu,
	.whb-header-bottom .wd-header-html:has(.hnp-desktop-menu) + * {
		margin-left: 0 !important;
	}

	/* Kõik alumise rea elemendid samale vertikaalsele keskjoonele */
	.whb-header-bottom .whb-flex-row,
	.whb-header-bottom .whb-column,
	.whb-header-bottom .wd-header-nav,
	.whb-header-bottom .wd-nav {
		align-items: stretch !important;
	}

	.whb-header-bottom .wd-nav > li {
		display: flex !important;
		align-items: stretch !important;
	}

	.whb-header-bottom .wd-nav > li > a {
		height: 100% !important;
		min-height: 42px;
		display: flex !important;
		align-items: center !important;
	}
}


/* v2.0.3 – desktop flyout clipping/flicker fix */
@media (min-width: 1025px) {
	/*
	 * Nupp jääb 180 px lai, kuid WoodMarti wrapperid ei tohi
	 * 975 px kategooriapaneeli ära lõigata.
	 */
	.whb-header-bottom,
	.whb-header-bottom .whb-row,
	.whb-header-bottom .whb-flex-row,
	.whb-header-bottom .whb-column,
	.whb-header-bottom .wd-header-html:has(.hnp-desktop-menu),
	.whb-header-bottom .wd-header-html:has(.hnp-desktop-menu) > div,
	.whb-header-bottom .hnp-desktop-menu {
		overflow: visible !important;
	}

	.whb-header-bottom .wd-header-html:has(.hnp-desktop-menu),
	.whb-header-bottom .hnp-desktop-menu {
		position: relative !important;
		z-index: 99999 !important;
	}

	.whb-header-bottom .hnp-desktop-menu__panel {
		display: block !important;
		position: absolute !important;
		top: 100% !important;
		left: 0 !important;
		width: 975px !important;
		min-width: 975px !important;
		max-width: none !important;
		height: 520px !important;
		z-index: 100000 !important;
		overflow: hidden !important;
	}

	/*
	 * Eemaldab nähtava vahe nupu ja paneeli vahel, mis võis
	 * hiire liikumisel menüü korraks sulgeda.
	 */
	.hnp-desktop-menu__panel {
		margin-top: 0 !important;
		transform: translateY(0) !important;
	}

	.hnp-desktop-menu:hover > .hnp-desktop-menu__panel,
	.hnp-desktop-menu.is-open > .hnp-desktop-menu__panel {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}
}


/* v2.0.5 – kuva kogu desktop-menüü alles pärast põhistiili rakendumist */
@media (min-width: 1025px) {
	.hnp-desktop-menu {
		visibility: visible !important;
		opacity: 1 !important;
	}
}


/* v2.0.6 – TOOTED nupu värv ja täpne aktiveerimisala */
@media (min-width: 1025px) {
	.hnp-desktop-menu__trigger {
		background: #2f6f3e !important;
		color: #fff !important;
	}

	.hnp-desktop-menu__trigger:hover,
	.hnp-desktop-menu.is-open .hnp-desktop-menu__trigger {
		background: #285f35 !important;
		color: #fff !important;
	}

	.hnp-desktop-menu:hover > .hnp-desktop-menu__panel {
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	.hnp-desktop-menu.is-open > .hnp-desktop-menu__panel {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}

	.hnp-desktop-menu.hnp-ready {
		visibility: visible !important;
		opacity: 1 !important;
	}
}


/* v2.0.7 – desktop-menüü avaneb ainult TOOTED nupu klikiga */
@media (min-width: 1025px) {
	.hnp-desktop-menu:hover > .hnp-desktop-menu__panel {
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	.hnp-desktop-menu.is-open > .hnp-desktop-menu__panel {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}

	.hnp-desktop-menu__trigger {
		cursor: pointer;
	}
}


/* v2.0.8 – kolmanda veeru kihistus ja hiireala parandus */
@media (min-width: 1025px) {
	.hnp-desktop-menu__panel {
		isolation: isolate;
	}

	.hnp-desktop-menu__panel > .hnp-desktop-menu__list {
		position: relative;
		z-index: 10;
	}

	/* Teine veerg. */
	.hnp-desktop-menu__panel
	> .hnp-desktop-menu__list
	> .hnp-desktop-menu__item
	> .hnp-desktop-menu__submenu {
		z-index: 20 !important;
	}

	.hnp-desktop-menu__panel
	> .hnp-desktop-menu__list
	> .hnp-desktop-menu__item
	> .hnp-desktop-menu__submenu
	> .hnp-desktop-menu__list {
		position: relative;
		z-index: 21;
	}

	/* Kolmas veerg peab alati olema teise veeru kohal ja võtma hiire sündmused endale. */
	.hnp-desktop-menu__panel
	> .hnp-desktop-menu__list
	> .hnp-desktop-menu__item
	> .hnp-desktop-menu__submenu
	> .hnp-desktop-menu__list
	> .hnp-desktop-menu__item
	> .hnp-desktop-menu__submenu {
		z-index: 40 !important;
		pointer-events: auto !important;
		background: #fff !important;
	}

	.hnp-desktop-menu__panel
	> .hnp-desktop-menu__list
	> .hnp-desktop-menu__item
	> .hnp-desktop-menu__submenu
	> .hnp-desktop-menu__list
	> .hnp-desktop-menu__item.is-active
	> .hnp-desktop-menu__submenu {
		opacity: 1 !important;
		visibility: visible !important;
		transform: translateX(0) !important;
	}

	/* Eemalda veergude vaheline mõnepiksliline tühi hiireala. */
	.hnp-desktop-menu__submenu {
		left: 315px !important;
	}
}
