/* ============================================
   Nova Header — Phase 02
   All styles reference --nova-* tokens from nova-tokens.css.

   DEFAULT STATE: white header (dark text, blue logo).
   Pages that use nova_page_hero() load nova-page-hero.css,
   which overrides the header back to the transparent / glass
   purple treatment so it overlays the hero section.
   ============================================ */

/* --- Base Header ---
   Default = white, with a subtle bottom border.
   #masthead specificity (1,1,0) overrides Kirki's
   body:not(.header-4) .site-header (0,1,0,1) inline output.
   position:relative is required so mega panel position:absolute / top:100%
   anchors to the bottom of the header, not the viewport. */
#masthead.site-header {
	background-color: var(--nova-bg-white);
	position: relative;
	box-shadow: 0 1px 0 rgba(10, 10, 14, 0.08);
	left: 0;
	right: 0;
}

/* Override col-full max-width + padding constraints AND Kirki's
   padding-top/bottom output targeting .col-full.main-header.
   All spacing is controlled exclusively by .nova-header-inner. */
#masthead .main-header,
#masthead .col-full.main-header {
	max-width: 100%;
	box-sizing: border-box;
	display: block;
	background: transparent;
	border: none;
	width: 100%;
}

/* Suppress parent theme nav bar — Nova header replaces it entirely */
.col-full-nav {
	display: none;
}

/* overflow:hidden clips backdrop-filter bleed from the search bar at
   the top/bottom edge of the header row. Applied here (not on #masthead)
   so position:absolute mega panels can still escape. */
.nova-header-inner {
	display: flex;
	align-items: center;
	gap: 72px;
	/* padding-top: 30px;
	padding-bottom: 30px; */
	padding: 30px;
	max-width: var(--nova-max-page-width);
	margin: 0 auto;
	width: 100%;
	overflow: hidden;
}

.nova-scrolled .nova-header-inner {
	top: 30px;
}


/* --- Logo ---
   Default: show blue logo (white bg), hide light (white) logo.
   Pages with nova-page-hero override this to show the light logo. */
.nova-logo {
	flex-shrink: 0;
}

.nova-logo-img {
	height: 48px;
	width: auto;
}

.nova-logo-light {
	display: none;
}

.nova-logo-blue {
	display: block;
}


/* ----------------------------------------
   Section 1: Announcement Bar
   ---------------------------------------- */

.nova-announcement-bar {
	background-color: var(--nova-accent);
	color: var(--nova-text-primary);
	text-align: center;
	padding: 12px 16px;
	font-family: var(--nova-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.43;
	position: relative;
	z-index: 101; /* Above header z-index (100) so bar is not hidden */
}


/* --- Primary Nav --- */
.nova-primary-nav {
	flex-shrink: 0; /* natural width — search bar is the only flex-grow element */
}

.nova-nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 32px;
	align-items: center;
}

/* Reset <button> elements used as nav triggers to match <a> link appearance */
button.nova-nav-link {
	background: none;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nova-nav-menu li a,
.nova-nav-link {
	font-family: var(--nova-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--nova-text-dark);
	text-decoration: none;
	padding: 0;
	white-space: nowrap;
	transition: opacity 200ms ease;
}

.nova-nav-menu li a:hover,
.nova-nav-link:hover {
	color: var(--nova-accent);
	background: transparent;
}

/* Scrolled / mega-open: keep accent hover */
body.nova-scrolled .nova-nav-menu li a:hover,
body.nova-scrolled .nova-nav-link:hover,
.site-header.mega-open .nova-nav-menu li a:hover,
.site-header.mega-open .nova-nav-link:hover {
	background: transparent;
	color: var(--nova-accent);
}

.nova-nav-menu li.current-menu-item > a {
	border-bottom: 2px solid var(--nova-accent);
}

/* Hide WordPress default sub-menus — Nova uses custom mega menu panels */
.nova-nav-menu .sub-menu {
	display: none !important;
}

/* Focus state: WCAG 2.4.7 */
.nova-nav-menu li a:focus-visible,
.nova-nav-link:focus-visible {
	outline: 2px solid var(--nova-accent);
	outline-offset: 2px;
}

/* Mega menu trigger caret — 10px matches Figma CaretDown size */
.nova-nav-link.has-dropdown .nova-caret {
	display: inline-block;
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	transition: transform 200ms ease;
}

.nova-nav-link.has-dropdown[aria-expanded="true"] .nova-caret {
	transform: rotate(180deg);
}

/* --- Search Bar ---
   Default: transparent field with light border (white header style).
   Pages with nova-page-hero override to glass/blur treatment. */
.nova-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: 1px solid var(--nova-border-light);
	border-radius: var(--nova-radius-button);
	padding: 12px 20px;
	flex: 1 0 0;
	position: relative;
}

