/* =============================================================
   Header — main nav with mega-menus and before/after placeholders
   ============================================================= */

/* Divi's default top + main header are suppressed in PHP (inc/header.php)
   via the et_html_top_header / et_html_main_header filters. */

/* --- Outer wrapper --- */
.led-header {
	display: flex;
	flex-direction: column;
}

/* --- Before/after content (shortcodes from theme settings) --- */
.led-header-menu-before,
.led-header-menu-after {
	width: 100%;
}

/* =============================================================
   Header background (green gradient)
   ============================================================= */

@media (min-width: 1024px) {
	.led-header-bg {
		height: 120px;
		background: linear-gradient(0deg, var(--color-primary) 45%, var(--color-white) 45%);
	}
}

/* =============================================================
   Header main section
   ============================================================= */

.led-header-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 8px 5%;
	max-width: 1368px;
	margin: 0 auto;
}

@media (min-width: 1024px) {
	.led-header-main {
		width: 80%;
		max-width: 1368px;
		padding: 0;
	}
}

/* =============================================================
   Mobile toggle (hamburger)
   ============================================================= */

.led-header-toggle {
	max-width: 40px;
	width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.led-header-toggle img {
	width: 28px;
	height: 28px;
}

@media (min-width: 1024px) {
	.led-header-toggle {
		display: none;
	}
}

/* =============================================================
   Logo
   ============================================================= */

.led-header-logo {
	flex: 1;
	display: flex;
	justify-content: center;
}

.led-header-logo img {
	max-width: 248px;
	width: 100%;
	margin-top: -5px;
}

@media (min-width: 1024px) {
	.led-header-logo {
		order: 1;
		z-index: 5;
		flex: 0 0 250px;
		height: 68px;
		display: flex;
		align-items: center;
	}

	.led-header-logo img {
		margin-top: -2px;
	}
}

/* =============================================================
   Account + Cart actions
   ============================================================= */

.led-header-actions {
	min-width: 40px;
	display: flex;
	align-items: center;
	gap: 20px;
	margin-inline: 10px;
}

.led-header-account,
.led-header-cart {
	display: flex;
	align-items: center;
	justify-content: center;
}

.led-header-account img {
	display: block;
}

.led-header-cart {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.led-header-cart__icon {
	display: flex;
	line-height: 0;
}

.led-header-cart__icon img {
	display: block;
	width: 23px;
	height: 22px;
}

.led-header-cart__count {
	position: absolute;
	top: -6px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--color-warning);
	color: var(--color-white);
	font-family: var(--font-family-body);
	font-size: 11px;
	font-weight: var(--font-weight-bold, 700);
	line-height: 18px;
	text-align: center;
	pointer-events: none;
}

.led-header-cart__count.is-empty {
	display: none;
}

@media (min-width: 1024px) {
	.led-header-actions {
		order: 4;
		margin-inline: 0;
	}
}

/* =============================================================
   Search bar
   ============================================================= */

.led-header-search {
	flex: 1;
	min-width: 100%;
	padding: 8px 0;
}

.led-header-search__wrapper {
	padding: 0 20px;
	width: 100%;
	border: 1px solid var(--color-gray-200);
	background: var(--color-gray-100);
	border-radius: 24px;
	height: 46px;
	display: flex;
	align-items: center;
}

.led-header-search__wrapper form {
	width: 100%;
}

.led-header-search__input {
	width: 100%;
	background: transparent;
	font-family: var(--font-family-body);
	font-size: var(--font-size-base);
	outline: none;
}

html body .led-header-search__input {
	border: 0;
	background: transparent;
}

.led-header-search__icon {
	flex-shrink: 0;
}

@media (min-width: 1024px) {
	.led-header-search {
		order: 2;
		min-width: unset;
		flex: 1;
		padding: 0 12px;
	}
}

/* =============================================================
   Call button
   ============================================================= */

.led-header-call {
	display: flex;
	align-items: center;
	min-width: 100%;
	padding: 8px 0;
	justify-content: center;
}

.led-header-call__button {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--color-secondary);
	color: var(--color-white);
	padding: 0 6px;
	border-radius: 24px;
	text-decoration: none;
	font-family: var(--font-family-body);
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-bold);
	line-height: 24px;
	white-space: nowrap;
	transition: background-color var(--transition-base), color var(--transition-base);
	width: 100%;
	justify-content: center;
	min-height: 46px;
	box-sizing: border-box;
}

