/* =========================================================
   MEGA MENU CSS
   assets/css/navigation/mega-menu.css
   ========================================================= */

/* Desktop Navigation */

.vb-header-navline {
	position: relative;
	z-index: 1;
	background: var(--vb-surface-soft);
	border-top: 1px solid var(--vb-border);
	border-bottom: 1px solid var(--vb-border-strong);
}

.vb-header-navline::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: linear-gradient(
		to right,
		transparent,
		var(--vb-border-soft),
		transparent
	);
}

.vb-header-navline-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: var(--vb-space-2xl);
	min-height: 32px;
}

.vb-nav {
	display: flex;
	flex: 1;
	align-items: center;
	min-width: 0;
}

.vb-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
}

.vb-menu .sub-menu {
	display: none;
}

.vb-menu > li {
	display: flex;
	align-items: center;
}

.vb-menu > li > a {
	letter-spacing: -.01em;
}

.vb-menu a {
	display: flex;
	align-items: center;
	min-height: 36px;
	color: var(--vb-action-active);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0;
	white-space: nowrap;
	text-decoration: none !important;
	transition:
		color var(--vb-transition),
		background var(--vb-transition);
}

.vb-menu a:hover,
.vb-menu a:focus {
	color: var(--vb-action);
	text-decoration: none !important;
}

.vb-header-whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	padding: 0 14px;
	background: var(--vb-action-soft);
	color: var(--vb-action-active);
	border-radius: var(--vb-radius-pill);
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
	text-decoration: none !important;
	transition:
		background var(--vb-transition),
		color var(--vb-transition);
}

.vb-header-whatsapp:hover,
.vb-header-whatsapp:focus {
	background: var(--vb-info-soft);
	color: var(--vb-action-active);
}


/* Mega Menu */

.vb-menu-item {
	position: static;
}

.vb-menu-item > a {
	position: relative;
}

.vb-menu-item > a::before {
	content: "";
	position: absolute;
	top: 100%;
	left: -24px;
	right: -24px;
	height: 24px;
}

.vb-menu-item > a::after {
	content: "";
	position: absolute;
	bottom: 6px;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--vb-action);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--vb-transition);
}

.vb-menu-item:hover > a::after,
.vb-menu-item:focus-within > a::after {
	transform: scaleX(1);
}

.vb-mega-menu {
	position: absolute;
	top: 100%;
	left: 32px;
	z-index: 100;
	width: min(920px, calc(100% - 64px));
	padding-top: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0) scale(.985);
	pointer-events: none;
	transition:
		opacity var(--vb-transition),
		transform var(--vb-transition),
		visibility var(--vb-transition);
	will-change: opacity, transform;
}

.vb-mega-menu::before {
	content: "";
	position: absolute;
	top: -18px;
	left: 0;
	right: 0;
	height: 18px;
}

.vb-has-mega:hover .vb-mega-menu,
.vb-has-mega:focus-within .vb-mega-menu,
.vb-mega-menu:hover {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.vb-mega-menu,
.vb-mega-panel,
.vb-header-mega {
	position: absolute;
	z-index: 1100;
}

.vb-menu a:focus-visible,
.vb-header-whatsapp:focus-visible,
.vb-action-btn:focus-visible,
.vb-header-search button[type="submit"]:focus-visible,
.vb-mega-btn:focus-visible {
	outline: 3px solid rgba(64, 148, 221, .35);
	outline-offset: 3px;
}

.vb-mega-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr 300px;
	gap: 28px;
	padding: 30px;
	overflow: hidden;
	isolation: isolate;
	background: var(--vb-surface);
	border: 1px solid var(--vb-border-strong);
	border-radius: var(--vb-radius-lg);
	box-shadow:
		0 18px 40px rgba(15, 23, 42, .12),
		0 4px 10px rgba(15, 23, 42, .06);
}

.vb-mega-grid::before {
	content: "";
	position: absolute;
	top: -8px;
	width: 16px;
	height: 16px;
	background: var(--vb-surface);
	border-top: 1px solid var(--vb-border-soft);
	border-left: 1px solid var(--vb-border-soft);
	transform: rotate(45deg);
}

.vb-menu-item:nth-child(1) .vb-mega-grid::before {
	left: 36px;
}

.vb-menu-item:nth-child(2) .vb-mega-grid::before {
	left: 144px;
}

.vb-menu-item:nth-child(3) .vb-mega-grid::before {
	left: 270px;
}

.vb-menu-item:nth-child(4) .vb-mega-grid::before {
	left: 390px;
}

.vb-menu-item:nth-child(5) .vb-mega-grid::before {
	left: 480px;
}

.vb-mega-grid::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .8),
		inset 0 -1px 0 rgba(15, 23, 42, .03);
	pointer-events: none;
}

.vb-mega-grid-parts {
	grid-template-columns: 1fr 1.15fr 320px;
}