.nova-search-icon {
	flex-shrink: 0;
	color: var(--nova-text-dark);
	opacity: 0.5;
	display: flex;
	align-items: center;
}

/* Override Shoptimizer main.css global input[type="search"] rules:
   border:1px solid #d2d6dc, border-radius:0.3rem, box-shadow, height:40px, padding-left:43px */
.nova-search-form input[type="search"],
.nova-search-form .nova-search-input {
	background: transparent;
	border: none;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	height: auto;
	padding: 0;
	-webkit-appearance: none;
	appearance: none;
	color: var(--nova-text-dark);
	font-family: var(--nova-font-body);
	font-size: 16px;
	width: 100%;
}

/* Remove browser search chrome (cancel button, magnifier, etc.) */
.nova-search-form input[type="search"]::-webkit-search-decoration,
.nova-search-form input[type="search"]::-webkit-search-cancel-button,
.nova-search-form input[type="search"]::-webkit-search-results-button,
.nova-search-form input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance: none;
}

.nova-search-form input[type="search"]::placeholder,
.nova-search-form .nova-search-input::placeholder {
	color: var(--nova-text-dark);
	opacity: 0.4;
}

/* Kill Shoptimizer's focus border-color rule on the input */
.nova-search-form input[type="search"]:focus {
	border-color: transparent;
	outline: none;
	box-shadow: none;
}

/* Focus: accent glow on the whole form instead */
.nova-search-form:focus-within {
	box-shadow: 0px 4px 64px 0px rgba(0, 0, 0, 0.2), 0 0 0 1.5px var(--nova-accent);
}

/* --- Header Actions Container --- */
.nova-header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
	margin-left: auto;
	margin-right: auto;
}

/* --- Login Button ---
   Default (white header): accent bg with white text.
   Pages with nova-page-hero override to white bg with accent text. */
.nova-login-btn {
	background: var(--nova-accent);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	color: var(--nova-text-primary);
	text-decoration: none;
	font-family: var(--nova-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	padding: 12px 28px;
	border-radius: var(--nova-radius-button);
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	transition: background 200ms ease, color 200ms ease;
}

.nova-login-btn:hover {
	background: var(--nova-accent-hover);
	color: var(--nova-text-primary);
}

.nova-login-btn:focus-visible {
	outline: 2px solid var(--nova-accent);
	outline-offset: 2px;
}

/* --- Account Icon --- */
.nova-account-icon {
	color: var(--nova-text-dark);
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	transition: color 200ms ease;
}

.nova-account-icon:hover {
	color: var(--nova-accent-hover);
}

.nova-account-icon:focus-visible {
	outline: 2px solid var(--nova-accent);
	outline-offset: 2px;
}

/* --- Cart Icon --- */
.nova-cart-link {
	position: relative;
	color: var(--nova-text-dark);
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	transition: color 200ms ease;
}

.nova-cart-link:hover {
	color: var(--nova-accent-hover);
}

.nova-cart-link:focus-visible {
	outline: 2px solid var(--nova-accent);
	outline-offset: 2px;
}

.nova-cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	background: var(--nova-accent);
	color: var(--nova-text-primary);
	font-size: 11px;
	font-weight: 600;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* --- Mobile Hamburger --- */
/* show/hide is controlled by #nova-menu-toggle rules in the Responsive section */
.nova-hamburger {
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}

.hamburger-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--nova-text-dark);
	border-radius: 1px;
	transition: transform 200ms ease, opacity 200ms ease;
}

