/* REISSWOLF header visual refresh – aligned with reisswolf.com look
   Keeps existing menu structure/content; overrides colors, icons, buttons, logo.
   Hybrid: mobile drawer ≤900px; compact desktop 901–1300px; full desktop >1300px.
   Cache: v=20261120u */

/* ---- Header shell ---- */
.head {
	background: rgba(255, 255, 255, 0.96);
	transition: background-color 0.4s ease;
}

.head > .inner {
	padding: 22px 170px 22px 0;
	position: static;
	box-sizing: border-box;
}

/* ---- Top utility bar ---- */
.headnav {
	background: #e6e6e6;
	font-size: 14px;
}

.headnav A {
	text-transform: none;
	color: #6e6e6c;
	font-weight: 400;
}

.headnav UL:not(.lang-switch) LI {
	height: 56px;
	line-height: normal;
	vertical-align: middle;
	display: inline-flex;
	align-items: center;
}

.headnav UL:not(.lang-switch) LI + LI {
	margin-left: 22px;
}

/* Icon-above-label utility links (Megrendelés / Telefon / Email) */
.headnav .order,
.headnav .contact,
.headnav .mail,
.headnav a[href^="mailto:"] {
	display: inline-block;
	vertical-align: middle;
	background-color: transparent !important;
	background-repeat: no-repeat !important;
	background-position: center top !important;
	border-radius: 0;
	color: #6e6e6c !important;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.15;
	text-transform: none;
	text-align: center;
	white-space: nowrap;
	padding: 22px 2px 0 !important;
	width: auto;
	height: auto;
	min-width: 0;
	opacity: 1;
}

.headnav .order {
	background-image: url(../img/css/cart-grey.svg) !important;
	background-size: 21px auto !important;
}

.headnav .contact {
	background-image: url(../img/css/phone.svg) !important;
	background-size: 14px 14px !important;
}

.headnav .mail,
.headnav a[href^="mailto:"] {
	background-image: url(../img/css/mail-grey.svg) !important;
	background-size: 17px auto !important;
}

.headnav .order:hover,
.headnav .contact:hover,
.headnav .mail:hover,
.headnav a[href^="mailto:"]:hover {
	background-color: transparent !important;
	opacity: 0.7;
	color: #3e3d40 !important;
}

/* ---- Logo (right overhanging white box) – no shrink on scroll (.com) ---- */
#logo {
	background: #fff url(../img/css/logo-2024.svg) no-repeat center top / 100% auto;
	width: 152px !important;
	height: 170px !important;
	top: -1px;
	right: calc((100% - 1220px) / 2);
	box-shadow: none;
	/* Above megamenu panel + infoblokk (.com: logo stays visible over open menu) */
	z-index: 60 !important;
	transition: none;
	pointer-events: auto;
}

/* Override main.css sticky shrink – keep full size like .com */
.stickyhead #logo {
	width: 152px !important;
	height: 170px !important;
}

@media all and (min-width: 901px) {
	.stickyhead #logo {
		width: 152px !important;
		height: 170px !important;
	}
}

@media all and (min-width: 1060px) {
	.stickyhead #logo {
		width: 152px !important;
		height: 170px !important;
	}
}

/* Keep headnav clear of logo */
.headnav .inner {
	padding-right: 170px;
	box-sizing: border-box;
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5),
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1),
only screen and (min-resolution: 192dpi) {
	#logo {
		background-image: url(../img/css/logo-2024.svg);
	}
}

/* ---- Main nav typography / colors ---- */
.nav A {
	color: #3e3d40;
}

.nav > UL > LI.act.over > A,
.nav > UL > LI.act:hover > A,
.nav > UL > LI.act > A,
.nav > UL > LI.over > A,
.nav > UL > LI:hover > A {
	color: #004494;
	opacity: 1;
}

.nav.megamenu > UL > LI > A {
	font-size: 17px;
	letter-spacing: 0.01em;
}

.nav.megamenu li.act > a,
.nav.megamenu.sub > UL > LI:first-child.act > A {
	color: #004494;
}

/* ---- Megamenu panel (match reisswolf.com) ---- */
.nav.megamenu {
	position: static;
	width: auto;
}

.nav.megamenu > ul,
.nav.megamenu > ul > li {
	position: static;
}

.nav.megamenu > ul > li > .subNav {
	display: none;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: auto;
	margin: 0;
	transform: none;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-top: 0;
	padding: 0 !important;
	z-index: 50;
}

/* Top-level panel: click/.mm-open only – never hover or focus-within alone */
.nav.megamenu > ul > li.mm-open > .subNav,
.nav.megamenu > ul > li.over.mm-open > .subNav {
	display: block;
	opacity: 1;
	pointer-events: auto;
}

