/**
 * Wellness — Mega menu & navigation dropdowns (layout v3 + shop layout)
 */

.primary-menu-v3 {
	display: flex;
	align-items: center;
	gap: 0.125rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu-v3 > .menu-item {
	list-style: none;
}

/* ——— Mega menu panel ——— */
.nav-dropdown--mega {
	position: static;
}

.mega-menu-panel-v3 {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 60;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background:
		radial-gradient(ellipse 80% 60% at 10% 0%, rgba(45, 212, 191, 0.14), transparent 55%),
		radial-gradient(ellipse 60% 50% at 90% 100%, rgba(167, 139, 250, 0.08), transparent 50%),
		rgba(2, 6, 23, 0.97);
	backdrop-filter: blur(18px);
	box-shadow:
		0 4px 0 0 rgba(45, 212, 191, 0.35),
		0 28px 56px -12px rgba(0, 0, 0, 0.45);
	visibility: hidden;
	opacity: 0;
	transform: translateY(0.625rem);
	transition:
		opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0.28s;
}

.mega-menu-panel-v3__inner {
	position: relative;
	max-width: 80rem;
	margin: 0 auto;
	padding: 2rem 1rem 2.25rem;
}

@media (min-width: 640px) {
	.mega-menu-panel-v3__inner {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.mega-menu-panel-v3__inner {
		padding: 2.25rem 2rem 2.5rem;
	}
}

.mega-menu-panel-v3__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.mega-menu-panel-v3__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem 2rem;
	}
}

@media (min-width: 1024px) {
	.mega-menu-panel-v3__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0;
	}
}

/* Column */
.mega-menu-column-v3 {
	min-width: 0;
	padding: 0.25rem 0;
}

@media (min-width: 1024px) {
	.mega-menu-column-v3:not(.mega-menu-column-v3--featured) {
		padding: 0.5rem 1.75rem;
		border-right: 1px solid rgba(255, 255, 255, 0.07);
	}

	.mega-menu-column-v3:not(.mega-menu-column-v3--featured):first-child {
		padding-left: 0;
	}

	.mega-menu-column-v3:not(.mega-menu-column-v3--featured):last-child {
		border-right: 0;
		padding-right: 0;
	}

	.mega-menu-column-v3--featured {
		margin-left: 0.5rem;
	}
}

.mega-menu-column-v3__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.875rem;
	padding-bottom: 0.625rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-family: var(--font-display, ui-serif, Georgia, serif);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #5eead4;
}

.mega-menu-column-v3__title::before {
	content: "";
	flex-shrink: 0;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 9999px;
	background: linear-gradient(135deg, #2dd4bf, #34d399);
	box-shadow: 0 0 10px rgba(45, 212, 191, 0.55);
}

.mega-menu-column-v3__desc {
	margin: 0 0 1.125rem;
	font-size: 0.8125rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.58);
}