/* --- Scrolled state: fixed white header ---
   On default (white) pages this mainly adds position:fixed.
   On hero pages it also overrides the transparent/glass treatment back to white. */
body.nova-scrolled #masthead.site-header {
	background-color: var(--nova-bg-white);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	position: fixed;
	top: 0;
	box-shadow: 0 1px 0 rgba(10, 10, 14, 0.08);
}

/* Logo: swap back to blue (needed when scrolled on hero pages) */
body.nova-scrolled .nova-logo-light {
	display: none;
}

body.nova-scrolled .nova-logo-blue {
	display: block;
}

/* Nav links: dark (needed when scrolled on hero pages) */
body.nova-scrolled .nova-nav-menu li a,
body.nova-scrolled .nova-nav-link {
	color: var(--nova-text-dark);
}

/* Search: border style (needed when scrolled on hero pages) */
body.nova-scrolled .nova-search-form {
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: 1px solid var(--nova-text-dark);
	box-shadow: none;
}

body.nova-scrolled .nova-search-icon {
	color: var(--nova-text-dark);
}

body.nova-scrolled .nova-search-input {
	color: var(--nova-text-dark);
}

body.nova-scrolled .nova-search-form input[type="search"],
body.nova-scrolled .nova-search-form .nova-search-input {
	color: var(--nova-text-dark);
}

body.nova-scrolled .nova-search-form input[type="search"]::placeholder,
body.nova-scrolled .nova-search-input::placeholder {
	color: var(--nova-text-dark-muted);
	opacity: 1;
}

/* Login button: keep accent style (unchanged from default) */
body.nova-scrolled .nova-login-btn {
	background: var(--nova-accent);
	color: var(--nova-text-primary);
}

body.nova-scrolled .nova-login-btn:hover {
	background: var(--nova-accent-hover);
}

/* Icons: dark (needed when scrolled on hero pages) */
body.nova-scrolled .nova-account-icon,
body.nova-scrolled .nova-cart-link {
	color: var(--nova-text-dark);
}

/* Hamburger bars: dark (needed when scrolled on hero pages) */
body.nova-scrolled .hamburger-bar {
	background: var(--nova-text-dark);
}

/* --- Mega Menu Panels --- */
/* .nova-mega is the shared class output by Nova_Mega_Walker.
   .nova-mega-catalog / .nova-mega-resources are kept as additional classes
   for the specific layout rules below (inner padding, flex, etc.). */
.nova-mega,
.nova-mega-catalog,
.nova-mega-resources {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--nova-bg-white);
	backdrop-filter: blur(50px);
	-webkit-backdrop-filter: blur(50px);
	z-index: 200;
	overflow: hidden;
}

.nova-mega[hidden],
.nova-mega-catalog[hidden],
.nova-mega-resources[hidden] {
	display: none;
}

/* Mega Catalog */
.nova-mega-catalog-inner {
	padding: 24px 20px 48px;
	max-width: var(--nova-max-page-width);;
	margin: 0 auto;
}

.nova-catalog-cards {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.nova-catalog-cards::-webkit-scrollbar {
	display: none;
}

.nova-catalog-card {
	flex: 0 0 320px;
	background: var(--nova-border-light);
	border-radius: 24px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	text-decoration: none;
	color: var(--nova-text-dark);
	cursor: pointer;
	transition: transform 200ms ease;
}

.nova-catalog-card:hover {
	transform: translateY(-2px);
}

.nova-catalog-card-image {
	height: 240px;
	width: 100%;
	overflow: hidden;
	border-radius: 12px;
}

.nova-catalog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nova-catalog-card-image__placeholder {
	width: 100%;
	height: 100%;
	background: var(--nova-purple-deep, #1a0533);
	border-radius: 8px;
}

.nova-catalog-card-label {
	font-family: var(--nova-font-heading);
	font-size: 20px;
	font-weight: 600;
	color: var(--nova-text-dark);
	line-height: 24px;
}

/* Catalog nav row (dots + arrows) */
.nova-catalog-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
}

.nova-catalog-nav.arrows {
	margin-left: auto;
}

.nova-catalog-dots {
	display: flex;
	gap: 4px;
}

.nova-catalog-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(138, 79, 255, 0.2);
}

