/* LAM3D Header 1.0.2: header toolbar + SHOP mega menu.
   The dreamy sky and clouds of the branding layer live in Customizer «Additional CSS». */

:root {
	--l3h-deep: #32145F;
	--l3h-pink: #ED43A9;
	--l3h-pink-deep: #CF2C8E;
	--l3h-purple: #A66AE8;
	--l3h-lavender: #F4ECFF;
	--l3h-sky: #45AEDD;
	--l3h-line: rgba(166, 106, 232, .18);
	--l3h-shadow: 0 10px 28px rgba(50, 20, 95, .09);
	--l3h-pill-shadow: 0 6px 16px rgba(237, 67, 169, .32);
}

/* ---------- Every header (desktop, sticky copy, phone) ---------- */
body .whb-main-header .wd-tools-element {
	--wd-header-el-color: var(--l3h-deep);
	--wd-header-el-color-hover: var(--l3h-pink);
}
body .whb-main-header .wd-tools-element .wd-tools-count {
	background-color: var(--l3h-sky);
	color: #FFFFFF;
	box-shadow: 0 2px 6px rgba(69, 174, 221, .35);
}
body .whb-main-header .wd-nav-main {
	--nav-color: var(--l3h-deep);
	--nav-color-hover: var(--l3h-pink);
	--nav-color-active: var(--l3h-deep);
	--nav-gap: 6px;
	--nav-pd: 0 16px;
}
body .whb-main-header .wd-nav-main > li > a {
	min-height: 40px;
	border-radius: 999px;
	transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
body .whb-main-header .wd-nav-main > li:not(.lam3d-shop-item) > a:hover {
	background-color: rgba(237, 67, 169, .08);
}
/* Current page: small pink bar under the word. */
body .whb-main-header .wd-nav-main > li.current-menu-item:not(.lam3d-shop-item) > a {
	background-image: linear-gradient(var(--l3h-pink), var(--l3h-pink));
	background-size: 18px 3px;
	background-position: 50% calc(100% - 5px);
	background-repeat: no-repeat;
}

/* SHOP: the highlighted pink pill. Stays highlighted while its menu is open. */
body .whb-main-header .wd-nav-main > li.lam3d-shop-item > a {
	--nav-pd: 0 16px 0 20px;
	gap: 8px;
	min-height: 38px;
	color: #FFFFFF;
	background: linear-gradient(135deg, var(--l3h-pink) 0%, var(--l3h-pink-deep) 100%);
	box-shadow: var(--l3h-pill-shadow);
}
body .whb-main-header .wd-nav-main > li.lam3d-shop-item > a:hover,
body .whb-main-header .wd-nav-main > li.lam3d-shop-item.is-open > a {
	color: #FFFFFF;
	background: linear-gradient(135deg, #F25BB8 0%, #C02383 100%);
	box-shadow: 0 8px 22px rgba(237, 67, 169, .42);
}
body .whb-main-header .wd-nav-main > li.lam3d-shop-item > a::after {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	margin: -4px 0 0;
	border: 0 solid currentColor;
	border-right-width: 2px;
	border-bottom-width: 2px;
	transform: rotate(45deg);
	transition: transform .2s ease, margin .2s ease;
	font-family: inherit;
	position: static;
	opacity: 1;
	background: none;
}
body .whb-main-header .wd-nav-main > li.lam3d-shop-item.is-open > a::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

/* Keyboard focus, everywhere in the header. */
.whb-main-header a:focus-visible,
.whb-main-header button:focus-visible,
.lam3d-mega a:focus-visible {
	outline: 2px solid var(--l3h-purple);
	outline-offset: 2px;
}

/* ---------- Desktop toolbar (WoodMart shows the menu row from 1025px) ---------- */
@media (min-width: 1025px) {
	/* Layer A / layer B: the toolbar card replaces the dashed line. */
	body .whb-main-header .whb-general-header-inner {
		border-bottom-color: transparent;
	}

	body .whb-header-bottom .whb-header-bottom-inner {
		position: relative;
		padding-inline: 8px;
	}
	body .whb-header-bottom .whb-header-bottom-inner::before {
		content: "";
		position: absolute;
		top: 5px;
		bottom: 5px;
		left: 0;
		right: 0;
		z-index: -1;
		border-radius: 999px;
		background: rgba(255, 255, 255, .7);
		border: 1px solid var(--l3h-line);
		box-shadow: var(--l3h-shadow);
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
		pointer-events: none;
	}

	/* Icon groups: one white pill on each side with a thin separator.
	   WoodMart keeps the side columns equal, so the menu stays centred on the page. */
	body .whb-header-bottom :is(.whb-col-left, .whb-col-right) {
		filter: drop-shadow(0 4px 10px rgba(50, 20, 95, .10));
	}
	body .whb-header-bottom :is(.whb-col-left, .whb-col-right) > :is(.wd-tools-element, .whb-space-element, .wd-header-divider) {
		display: flex;
		align-items: center;
		align-self: center;
		height: 40px;
		background: #FFFFFF;
	}
	body .whb-header-bottom :is(.wd-header-wishlist, .wd-header-my-account) {
		border-radius: 999px 0 0 999px;
		padding-left: 6px;
	}
	body .whb-header-bottom :is(.wd-header-search, .wd-header-cart) {
		border-radius: 0 999px 999px 0;
		padding-right: 6px;
	}
	body .whb-header-bottom .wd-header-divider::before,
	body .whb-header-bottom .wd-header-divider::after {
		border-color: var(--l3h-line);
	}
}

/* ---------- SHOP mega menu (desktop only) ---------- */
.lam3d-shop-item {
	position: relative;
}
.lam3d-mega {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	z-index: 60;
	width: min(860px, calc(100vw - 48px));
	transform: translate(-50%, 8px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	text-align: start;
	text-transform: none;
	letter-spacing: normal;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.35;
	cursor: auto;
}
.lam3d-mega--cols-3 {
	width: min(1040px, calc(100vw - 48px));
}
/* Invisible bridge so the menu stays open while the pointer moves down from SHOP. */
.lam3d-mega::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -16px;
	height: 16px;
}
.lam3d-shop-item.is-open > .lam3d-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
	transition-delay: 0s;
}
.lam3d-mega__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 18px;
	padding: 18px;
	background: #FFFFFF;
	border: 1px solid rgba(166, 106, 232, .14);
	border-radius: 28px;
	box-shadow: 0 24px 60px rgba(50, 20, 95, .16), 0 4px 14px rgba(166, 106, 232, .12);
}
.lam3d-mega ul,
.lam3d-mega li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lam3d-mega__cats {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.lam3d-mega__eyebrow {
	margin: 2px 10px 10px;
	color: var(--l3h-purple);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.lam3d-mega__scroll {
	max-height: min(440px, calc(100vh - 230px));
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: #E2D2F8 transparent;
}
.lam3d-mega__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2px 10px;
	align-items: start;
}
.lam3d-mega--cols-2 .lam3d-mega__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lam3d-mega--cols-3 .lam3d-mega__list {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lam3d-mega .lam3d-mega__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 6px 10px;
	border-radius: 16px;
	color: var(--l3h-deep);
	font-size: 15px;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.lam3d-mega .lam3d-mega__link:hover,
.lam3d-mega .lam3d-mega__link:focus-visible {
	background-color: var(--l3h-lavender);
	color: var(--l3h-pink);
}
.lam3d-mega__icon {
	display: grid;
	place-items: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	overflow: hidden;
	border-radius: 13px;
	background: var(--l3h-tint, #F4ECFF);
	color: var(--l3h-purple);
}
.lam3d-mega__icon--img {
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px rgba(166, 106, 232, .14);
}
.lam3d-mega__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.lam3d-mega__svg {
	width: 20px;
	height: 20px;
}
.lam3d-mega__name {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}
.lam3d-mega__arrow {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: #CDB6F0;
	transition: transform .15s ease, color .15s ease;
}
.lam3d-mega__link:hover .lam3d-mega__arrow,
.lam3d-mega__link:focus-visible .lam3d-mega__arrow {
	color: var(--l3h-pink);
	transform: translateX(2px);
}
.lam3d-mega .lam3d-mega__sub {
	margin: 0 0 6px 60px;
	border-left: 2px solid var(--l3h-lavender);
}
.lam3d-mega .lam3d-mega__sub .lam3d-mega__sub {
	margin: 0 0 2px 12px;
}
.lam3d-mega .lam3d-mega__sublink {
	display: block;
	padding: 5px 10px;
	border-radius: 0 10px 10px 0;
	color: #5E5870;
	font-size: 14px;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.lam3d-mega .lam3d-mega__sublink:hover,
.lam3d-mega .lam3d-mega__sublink:focus-visible {
	background-color: #FFF2F8;
	color: var(--l3h-pink);
}

/* Promotional panel */
.lam3d-mega__promo {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	background: linear-gradient(160deg, #F4ECFF 0%, #FFE6F3 100%);
}
.lam3d-mega__promo::before,
.lam3d-mega__promo::after {
	content: "";
	position: absolute;
	pointer-events: none;
	border-radius: 999px;
	background: #FFFFFF;
	opacity: .85;
}
.lam3d-mega__promo::before {
	left: -18px;
	bottom: -22px;
	width: 120px;
	height: 56px;
	box-shadow: 52px -10px 0 -6px #FFFFFF;
}
.lam3d-mega__promo::after {
	right: 14px;
	top: 12px;
	width: 46px;
	height: 18px;
	opacity: .7;
	box-shadow: 14px -6px 0 -2px #FFFFFF;
}
.lam3d-mega .lam3d-mega__promo-link {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	min-height: 280px;
	padding: 14px;
	color: var(--l3h-deep);
	text-decoration: none;
}
.lam3d-mega__promo-media {
	display: grid;
	flex: 1 1 auto;
	place-items: center;
	min-height: 170px;
	overflow: hidden;
	border-radius: 16px;
}
.lam3d-mega__promo-img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 250px;
	object-fit: cover;
	border-radius: 16px;
	transition: transform .35s ease;
}
.lam3d-mega__promo-link:hover .lam3d-mega__promo-img {
	transform: scale(1.03);
}
.lam3d-mega__promo-media--placeholder {
	background: rgba(255, 255, 255, .6);
}
.lam3d-mega__promo-logo {
	max-width: 70%;
	max-height: 120px;
	object-fit: contain;
}
.lam3d-mega__promo-name {
	color: var(--l3h-deep);
	font-size: 28px;
}
.lam3d-mega__promo-title {
	font-size: 16px;
	line-height: 1.3;
}
.lam3d-mega__shop-all {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--l3h-pink) 0%, var(--l3h-pink-deep) 100%);
	box-shadow: var(--l3h-pill-shadow);
	color: #FFFFFF;
	font-size: 14px;
	letter-spacing: .02em;
	text-transform: uppercase;
	transition: box-shadow .2s ease;
}
.lam3d-mega__promo-link:hover .lam3d-mega__shop-all,
.lam3d-mega__promo-link:focus-visible .lam3d-mega__shop-all {
	box-shadow: 0 8px 22px rgba(237, 67, 169, .42);
}
.lam3d-mega__shop-all-arrow {
	width: 16px;
	height: 16px;
}

@media (min-width: 1025px) and (max-width: 1199px) {
	.lam3d-mega__inner {
		grid-template-columns: minmax(0, 1fr) 220px;
	}
}

/* The desktop panel never shows on phones and tablets: there SHOP opens inside the mobile menu. */
@media (max-width: 1024px) {
	.lam3d-mega {
		display: none;
	}
	body .whb-main-header .whb-general-header-inner {
		border-bottom-color: rgba(166, 106, 232, .3);
	}
	.wd-nav-mobile .lam3d-cat-item > a {
		text-transform: none;
	}
}

/* Facebook / Instagram / TikTok at the bottom of the phone menu
   (WoodMart "Mobile menu widgets" area, links from Theme Settings > Social profiles). */
body .widgetarea-mobile .lam3d-mobile-social {
	display: flex;
	justify-content: center;
	gap: 10px;
}
body .widgetarea-mobile .lam3d-mobile-social .wd-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	border-radius: 50%;
	background-color: var(--l3h-lavender);
	color: var(--l3h-deep);
	transition: background-color .2s ease, color .2s ease;
}
body .widgetarea-mobile .lam3d-mobile-social .wd-social-icon:hover,
body .widgetarea-mobile .lam3d-mobile-social .wd-social-icon:focus-visible {
	background-color: #FFE3F1;
	color: var(--l3h-pink);
}

@media (prefers-reduced-motion: reduce) {
	.lam3d-mega,
	.lam3d-mega *,
	body .whb-main-header .wd-nav-main > li > a {
		transition: none !important;
	}
}