.mega-menu-column-v3__links {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

/* Links */
.mega-menu-link-v3 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	border-radius: 0.625rem;
	padding: 0.625rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.mega-menu-link-v3__text {
	min-width: 0;
}

.mega-menu-link-v3__arrow {
	flex-shrink: 0;
	font-size: 0.875rem;
	line-height: 1;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	color: #5eead4;
}

.mega-menu-link-v3:hover,
.mega-menu-link-v3:focus-visible {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	transform: translateX(2px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mega-menu-link-v3:hover .mega-menu-link-v3__arrow,
.mega-menu-link-v3:focus-visible .mega-menu-link-v3__arrow {
	opacity: 1;
	transform: translateX(0);
}

.mega-menu-link-v3--primary {
	justify-content: center;
	margin-top: 0.75rem;
	padding: 0.75rem 1.125rem;
	border-radius: 9999px;
	border: 1px solid rgba(94, 234, 212, 0.35);
	background: linear-gradient(135deg, rgba(13, 148, 136, 0.35), rgba(45, 212, 191, 0.15));
	font-size: 0.8125rem;
	font-weight: 600;
	color: #ccfbf1;
	box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
}

.mega-menu-link-v3--primary .mega-menu-link-v3__arrow {
	opacity: 1;
	transform: translateX(0);
}

.mega-menu-link-v3--primary:hover,
.mega-menu-link-v3--primary:focus-visible {
	background: linear-gradient(135deg, rgba(13, 148, 136, 0.55), rgba(45, 212, 191, 0.28));
	border-color: rgba(94, 234, 212, 0.55);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(13, 148, 136, 0.28);
}

/* Featured column */
.mega-menu-column-v3--featured {
	position: relative;
	padding: 1.375rem 1.375rem 1.25rem;
	border-radius: 1rem;
	border: 1px solid rgba(94, 234, 212, 0.28);
	background:
		radial-gradient(circle at 100% 0%, rgba(251, 113, 133, 0.12), transparent 45%),
		linear-gradient(155deg, rgba(13, 148, 136, 0.22), rgba(15, 23, 42, 0.4));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mega-menu-column-v3--featured::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 50%);
	pointer-events: none;
}

.mega-menu-column-v3--featured .mega-menu-column-v3__title {
	border-bottom-color: rgba(94, 234, 212, 0.2);
	color: #99f6e4;
}

.mega-menu-column-v3--featured .mega-menu-column-v3__desc {
	color: rgba(255, 255, 255, 0.82);
}

/* ——— Standard nested dropdown ——— */
.nav-dropdown-panel-v3--root,
.nav-dropdown-panel-v3--nested,
.nav-subitem-v3 {
	overflow: visible;
}

.nav-dropdown-panel-v3--root,
.nav-dropdown-panel-v3--nested {
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
	background: rgba(2, 6, 23, 0.97);
	backdrop-filter: blur(16px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
	padding: 0.375rem;
}

.nav-dropdown--standard > .nav-dropdown-panel-v3--root {
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 70;
	min-width: 14rem;
	margin-top: 0.5rem;
}

.nav-subitem-v3 {
	position: relative;
}

.nav-subitem-v3.has-children > .dropdown-link-v3--parent {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.nav-subitem-v3.has-children > .dropdown-link-v3--parent::after {
	content: "›";
	font-size: 1.125rem;
	line-height: 1;
	opacity: 0.5;
	transition: transform 0.2s ease;
}

.nav-subitem-v3.has-children:hover > .dropdown-link-v3--parent::after,
.nav-subitem-v3.has-children.is-open > .dropdown-link-v3--parent::after {
	transform: translateX(2px);
	opacity: 0.85;
}

.dropdown-link-v3 {
	display: block;
	border-radius: 0.5rem;
	padding: 0.55rem 0.75rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-link-v3:hover,
.dropdown-link-v3:focus-visible {
	background: rgba(255, 255, 255, 0.07);
}

.nav-dropdown-panel-v3--nested {
	position: absolute;
	left: calc(100% + 0.35rem);
	top: 0;
	z-index: 80;
	min-width: 12.5rem;
	visibility: hidden;
	opacity: 0;
	transform: translateX(-0.4rem);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

/* Desktop open states */
@media (min-width: 768px) {
	.header-v3 .nav-dropdown--standard > .nav-dropdown-panel-v3--root {
		visibility: hidden;
		opacity: 0;
		transform: translateY(0.4rem);
		transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
	}

	.header-v3 .nav-dropdown--standard:hover > .nav-dropdown-panel-v3--root,
	.header-v3 .nav-dropdown--standard.is-open > .nav-dropdown-panel-v3--root {
		visibility: visible;
		opacity: 1;
		transform: translateY(0);
	}

	.header-v3 .nav-dropdown--standard:hover .nav-chevron,
	.header-v3 .nav-dropdown--standard.is-open .nav-chevron {
		transform: rotate(180deg);
	}

	.header-v3 .nav-dropdown--standard:hover .nav-dropdown-panel-v3--nested,
	.header-v3 .nav-dropdown--standard.is-open .nav-dropdown-panel-v3--nested {
		visibility: hidden;
		opacity: 0;
		transform: translateX(-0.4rem);
	}

	.nav-subitem-v3.has-children:hover > .nav-dropdown-panel-v3--nested,
	.nav-subitem-v3.has-children.is-open > .nav-dropdown-panel-v3--nested {
		visibility: visible;
		opacity: 1;
		transform: translateX(0);
	}

	.nav-subitem-v3.has-children.is-flip-left > .nav-dropdown-panel-v3--nested {
		left: auto;
		right: calc(100% + 0.35rem);
		transform: translateX(0.4rem);
	}

	.nav-subitem-v3.has-children.is-flip-left:hover > .nav-dropdown-panel-v3--nested,
	.nav-subitem-v3.has-children.is-flip-left.is-open > .nav-dropdown-panel-v3--nested {
		transform: translateX(0);
	}

	.header-v3 .nav-dropdown--mega:hover .mega-menu-panel-v3,
	.header-v3 .nav-dropdown--mega.is-open .mega-menu-panel-v3 {
		visibility: visible;
		opacity: 1;
		transform: translateY(0);
	}

	.header-v3 .nav-dropdown--mega:hover .nav-chevron,
	.header-v3 .nav-dropdown--mega.is-open .nav-chevron {
		transform: rotate(180deg);
	}
}

/* Scrolled header — light mega panel */
.header-v3.is-scrolled .mega-menu-panel-v3 {
	border-top-color: rgba(15, 23, 42, 0.06);
	background:
		radial-gradient(ellipse 70% 55% at 5% 0%, rgba(204, 251, 241, 0.65), transparent 55%),
		radial-gradient(ellipse 50% 45% at 95% 100%, rgba(237, 233, 254, 0.35), transparent 50%),
		rgba(255, 255, 255, 0.98);
	box-shadow:
		0 4px 0 0 rgba(61, 107, 79, 0.25),
		0 24px 48px -16px rgba(15, 23, 42, 0.14);
}

.header-v3.is-scrolled .mega-menu-column-v3:not(.mega-menu-column-v3--featured) {
	border-right-color: rgba(15, 23, 42, 0.07);
}

.header-v3.is-scrolled .mega-menu-column-v3__title {
	border-bottom-color: rgba(15, 23, 42, 0.08);
	color: #0f766e;
}

.header-v3.is-scrolled .mega-menu-column-v3__title::before {
	background: linear-gradient(135deg, #14b8a6, #3d6b4f);
	box-shadow: 0 0 8px rgba(20, 184, 166, 0.35);
}

.header-v3.is-scrolled .mega-menu-column-v3__desc {
	color: #64748b;
}

.header-v3.is-scrolled .mega-menu-link-v3 {
	color: #475569;
}

.header-v3.is-scrolled .mega-menu-link-v3__arrow {
	color: #0d9488;
}

.header-v3.is-scrolled .mega-menu-link-v3:hover,
.header-v3.is-scrolled .mega-menu-link-v3:focus-visible {
	background: #f0f5f1;
	color: #0f172a;
	box-shadow: inset 0 0 0 1px rgba(61, 107, 79, 0.12);
}

.header-v3.is-scrolled .mega-menu-link-v3--primary {
	border-color: rgba(13, 148, 136, 0.25);
	background: linear-gradient(135deg, #3d6b4f, #0d9488);
	color: #fff;
}

.header-v3.is-scrolled .mega-menu-link-v3--primary:hover,
.header-v3.is-scrolled .mega-menu-link-v3--primary:focus-visible {
	background: linear-gradient(135deg, #356044, #0f766e);
	box-shadow: 0 8px 20px rgba(61, 107, 79, 0.25);
}

.header-v3.is-scrolled .mega-menu-column-v3--featured {
	border-color: rgba(13, 148, 136, 0.22);
	background:
		radial-gradient(circle at 100% 0%, rgba(251, 113, 133, 0.08), transparent 45%),
		linear-gradient(155deg, rgba(204, 251, 241, 0.75), rgba(255, 255, 255, 0.95));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-v3.is-scrolled .mega-menu-column-v3--featured .mega-menu-column-v3__title {
	color: #0f766e;
}

.header-v3.is-scrolled .mega-menu-column-v3--featured .mega-menu-column-v3__desc {
	color: #475569;
}

.header-v3.is-scrolled .nav-dropdown-panel-v3--root,
.header-v3.is-scrolled .nav-dropdown-panel-v3--nested {
	border-color: rgba(15, 23, 42, 0.08);
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.header-v3.is-scrolled .dropdown-link-v3:hover,
.header-v3.is-scrolled .dropdown-link-v3:focus-visible {
	background: #f0f5f1;
}

/* ——— Shop layout (light header) ——— */
.layout-shop #site-header .mega-menu-panel-v3 {
	border-top: 1px solid rgba(61, 107, 79, 0.12);
	background:
		radial-gradient(ellipse 70% 55% at 5% 0%, rgba(204, 251, 241, 0.55), transparent 55%),
		radial-gradient(ellipse 50% 45% at 95% 100%, rgba(237, 233, 254, 0.3), transparent 50%),
		#fff;
	box-shadow:
		0 4px 0 0 rgba(61, 107, 79, 0.2),
		0 24px 48px -16px rgba(15, 23, 42, 0.12);
}

.layout-shop #site-header .mega-menu-column-v3:not(.mega-menu-column-v3--featured) {
	border-right-color: rgba(15, 23, 42, 0.07);
}

.layout-shop #site-header .mega-menu-column-v3__title {
	border-bottom-color: rgba(15, 23, 42, 0.08);
	color: #3d6b4f;
}

.layout-shop #site-header .mega-menu-column-v3__title::before {
	background: linear-gradient(135deg, #14b8a6, #3d6b4f);
	box-shadow: none;
}

.layout-shop #site-header .mega-menu-column-v3__desc {
	color: #64748b;
}

.layout-shop #site-header .mega-menu-link-v3 {
	color: #475569;
}

.layout-shop #site-header .mega-menu-link-v3__arrow {
	color: #0d9488;
}

.layout-shop #site-header .mega-menu-link-v3:hover,
.layout-shop #site-header .mega-menu-link-v3:focus-visible {
	background: #f0f5f1;
	color: #0f172a;
	box-shadow: inset 0 0 0 1px rgba(61, 107, 79, 0.1);
}

.layout-shop #site-header .mega-menu-link-v3--primary {
	border-color: rgba(61, 107, 79, 0.2);
	background: linear-gradient(135deg, #3d6b4f, #0d9488);
	color: #fff;
}

.layout-shop #site-header .mega-menu-link-v3--primary:hover,
.layout-shop #site-header .mega-menu-link-v3--primary:focus-visible {
	background: linear-gradient(135deg, #356044, #0f766e);
	box-shadow: 0 8px 20px rgba(61, 107, 79, 0.22);
}

.layout-shop #site-header .mega-menu-column-v3--featured {
	border-color: rgba(61, 107, 79, 0.18);
	background:
		radial-gradient(circle at 100% 0%, rgba(251, 113, 133, 0.06), transparent 45%),
		linear-gradient(155deg, rgba(232, 240, 234, 0.95), #fff);
}

.layout-shop #site-header .mega-menu-column-v3--featured .mega-menu-column-v3__title {
	color: #3d6b4f;
}

.layout-shop #site-header .mega-menu-column-v3--featured .mega-menu-column-v3__desc {
	color: #475569;
}

.layout-shop #site-header .nav-dropdown-panel-v3--root,
.layout-shop #site-header .nav-dropdown-panel-v3--nested {
	border-color: rgba(15, 23, 42, 0.08);
	background: #fff;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.layout-shop #site-header .dropdown-link-v3:hover,
.layout-shop #site-header .dropdown-link-v3:focus-visible {
	background: #f0f5f1;
}

@media (min-width: 768px) {
	.layout-shop #site-header .nav-dropdown--mega:hover .mega-menu-panel-v3,
	.layout-shop #site-header .nav-dropdown--mega.is-open .mega-menu-panel-v3 {
		visibility: visible;
		opacity: 1;
		transform: translateY(0);
	}
}