.nova-catalog-dot.active {
	background: var(--nova-accent);
}

.nova-catalog-arrows {
	display: flex;
	gap: 8px;
}

.nova-catalog-arrow {
	background: var(--nova-glass-bg);
	border: 1px solid rgba(151, 71, 255, 0.2);
	border-radius: 48px;
	padding: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--nova-text-dark);
	transition: background 200ms ease;
}

.nova-catalog-arrow:hover {
	background: rgba(255, 255, 255, 0.2);
}

.nova-catalog-arrow:disabled {
	opacity: 0.3;
	border-color: var(--nova-accent);
	cursor: default;
}

/* Mega Resources */
.nova-mega-resources-inner {
	padding: 24px 20px 48px;
	display: flex;
	gap: 120px;
	max-width: var(--nova-max-page-width);
	margin: 0 auto;
}

.nova-resources-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nova-resources-col-title {
	font-family: var(--nova-font-body);
	font-size: 14px;
	font-weight: 400;
	color: var(--nova-text-dark);
	opacity: 0.4;
	text-transform: uppercase;
	line-height: 20px;
	margin: 0;
}

.nova-resources-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nova-resources-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--nova-font-body);
	font-size: 16px;
	font-weight: 400;
	color: var(--nova-text-dark);
	line-height: 24px;
	text-decoration: none;
}

.nova-resources-item:hover {
	color: var(--nova-accent);
}

.nova-resources-item svg {
	flex-shrink: 0;
}

/* --- Header white inversion when mega menu open ---
   On default (white) pages this is a no-op.
   On hero pages it switches the transparent header to white. */
.site-header.mega-open {
	background: var(--nova-bg-white) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	box-shadow: 0 1px 0 rgba(10, 10, 14, 0.08);
}

/* Logo: swap to blue when mega open (needed on hero pages) */
.site-header.mega-open .nova-logo-light {
	display: none;
}

.site-header.mega-open .nova-logo-blue {
	display: block;
}	

.site-header.mega-open .nova-nav-menu li a,
.site-header.mega-open .nova-nav-link {
	color: var(--nova-text-dark);
}

/* Login button: keep accent style */
.site-header.mega-open .nova-login-btn {
	background: var(--nova-accent);
	color: var(--nova-text-primary);
}

.site-header.mega-open .nova-login-btn:hover {
	background: var(--nova-accent-hover);
}

/* Search: border style (needed on hero pages where mega opens) */
.site-header.mega-open .nova-search-form {
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: 1px solid var(--nova-text-dark);
	box-shadow: none;
}

.site-header.mega-open .nova-search-icon {
	color: var(--nova-text-dark);
}

.site-header.mega-open .nova-search-form input[type="search"],
.site-header.mega-open .nova-search-input {
	color: var(--nova-text-dark);
}

.site-header.mega-open .nova-search-form input[type="search"]::placeholder,
.site-header.mega-open .nova-search-input::placeholder {
	color: var(--nova-text-dark-muted);
	opacity: 1;
}

/* Icons: dark */
.site-header.mega-open .nova-account-icon,
.site-header.mega-open .nova-cart-link {
	color: var(--nova-text-dark);
}

/* Hamburger bars: dark */
.site-header.mega-open .hamburger-bar {
	background: var(--nova-text-dark);
}

/* --- Mobile Drawer Styling --- */
body.mobile-toggled .main-navigation {
	background: var(--nova-bg-primary);
}

body.mobile-toggled .main-navigation a {
	color: var(--nova-text-primary);
	font-family: var(--nova-font-body);
	font-size: 16px;
	line-height: 48px;
}

body.mobile-toggled .main-navigation a:hover {
	color: var(--nova-accent);
}

/* =============================================================== */
/* Nova Mobile Nav Drawer                                          */
/* Slide-in panel from the right with branded sections.            */
/* =============================================================== */

