/**
 * @package ProMart
 */

/* ── Parent trigger ── */
#primary-menu > li.promart-has-mega-menu {
	position: static;
}

#primary-menu > li.promart-has-mega-menu > .promart-mega-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

#primary-menu > li.promart-has-mega-menu > .promart-mega-trigger .promart-mega-trigger__icon {
	font-size: 1rem;
	transition: transform 0.2s ease;
}

#primary-menu > li.promart-has-mega-menu > .promart-mega-trigger .promart-mega-trigger__grid-icon {
	font-size: 1.1rem;
	color: #d39d2b;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	#primary-menu > li.promart-has-mega-menu > .promart-mega-trigger .promart-mega-trigger__icon {
		display: none;
	}
}

#primary-menu > li.promart-has-mega-menu.is-open > .promart-mega-trigger .promart-mega-trigger__icon,
#primary-menu > li.promart-has-mega-menu:hover > .promart-mega-trigger .promart-mega-trigger__icon {
	transform: rotate(180deg);
}

/* ── Panel container ── */
.promart-mega-panel {
	display: none;
	position: absolute;
	right: 0;
	left: 0;
	top: 100%;
	z-index: 110;
	background: #fff;
	color: #0d3155;
	border-top: 3px solid #d39d2b;
	box-shadow: 0 18px 40px rgba(13, 49, 85, 0.14);
}

@media (min-width: 1024px) {
	#primary-menu > li.promart-has-mega-menu.is-open .promart-mega-panel::before,
	#primary-menu > li.promart-has-mega-menu:hover .promart-mega-panel::before,
	#primary-menu > li.promart-has-mega-menu:focus-within .promart-mega-panel::before {
		content: '';
		position: absolute;
		right: 0;
		left: 0;
		bottom: 100%;
		height: 3.5rem;
	}
}

#site-navigation {
	position: relative;
	overflow: visible;
}

#primary-menu > li.promart-has-mega-menu.is-open .promart-mega-panel,
#primary-menu > li.promart-has-mega-menu:hover .promart-mega-panel,
#primary-menu > li.promart-has-mega-menu:focus-within .promart-mega-panel {
	display: block;
}

#primary-menu > li.promart-has-mega-menu.is-open .promart-mega-panel[hidden],
#primary-menu > li.promart-has-mega-menu:hover .promart-mega-panel[hidden],
#primary-menu > li.promart-has-mega-menu:focus-within .promart-mega-panel[hidden] {
	display: block;
}

.promart-mega-panel__inner {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 1.25rem 1rem 1.5rem;
	display: grid;
	grid-template-columns: minmax(220px, 260px) 1fr;
	grid-template-rows: 1fr;
	gap: 0;
	align-items: stretch;
	min-height: 380px;
}

/* ── Level 2 sidebar (right in RTL) ── */
.promart-mega-sidebar {
	border-inline-start: 1px solid #e2e5ea;
	padding-inline-start: 1rem;
	grid-column: 1;
	grid-row: 1;
}

.promart-mega-sidebar__title {
	margin: 0 0 0.85rem;
	font-size: 0.72rem;
	font-weight: 700;
	color: #717171;
}

.promart-mega-l2 {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.promart-mega-l2__item {
	margin: 0;
	padding: 0;
}

.promart-mega-l2__btn {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.65rem 0.75rem;
	border: none;
	border-radius: 0.5rem;
	background: transparent;
	color: #0d3155;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	text-align: right;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.promart-mega-l2__btn:hover,
.promart-mega-l2__btn:focus,
.promart-mega-l2__item.is-active .promart-mega-l2__btn {
	background: #f3f3f3;
	color: #0d3155;
	text-decoration: none;
}

.promart-mega-l2__btn:visited {
	color: #0d3155;
	text-decoration: none;
}

.promart-mega-l2__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	max-width: 24px;
	max-height: 24px;
	overflow: hidden;
}

.promart-mega-l2__icon-img {
	display: block;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px;
	min-height: 24px;
	max-width: 24px;
	max-height: 24px;
	object-fit: contain;
	object-position: center;
	flex-shrink: 0;
}

.promart-mega-l2__label {
	flex: 1;
	min-width: 0;
	text-align: right;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.promart-mega-l2__chevron {
	font-size: 1rem;
	color: #9ca3af;
	flex-shrink: 0;
}

/* Level 2 group (columns + banner) */
.promart-mega-group {
	display: none;
	grid-column: 2;
	grid-row: 1;
	grid-template-columns: 1fr minmax(180px, 220px);
	gap: 1.25rem;
	align-items: start;
	padding-inline-end: 1rem;
}

.promart-mega-group.is-active {
	display: grid;
}

/* ── Banner (far left in RTL) ── */
.promart-mega-banner {
	position: relative;
	border-radius: 0.65rem;
	overflow: hidden;
	height: 320px;
	min-height: 320px;
	max-height: 320px;
	align-self: start;
	background: #0d3155;
	grid-column: 2;
}

.promart-mega-banner__image {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
	object-position: center;
}

.promart-mega-banner__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.25rem 1rem;
	background: linear-gradient(180deg, rgba(13, 49, 85, 0.82) 0%, rgba(13, 49, 85, 0.2) 45%, rgba(13, 49, 85, 0.88) 100%);
}

.promart-mega-banner__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.5;
	color: #fff;
}