/* ——— Mobile mega ——— */
.mobile-mega-panel-v3 {
	display: none;
	padding: 0.5rem 0 0.25rem 0.75rem;
	margin-top: 0.25rem;
	border-left: 2px solid rgba(45, 212, 191, 0.35);
}

.mobile-nav-dropdown-v3.is-open .mobile-mega-panel-v3 {
	display: block;
}

.mobile-mega-column-v3 {
	margin-bottom: 1.125rem;
	padding: 0.875rem 0.875rem 0.75rem;
	border-radius: 0.875rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-mega-column-v3:last-child {
	margin-bottom: 0;
}

.mobile-mega-column-v3__title {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.35rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #5eead4;
}

.mobile-mega-column-v3__title::before {
	content: "";
	width: 0.3rem;
	height: 0.3rem;
	border-radius: 9999px;
	background: #2dd4bf;
}

.mobile-mega-column-v3__desc {
	margin: 0 0 0.5rem;
	padding-left: 0;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.58);
}

.layout-shop .mobile-mega-column-v3 {
	background: #f8faf8;
	border-color: rgba(61, 107, 79, 0.12);
}

.layout-shop .mobile-mega-column-v3__title {
	color: #3d6b4f;
}

.layout-shop .mobile-mega-column-v3__title::before {
	background: #3d6b4f;
}