.nova-mobile-nav {
	position: fixed;
	top: 0;
	right: 0;
	width: 360px;
	max-width: 88vw;
	height: 100dvh;
	height: 100vh;
	background: linear-gradient(180deg, var(--nova-bg-primary) 0%, var(--nova-bg-secondary) 100%);
	color: var(--nova-text-primary);
	z-index: 99999;
	overflow-y: auto;
	overscroll-behavior: contain;
	box-sizing: border-box;
	transform: translateX(100%);
	transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
	box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);
	-webkit-overflow-scrolling: touch;
}

.nova-mobile-nav.is-open {
	transform: translateX(0);
}

.nova-mobile-nav__inner {
	padding: 18px 20px 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Header bar (logo + close) */
.nova-mobile-nav__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nova-mobile-nav__logo {
	display: inline-flex;
	align-items: center;
}

.nova-mobile-nav__logo img {
	height: 36px;
	width: auto;
	display: block;
}

.nova-mobile-nav__close {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	color: var(--nova-text-primary);
	cursor: pointer;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 160ms ease, transform 160ms ease;
}

.nova-mobile-nav__close:hover,
.nova-mobile-nav__close:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	transform: scale(1.04);
	outline: none;
}

/* Search bar */
.nova-mobile-nav__search {
	position: relative;
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 0 12px;
	transition: border-color 160ms ease, background 160ms ease;
}

.nova-mobile-nav__search:focus-within {
	border-color: var(--nova-accent-hover);
	background: rgba(255, 255, 255, 0.1);
}

.nova-mobile-nav__search-icon {
	color: rgba(255, 255, 255, 0.6);
	flex-shrink: 0;
}

.nova-mobile-nav__search-input {
	flex: 1;
    background: transparent;
    border: 0 !important;
    outline: 0 !important;
    color: var(--nova-text-primary);
    font: inherit;
    font-size: 15px;
    padding: 12px 8px !important;
    min-width: 0;
}

.nova-mobile-nav__search-input::placeholder {
	color: rgba(255, 255, 255, 0.5) !important;
}

/* Quick actions strip */
.nova-mobile-nav__quick {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.nova-mobile-nav__quick-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 4px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	color: var(--nova-text-primary);
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-align: center;
	transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.nova-mobile-nav__quick-item:hover,
.nova-mobile-nav__quick-item:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.18);
	transform: translateY(-1px);
	outline: none;
	color: var(--nova-text-primary);
}

.nova-mobile-nav__quick-item svg {
	color: var(--nova-accent-hover);
}

.nova-mobile-nav__badge {
	display: inline-block;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	padding: 0 5px;
	margin-left: 4px;
	background: var(--nova-accent);
	border-radius: 999px;
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
	text-align: center;
	vertical-align: 2px;
}

/* Section wrapper */
.nova-mobile-nav__section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nova-mobile-nav__section-title {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
	padding: 0 4px;
}

/* Section head: title + "View all" link */
.nova-mobile-nav__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 4px;
}

.nova-mobile-nav__section-head .nova-mobile-nav__section-title {
	padding: 0;
}

.nova-mobile-nav__section-cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--nova-accent-hover);
	text-decoration: none;
	transition: color 160ms ease, gap 160ms ease;
}

.nova-mobile-nav__section-cta:hover,
.nova-mobile-nav__section-cta:focus-visible {
	color: var(--nova-text-primary);
	gap: 6px;
	outline: none;
}

/* Research-domain catalog carousel — mirrors desktop .nova-catalog-cards.
   Full-bleed via negative margin so cards visually peek past the drawer
   padding without their content touching the edge. */
.nova-mobile-nav__catalog {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	padding: 4px 20px 12px;
}

.nova-mobile-nav__catalog::-webkit-scrollbar {
	display: none;
}

.nova-mobile-nav__catalog-card {
	flex: 0 0 auto;
	width: 140px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--nova-text-primary);
	text-decoration: none;
	transition: transform 160ms ease;
}

.nova-mobile-nav__catalog-card:hover,
.nova-mobile-nav__catalog-card:focus-visible {
	color: var(--nova-text-primary);
	transform: translateY(-2px);
	outline: none;
}