.nav.megamenu > ul > li:hover > .subNav,
.nav.megamenu > ul > li:focus-within > .subNav,
.nav.megamenu > ul > li.over:not(.mm-open) > .subNav {
	display: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.nav.megamenu > ul > li.mm-open:hover > .subNav,
.nav.megamenu > ul > li.mm-open:focus-within > .subNav,
.nav.megamenu > ul > li.mm-open.over > .subNav {
	display: block !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

.nav.megamenu > ul > li > .subNav:before {
	content: "";
	display: block;
	width: 100%;
	height: 30px;
	position: absolute;
	top: 0;
	left: 0;
	transform: translateY(-100%);
	background: transparent;
}

.nav.megamenu .subnav-cont {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	max-height: calc(100vh - 136px);
	padding: 50px calc(50% - 610px);
	position: relative;
	overflow: auto;
}

@media all and (max-width: 1300px) {
	.nav.megamenu .subnav-cont {
		padding-left: 3%;
		padding-right: 3%;
	}
}

.nav.megamenu .subnav-cont > .col {
	z-index: 1;
	width: 30.6667%;
	padding-bottom: 50px;
	box-sizing: border-box;
	position: relative;
}

/* col2 is the positioning context for level-3 (do NOT position:relative on li) */
.nav.megamenu .subnav-cont > .col2 {
	z-index: 2;
	position: relative;
}

.nav.megamenu .subnav-cont > .col3 {
	height: 100%;
	position: relative;
}

@media all and (max-width: 1060px) {
	.nav.megamenu .subnav-cont > .col1,
	.nav.megamenu .subnav-cont > .col2 {
		width: 48%;
	}

	.nav.megamenu .subnav-cont > .col3 {
		width: 30.6667%;
		padding-bottom: 0;
		min-height: 0;
	}
}

@media all and (max-width: 900px) {
	.nav.megamenu .subnav-cont > .col,
	.nav.megamenu .subnav-cont > .col1,
	.nav.megamenu .subnav-cont > .col2,
	.nav.megamenu .subnav-cont > .col3 {
		width: 100%;
	}
}

.nav.megamenu .subnav-cont > .col1 .like-h3 {
	color: #004494;
	font-size: 24px !important;
	font-weight: 400;
	line-height: 1.25;
	margin: 0;
	padding: 0;
}

.nav.megamenu .subnav-cont > .col1 .description {
	margin-top: 0.5em;
	color: #6e6e6c;
	font-size: 16px;
	line-height: 1.55;
}

.nav.megamenu .subnav-cont > .col1 .description p {
	margin: 0 0 0.75em;
	padding: 0;
}

.nav.megamenu .subnav-cont > .col1 .button,
.nav.megamenu .subnav-cont > .col1 a.button {
	display: inline-block;
	background: #004494;
	color: #fff !important;
	border-radius: 20px;
	padding: 7px 18px 8px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
	margin-top: 1em;
	text-transform: none;
}

.nav.megamenu .subnav-cont > .col1 .button:hover,
.nav.megamenu .subnav-cont > .col1 a.button:hover {
	background: #003570;
	opacity: 1;
}

/* Close button lives in col3 (right column), like .com */
.nav.megamenu .subnav-cont > .col3 .close,
.nav.megamenu .subnav-cont .close {
	z-index: 5;
	color: #6e6e6c !important;
	background: url(../img/css/menu-close.svg) left center / 10px no-repeat !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 0 0 0 20px !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
	position: absolute !important;
	top: -10px !important;
	left: 0 !important;
	right: auto !important;
	transform: translateY(-100%);
	line-height: 1.2;
	display: inline-block !important;
	box-shadow: none !important;
	white-space: nowrap;
}

.nav.megamenu .subnav-cont > .col3 .close:hover,
.nav.megamenu .subnav-cont .close:hover {
	color: #004494 !important;
	opacity: 1;
	background-color: transparent !important;
}

.nav.megamenu .subnavi {
	list-style: none;
	margin: 0;
	padding: 0;
	background: transparent;
	position: static;
	width: 100%;
}

/* Kill main.css .nav.megamenu .subNav li+li { margin-top: 40px }
   IMPORTANT: do NOT set position:relative on li – level-3 height% must use col2 */
.nav.megamenu .subNav li + li,
.nav.megamenu .subnavi > li,
.nav.megamenu .subnavi > li + li {
	margin: 0 !important;
	margin-top: 0 !important;
	position: static;
}

.nav.megamenu .subnavi > li + li {
	border-top: 1px solid #fff;
}

.nav.megamenu .subnavi > li > a {
	display: block;
	color: #3e3d40 !important;
	text-transform: none;
	background: #f8f8f8 !important;
	padding: 10px 20px !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.35;
	text-decoration: none;
	white-space: normal;
	position: relative;
}

.nav.megamenu .subnavi > li > a > span {
	position: relative;
	display: inline-block;
}

/* Hover / open: white on blue (like .com) */
.nav.megamenu .subnavi > li:hover > a,
.nav.megamenu .subnavi > li.over > a,
.nav.megamenu .subnavi > li:focus-within > a {
	color: #fff !important;
	opacity: 1;
	background: #004494 !important;
}

/* Current page (.act) alone: blue text on gray – not washed out */
.nav.megamenu .subnavi > li.act:not(:hover):not(.over):not(:focus-within) > a {
	color: #004494 !important;
	background: #f8f8f8 !important;
}

/* Chevron for items with submenu */
.nav.megamenu .subnavi > li.has-sub > a > span:after,
.nav.megamenu .subnavi > li.has_sub > a > span:after {
	content: "";
	background: url(../img/css/menu-arrow.svg) 50% / 100% no-repeat;
	width: 6px;
	height: 10px;
	transition: all 0.4s ease-in-out;
	display: block;
	position: absolute;
	top: 50%;
	right: -15px;
	transform: translate(100%, -50%);
}

.nav.megamenu .subnavi > li.has-sub:hover > a > span:after,
.nav.megamenu .subnavi > li.has_sub:hover > a > span:after,
.nav.megamenu .subnavi > li.has-sub.over > a > span:after,
.nav.megamenu .subnavi > li.has_sub.over > a > span:after,
.nav.megamenu .subnavi > li.has-sub:focus-within > a > span:after,
.nav.megamenu .subnavi > li.has_sub:focus-within > a > span:after {
	background-image: url(../img/css/menu-arrow-white.svg);
}

/* Level-3 panel – positioned against col2, full column height (.com) */
.nav.megamenu .subnavi .subnavi2 {
	list-style: none;
	margin: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	left: 100%;
	top: 0;
	width: 101%;
	height: 100%;
	margin-left: calc(13.2% - 1px);
	background: #fff;
	overflow: auto;
	z-index: 3;
	display: block;
}

.nav.megamenu .subnavi .subnavi2:before {
	content: "";
	width: 13.2%;
	height: 100%;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	transform: translateX(-100%);
}

.nav.megamenu .subnavi > li.over > .subnavi2,
.nav.megamenu .subnavi > li:focus-within > .subnavi2 {
	opacity: 1;
	pointer-events: auto;
}

.nav.megamenu .subnavi2 > li {
	margin: 0 !important;
	position: static;
}

.nav.megamenu .subnavi2 > li + li {
	border-top: 1px solid #fff;
	margin-top: 0 !important;
}

.nav.megamenu .subnavi2 > li > a {
	display: block;
	color: #3e3d40 !important;
	background: #f8f8f8 !important;
	padding: 10px 20px !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.35;
	text-decoration: none;
	white-space: normal;
}

.nav.megamenu .subnavi2 > li:first-child > a {
	font-weight: 700 !important;
}

.nav.megamenu .subnavi2 > li:hover > a,
.nav.megamenu .subnavi2 > li.over > a,
.nav.megamenu .subnavi2 > li:focus-within > a {
	color: #fff !important;
	background: #004494 !important;
}

.nav.megamenu .subnavi2 > li.act:not(:hover):not(.over):not(:focus-within) > a {
	color: #004494 !important;
	background: #f8f8f8 !important;
}

.nav.megamenu .subNav a {
	font-size: inherit;
}

/* ---- Mobile / narrow tablet nav (≤900px) ---- */
@media screen and (max-width: 900px) {
	.head {
		background: #fff !important;
	}

	.head > .inner {
		padding: 18px 100px 18px 3% !important;
	}

	.headnav {
		display: none !important;
	}

	/* main.css only shows hamburger ≤760px – force it up to 900 */
	.open_nav {
		display: inline-block !important;
		position: relative;
		z-index: 61;
	}

	.hamburger {
		width: auto;
		padding: 15px;
		display: inline-block;
		cursor: pointer;
		background-color: transparent;
		border: 0;
		margin: 0;
		line-height: 0;
		overflow: visible;
	}

	.hamburger-box {
		width: 35px;
		height: 24px;
		display: inline-block;
		position: relative;
	}

	.hamburger-inner,
	.hamburger-inner::after,
	.hamburger-inner::before {
		width: 35px;
		height: 4px;
		background-color: #004494;
		border-radius: 4px;
		position: absolute;
		display: block;
	}

	.hamburger-inner {
		top: 50%;
		margin-top: -2px;
	}

	.hamburger-inner::before,
	.hamburger-inner::after {
		content: "";
	}

	.hamburger-inner::before {
		top: -10px;
	}

	.hamburger-inner::after {
		bottom: -10px;
		top: auto;
	}

	.hamburger--emphatic {
		overflow: hidden;
	}

	.hamburger--emphatic.is-active .hamburger-inner {
		background-color: transparent;
	}

	.hamburger--emphatic.is-active .hamburger-inner::before {
		left: -80px;
		top: -80px;
		transform: translate3d(80px, 80px, 0) rotate(45deg);
	}

	.hamburger--emphatic.is-active .hamburger-inner::after {
		right: -80px;
		top: -80px;
		bottom: auto;
		transform: translate3d(-80px, 80px, 0) rotate(-45deg);
	}

	/* Mobile logo size like .com (override desktop !important) */
	#logo,
	.stickyhead #logo {
		width: 92px !important;
		height: 102px !important;
		top: -1px !important;
		right: 3% !important;
		background-image: url(../img/css/logo-2024.svg);
		z-index: 60 !important;
	}

	.open_nav {
		z-index: 61;
	}

	/* Full-width white drawer */
	.nav:not(.megamenu) {
		display: none;
		background: #fff !important;
		box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15) !important;
		padding-top: 70px !important;
		left: 0;
		right: 0;
		width: 100% !important;
		z-index: 50;
	}

	.nav:not(.megamenu) > ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.nav:not(.megamenu) > ul > li {
		display: block !important;
		margin: 0 !important;
		border-top: 1px solid #eee !important;
		position: relative;
	}

	.nav:not(.megamenu) > ul > li:first-child {
		border-top: 0 !important;
	}

	.nav:not(.megamenu) > ul > li > a {
		display: block !important;
		background: #fff !important;
		color: #3e3d40 !important;
		font-size: 18px !important;
		font-weight: 400 !important;
		line-height: 1.3;
		padding: 18px 70px 18px 5% !important;
		text-decoration: none;
		text-transform: none !important;
		border-radius: 0 !important;
		width: auto !important;
		height: auto !important;
		min-height: 0 !important;
	}

	.nav:not(.megamenu) > ul > li.act > a,
	.nav:not(.megamenu) > ul > li.cur > a {
		color: #004494 !important;
	}

	/* Home: icon aligned with other row text (same left inset) */
	.nav:not(.megamenu) > ul > li:first-child > a {
		background: #fff url(../img/css/home.svg) no-repeat 5% center / 18px 17px !important;
		color: transparent !important;
		text-indent: -9999px !important;
		overflow: hidden !important;
		white-space: nowrap;
		width: auto !important;
		padding: 18px 70px 18px 5% !important;
		box-sizing: border-box !important;
	}

	.nav:not(.megamenu) > ul > li:first-child.act > a,
	.nav:not(.megamenu) > ul > li:first-child.cur > a {
		background-image: url(../img/css/home-blue.svg) !important;
	}

	/* Blue square expand control – fixed row height (not full open li) */
	.nav:not(.megamenu) .showSub {
		position: absolute !important;
		right: 0 !important;
		top: 0 !important;
		width: 55px !important;
		height: 57px !important;
		background: #004494 !important;
		z-index: 10;
		cursor: pointer;
	}

	.nav:not(.megamenu) .subNav .showSub {
		height: 48px !important;
	}

	.nav:not(.megamenu) .showSub:after {
		content: "" !important;
		display: block !important;
		position: absolute;
		left: 50%;
		top: 50%;
		width: 0;
		height: 0;
		margin: -3px 0 0 -5px;
		border-top: 6px solid #fff;
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		border-bottom: 0;
		transition: transform 0.25s ease;
	}

	.nav:not(.megamenu) .showSub.open:after {
		transform: rotate(180deg);
	}

	.nav:not(.megamenu) .subNav {
		background: #fff !important;
		padding: 0 !important;
		margin: 0 !important;
		box-shadow: none !important;
		position: static !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		/* open/close via JS slideToggle – do not force display */
	}

	/* Kill desktop hover-open of submenus on mobile (JS slideToggle uses inline display) */
	.nav:not(.megamenu) LI.over:not(.open) > .subNav,
	.nav:not(.megamenu) LI:hover:not(.open) > .subNav {
		display: none;
	}

	.nav:not(.megamenu) .subNav > li {
		border-top: 1px solid #fff !important;
		margin: 0 !important;
		position: relative;
	}

	.nav:not(.megamenu) .subNav > li > a {
		display: block !important;
		background: #f8f8f8 !important;
		color: #3e3d40 !important;
		font-size: 16px !important;
		padding: 14px 70px 14px 8% !important;
		text-decoration: none;
	}

	.nav:not(.megamenu) .subNav .subNav > li > a {
		padding-left: 12% !important;
		background: #eee !important;
	}

	.nav:not(.megamenu) .subNav > li.act > a {
		color: #004494 !important;
	}

	/* Utility rows at bottom of mobile menu */
	.nav:not(.megamenu) .contact,
	.nav:not(.megamenu) .mail,
	.nav:not(.megamenu) .order,
	.nav:not(.megamenu) a[href^="mailto:"] {
		background-color: #fff !important;
		background-repeat: no-repeat !important;
		background-position: 5% center !important;
		color: #3e3d40 !important;
		border-radius: 0 !important;
		font-weight: 400 !important;
		font-size: 16px !important;
		text-transform: none !important;
		padding: 16px 5% 16px 48px !important;
		margin: 0 !important;
		width: auto !important;
		height: auto !important;
		display: block !important;
		box-sizing: border-box;
	}

	.nav:not(.megamenu) .order {
		background-image: url(../img/css/cart-grey.svg) !important;
		background-size: 20px auto !important;
	}

	.nav:not(.megamenu) .contact {
		background-image: url(../img/css/phone.svg) !important;
		background-size: 14px 14px !important;
	}

	.nav:not(.megamenu) .mail,
	.nav:not(.megamenu) a[href^="mailto:"] {
		background-image: url(../img/css/mail-grey.svg) !important;
		background-size: 16px auto !important;
	}

	.nav:not(.megamenu) .contact:hover,
	.nav:not(.megamenu) .mail:hover,
	.nav:not(.megamenu) .order:hover {
		background-color: #fff !important;
		color: #004494 !important;
		opacity: 1;
	}

	/* Hide desktop megamenu on small screens */
	.nav.megamenu {
		display: none !important;
	}
}

