/* Labnostix — Mega Menu widget
   Left: sectors (click to swap). Right: product-type groups, expandable to
   two sub-columns (Product Categories + Product Information Page). */

.lbx-mm {
	--lbx-mm-left: 300px;
	--lbx-mm-cols: 2;
	background: linear-gradient(160deg, #0e1c34 0%, #223A6E 100%);
	font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
	color: #E8EEF6;
	width: 100%;
}
.lbx-mm * { box-sizing: border-box; }
.lbx-mm-inner { display: grid; grid-template-columns: var(--lbx-mm-left) 1fr; }

/* Column headings */
.lbx-mm-title {
	font-size: 15px; font-weight: 600; letter-spacing: .01em;
	margin: 0 0 14px; padding-bottom: 2px;
}

/* ---------- LEFT: sectors ---------- */
.lbx-mm-left { padding-right: 24px; }
.lbx-mm-sectors { display: flex; flex-direction: column; gap: 4px; }
.lbx-mm-sector {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	width: 100%; text-align: left; cursor: pointer;
	background: transparent; border: 0 !important; box-shadow: none; color: #E8EEF6;
	font: inherit; font-size: 15px; line-height: 1.3;
	-webkit-appearance: none; appearance: none;
	transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.lbx-mm-sector:hover { background: rgba(255,255,255,0.06); color: #fff; }
.lbx-mm-sector.is-active { background: rgba(255,255,255,0.10); color: #fff; }
.lbx-mm-chev { font-size: 18px; line-height: 1; opacity: .8; transition: transform .15s ease; }
.lbx-mm-sector.is-active .lbx-mm-chev { transform: rotate(180deg); }

/* ---------- RIGHT: panels ---------- */
.lbx-mm-right { padding-left: 24px; border-left: 1px solid rgba(255,255,255,0.12); min-width: 0; }
.lbx-mm-panel { display: none; }
.lbx-mm-panel.is-active { display: block; }
.lbx-mm-groups {
	display: grid; grid-template-columns: repeat(var(--lbx-mm-cols), minmax(0, 1fr));
	column-gap: 28px; align-content: start;
}

/* Group row */
.lbx-mm-group { border-bottom: 1px solid rgba(255,255,255,0.10); padding: 13px 6px 13px 0; }
.lbx-mm-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lbx-mm-group-name {
	color: #E8EEF6; text-decoration: none; font-size: 15.5px; font-weight: 500; line-height: 1.3;
	transition: color .15s ease;
}
a.lbx-mm-group-name:hover { color: #fff; }
.lbx-mm-toggle {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; min-width: 26px; padding: 0; margin: 0;
	border: 0 !important; background: transparent !important; box-shadow: none !important;
	color: #8FA6C8; cursor: pointer; -webkit-appearance: none; appearance: none;
	transition: color .15s ease;
}
.lbx-mm-toggle:hover { color: #fff; background: transparent !important; }
.lbx-mm-toggle:focus { outline: none; box-shadow: none !important; }
/* CSS chevron (no SVG, no icon font) */
.lbx-mm-chevron {
	display: inline-block; width: 8px; height: 8px; margin-top: -3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .18s ease;
}
.lbx-mm-group.is-open .lbx-mm-chevron { transform: rotate(-135deg); margin-top: 3px; }

/* Expanded box: two sub-columns */
.lbx-mm-expand {
	grid-column: 1 / -1; /* span both columns when a group is inside a single cell it just fills */
	margin-top: 12px;
	display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px;
	background: rgba(0,0,0,0.18); border: 1px solid #6F9BE0; border-radius: 8px;
	padding: 16px 18px;
}
.lbx-mm-expand[hidden] { display: none; }
.lbx-mm-subcol { min-width: 0; }
.lbx-mm-sublabel { font-size: 13.5px; font-style: italic; color: #8FA6C8; margin-bottom: 10px; }
.lbx-mm-leaf { margin-bottom: 10px; line-height: 1.35; }
.lbx-mm-leaf:last-child { margin-bottom: 0; }
.lbx-mm-leaf a { color: #CBD8EC; text-decoration: none; font-size: 15px; transition: color .15s ease; }
.lbx-mm-leaf a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.lbx-mm-groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
	.lbx-mm-inner { grid-template-columns: 1fr; }
	.lbx-mm-left { padding-right: 0; margin-bottom: 18px; }
	.lbx-mm-right { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; }
	.lbx-mm-groups { grid-template-columns: 1fr; }
	.lbx-mm-expand { grid-template-columns: 1fr; }
}