.led-header-call__button:hover {
	background: var(--color-secondary-700);
}

.led-header-call__button svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: currentColor;
}

.led-header-call__text {
	font-weight: var(--font-weight-bold);
	font-family: var(--font-family-body);
}

@media (min-width: 1024px) {
	.led-header-call {
		order: 3;
		min-width: unset;
		padding: 0;
		justify-content: flex-start;
		margin-right: 14px;
	}

	.led-header-call__button {
		width: auto;
		background: transparent;
		color: var(--color-secondary);
		font-size: 18px;
		line-height: 27px;
		min-height: auto;
	}

	.led-header-call__button:hover {
		background: transparent;
		color: var(--color-secondary-500);
	}

	.led-header-call__text {
		font-size: 18px;
		line-height: 27px;
		color: var(--color-secondary);
	}
}

/* =============================================================
   Navigation — top-level menu
   ============================================================= */

.led-header-nav {
	display: none;
	width: 100%;
	position: relative;
}

#led-header-block .led-header-nav.active {
	display: block;
	position: relative;
	top: -58px;
	z-index: 100;
}

.led-header-top-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.led-header-top-menu > .led-header-menu-item--top {
	list-style: none;
}

@media (min-width: 1024px) {
	.led-header-nav {
		order: 5;
		display: flex;
		justify-content: center;
	}

	.led-header-nav.active {
		position: static;
		top: auto;
	}

	.led-header-top-menu {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		position: relative;
		margin: 0 auto;
		width: 100%;
		max-width: 1368px;
		height: 50px;
	}

	.led-header-top-menu > .led-header-menu-item--top {
		flex-shrink: 0;
	}
}

/* =============================================================
   Menu items — top level
   ============================================================= */

.led-header-menu-item--top {
	color: var(--color-white);
	text-decoration: none;
}

.led-header-menu-item--top > .led-header-menu-link {
	display: flex;
	align-items: center;
	color: var(--color-white) !important;
	text-decoration: none;
	font-family: var(--font-family-body);
	font-weight: var(--font-weight-bold);
	line-height: 1.5;
	cursor: pointer;
}

.led-header-menu-item--top > .led-header-menu-link--has-children::after {
	content: '\33';
	font-family: 'ETModules';
	display: inline;
	position: relative;
	top: 1px;
	margin-left: 4px;
}

/* --- Mobile menu item styling --- */
.led-header-nav.active .led-header-menu-item--top {
	padding: 12px 16px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-between;
	border-bottom: 1px solid var(--color-gray-200);
}

.led-header-nav.active .led-header-menu-item--top > .led-header-menu-link {
	font-size: var(--font-size-lg);
	color: var(--color-black) !important;
	min-height: 24px;
}

.led-header-nav.active .led-header-top-menu {
	margin: 0 auto;
	border: 1px solid var(--color-gray-200);
	border-radius: 16px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	position: absolute;
	overflow: hidden;
	background: var(--color-white);
	width: 100%;
}

/* --- Desktop top-level items --- */
@media (min-width: 1024px) {
	.led-header-menu-item--top {
		display: flex;
		align-items: center;
		height: 100%;
		padding: 0 1%;
	}

	.led-header-menu-item--top > .led-header-menu-link {
		font-size: 14px;
		white-space: nowrap;
	}

	.led-header-menu-item--top > .led-header-menu-link:hover {
		opacity: 0.68;
	}

	.led-header-menu-item--top.et-show-dropdown > .led-header-menu-link--has-children::after {
		content: '\32';
	}
}

@media (min-width: 1366px) {
	.led-header-menu-item--top > .led-header-menu-link {
		font-size: var(--font-size-lg);
	}
}

@media (min-width: 1600px) {
	.led-header-menu-item--top:first-of-type {
		margin-left: 25px;
	}

	.led-header-menu-item--top:last-of-type {
		margin-right: 25px;
	}

	.led-header-menu-item--top {
		padding: 10px 15px;
	}
}

/* =============================================================
   Dropdown toggle (mobile chevron)
   ============================================================= */

.led-header-dropdown-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--color-gray-100);
	cursor: pointer;
}

.led-header-dropdown-toggle::after {
	content: '\33';
	font-family: 'ETModules';
	font-size: 16px;
	color: var(--color-primary-400);
	line-height: 44px;
}