/* Desktop: never show mobile drawer (beats jQuery fadeToggle inline display) */
@media all and (min-width: 901px) {
	.open_nav {
		display: none !important;
	}

	.nav:not(.megamenu),
	.open_nav + .nav:not(.megamenu) {
		display: none !important;
	}

	.nav.megamenu {
		display: block !important;
	}
}

/* Compact tablet desktop (901–1300): keep megamenu, clear logo column */
@media all and (min-width: 901px) and (max-width: 1300px) {
	#logo,
	.stickyhead #logo {
		width: 100px !important;
		height: 112px !important;
		right: 12px !important;
	}

	.head > .inner {
		padding: 16px 120px 16px 3% !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	/* Reserve logo column so floated utilities don't run under/off-screen */
	.headnav .inner {
		width: 100% !important;
		max-width: none !important;
		box-sizing: border-box !important;
		padding-left: 3% !important;
		padding-right: 120px !important;
		overflow: visible;
	}

	.headnav UL {
		float: none !important;
		display: flex !important;
		justify-content: flex-end;
		align-items: center;
		flex-wrap: nowrap;
		gap: 12px;
		max-width: 100%;
		margin: 0 !important;
	}

	.headnav UL:not(.lang-switch) LI {
		margin: 0 !important;
		height: auto !important;
	}

	.headnav UL:not(.lang-switch) LI + LI {
		margin-left: 0 !important;
	}

	/* Icon-only utilities – labels don't fit beside overhanging logo */
	.headnav .order,
	.headnav .contact,
	.headnav .mail,
	.headnav a[href^="mailto:"] {
		font-size: 0 !important;
		line-height: 0 !important;
		width: 28px !important;
		min-width: 28px !important;
		height: 40px !important;
		padding: 0 !important;
		background-position: center center !important;
		overflow: hidden;
	}

	.nav.megamenu {
		width: calc(100% - 120px) !important;
		max-width: none !important;
	}

	.nav.megamenu > UL > LI > A {
		font-size: 15px;
	}

	.nav.megamenu > UL > LI + LI {
		margin-left: 16px !important;
	}
}

@media all and (max-width: 1300px) {
	#logo {
		right: 12px;
	}
}

.nav.megamenu > ul > li.mm-closing > .subNav,
.nav.megamenu > ul > li.mm-closing:hover > .subNav,
.nav.megamenu > ul > li.mm-closing:focus-within > .subNav {
	display: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