.vb-mega-grid-payment,
.vb-mega-grid-accessories,
.vb-mega-grid-help {
	grid-template-columns: 1fr 1fr 320px;
}

.vb-mega-title {
	display: flex;
	align-items: center;
	gap: var(--vb-space-sm);
	margin-bottom: 14px;
	color: var(--vb-text);
	font-size: var(--vb-text-xs);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.vb-mega-col ul {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vb-mega-col li {
	margin: 0;
}

.vb-mega-col a {
	display: flex;
	align-items: center;
	min-height: 40px;
	min-width: 0;
	padding: 0 14px;
	background: transparent;
	color: var(--vb-action-active);
	border: 0;
	border-radius: var(--vb-radius-md);
	font-size: var(--vb-text-sm);
	font-weight: 800;
	letter-spacing: -.01em;
	gap: 10px;
	position: relative;
	text-decoration: none !important;
	transition:
		background var(--vb-transition-fast),
		border-color var(--vb-transition-fast),
		color var(--vb-transition-fast),
		transform var(--vb-transition-fast);
}

.vb-mega-col a span:not(.vb-mega-icon) {
	min-width: 0;
}

.vb-mega-col a:hover,
.vb-mega-col a:focus-visible {
	z-index: 2;
	background: var(--vb-info-soft);
	color: var(--vb-action);
	transform: translateX(2px);
}

.vb-mega-col a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	opacity: 0;
	box-shadow: inset 0 0 0 1px var(--vb-border-soft);
	transition: opacity var(--vb-transition-fast);
}

.vb-mega-col a:hover::after,
.vb-mega-col a:focus-visible::after {
	opacity: 1;
}

.vb-mega-highlight {
	position: relative;
	overflow: hidden;
	padding: 24px;
	background: linear-gradient(
		180deg,
		var(--vb-info-soft) 0%,
		var(--vb-surface-soft) 100%
	);
	border: 1px solid var(--vb-info-border);
	border-radius: var(--vb-radius-xl);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .7),
		var(--vb-shadow-soft);
}

.vb-mega-highlight::before {
	content: "";
	position: absolute;
	top: -80px;
	right: -80px;
	width: 180px;
	height: 180px;
	background: radial-gradient(
		circle,
		rgba(64, 148, 221, .10) 0%,
		rgba(64, 148, 221, 0) 72%
	);
	pointer-events: none;
}

.vb-mega-highlight p {
	position: relative;
	z-index: 1;
	margin: 0 0 18px;
	color: var(--vb-text-muted);
	font-size: var(--vb-text-sm);
	line-height: 1.55;
}

.vb-mega-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 46px;
	padding: 0 18px;
	text-decoration: none !important;
}

.vb-mega-btn,
.vb-mega-btn:visited,
.vb-mega-btn:focus,
.vb-mega-btn:active {
	background: var(--vb-action) !important;
	color: var(--vb-action-text) !important;
	border: 0 !important;
	border-radius: var(--vb-radius-md);
	box-shadow: 0 10px 24px rgba(64, 148, 221, .20);
	font-size: var(--vb-text-sm);
	font-weight: 800;
}

.vb-mega-btn:hover {
	background: var(--vb-action-hover) !important;
	color: var(--vb-action-text) !important;
	box-shadow: 0 14px 30px rgba(64, 148, 221, .26);
	transform: translateY(-1px);
}

.vb-mega-icon {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	color: var(--vb-text-muted);
	transition:
		color var(--vb-transition-fast),
		opacity var(--vb-transition-fast);
	opacity: .9;
}

.vb-mega-col a:hover .vb-mega-icon,
.vb-mega-col a:focus-visible .vb-mega-icon {
	color: var(--vb-action-active);
	opacity: 1;
}

.vb-mega-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

/* Prevent Elementor link styling in Vendbar header */

.vb-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
}

.vb-header a,
.vb-header a:hover,
.vb-header a:focus,
.vb-header a:active,
.vb-header a:visited {
	text-decoration: none !important;
}

.vb-header .vb-action-btn,
.vb-header .vb-action-btn:hover,
.vb-header .vb-action-btn:focus,
.vb-header .vb-action-btn:active,
.vb-header .vb-action-btn:visited {
	text-decoration: none !important;
	color: var(--vb-action-active) !important;
}

.vb-header .vb-cart-btn,
.vb-header .vb-cart-btn:hover,
.vb-header .vb-cart-btn:focus,
.vb-header .vb-cart-btn:active,
.vb-header .vb-cart-btn:visited {
	text-decoration: none !important;
	color: var(--vb-action-active) !important;
}

.vb-header .vb-header-help,
.vb-header .vb-header-help:hover,
.vb-header .vb-header-help:focus,
.vb-header .vb-header-help:active,
.vb-header .vb-header-help:visited {
	text-decoration: none !important;
	color: var(--vb-action-active) !important;
}