.nova-mobile-nav__catalog-card-image {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: border-color 160ms ease, transform 160ms ease;
}

.nova-mobile-nav__catalog-card:hover .nova-mobile-nav__catalog-card-image,
.nova-mobile-nav__catalog-card:focus-visible .nova-mobile-nav__catalog-card-image {
	border-color: var(--nova-accent-hover);
}

.nova-mobile-nav__catalog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nova-mobile-nav__catalog-card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

/* Lead "All Products" card — same treatment as the other cards. */

.nova-mobile-nav__catalog-card-label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--nova-text-primary);
	padding: 0 2px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Mobile menu list (Explore section) */
.nova-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	overflow: hidden;
}

.nova-mobile-menu > li + li,
.nova-mobile-menu .sub-menu > li {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nova-mobile-menu a {
	display: flex;
	align-items: center;
	color: var(--nova-text-primary);
	padding: 14px 16px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background 160ms ease, color 160ms ease;
}

.nova-mobile-menu a::after {
	content: '';
	width: 6px;
	height: 6px;
	margin-left: auto;
	border-top: 1.5px solid rgba(255, 255, 255, 0.45);
	border-right: 1.5px solid rgba(255, 255, 255, 0.45);
	transform: rotate(45deg);
	transition: border-color 160ms ease, transform 160ms ease;
}

.nova-mobile-menu a:hover,
.nova-mobile-menu a:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	color: var(--nova-text-primary);
	outline: none;
}

.nova-mobile-menu a:hover::after,
.nova-mobile-menu a:focus-visible::after {
	border-color: var(--nova-accent-hover);
	transform: rotate(45deg) translate(2px, -2px);
}

.nova-mobile-menu .sub-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	background: rgba(0, 0, 0, 0.15);
}

.nova-mobile-menu .sub-menu a {
	padding: 12px 16px 12px 32px;
	font-size: 14px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.78);
}

/* Expandable group (mega-text-menu items rendered as accordions) */
.nova-mobile-menu__group {
	display: flex;
	flex-direction: column;
}

.nova-mobile-menu__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: transparent;
	border: 0;
	color: var(--nova-text-primary);
	padding: 14px 16px;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
}

/* Suppress the global ::after chevron that .nova-mobile-menu a uses,
   since our toggle has its own SVG chevron. */
.nova-mobile-menu__toggle::after {
	display: none;
}

.nova-mobile-menu__chev {
	color: rgba(255, 255, 255, 0.55);
	transition: transform 200ms ease, color 200ms ease;
	flex-shrink: 0;
}

.nova-mobile-menu__toggle:hover,
.nova-mobile-menu__toggle:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	outline: none;
}

.nova-mobile-menu__toggle:hover .nova-mobile-menu__chev,
.nova-mobile-menu__toggle:focus-visible .nova-mobile-menu__chev {
	color: var(--nova-accent-hover);
}

.nova-mobile-menu__toggle[aria-expanded="true"] .nova-mobile-menu__chev {
	transform: rotate(180deg);
	color: var(--nova-accent-hover);
}

.nova-mobile-menu__panel {
	background: rgba(0, 0, 0, 0.18);
	padding: 4px 0 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nova-mobile-menu__panel[hidden] {
	display: none;
}

.nova-mobile-menu__col + .nova-mobile-menu__col {
	margin-top: 12px;
}

.nova-mobile-menu__col-title {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	padding: 12px 20px 6px;
	margin: 0;
}

.nova-mobile-menu__col-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nova-mobile-menu__col-list a {
	display: flex;
	align-items: center;
	color: rgba(255, 255, 255, 0.85);
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
	transition: background 160ms ease, color 160ms ease;
}

/* Suppress the parent ::after chevron rule for items inside the panel. */
.nova-mobile-menu__col-list a::after {
	display: none;
}

.nova-mobile-menu__col-list a:hover,
.nova-mobile-menu__col-list a:focus-visible {
	background: rgba(255, 255, 255, 0.06);
	color: var(--nova-text-primary);
	outline: none;
}

/* Drawer foot */
.nova-mobile-nav__foot {
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.nova-mobile-nav__foot-label {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.nova-mobile-nav__foot-email {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--nova-text-primary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	word-break: break-all;
}

.nova-mobile-nav__foot-email:hover,
.nova-mobile-nav__foot-email:focus-visible {
	color: var(--nova-accent-hover);
	outline: none;
}

/* Overlay + body lock */
.nova-mobile-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	z-index: 99998;
	opacity: 0;
	pointer-events: none;
	transition: opacity 280ms ease;
}

.nova-mobile-overlay.is-open {
	opacity: 1;
	pointer-events: all;
}

body.nova-nav-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.nova-mobile-nav,
	.nova-mobile-overlay,
	.nova-mobile-nav__close,
	.nova-mobile-nav__quick-item,
	.nova-mobile-nav__tile,
	.nova-mobile-menu a {
		transition: none;
	}
}

/* --- Sticky Wrapper — topbar + header stick together --- */
#nova-sticky-wrapper {
	position: relative;
	z-index: 9999;
}

