
/* =========================================================
   1) LAYOUT: MAIN CONTAINER
   ========================================================= */
/* LabelDrivenMenu - layout */
.label-driven-menu {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	box-sizing: border-box;
	max-width: 1146px;
	width: 100%;
	margin: 0 auto;
	border-radius: 20px;
}


/* =========================================================
   2) COLUMNS (BASE)
   ========================================================= */
.label-driven-menu-left {
	flex: 0 0 269px;
	width: 269px;
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	/* background: #eceff5; */
}

.label-driven-menu-center {
	/* fill remaining space */
	flex: 1 0 0%;
	min-width: 0; /* allow shrinking of long content */
	width: auto;
	display: none; /* mobile-first: hidden */
	box-sizing: border-box;
}

.label-driven-menu-right {
	flex: 0 0 343px;
	width: 334px;
	position: relative;
	box-sizing: border-box;
}


/* =========================================================
   3) ITEMS & LABELS
   ========================================================= */
.label-driven-menu-item {
	display: block;
	/* margin-bottom: 2px; */
}

.label-driven-menu-label {
	display: block;
	border: 0;
	cursor: pointer;
	color: #000;
	font-size: 16px;
}

.label-driven-menu-label > img {
	margin-right: 20px;
	position: relative;
	top: 5px;
}


/* =========================================================
   4) LISTS (HIDDEN BY DEFAULT)
   ========================================================= */
.label-driven-menu-links {
	display: none;
	list-style: none;
	overflow-y: auto;
	box-sizing: border-box;
	height: 100%;
}


/* =========================================================
   5) EXTERNAL NAV (RESETS / UTIL)
   ========================================================= */
.ext-nav {
	max-width: 1146px;
	left: 0;
	right: 0;
	margin-left: auto;
	margin-right: auto;
}

.ext-nav ul li>a {
	font-size: 13px;
}

.label-driven-menu-links > li {
	margin: 10px 0;
}


/* =========================================================
   6) LINKS (BASIC)
   ========================================================= */
.label-driven-menu a,
.label-driven-menu a.visited,
.label-driven-menu a.active {
	color: black;
	text-decoration: none;
}


/* =========================================================
   7) RIGHT COLUMN: POPULAR CATEGORIES
   ========================================================= */
.label-driven-menu-right .category-cnt {
	padding-top: 14px;
	padding-bottom: 14px;
	display: flex;
}

.label-driven-menu-right .category-icon {
	display: flex;
	align-items: center;
	padding-right: 10px;
} 

.label-driven-menu-right .category-link {
	font-size: 16px;
}

.label-driven-menu-right .category-desc {
	font-size: 12px;
}


/* =========================================================
   8) EXTERNAL RESET OVERRIDES (KEPT FROM YOUR SHEET)
   ========================================================= */
.ext-nav {
	column-count: unset;
	padding: unset;
}

.ext-nav ul > li:first-child {
	text-transform: unset;
	font-family: unset;
}

.wszystkie-projekty-btn:hover {
	color: #e14f00;
}

/* =========================================================
   9) RESPONSIVE: MOBILE ≤1300px
   ========================================================= */
