/* Header menu. See header-menu.php (desktop mega menu panel) and header-menu.js.
   Selectors start from the theme's own header-two chain so they win over
   general.css regardless of stylesheet order (LiteSpeed combines CSS). */

/* ---------- Desktop: link + chevron toggle ---------- */

/* Static, so the panel spans the header (positioned against .art-header-bottom). */
header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu > li.spx-mega {
	position: static;
	display: flex;
	align-items: center;
}

/* ---------- Desktop: top-level underline ----------
   Replaces the theme's hover underline (an a::before that only appears on
   li:hover) with one that fades in, and also shows for keyboard focus
   anywhere in the item and while a mega panel is open. Driven by the li,
   drawn on the link: the li has to stay position: static so submenus and
   the mega panel can span the menu row. */

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu > li > a::before {
	display: none !important;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu > li > a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background-color: currentColor;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease-in-out, height .3s ease-in-out;
}

/* Mega item: run the line under the chevron too (24px button, -7px margin). */
header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu > li.spx-mega > a::after {
	right: -17px;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu > li:hover > a::after,
header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu > li:focus-within > a::after,
header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu > li.is-open > a::after {
	opacity: 1;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu > li.spx-mega.is-open > a::after {
	height: 2px;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu > li.spx-mega > .spx-mega__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0 -7px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu > li.spx-mega > .spx-mega__toggle:focus {
	outline: none;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu > li.spx-mega > .spx-mega__toggle:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 0;
	border-radius: 2px;
}

header.art-header-two.art-dark-header-text .art-header-two-content .art-header-bottom nav ul.menu > li.spx-mega > .spx-mega__toggle,
header.art-header-two .art-header-two-content.art-sticky .art-header-bottom nav ul.menu > li.spx-mega > .spx-mega__toggle,
header.art-header-two .art-header-two-content.spx-mega-open .art-header-bottom nav ul.menu > li.spx-mega > .spx-mega__toggle {
	color: #000;
}

@media (min-width: 1241px) {
	header.art-header-two .art-header-two-content:hover .art-header-bottom nav ul.menu > li.spx-mega > .spx-mega__toggle {
		color: #000;
	}
}

.spx-mega__chevron {
	flex: none;
	transition: transform .3s ease-in-out;
}

.spx-mega__toggle[aria-expanded="true"] .spx-mega__chevron {
	transform: rotate(180deg);
}

/* While open the header turns white, as it does on hover. */
@media (min-width: 1241px) {
	header.art-header-two .art-header-two-content.spx-mega-open {
		background-color: #fff;
	}
	header.art-header-two .art-header-two-content.spx-mega-open .art-header-top,
	header.art-header-two .art-header-two-content.spx-mega-open .art-header-bottom {
		border-bottom-color: rgba(0, 0, 0, 0.1);
	}
	header.art-header-two .art-header-two-content.spx-mega-open .art-header-top .art--logo-container .light-logotype {
		display: none;
	}
	header.art-header-two .art-header-two-content.spx-mega-open .art-header-top .art--logo-container .dark-logotype {
		display: block;
	}
	header.art-header-two .art-header-two-content.spx-mega-open .art-header-top .art-social-container a,
	header.art-header-two .art-header-two-content.spx-mega-open .art-header-top .art-site-header-appointment,
	header.art-header-two .art-header-two-content.spx-mega-open .art-header-bottom nav ul.menu > li > a {
		color: #000;
	}
}

/* ---------- Desktop: panel ----------
   Closed: visibility hidden (out of the tab order), content tucked up under
   the menu row. Open: it slides down and fades in over a dimmed page.
   300ms ease-in-out, like the theme's header transitions. */

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 9999;
	text-align: left;
	visibility: hidden;
	transition: visibility 0s linear .3s;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega.is-open .spx-mega__panel {
	visibility: visible;
	transition-delay: 0s;
}

/* Dimmed page behind the panel. It doesn't take the pointer, so moving onto
   it ends the hover; clicking it closes the menu via the outside-click handler. */
header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__panel::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 100vh;
	z-index: -1;
	background: rgba(0, 0, 0, 0.4);
	pointer-events: none;
	opacity: 0;
	transition: opacity .3s ease-in-out;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega.is-open .spx-mega__panel::before {
	opacity: 1;
}

/* Clips the content as it slides, so it appears from under the menu row. */
.spx-mega__clip {
	overflow: hidden;
}

.spx-mega__inner {
	position: relative;
	background: #fff;
	border-top: 1px solid #e5e5e5;
	border-bottom: 1px solid #e5e5e5;
	max-height: calc(100vh - var(--spx-header-h, 121px));
	overflow-y: auto;
	opacity: 0;
	transform: translateY(-100%);
	transition: transform .3s ease-in-out, opacity .3s ease-in-out;
}

.spx-mega.is-open .spx-mega__inner {
	opacity: 1;
	transform: none;
}

.spx-mega__grid {
	/* Columns and cards have fixed widths (shrinking a little below ~1320px);
	   with fewer of them they stay that size and centre. */
	--spx-mega-item-w: 285px;
	display: flex;
	justify-content: center;
	gap: 40px 56px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 40px 24px 48px;
	color: #000;
}

/* Theme hover underline on every li > a in the nav. */
header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__panel a::before {
	content: none;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__panel a {
	position: static;
	display: inline;
	padding: 0;
	font-weight: 300;
	letter-spacing: normal;
	text-transform: none;
	color: #000;
	opacity: 1;
	text-decoration: none;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__panel a:hover,
header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__panel a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Columns */

.spx-mega__col {
	flex: 0 1 var(--spx-mega-item-w);
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.spx-mega__heading {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 19px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__heading a {
	font-weight: 500;
	letter-spacing: inherit;
	text-transform: inherit;
}

.spx-mega__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.4;
}

.spx-mega__list li {
	margin: 0;
	padding: 0;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__list li.is-all a,
header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__list a[aria-current] {
	font-weight: 500;
}

/* Promo cards */

.spx-mega__promos {
	flex: 0 1 auto;
	display: flex;
	gap: 20px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spx-mega__promo {
	flex: 0 1 var(--spx-mega-item-w);
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 0;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__promo > a {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	min-height: 300px;
	padding: 24px;
	background: #f2eee9;
	color: #000;
	text-decoration: none;
}

header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__promo.is-dark > a {
	background: #080404;
	color: #fff;
}

.spx-mega__promo-image {
	display: block;
	width: 82%;
	height: auto;
	aspect-ratio: 1;
	margin: 0 auto;
	align-self: center;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.spx-mega__promo.is-dark .spx-mega__promo-image {
	mix-blend-mode: normal;
}

/* Eyebrow (and image) at the top; title, text and CTA at the bottom. */
.spx-mega__promo-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: auto;
}

.spx-mega__promo-eyebrow {
	font-size: 13px;
	font-weight: 500;
	line-height: 19px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #dad602;
}

.spx-mega__promo.is-light .spx-mega__promo-eyebrow {
	color: inherit;
}

.spx-mega__promo-title {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.spx-mega__promo:not(.has-image) .spx-mega__promo-title {
	font-size: 40px;
	line-height: 1;
	letter-spacing: normal;
}

.spx-mega__promo-text {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.45;
}

.spx-mega__promo.is-dark .spx-mega__promo-text {
	color: #e6e1da;
}

.spx-mega__promo-text strong,
.spx-mega__promo-text b {
	font-weight: 500;
	color: #000;
}

.spx-mega__promo.is-dark .spx-mega__promo-text strong,
.spx-mega__promo.is-dark .spx-mega__promo-text b {
	color: #fff;
}

.spx-mega__promo-cta {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 500;
	line-height: 19px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* The whole card is the link; underline only its CTA. */
header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__promo > a:hover,
header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__promo > a:focus-visible {
	text-decoration: none;
}

/* Focus ring as a shadow: the theme removes outlines from every link
   (general.css: a:focus { outline: none !important }). A white gap, then the
   ring, so it reads on light and dark cards; the grid's padding keeps it
   clear of the panel's clipping. */
header.art-header-two .art-header-two-content .art-header-bottom nav ul.menu li.spx-mega .spx-mega__promo > a:focus-visible {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px #000;
}

.spx-mega__promo > a:hover .spx-mega__promo-cta,
.spx-mega__promo > a:focus-visible .spx-mega__promo-cta {
	text-decoration-thickness: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.spx-mega__chevron,
	.spx-mega__inner {
		transition: none;
	}
	.spx-mega__inner {
		transform: none;
	}
}

/* ---------- Mobile drawer: Shop's children (design: MobileHome) ---------- */

.art-mobile-menu-wrapper .art-nav-container .art--mobile-menu-navigation-wrapper .art--mobile-menu-navigation ul.art--mobile-menu > li.menu-item-has-children > ul.sub-menu {
	margin: 0 0 8px 24px;
	padding: 0 0 0 14px;
	border-left: 1px solid #e5e5e5;
}

.art-mobile-menu-wrapper .art-nav-container .art--mobile-menu-navigation-wrapper .art--mobile-menu-navigation ul.art--mobile-menu > li.menu-item-has-children > ul.sub-menu > li > a {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 0 24px 0 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}