#nova-sticky-wrapper.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	animation: nova-slide-down 0.2s ease;
}

@keyframes nova-slide-down {
	from {
		transform: translateY(-100%);
	}

	to {
		transform: translateY(0);
	}
}

/* --- Responsive --- */

/* Default: hide hamburger on desktop */
#nova-menu-toggle {
	display: none;
}

/* ============================================================
   Tablet pass (≤1024px) — added 2026-05-07 (Phase 29-02)
   Wider tablets (iPad Pro etc.) currently get desktop layout
   that doesn't fit cleanly. Compress padding, gap, and chrome
   so the header reads comfortably between 768-1024.
   #masthead.site-header used where Kirki specificity matters.
   ============================================================ */
@media (max-width: 1024px) {

	/* ── Header inner density ── */
	#masthead.site-header .nova-header-inner {
		padding: 12px 24px;
		gap: 16px;
	}

	/* ── Search bar shrink ── */
	.nova-search-form {
		max-width: 280px;
		padding: 10px 16px;
	}

	/* ── Login button compact ── */
	.nova-login-btn {
		padding: 8px 16px;
		font-size: 14px;
		line-height: 20px;
	}

	/* ── Action icons (account / cart) ── */
	.nova-account-icon,
	.nova-cart-link {
		width: 36px;
		height: 36px;
	}

	/* ── Nav menu gap relax ── */
	.nova-nav-menu {
		gap: 24px;
	}

	/* ── Mega menus: tighter inner padding ── */
	.nova-mega-catalog-inner,
	.nova-mega-resources-inner {
		padding: 20px 24px 36px;
	}

	.nova-mega-resources-inner {
		gap: 64px;
	}
}

@media (max-width: 991px) {

	#nova-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		background: none;
		border: none;
		cursor: pointer;
		color: var(--nova-text-dark);
		padding: 4px;
	}

	.nova-login-btn {
		display: none;
	}

	.nova-primary-nav {
		display: none !important;
	}

	.nova-mega,
	.nova-mega-catalog,
	.nova-mega-resources {
		display: none !important;
	}
}

@media (max-width: 767px) {
	/* Header bar: hide desktop search; drawer surfaces it */
	.nova-search-form {
		display: none;
	}

	/* Header inner: tighter padding on phones */
	#masthead.site-header .nova-header-inner {
		padding: 12px 16px;
		gap: 12px;
	}

	/* Hamburger primary touch target */
	#nova-menu-toggle,
	.nova-hamburger {
		min-width: 44px;
		min-height: 44px;
	}

	/* Cart + account icons: touch target sizing */
	.nova-account-icon,
	.nova-cart-link {
		min-width: 44px;
		min-height: 44px;
		width: 44px;
		height: 44px;
	}

	/* Mobile drawer geometry */
	.nova-mobile-nav {
		width: 88vw;
		max-width: 360px;
		height: 100dvh;
	}

	.nova-mobile-nav__inner {
		padding: 24px 20px;
	}

	/* Drawer nav items: 18px / 1.2 / 12px block padding (touch) */
	.nova-mobile-menu a,
	.nova-mobile-menu__toggle {
		font-size: 18px;
		line-height: 1.2;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	/* Drawer search: full width inside drawer (already styled — explicit) */
	.nova-mobile-nav__search {
		width: 100%;
	}

	/* iOS auto-zoom guard: drawer search input must be ≥16px */
	.nova-mobile-nav__search-input {
		font-size: 16px;
	}
}