.promart-mega-banner__subtitle {
	margin: 0.35rem 0 0;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.6;
}

.promart-mega-banner__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	align-self: center;
	width: 100%;
	padding: 0.55rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 0.45rem;
	background: rgba(13, 49, 85, 0.55);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.promart-mega-banner__btn .material-symbols-outlined {
	color: #fff;
	font-size: 1rem;
}

.promart-mega-banner__btn:hover {
	background: #d39d2b;
	border-color: #d39d2b;
	color: #0d3155;
}

.promart-mega-banner__btn:hover .material-symbols-outlined {
	color: #0d3155;
}

span.promart-mega-banner__btn.promart-menu-item--coming-soon {
	cursor: default;
	pointer-events: none;
	opacity: 0.92;
}

/* ── Level 3 columns (center — adjacent to sidebar in RTL) ── */
.promart-mega-content {
	min-width: 0;
	grid-column: 1;
}

.promart-mega-content:only-child {
	grid-column: 1 / -1;
}

.promart-mega-columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 1.5rem;
	align-items: start;
}

.promart-mega-column {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: auto;
	padding: 0.25rem 0.15rem;
}

.promart-mega-column + .promart-mega-column {
	position: relative;
}

.promart-mega-column + .promart-mega-column::before {
	content: "";
	position: absolute;
	top: 0.35rem;
	bottom: 0.35rem;
	inset-inline-start: -0.75rem;
	width: 1px;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(13, 49, 85, 0.08) 12%,
		rgba(13, 49, 85, 0.14) 50%,
		rgba(13, 49, 85, 0.08) 88%,
		transparent 100%
	);
	pointer-events: none;
}

.promart-mega-column__body {
	flex: 1;
}

.promart-mega-column__title {
	margin: 0 0 0.65rem;
	font-size: 0.82rem;
	font-weight: 800;
	color: #0d3155;
	line-height: 1.45;
}

.promart-mega-column__title a,
.promart-mega-column__title .promart-menu-item--coming-soon {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}

.promart-mega-column__title a:hover {
	color: #0d3155;
}

.promart-mega-column__title .promart-menu-item--coming-soon {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
	cursor: default;
}

.promart-mega-column__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.promart-mega-column__list a,
.promart-mega-column__list .promart-menu-item--coming-soon {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-size: 0.78rem;
	font-weight: 400;
	color: #717171;
	text-decoration: none;
	transition: color 0.18s ease;
	line-height: 1.45;
}

.promart-mega-column__list a:hover {
	color: #0d3155;
}

.promart-mega-column__list .promart-menu-item--coming-soon {
	cursor: default;
}

.promart-mega-column__view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	margin-top: 0.85rem;
	padding: 0.4rem 0.65rem;
	font-size: 0.72rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 0.35rem;
	background: #0d3155;
	transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.promart-mega-column__view-all:hover {
	color: #0d3155;
	border-color: #d39d2b;
	background: #d39d2b;
}

.promart-mega-column__view-all .material-symbols-outlined {
	font-size: 0.95rem;
	color: #d39d2b;
}

.promart-mega-column__view-all:hover .material-symbols-outlined {
	color: #0d3155;
}

span.promart-mega-column__view-all.promart-menu-item--coming-soon {
	cursor: default;
	opacity: 0.9;
	pointer-events: none;
}

#masthead .promart-mega-panel {
	color: #0d3155;
	isolation: isolate;
}

#masthead .promart-mega-panel a {
	text-decoration: none;
}

#masthead .promart-mega-sidebar__title {
	color: #717171;
}

#masthead .promart-mega-l2__btn {
	appearance: none;
	-webkit-appearance: none;
	border: none;
	background: transparent;
	color: #0d3155;
	font-family: inherit;
	text-decoration: none;
}

#masthead .promart-mega-l2__btn:hover,
#masthead .promart-mega-l2__btn:focus,
#masthead .promart-mega-l2__item.is-active .promart-mega-l2__btn {
	background: #f3f3f3;
	color: #0d3155;
	text-decoration: none;
}

#masthead .promart-mega-l2__btn:visited {
	color: #0d3155;
	text-decoration: none;
}

#masthead .promart-mega-l2__label {
	color: #0d3155;
}

#masthead .promart-mega-l2__chevron {
	color: #9ca3af;
}

#masthead .promart-mega-banner__title {
	color: #fff;
}

#masthead .promart-mega-banner__subtitle {
	color: rgba(255, 255, 255, 0.85);
}

#masthead .promart-mega-column__title,
#masthead .promart-mega-column__title a,
#masthead .promart-mega-column__title .promart-menu-item--coming-soon {
	color: #0d3155;
}

#masthead .promart-mega-column__title a:hover {
	color: #0d3155;
}