.led-header-dropdown-toggle.active::after {
	content: '\32';
}

@media (min-width: 1024px) {
	.led-header-dropdown-toggle {
		display: none;
	}
}

/* =============================================================
   Mega-menu dropdown (columns)
   ============================================================= */

.led-header-dropdown {
	display: none;
	list-style: none;
	padding: 0;
	margin: 0;
}

#led-header-block .led-header-dropdown.active {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	flex: 0 0 100%;
}

.led-header-dropdown .led-header-column ul {
	padding: 0;
    display: flex;
    flex-direction: column;
    row-gap: 12px;
} 

.led-header-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 12px;
	flex: 1 1 100%;
}

.led-header-column:not(:last-of-type) {
	border-bottom: 1px solid var(--color-gray-200);
	padding-bottom: 24px;
}

.led-header-column-title {
	color: var(--color-black) !important;
	font-family: var(--font-family-heading) !important;
	font-size: 20px !important;
	font-weight: var(--font-weight-semibold) !important;
	line-height: 22px !important;
	text-transform: uppercase !important;
}

.led-header-column-link {
	list-style: none;
}

.led-header-column-link a {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: var(--font-size-md);
	color: var(--color-black) !important;
	font-weight: var(--font-weight-normal);
	font-family: var(--font-family-body);
	line-height: 22.5px;
	min-height: 24px;
	white-space: nowrap;
	text-decoration: none;
}

.led-header-column-link a img {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.led-header-column-link a:hover {
	opacity: 0.68;
}

/* --- Desktop mega-menu dropdown --- */
@media (min-width: 600px) {
	.led-header-column:not(:last-of-type) {
		border: none;
	}

	.led-header-column {
		flex: unset;
	}
}

@media (min-width: 1024px) {
	.led-header-dropdown {
		border-radius: 18px;
		overflow: hidden;
		width: 100%;
		gap: 3%;
		padding: 24px;
		position: absolute;
		background: var(--color-white);
		z-index: 1000;
		left: 0;
		top: 46px;
		list-style: none;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	}

	.led-header-dropdown.active {
		display: flex;
	}

	.led-header-menu-item--top:hover .led-header-dropdown {
		transition: all 0.2s ease-in-out;
		display: flex;
	}

	#led-header-block .led-header-menu-item--top:hover .led-header-dropdown {
		display: flex;
	}

	.led-header-column-link a {
		font-size: var(--font-size-md);
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.led-header-nav.active .led-header-dropdown {
		gap: 3%;
	}
}

@media (max-width: 1023px) {
	.led-header-nav.active .led-header-dropdown .led-header-column {
		gap: 16px;
		padding: 16px;
	}

	.led-header-nav.active .led-header-dropdown .led-header-column-title {
		font-size: 18px !important;
		line-height: 20px !important;
	}

	.led-header-nav.active .led-header-dropdown .led-header-column-link a {
		font-size: var(--font-size-md) !important;
		line-height: 19.5px !important;
	}
}

/* =============================================================
   Resources / Contact dropdowns (single column, optional icons)
   ============================================================= */

.led-header-dropdown--resources,
.led-header-dropdown--contact {
	flex-direction: column;
}

.led-header-dropdown--resources .led-header-column,
.led-header-dropdown--contact .led-header-column {
	width: 100%;
}

@media (min-width: 1024px) {
	.led-header-dropdown--resources,
	.led-header-dropdown--contact {
		min-width: 200px;
		width: auto;
		padding: 0;
		left: unset;
	}

	.led-header-dropdown--resources .led-header-column,
	.led-header-dropdown--contact .led-header-column {
		padding: 24px;
	}
}

/* =============================================================
   View all links inside columns
   ============================================================= */

.led-header-column-link.view-all a,
.led-header-column-link a.view-all {
	font-size: var(--font-size-md) !important;
	font-weight: var(--font-weight-semibold) !important;
	color: var(--color-secondary) !important;
	text-decoration: underline;
	font-family: var(--font-family-body);
	line-height: 23px;
	min-height: 24px;
}

@media (max-width: 1023px) {
	.led-header-column-link.view-all a,
	.led-header-column-link a.view-all {
		font-size: var(--font-size-md) !important;
		line-height: 23px !important;
	}
}