/* Smallest phones: hide every header action except the hamburger so the
   navigation drawer button always has room to render. The drawer itself
   gives access to cart / account / search so we don't lose functionality. */
@media (max-width: 480px) {
	/* Hide every action chip except the cart — the small-phone header reduces
	   to [Logo · Cart · Hamburger] so shoppers always see their cart count. */
	.nova-account-icon,
	.nova-login-btn,
	.nova-search-form,
	.nova-loyalty-chip {
		display: none !important;
	}

	/* Cart stays visible and CENTRED between logo (left) and hamburger
	   (right). margin-left:auto / margin-right:auto on the cart link
	   pushes it into the leftover space; the .nova-header-actions wrapper
	   itself has its own margin reset so the cart can free-float. */
	#masthead.site-header .nova-header-actions {
		margin-left: auto;
		margin-right: 0;
		gap: 0;
	}

	#masthead.site-header .nova-cart-link {
		display: inline-flex !important;
		margin-left: auto;
		margin-right: auto;
	}

	/* Belt-and-braces: re-assert the hamburger is visible at this width
	   in case anything else accidentally collapses it. */
	#nova-menu-toggle {
		display: flex !important;
	}

	.nova-header-inner{
		gap: 0;
		justify-content: space-between;
	}

	/* Logo shrink — keeps header chrome compact */
	#masthead.site-header .nova-logo-img {
		height: 32px;
	}

	/* Drawer typography refinement on small phones */
	.nova-mobile-menu a,
	.nova-mobile-menu__toggle {
		font-size: 16px;
	}
}

/* --- Header Live Search Dropdown ---
   Rendered outside .nova-header-inner to escape overflow:hidden.
   Position (top/left/width) is set by JS via getBoundingClientRect()
   on the search form so it aligns precisely below the input. */
.nova-header-search-dropdown {
	position: fixed;
	background: var(--nova-bg-white);
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
	max-height: 400px;
	overflow-y: auto;
	z-index: 9999;
	padding: 24px;
	color: var(--nova-text-dark);
	border: 1px solid var(--nova-border-light);
}

.nova-header-search-dropdown .nova-search-dropdown-title {
	display: block;
	font-family: var(--nova-font-body);
	font-size: 11px;
	font-weight: 500;
	color: var(--nova-text-dark);
	opacity: 0.4;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 20px;
}

.nova-header-search-dropdown .nova-search-results-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nova-header-search-dropdown .nova-search-results-list li a {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.nova-header-search-dropdown .nova-search-results-list li a:hover {
	transform: translateX(4px);
}

.nova-header-search-dropdown .nova-search-item-img {
	width: 64px;
	height: 64px;
	background: var(--nova-surface-light);
	border-radius: var(--nova-radius-input);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.nova-header-search-dropdown .nova-search-item-img img {
	width: auto;
	height: 100%;
	object-fit: contain;
}

.nova-header-search-dropdown .nova-search-item-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nova-header-search-dropdown .nova-search-item-title {
	font-family: var(--nova-font-body);
	font-size: 16px;
	font-weight: 600;
	color: var(--nova-text-dark);
}

.nova-header-search-dropdown .nova-search-item-tagline {
	font-family: var(--nova-font-body);
	font-size: 14px;
	color: var(--nova-text-dark);
	opacity: 0.6;
}

.nova-search-spinner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 16px 0;
}

.nova-search-spinner span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--nova-accent);
	animation: nova-spinner-bounce 0.9s ease-in-out infinite;
}

.nova-search-spinner span:nth-child(2) { animation-delay: 0.15s; }
.nova-search-spinner span:nth-child(3) { animation-delay: 0.3s; }

@keyframes nova-spinner-bounce {
	0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
	40%           { transform: scale(1);   opacity: 1; }
}

body #content.site-content{
	padding: 0;
}