#masthead .promart-mega-column__list a,
#masthead .promart-mega-column__list .promart-menu-item--coming-soon {
	color: #717171;
}

#masthead .promart-mega-column__list a:hover {
	color: #0d3155;
}

#masthead .promart-mega-column__view-all {
	color: #fff;
	background: #0d3155;
	border-color: rgba(255, 255, 255, 0.35);
}

#masthead .promart-mega-column__view-all .material-symbols-outlined {
	color: #d39d2b;
}

#masthead .promart-mega-column__view-all:hover {
	color: #0d3155;
	background: #d39d2b;
	border-color: #d39d2b;
}

#masthead .promart-mega-column__view-all:hover .material-symbols-outlined {
	color: #0d3155;
}

#masthead .promart-mega-banner__btn {
	color: #fff;
	text-align: center;
	background: rgba(13, 49, 85, 0.55);
	border-color: rgba(255, 255, 255, 0.85);
}

#masthead .promart-mega-banner__btn .material-symbols-outlined {
	color: #fff;
}

#masthead .promart-mega-banner__btn:hover {
	color: #0d3155;
	background: #d39d2b;
	border-color: #d39d2b;
}

#masthead .promart-mega-banner__btn:hover .material-symbols-outlined {
	color: #0d3155;
}

#masthead .promart-mega-panel img.promart-mega-banner__image {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
	object-position: center;
	box-shadow: none;
}

#masthead .promart-mega-panel img.promart-mega-l2__icon-img {
	position: static;
	display: block;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px;
	min-height: 24px;
	max-width: 24px;
	max-height: 24px;
	object-fit: contain;
	object-position: center;
	box-shadow: none;
}

#masthead .promart-mega-banner {
	height: 320px;
	min-height: 320px;
	max-height: 320px;
	align-self: start;
}

#masthead .promart-mega-banner__overlay {
	position: absolute;
	inset: 0;
	height: auto;
	min-height: 0;
}

#masthead .promart-mega-group {
	align-items: start;
}

@media (min-width: 1024px) {
	.promart-mega-backdrop {
		position: fixed;
		inset: 0;
		z-index: 49;
		background: rgba(0, 17, 38, 0.48);
		backdrop-filter: blur(4px);
		-webkit-backdrop-filter: blur(4px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition:
			opacity 0.28s ease,
			visibility 0.28s ease;
	}

	body:has(#masthead .promart-has-mega-menu.is-open) .promart-mega-backdrop,
	body:has(#masthead .promart-has-mega-menu:hover) .promart-mega-backdrop,
	body:has(#masthead .promart-has-mega-menu:focus-within) .promart-mega-backdrop {
		opacity: 1;
		visibility: visible;
	}
}

@media (max-width: 1023px) {
	.promart-mega-panel {
		display: none !important;
	}

	.promart-mega-backdrop {
		display: none;
	}
}

@media (min-width: 1024px) {
	.promart-mega-panel {
		border-bottom-left-radius: 0.5rem;
		border-bottom-right-radius: 0.5rem;
	}

	#primary-menu > li.promart-has-mega-menu {
		position: static;
	}

	#primary-menu {
		overflow: visible;
	}

	.promart-mega-panel__inner {
		grid-template-columns: minmax(220px, 260px) 1fr;
	}

	.promart-mega-group {
		grid-template-columns: 1fr 180px;
	}
}

@media (min-width: 1200px) {
	.promart-mega-group {
		grid-template-columns: 1fr 220px;
	}
}

@media (max-width: 1199px) {
	.promart-mega-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem 1.5rem;
	}

	.promart-mega-column + .promart-mega-column::before {
		display: none;
	}

	.promart-mega-column:nth-child(even) {
		position: relative;
	}

	.promart-mega-column:nth-child(even)::before {
		content: "";
		display: block;
		position: absolute;
		top: 0.35rem;
		bottom: 0.35rem;
		inset-inline-start: -0.75rem;
		width: 1px;
		background: linear-gradient(
			180deg,
			transparent 0%,
			rgba(13, 49, 85, 0.08) 12%,
			rgba(13, 49, 85, 0.14) 50%,
			rgba(13, 49, 85, 0.08) 88%,
			transparent 100%
		);
		pointer-events: none;
	}
}

@media (max-width: 1023px) {
	.promart-mega-columns {
		grid-template-columns: 1fr;
	}
}

/* ── Coming soon badge ── */
.promart-coming-soon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin: 0;
	padding: 0.08rem 0.38rem;
	font-size: 0.58rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0;
	color: #0a2540;
	background: #f1c40f;
	border-radius: 999px;
	white-space: nowrap;
	vertical-align: middle;
}

#primary-menu .promart-coming-soon-badge {
	background: #d39d2b;
	color: #0a2540;
	font-size: 0.62rem;
}

#primary-menu > li > span.promart-menu-item--coming-soon {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	cursor: default;
}

#primary-menu > li.promart-has-mega-menu > .promart-mega-trigger.promart-menu-item--coming-soon {
	cursor: default;
}
