/* Full Catalog Menu Styles - Only loaded when show_full_catalog_menu is enabled */

/* Full width menu styles */
#menu .dropdown-menu.full-width-menu {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: 0 !important;
	z-index: 1000 !important;
}

/* Position menu below dropdown when opened */
#menu .dropdown.open > .full-width-menu,
#menu .dropdown.open > div.full-width-menu {
	position: fixed !important;
}

/* Ensure parent container allows full width */
#menu.has-full-menu .navbar-collapse {
	position: relative;
	overflow: visible;
}

#menu.has-full-menu .dropdown {
	position: static;
}

/* Show full width menu when dropdown is open */
#menu .dropdown.open > .full-width-menu,
#menu .dropdown.open > div.full-width-menu {
	display: block !important;
}

/* Full width menus should always be visible when open, even with hover enabled */
#menu[data-hover-menu="true"] .dropdown.open > .full-width-menu,
#menu[data-hover-menu="true"] .dropdown.open > div.full-width-menu {
	display: block !important;
}

/* Full menu inner - grid layout */
#menu .full-menu-inner {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	width: calc(100% - (100vw - 100%));
	padding: 15px 20px;
	gap: 0 15px;
	align-items: start;
	max-height: calc(70vh - 10px);
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Modern, subtle scrollbar styling for full-menu-inner */
#menu .full-menu-inner::-webkit-scrollbar {
	width: 6px;
}

#menu .full-menu-inner::-webkit-scrollbar-track {
	background: transparent;
	margin: 10px 0;
}

#menu .full-menu-inner::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 3px;
	transition: background 0.2s ease;
}

#menu .full-menu-inner::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.35);
}

/* Ensure menu scroll doesn't interfere with page scroll */
#menu .full-width-menu {
	overscroll-behavior: contain;
}

#menu .full-menu-inner {
	overscroll-behavior: contain;
}

#menu .full-menu-inner .menu-column {
	display: block !important;
	min-width: 150px;
	max-width: 180px;
	padding: 0 8px;
	width: 100%;
}

/* Menu level styles - Different font sizes and weights by hierarchy */
#menu .menu-level-2 {
	margin-bottom: 8px;
}

#menu .menu-link-level-2 {
	font-size: 1.05em;
	font-weight: 600;
	padding: 6px 10px;
	display: block;
	line-height: 1.3;
}

#menu .menu-link-level-2:hover {
	background-color: var(--menu-selbackcolor);
	color: var(--menu-selcolor);
}

#menu .menu-level-3 {
	margin-bottom: 3px;
	margin-left: 15px;
}

#menu .menu-link-level-3 {
	font-size: 0.85em;
	font-weight: 400;
	padding: 3px 10px;
	display: block;
	line-height: 1.2;
}

#menu .menu-link-level-3:hover {
	background-color: var(--menu-selbackcolor);
	color: var(--menu-selcolor);
}

/* Grandchildren list styling - shown directly under parent */
#menu .menu-grandchildren-list {
	list-style: none;
	padding: 0;
	margin: 5px 0 8px 0;
	border-left: 2px solid var(--menu-bordercolor);
	padding-left: 8px;
}

#menu .menu-grandchildren-list li {
	margin-bottom: 1px;
}

#menu .dropdown-menu.full-width-menu a span {
    white-space: pre-wrap!important;
}
#menu .dropdown-menu.full-width-menu .dropdown-inner a {
    min-width: 100px!important;
}
/* Disable full menu styles on mobile/hamburger menu - Force normal menu behavior */
/* On mobile, all full menu styles are completely disabled to match original menu */
@media (max-width: 767px) {
	/* Completely disable full-width-menu styles - make it behave exactly like normal dropdown */
	#menu .full-width-menu {
		position: relative !important;
		left: auto !important;
		right: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		top: auto !important;
		z-index: auto !important;
	}
	
	/* Force full-menu-inner to use exact normal dropdown-inner table layout */
	#menu .full-menu-inner {
		display: table !important;
		grid-template-columns: none !important;
		width: 100% !important;
		max-height: none !important;
		overflow-y: visible !important;
		overflow-x: visible !important;
		padding: 5px 0 !important;
		gap: 0 !important;
		scrollbar-width: auto !important;
		scrollbar-color: auto !important;
		align-items: normal !important;
	}
	
	/* Force menu-column to use table-cell layout (normal menu behavior) */
	#menu .full-menu-inner .menu-column,
	#menu .full-menu-inner ul.list-unstyled {
		display: table-cell !important;
		min-width: 180px !important;
		max-width: none !important;
		padding: 0 !important;
		width: auto !important;
	}
	
	/* Reset all menu level styles to match normal menu exactly */
	#menu .menu-level-2,
	#menu .menu-level-3 {
		margin-bottom: 0 !important;
		margin-left: 0 !important;
	}
	
	#menu .menu-link-level-2,
	#menu .menu-link-level-3 {
		font-size: inherit !important;
		font-weight: inherit !important;
		padding: 3px 15px !important;
		line-height: 20px !important;
		min-width: 180px !important;
		display: block !important;
		clear: both !important;
	}
	
	/* Reset grandchildren list to be completely invisible (will be converted to dropdown-menu by JS) */
	#menu .menu-grandchildren-list {
		list-style: none !important;
		padding: 0 !important;
		margin: 0 !important;
		border-left: none !important;
		padding-left: 0 !important;
		display: none !important; /* Hide until converted by JS */
	}
	
	#menu .menu-grandchildren-list li {
		margin-bottom: 0 !important;
	}
	
	/* Disable has-full-menu class effects on mobile */
	#menu.has-full-menu .navbar-collapse {
		position: static !important;
		overflow: visible !important;
	}
	
	#menu.has-full-menu .dropdown {
		position: relative !important;
	}
}