@media (max-width: 1300px) {
	
	.menu-kategorie, 
	.menu-realizacje, 
	.menu-o-projekcie, 
	.menu-katalogi, 
	.menu-blog, 
	.menu-kontakt {
		width: 100%;
	}
	
	.menu-kategorie>div:first-child, 
	.menu-realizacje>div:first-child, 
	.menu-o-projekcie>div:first-child, 
	.menu-katalogi, 
	.menu-faq, 
	.menu-blog, 
	.menu-kontakt {
		padding-left: 20px;
		padding-right: 20px;
		width: 100%;
	}

	.menu-kategorie.wrapped>div:first-child, 
	.menu-realizacje.wrapped>div:first-child, 
	.menu-o-projekcie.wrapped>div:first-child {
		background: url(/theme/images/decoration/unwrap.png) no-repeat right 24px center;
	}
	
	.menu-kategorie > div:first-child.unwrapped, 
	.menu-realizacje > div:first-child.unwrapped, 
	.menu-o-projekcie > div:first-child.unwrapped {
		background: url(/theme/images/decoration/wrap.png) no-repeat right 24px center;
	}

	.label-driven-menu-item {
		background: url(/theme/images/decoration/unwrap.png) no-repeat right 34px top 20px;
		font-size: 0px;
	}

	.label-driven-menu-item.active {
		background: url(/theme/images/decoration/wrap.png) no-repeat right 34px top 20px;
	}

	.label-driven-menu-item > div:last-child {
		width: 100%; 
		padding-left: 40px; 
		padding-right: 20px;
	}
	
	.label-driven-menu-item.active > div:last-child {
		padding-left: 0px;
	}

	.logo-2022-menu-mobile {
		padding-left: 20px;
	}
	
	.menu-2022 {
		width: 100%;
		padding-left: unset;
		padding-right: unset;
	}
	
	.menu-kategorie {
		width: 100%;
	}
	
	.menu-kategorie>div:first-child {
		padding: 20px;
	}
	
	.ext-nav ul li>a {
		font-size: 13px;
	}
	
	.label-driven-menu {
        display: block;
	}

	.label-driven-menu-left {
		padding-left: 20px;
	}

	.label-driven-menu-left,
	.label-driven-menu-right {
		display: block;
		width: 100%;
	}

	.label-driven-menu-left-title {
		font-size: 22px;
		margin-bottom: 7px;
	}

	.label-driven-menu-label {
		font-size: 16px;
	}

	.label-driven-menu-label .center-v {
		align-items: center;
		padding-top: 7px;
		padding-bottom: 7px;
	}
	
	.label-driven-menu-links {
		margin-bottom: 20px;
	}

	.label-driven-menu-popular {
		background-color: #eceff5;
	}

	.label-driven-menu-item.active .el1 {
		display: none;
	}

	/* show clicked list under label */
	.label-driven-menu-item.active .label-driven-menu-links {
		display: block;
	}

	/* keep Right visible; hide only Center on mobile */
	.label-driven-menu-center {
		display: none !important;
	}
	
	.label-driven-menu-right {
		margin-bottom: 20px;
	}
	
	.label-driven-menu-popular {
		padding-top: 20px;
		padding-left: 20px;
		box-shadow: -1px 3px 5px 0px rgba(0,0,0,0.2);
		-webkit-box-shadow: -1px 3px 5px 0px rgba(0,0,0,0.2);
		-moz-box-shadow: -1px 3px 5px 0px rgba(0,0,0,0.2);
	}

	.label-driven-menu-right .label-driven-menu-popular-title {
		font-size: 22px;
	}
	
	.menu-kategorie>div:first-child, 
	.menu-realizacje>div:first-child, 
	.menu-o-projekcie>div:first-child, 
	.menu-katalogi, 
	.menu-faq, 
	.menu-blog, 
	.menu-kontakt {
		font-size: 22px;
	}
	
	.menu-kategorie-label.wrapped {
		background: url(/theme/images/decoration/unwrap.png) no-repeat right 24px center !important;
	}
	
	.menu-kategorie-label.unwrapped {
		background: url(/theme/images/decoration/wrap.png) no-repeat right 24px center !important;
	}
	
}

/* =========================================================
   10) RESPONSIVE: DESKTOP ≥1301px
   ========================================================= */