.layout-shop .mobile-mega-column-v3__desc {
	color: #64748b;
}

.layout-shop .mobile-mega-panel-v3 {
	border-left-color: rgba(61, 107, 79, 0.25);
}

.mobile-nav-v3-sublink--nested {
	padding-left: 1.25rem;
}

.mobile-nav-v3-dropdown-panel--nested {
	display: none;
	padding-left: 0.75rem;
	margin-top: 0.15rem;
	border-left: 2px solid rgba(45, 212, 191, 0.3);
}

.mobile-nav-dropdown-v3--nested.is-open > .mobile-nav-v3-dropdown-panel--nested {
	display: block;
}

.mobile-nav-dropdown-v3--nested .mobile-nav-v3-sublink {
	padding-left: 1rem;
}

.layout-shop .mobile-nav-v3-dropdown-panel--nested {
	border-left-color: rgba(61, 107, 79, 0.22);
}

/* ——— Header brand & logo ——— */
.header-v3 .site-brand-tagline {
	color: #5eead4;
}

.header-v3.is-scrolled .site-brand-tagline {
	color: #0d9488;
}

.site-logo-wrap img,
.site-logo-wrap .custom-logo {
	max-width: var(--wellness-logo-max-width, 168px);
	width: auto;
	object-fit: contain;
}

.header-v3__logo-wrap .header-v3__logo {
	max-height: 2.25rem;
}

.header-v3__brand .site-logo-wrap:not(.header-v3__logo-wrap) img.custom-logo {
	display: block;
}

.footer-v3-logo .site-logo-wrap img,
.footer-v3-logo .site-logo-wrap .custom-logo,
.footer-v3-logo-img {
	max-width: var(--wellness-logo-max-width, 168px);
	max-height: 2.25rem;
}
