/* BUELEC mega drawer — element14-style click drawer under the GP header. */

.be-mega-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 17, 19, .45);
	z-index: 998;
}

.be-mega {
	position: fixed;
	top: var(--be-header-h, 80px);
	left: 0;
	right: 0;
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
	box-shadow: 0 24px 48px rgba(0, 0, 0, .12);
	z-index: 999;
}

.admin-bar .be-mega {
	top: calc(var(--be-header-h, 80px) + 32px);
}

.be-mega-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 24px 32px;
	display: grid;
	grid-template-columns: 260px 1fr 260px;
	gap: 40px;
	position: relative;
}

.be-mega-col-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #999;
	margin: 0 0 14px;
}

.be-mega-col-title a {
	color: inherit;
	text-decoration: none;
}

.be-mega-col-title a:hover {
	color: #e8611a;
}

.be-mega-l1 ul,
.be-mega-filter-group ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.be-mega-l1 li + li {
	margin-top: 4px;
}

.be-mega-l1-btn,
.be-mega-l1-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	border-radius: 6px;
	padding: 11px 12px;
	font-size: 15px;
	font-weight: 600;
	color: #111;
	cursor: pointer;
	text-decoration: none;
}

.be-mega-l1-btn:hover,
.be-mega-l1-link:hover,
.be-mega-l1-btn.is-active {
	background: #f4f5f7;
	color: #e8611a;
}

.be-mega-soon {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #999;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 2px 6px;
}

.be-mega-caret {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	flex: none;
}

/* column 2 groups */
.be-mega-group {
	display: none;
}

.be-mega-group.is-active {
	display: block;
}

.be-mega-filter-group {
	display: inline-block;
	vertical-align: top;
	min-width: 170px;
	margin: 0 32px 20px 0;
}

.be-mega-filter-group > p {
	font-size: 13px;
	font-weight: 700;
	color: #333;
	margin: 0 0 8px;
}

.be-mega-filter-group li {
	margin: 0 0 6px;
}

.be-mega-filter-group a {
	font-size: 14px;
	color: #555;
	text-decoration: none;
}

.be-mega-filter-group a:hover {
	color: #e8611a;
	text-decoration: underline;
}

.be-mega-viewall {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: #e8611a;
	text-decoration: none;
	margin-top: 4px;
}

.be-mega-soon-box p {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	max-width: 30rem;
	margin: 0 0 12px;
}

/* featured card */
.be-mega-featured {
	display: block;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 16px;
	text-decoration: none;
	transition: box-shadow .25s ease, transform .25s ease;
}

.be-mega-featured:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
	transform: translateY(-3px);
}

.be-mega-featured-img {
	display: block;
	background: #f4f5f7;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 12px;
}

.be-mega-featured-img img {
	width: 100%;
	height: auto;
	display: block;
}

.be-mega-featured-name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #111;
	margin-bottom: 4px;
}

.be-mega-featured-price {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #e8611a;
	margin-bottom: 8px;
}

.be-mega-featured-cta {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #111;
}

/* close button */
.be-mega-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 36px;
	height: 36px;
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	background: #fff;
	font-size: 22px;
	line-height: 1;
	color: #555;
	cursor: pointer;
}

.be-mega-close:hover {
	color: #111;
	border-color: #bbb;
}

/* toggle button inside the GP menu */
.be-mega-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	padding: 0 20px;
	height: 60px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #111;
	cursor: pointer;
}

.be-mega-toggle:hover,
.be-mega-toggle[aria-expanded="true"] {
	color: #e8611a;
}

.be-mega-toggle .be-mega-caret {
	transform: rotate(45deg);
	width: 7px;
	height: 7px;
}

/* mobile: stack columns */
@media (max-width: 900px) {
	.be-mega-inner {
		grid-template-columns: 1fr;
		gap: 20px;
		max-height: calc(100vh - var(--be-header-h, 80px) - 20px);
		overflow-y: auto;
	}

	.be-mega-filter-group {
		display: block;
		min-width: 0;
		margin: 0 0 16px;
	}
}

@media (max-width: 768px) {
	.be-mega-toggle {
		height: auto;
		padding: 10px 20px;
		width: 100%;
		justify-content: flex-start;
	}
}

/* ---- nav hover hardening: orange text, never orange background ---- */
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a {
	background-color: transparent;
	color: #ea5600;
}

.main-navigation .main-nav ul ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .main-nav ul ul li.sfHover:not([class*="current-menu-"]) > a {
	background-color: #f4f5f7;
	color: #0f0f0f;
}

/* slideout (mobile drawer menu) hover: subtle, readable */
.slideout-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.slideout-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a {
	background-color: rgba(255, 255, 255, .1);
	color: #fff;
}

/* GP paints every <button> orange on hover — keep the nav toggle neutral. */
.main-navigation button.be-mega-toggle:hover,
.main-navigation button.be-mega-toggle:focus {
	background-color: transparent;
	color: #ea5600;
}

/* product name list in the middle column */
.be-mega-products {
	margin-top: 18px;
	border-top: 1px solid #eee;
	padding-top: 14px;
}

.be-mega-products > p {
	font-size: 13px;
	font-weight: 700;
	color: #333;
	margin: 0 0 8px;
}

.be-mega-products ul {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 32px;
	max-width: 460px;
}

.be-mega-products li {
	margin: 0 0 6px;
	break-inside: avoid;
}

.be-mega-products a {
	font-size: 13px;
	color: #555;
	text-decoration: none;
}

.be-mega-products a:hover {
	color: #e8611a;
	text-decoration: underline;
}

@media (max-width: 900px) {
	.be-mega-products ul {
		columns: 1;
		max-width: none;
	}
}