@media (min-width: 1301px) {
	.ext-nav {
		border-radius: 20px;
		background: #eceff5;
	}
	
	.ext-nav li {
		padding: unset;
	}
	
	.ext-nav ul li>a {
		font-size: 14px;
	}
	
	.ext-nav ul {
		padding-bottom: unset;
	}
	
	.ext-nav ul > li:first-child {
		padding: unset;
		letter-spacing: unset;
		background: unset;
		width: unset;
		padding: 0px;
	}
	
	.menu-kategorie:hover {
		background: #eceff5;
	}
	
	.linia-maskujaca-kategorie {
		background: #eceff5;
		display: none;
		position: absolute;
		height: 1px;
		width: 100%;
		left: 0;
		z-index: 1103;
	}
	
	.label-driven-menu {
		box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.35);
		-webkit-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.35);
		-moz-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.35);
	}
	
	.label-driven-menu-left {
		padding-top: 20px;
		padding-bottom: 20px;
	}
	
	.label-driven-menu-left-title {
		display: none;
	}
	
	.label-driven-menu-label {
		display: grid;
		grid-template-columns: 4px 1fr; /* el1 fixed 10px, rest flexible */
		height: 44px;
		padding-left: 13px;
	}
	
	.label-driven-menu-label > .el1 {
		background: #eceff5;
		height: 100%;
	}
	
	.label-driven-menu-label > .center-v {
		margin-left: 14px;
		align-items: center;
	}

	.label-driven-menu-item > div:last-child {
		display: none;
	}

	/* Center visible and spaced from Left */
	.label-driven-menu-center {
		display: block;
		min-width: 400px;
		background: white;
	}
	
	/* Right spaced from Center */
	.label-driven-menu-right {
		margin-left: 7px;
	}

	.label-driven-menu-right .category-icon {
		padding-left: 10px;
	}

	/* Panel background for lists on desktop */
	.label-driven-menu-links {
		padding-top: 21px;
		padding-left: 63px;
		width: 460px !important;
	}
	
	.label-driven-menu-center .label-driven-menu-links > li {
		border-bottom: 1px solid #d3d4d7;
		padding-bottom: 15px !important;
	}

	/* Ensure UL is visible when JS inserts it into Center */
	.label-driven-menu-center .label-driven-menu-links {
		display: block;
	}

	/* Active label styling (multi-line formatting) */
	.label-driven-menu-item.active .label-driven-menu-label {
		background-color: white;
		z-index: 2;
		position: relative;
	}

	.label-driven-menu-right .popular-categories .category-cnt:not(:last-child) {
		border-bottom: 1px solid #d3d4d7;
	}

	.label-driven-menu-right .category-link {
		/* font-family: MainFontBold; */
	}

	.label-driven-menu-right .label-driven-menu-popular-title {
		font-family: MainFontBold;
		font-size: 22px;
		margin-top: 20px;
		margin-left: 15px;
	}
	
	.menu-kategorie, .menu-realizacje, .menu-o-projekcie {
		border-top-left-radius: 15px;
		border-top-right-radius: 15px;
	}
	
	.menu-realizacje:hover .submenu,
	.menu-o-projekcie:hover .submenu {
		border-bottom-left-radius: 15px;
		border-bottom-right-radius: 15px;
		border-top-right-radius: 15px;
		box-shadow: 1px 4px 5px 0px rgba(0,0,0,0.35);
		-webkit-box-shadow: 1px 4px 5px 0px rgba(0,0,0,0.35);
		-moz-box-shadow: 1px 4px 5px 0px rgba(0,0,0,0.35);
	}
	
	.menu-kategorie:hover .linia-maskujaca-kategorie {
		bottom: -2px;
		display: block;
    }
}


.label-driven-menu-label > .center-v {
	display: flex;
	align-items: center;   /* vertical center */
	justify-content: left; /* horizontal center */
	gap: 14px;
	/* To ensure full-height context for vertical centering */
	height: 100%;
}


/* =========================================================
   11) STATES (ACTIVE) & TYPO TWEAKS
   ========================================================= */
/* Hover on container -> change el1 background */
.label-driven-menu-item.active .el1 {
	background: #fb5800;
}

.label-driven-menu-item.active .el3 {
	font-family: MainFontBold;
}



/* Mobile: move .label-driven-menu-right to the top */
/* Indentation: tabs; Comments: ASCII only */
@media (max-width: 1300px) {
	.label-driven-menu {
		display: flex;            /* stack children */
		flex-direction: column;   /* vertical order */
	}

	/* put right column first */
	.label-driven-menu-right {
		order: -1;
	}

	/* safety: ensure full width on mobile */
	.label-driven-menu-left,
	#label-driven-menu-center,
	.label-driven-menu-right {
		width: auto;
		max-width: 100%;
	}
}



