/**
 * Slim shop header — logo left, nav center, icon utilities right.
 */

:root {
	--mdt-gold: #d9b54a;
	--mdt-gold-dark: #b8942f;
	--mdt-header-bg: #ffffff;
	--mdt-header-text: #111111;
	--mdt-header-muted: #666666;
	--mdt-drawer-bg: #000000;
	--mdt-header-search-bg: #ffffff;
	--mdt-shell-gutter: var(--mdt-archive-gutter, clamp(1.25rem, 3vw, 3.5rem));
}

/* -------------------------------------------------------------------------
   Shell
   ------------------------------------------------------------------------- */

body.mdt-modern-header .site-header,
body.mdt-modern-header #masthead,
body.mdt-modern-header .site-header .main-header,
body.mdt-modern-header .col-full-nav,
body.mdt-modern-header .header-4-container {
	background-color: var(--mdt-header-bg) !important;
	background: var(--mdt-header-bg) !important;
	background-image: none !important;
	color: var(--mdt-header-text);
}

body.mdt-modern-header.sticky-m .site-header,
body.mdt-modern-header.sticky-d .site-header,
body.mdt-modern-header .site-header.is_stuck {
	background-color: var(--mdt-header-bg) !important;
	background: var(--mdt-header-bg) !important;
}

body.mdt-modern-header .site-header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: none !important;
}

body.mdt-modern-header.sticky-m .site-header,
body.mdt-modern-header.sticky-d .site-header,
body.mdt-modern-header .site-header.is_stuck {
	box-shadow: none !important;
}

body.mdt-modern-header .col-full-nav,
body.mdt-modern-header .shoptimizer-primary-navigation,
body.mdt-modern-header .main-navigation {
	box-shadow: none !important;
}

body.mdt-modern-header .site-header .main-header.col-full {
	padding-top: 0.45rem;
	padding-bottom: 0.45rem;
}

body.mdt-modern-header .site-header .site-search {
	display: none !important;
}

body.mdt-modern-header .col-full-nav {
	border: 0;
	padding: 0;
	background: transparent;
}

body.mdt-modern-header .archive-header {
	display: none;
}

body.mdt-modern-header .secondary-navigation {
	display: none !important;
}

/* Drawer-only blocks — hidden in desktop header nav */
body.mdt-modern-header .mdt-mobile-drawer-utilities {
	display: none;
}

/* Legacy mobile drawer widget area (sibling of .main-navigation) */
body.mdt-modern-header .col-full-nav .mobile-extra {
	display: none !important;
}

/* Cart: hide price, gold count badge (all breakpoints) */
body.mdt-modern-header .shoptimizer-cart .amount {
	display: none !important;
}

body.mdt-modern-header .shoptimizer-cart .shoptimizer-cart-icon {
	position: relative !important;
	top: 0 !important;
	right: 0 !important;
}

body.mdt-modern-header .shoptimizer-cart .shoptimizer-cart-icon svg,
body.mdt-modern-header .shoptimizer-cart .shoptimizer-cart-icon svg path,
body.mdt-modern-header .shoptimizer-cart .shoptimizer-cart-icon svg circle,
body.mdt-modern-header .shoptimizer-cart .shoptimizer-cart-icon svg line {
	color: var(--mdt-header-text) !important;
	stroke: var(--mdt-header-text) !important;
}

body.mdt-modern-header .shoptimizer-cart .cart-contents {
	position: relative;
}

body.mdt-modern-header .shoptimizer-cart .mini-count,
body.mdt-modern-header .shoptimizer-cart .count,
body.mdt-modern-header .shoptimizer-cart a.cart-contents .shoptimizer-cart-icon .mini-count,
body.mdt-modern-header .shoptimizer-cart a.cart-contents .count {
	position: absolute !important;
	top: -6px !important;
	right: -8px !important;
	left: auto !important;
	bottom: auto !important;
	min-width: 18px;
	height: 18px;
	margin: 0 !important;
	padding: 0 5px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--mdt-gold) !important;
	color: #111 !important;
	font-size: 0.625rem !important;
	font-weight: 700;
	line-height: 18px !important;
	text-align: center;
	letter-spacing: 0;
	opacity: 1 !important;
	transition: none !important;
	width: auto !important;
}

body.mdt-modern-header .shoptimizer-cart a.cart-contents:hover .count,
body.mdt-modern-header .shoptimizer-cart a.cart-contents:hover .mini-count,
body.mdt-modern-header .shoptimizer-cart a.cart-contents:hover .shoptimizer-cart-icon .mini-count {
	top: -6px !important;
	color: #111 !important;
	background: var(--mdt-gold) !important;
}

body.mdt-modern-header .shoptimizer-cart a.cart-contents .count:after {
	display: none;
}

/* -------------------------------------------------------------------------
   Desktop: single slim row — logo | nav | icons
   ------------------------------------------------------------------------- */

@media (min-width: 993px) {
	body.mdt-modern-header .site-header .col-full,
	body.mdt-modern-header .main-header.col-full {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "mdt-logo mdt-nav mdt-actions";
		align-items: center !important;
		column-gap: 2rem;
		row-gap: 0;
		width: 100% !important;
		max-width: none !important;
		box-sizing: border-box !important;
		padding-left: var(--mdt-shell-gutter) !important;
		padding-right: var(--mdt-shell-gutter) !important;
		position: relative !important;
		min-height: 52px;
	}

	/* Sticky observer — keep in DOM but out of the grid flow */
	body.mdt-modern-header .main-header.col-full > .s-observer {
		display: none !important;
	}

	body.mdt-modern-header .site-header .site-branding {
		grid-area: mdt-logo;
		order: unset !important;
		flex: unset !important;
		justify-self: start;
		align-self: center;
		position: static !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		transform: none !important;
		text-align: left !important;
		margin: 0 !important;
		padding: 0 !important;
		width: auto !important;
		max-width: none !important;
		line-height: 1;
	}

	body.mdt-modern-header .site-header .site-branding .custom-logo-link,
	body.mdt-modern-header .site-header .site-branding .logo {
		margin: 0 !important;
		padding: 0 !important;
		display: inline-flex;
		align-items: center;
		line-height: 1;
	}

	body.mdt-modern-header.header-2 .site-header .site-branding,
	body.mdt-modern-header.header-3 .site-header .site-branding,
	body.mdt-modern-header.header-4 .site-header .site-branding,
	body.mdt-modern-header.header-5 .site-header .site-branding {
		position: static !important;
		top: auto !important;
		left: auto !important;
		transform: none !important;
		order: unset !important;
	}

	body.mdt-modern-header .mdt-desktop-nav {
		grid-area: mdt-nav;
		justify-self: center;
		align-self: center;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin: 0;
		box-shadow: none !important;
	}

	body.mdt-modern-header .site-header .col-full-nav {
		display: none !important;
	}

	body.mdt-modern-header.header-2 .col-full-nav,
	body.mdt-modern-header.header-3 .col-full-nav {
		order: unset !important;
	}

	body.mdt-modern-header .mdt-header-actions {
		grid-area: mdt-actions;
		order: unset !important;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		justify-self: end;
		gap: 1rem;
		margin: 0;
		flex: unset !important;
	}

	body.mdt-modern-header .mdt-header-utilities {
		display: flex;
		align-items: center;
		gap: 0.85rem;
		margin: 0;
	}

	body.mdt-modern-header .site-header .site-header-cart {
		order: unset !important;
		display: flex !important;
		align-items: center;
		margin: 0;
		flex: 0 0 auto;
		border: 0;
		padding: 0;
		height: auto;
		width: auto !important;
		line-height: 0;
	}

	body.mdt-modern-header .site-branding .custom-logo,
	body.mdt-modern-header .site-branding img {
		max-height: 34px;
		width: auto;
	}

	body.mdt-modern-header .mdt-header-utility {
		border-left: 0;
		padding: 0;
		display: flex;
		align-items: center;
		height: 2rem;
	}

	body.mdt-modern-header .mdt-header-icon-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2rem;
		height: 2rem;
		padding: 0;
		border: 0;
		background: none;
		color: var(--mdt-header-text);
		text-decoration: none;
		cursor: pointer;
		line-height: 0;
		position: relative;
	}

	body.mdt-modern-header .mdt-header-icon-btn:hover {
		color: var(--mdt-gold);
	}

	body.mdt-modern-header .mdt-header-icon-btn svg {
		display: block;
		flex-shrink: 0;
		width: 20px;
		height: 20px;
		color: currentColor;
		stroke: currentColor;
		pointer-events: none;
	}

	body.mdt-modern-header .mdt-header-utility a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		color: var(--mdt-header-text);
		text-decoration: none;
		position: relative;
		min-width: 0;
		width: auto;
		height: auto;
	}

	body.mdt-modern-header .mdt-header-utility a:hover {
		color: var(--mdt-gold);
	}

	body.mdt-modern-header .mdt-header-utility__label {
		display: none;
	}

	body.mdt-modern-header .mdt-header-utility svg {
		flex-shrink: 0;
		width: 20px;
		height: 20px;
		color: currentColor;
		stroke: currentColor;
		pointer-events: none;
	}

	body.mdt-modern-header .mdt-header-utility__count {
		position: absolute;
		top: -6px;
		right: -8px;
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		border-radius: 999px;
		background: var(--mdt-gold);
		color: #111;
		font-size: 0.625rem;
		font-weight: 700;
		line-height: 18px;
		text-align: center;
	}

	body.mdt-modern-header .shoptimizer-cart .cart-contents {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		color: var(--mdt-header-text);
		text-decoration: none;
		position: relative;
		width: 2rem;
		height: 2rem;
		padding: 0;
		line-height: 0;
		vertical-align: middle;
	}

	body.mdt-modern-header .shoptimizer-cart .cart-contents:hover {
		color: var(--mdt-gold);
	}

	body.mdt-modern-header .shoptimizer-cart .cart-contents::after {
		content: none;
	}

	body.mdt-modern-header .shoptimizer-cart .shoptimizer-cart-icon {
		order: unset;
		position: relative !important;
		top: 0 !important;
		right: 0 !important;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		line-height: 0;
	}

	body.mdt-modern-header .shoptimizer-cart .shoptimizer-cart-icon svg {
		color: currentColor;
		stroke: currentColor;
		width: 20px;
		height: 20px;
		display: block;
		top: 0 !important;
		vertical-align: middle;
	}

	body.mdt-modern-header .shoptimizer-myaccount {
		display: none !important;
	}

	body.mdt-modern-header .col-full-nav .site-header-cart {
		display: none !important;
	}

	/* Custom desktop nav --------------------------------------------------- */

	body.mdt-modern-header .mdt-desktop-nav__list {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		gap: 0.1rem;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	body.mdt-modern-header .mdt-desktop-nav__item {
		position: relative;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	body.mdt-modern-header .mdt-desktop-nav__link {
		display: inline-flex;
		align-items: center;
		gap: 0.2rem;
		padding: 0.35rem 0.65rem;
		color: var(--mdt-header-text);
		font-size: 0.875rem;
		font-weight: 600;
		text-decoration: none;
		line-height: 1.2;
		border: 0;
		background: none;
		box-shadow: none !important;
		transition: color 0.15s ease;
	}

	body.mdt-modern-header .mdt-desktop-nav__link:hover,
	body.mdt-modern-header .mdt-desktop-nav__item.current-menu-item > .mdt-desktop-nav__link,
	body.mdt-modern-header .mdt-desktop-nav__item.current-menu-ancestor > .mdt-desktop-nav__link,
	body.mdt-modern-header .mdt-desktop-nav__submenu .current-menu-item > .mdt-desktop-nav__link {
		color: var(--mdt-gold);
	}

	body.mdt-modern-header .mdt-desktop-nav__chevron {
		flex-shrink: 0;
		opacity: 0.5;
		transition: transform 0.15s ease, opacity 0.15s ease;
	}

	body.mdt-modern-header .mdt-desktop-nav__item--has-children:hover > .mdt-desktop-nav__link .mdt-desktop-nav__chevron,
	body.mdt-modern-header .mdt-desktop-nav__item--has-children:focus-within > .mdt-desktop-nav__link .mdt-desktop-nav__chevron {
		opacity: 1;
		transform: rotate(180deg);
	}

	body.mdt-modern-header .mdt-desktop-nav__item--has-children::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		height: 0.85rem;
		display: none;
	}

	body.mdt-modern-header .mdt-desktop-nav__item--has-children:hover::after,
	body.mdt-modern-header .mdt-desktop-nav__item--has-children:focus-within::after {
		display: block;
	}

	body.mdt-modern-header .mdt-desktop-nav__submenu {
		position: absolute;
		top: calc(100% + 0.35rem);
		left: 50%;
		min-width: 12rem;
		margin: 0;
		padding: 0.35rem 0;
		list-style: none;
		background: #fff;
		border: 1px solid rgba(0, 0, 0, 0.08);
		border-radius: 8px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateX(-50%);
		transition: opacity 0.15s ease, visibility 0.15s ease;
		z-index: 120;
	}

	/* Invisible bridge on the dropdown panel itself. */
	body.mdt-modern-header .mdt-desktop-nav__submenu::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: -0.85rem;
		height: 0.85rem;
	}

	body.mdt-modern-header .mdt-desktop-nav__item--has-children:hover > .mdt-desktop-nav__submenu,
	body.mdt-modern-header .mdt-desktop-nav__item--has-children:focus-within > .mdt-desktop-nav__submenu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(-50%);
	}

	body.mdt-modern-header .mdt-desktop-nav__submenu .mdt-desktop-nav__link {
		display: block;
		width: 100%;
		padding: 0.5rem 1rem;
		font-weight: 500;
		white-space: nowrap;
		border-radius: 0;
	}

	body.mdt-modern-header .mdt-desktop-nav__submenu .mdt-desktop-nav__link:hover {
		background: rgba(217, 181, 74, 0.08);
	}

	body.mdt-modern-header .col-full-nav .shoptimizer-primary-navigation.col-full,
	body.mdt-modern-header .col-full-nav > .shoptimizer-primary-navigation {
		max-width: none !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		box-sizing: border-box !important;
	}

	body.mdt-modern-header .col-full-nav .main-navigation {
		width: 100%;
	}

	body.mdt-modern-header .col-full-nav .main-navigation ul.menu,
	body.mdt-modern-header .col-full-nav .main-navigation ul.nav-menu {
		justify-content: center !important;
		display: flex !important;
		flex-wrap: nowrap;
		gap: 0.35rem;
	}

	body.mdt-modern-header .main-navigation ul.menu > li > a,
	body.mdt-modern-header .main-navigation ul.nav-menu > li > a {
		color: var(--mdt-header-text);
		font-size: 1rem;
		font-weight: 600;
		letter-spacing: 0;
		text-transform: none;
		padding: 0.45rem 0.8rem;
		line-height: 1.2;
		display: inline-flex;
		align-items: center;
		position: relative;
	}

	body.mdt-modern-header .main-navigation ul.menu > li > a:hover,
	body.mdt-modern-header .main-navigation ul.nav-menu > li > a:hover,
	body.mdt-modern-header .main-navigation ul.menu > li.current-menu-item > a,
	body.mdt-modern-header .main-navigation ul.nav-menu > li.current-menu-item > a,
	body.mdt-modern-header .main-navigation ul.menu > li.current-menu-ancestor > a,
	body.mdt-modern-header .main-navigation ul.nav-menu > li.current-menu-ancestor > a {
		color: var(--mdt-gold);
	}

	/* Underline only as wide as the text — using ::after pseudo-element */
	body.mdt-modern-header .main-navigation ul.menu > li.current-menu-item > a,
	body.mdt-modern-header .main-navigation ul.nav-menu > li.current-menu-item > a,
	body.mdt-modern-header .main-navigation ul.menu > li.current-menu-ancestor > a,
	body.mdt-modern-header .main-navigation ul.nav-menu > li.current-menu-ancestor > a {
		box-shadow: none;
		border-bottom: 0;
	}

	body.mdt-modern-header .main-navigation ul.menu > li.current-menu-item > a::after,
	body.mdt-modern-header .main-navigation ul.nav-menu > li.current-menu-item > a::after,
	body.mdt-modern-header .main-navigation ul.menu > li.current-menu-ancestor > a::after,
	body.mdt-modern-header .main-navigation ul.nav-menu > li.current-menu-ancestor > a::after {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0.65rem;
		right: 0.65rem;
		height: 2px;
		background: var(--mdt-gold);
		border-radius: 1px;
	}
}

/* -------------------------------------------------------------------------
   Mobile
   ------------------------------------------------------------------------- */

@media (max-width: 992px) {
	body.mdt-modern-header .mdt-desktop-nav {
		display: none !important;
	}

	body.mdt-modern-header .main-header.col-full {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		padding: 0.5rem 1rem !important;
		min-height: 56px;
		position: relative;
		box-sizing: border-box;
	}

	body.mdt-modern-header .site-branding {
		order: 1 !important;
		position: relative !important;
		transform: none !important;
		flex: 1 1 auto;
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: flex-start !important;
		width: auto !important;
		height: auto !important;
		min-height: 0 !important;
		text-align: left !important;
	}

	body.mdt-modern-header .site-branding .custom-logo,
	body.mdt-modern-header .site-branding img {
		max-height: 36px;
		width: auto;
	}

	body.mdt-modern-header .site-branding .custom-logo-link {
		margin-left: 2.75rem;
	}

	body.mdt-modern-header .site-branding button.menu-toggle {
		left: 0;
		width: 44px;
		z-index: 2;
		background-color: transparent !important;
		border: 0;
	}

	body.mdt-modern-header .site-branding button.menu-toggle:hover {
		background-color: transparent !important;
	}

	body.mdt-modern-header .site-branding button.menu-toggle .bar {
		background-color: var(--mdt-header-text) !important;
	}

	body.mdt-modern-header .site-branding button.menu-toggle .bar-text {
		color: var(--mdt-header-text) !important;
	}

	body.mdt-modern-header .site-header .site-search {
		display: none !important;
	}

	body.mdt-modern-header .mdt-header-actions {
		order: 2 !important;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 0.85rem;
		margin: 0 0 0 auto;
		flex-shrink: 0;
	}

	/* Search lives in the drawer on mobile — hide header icon */
	body.mdt-modern-header .mdt-header-search {
		display: none !important;
	}

	body.mdt-modern-header .mdt-header-utilities {
		display: flex;
		align-items: center;
		gap: 0.85rem;
		margin: 0;
	}

	body.mdt-modern-header .site-header .site-header-cart {
		order: unset !important;
		display: flex !important;
		align-items: center;
		position: static !important;
		transform: none !important;
		border-left: 0;
		padding: 0;
		margin: 0;
		line-height: 1;
		width: auto !important;
		flex-shrink: 0;
	}

	body.mdt-modern-header .main-header .col-full-nav {
		order: 99 !important;
		flex: 0 0 auto;
	}

	body.mdt-modern-header .mdt-header-utility {
		border-left: 0;
		padding: 0;
	}

	body.mdt-modern-header .mdt-header-utility a,
	body.mdt-modern-header .shoptimizer-cart .cart-contents {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		min-width: 0;
		font-size: 0;
		position: relative;
		color: var(--mdt-header-text) !important;
	}

	body.mdt-modern-header .mdt-header-utility svg,
	body.mdt-modern-header .shoptimizer-cart .shoptimizer-cart-icon svg {
		width: 22px;
		height: 22px;
		color: currentColor;
		stroke: currentColor;
	}

	body.mdt-modern-header .mdt-header-utility a:hover,
	body.mdt-modern-header .shoptimizer-cart .cart-contents:hover {
		color: var(--mdt-gold) !important;
		opacity: 1;
	}

	body.mdt-modern-header .mdt-header-utility__count,
	body.mdt-modern-header .shoptimizer-cart .shoptimizer-cart-icon .mini-count {
		top: -6px !important;
		right: -8px !important;
		left: auto !important;
	}

	body.mdt-modern-header .mdt-header-utility__label {
		display: none;
	}

	body.mdt-modern-header .shoptimizer-cart .shoptimizer-cart-icon {
		top: 0 !important;
		right: 0 !important;
	}

	body.mdt-modern-header .shoptimizer-cart .shoptimizer-cart-icon svg {
		top: 0 !important;
	}

	body.mdt-modern-header .site-header .site-header-cart,
	body.mdt-modern-header .site-header .site-header-cart .cart-contents,
	body.mdt-modern-header .site-header .site-header-cart .shoptimizer-cart-icon {
		transform: translateY(-2px);
	}

	body.mdt-modern-header .shoptimizer-cart .cart-contents::after {
		content: none;
	}

	/* Mobile drawer — stays dark for contrast */
	body.mdt-modern-header .col-full-nav {
		background: var(--mdt-drawer-bg) !important;
		padding: 0 1rem 1.5rem;
	}

	body.mdt-modern-header .mdt-mobile-drawer-search {
		padding: 1rem 0 0.75rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		margin-bottom: 0.5rem;
	}

	body.mdt-modern-header .mdt-mobile-drawer-search .site-search {
		display: block !important;
	}

	body.mdt-modern-header .mdt-mobile-drawer-search input[type="search"],
	body.mdt-modern-header .mdt-mobile-drawer-search .search-field {
		width: 100%;
		min-height: 44px;
		padding: 0.65rem 1rem 0.65rem 2.75rem;
		border: 1px solid #e2e2e2;
		border-radius: 8px;
		background: #fff;
		color: #111;
		font-size: 0.9375rem;
	}

	body.mdt-modern-header .mdt-mobile-drawer-search .woocommerce-product-search,
	body.mdt-modern-header .mdt-mobile-drawer-search form {
		position: relative;
	}

	body.mdt-modern-header .mdt-mobile-drawer-search .woocommerce-product-search:before,
	body.mdt-modern-header .mdt-mobile-drawer-search form:before {
		left: 0.85rem;
		top: 50%;
		margin-top: -9px;
		background-color: #888;
	}

	body.mdt-modern-header .main-navigation {
		padding-top: 0.5rem;
	}

	body.mdt-modern-header .main-navigation ul.menu > li > a,
	body.mdt-modern-header .main-navigation ul.nav-menu > li > a {
		color: rgba(255, 255, 255, 0.92);
		font-size: 0.875rem;
		padding: 0.55rem 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	body.mdt-modern-header .main-navigation ul.menu > li > a:hover,
	body.mdt-modern-header .main-navigation ul.nav-menu > li > a:hover {
		color: var(--mdt-gold);
	}

	/* Sub-menu links — white on dark drawer (parent theme defaults to grey) */
	body.mdt-modern-header .main-navigation ul.menu ul.sub-menu a,
	body.mdt-modern-header .main-navigation ul.menu .sub-menu-wrapper a,
	body.mdt-modern-header .main-navigation ul.menu .sub-menu-link,
	body.mdt-modern-header .main-navigation ul.menu ul li a {
		color: rgba(255, 255, 255, 0.9) !important;
		font-weight: 500;
	}

	body.mdt-modern-header .main-navigation ul.menu ul.sub-menu a:hover,
	body.mdt-modern-header .main-navigation ul.menu .sub-menu-wrapper a:hover,
	body.mdt-modern-header .main-navigation ul.menu .sub-menu-link:hover {
		color: var(--mdt-gold) !important;
	}

	/* Active section in mobile drawer */
	body.mdt-modern-header .main-navigation ul.menu > li.current-menu-item > a,
	body.mdt-modern-header .main-navigation ul.menu > li.current-menu-ancestor > a,
	body.mdt-modern-header .main-navigation ul.menu > li.current_page_parent > a,
	body.mdt-modern-header .main-navigation ul.menu li.current-menu-item > a,
	body.mdt-modern-header .main-navigation ul.menu .sub-menu li.current-menu-item > a {
		color: var(--mdt-gold) !important;
		font-weight: 700;
	}

	body.mdt-modern-header .main-navigation ul.menu > li.current-menu-ancestor > a,
	body.mdt-modern-header .main-navigation ul.menu > li.current-menu-item.menu-item-has-children > a {
		border-left: 3px solid var(--mdt-gold);
		padding-left: 0.35rem;
		margin-left: -0.35rem;
	}

	body.mdt-modern-header .main-navigation ul.menu li.menu-item-has-children span.caret:after {
		background-color: #fff;
		opacity: 0.85;
	}

	body.mdt-modern-header .main-navigation ul.menu li.menu-item-has-children span.caret {
		height: 44px;
	}

	body.mdt-modern-header .main-navigation ul.menu > li.menu-item-has-children > a {
		padding-right: 2.25rem;
	}

	body.mdt-modern-header .main-navigation ul.menu li.menu-item-has-children li.menu-item-has-children span.caret:after {
		background-color: rgba(255, 255, 255, 0.75);
	}

	body.mdt-modern-header .main-navigation .menu-primary-menu-container > ul > li > a {
		font-size: 1rem;
		font-weight: 600;
		letter-spacing: 0.02em;
	}

	body.mdt-modern-header .main-navigation h4,
	body.mdt-modern-header .main-navigation .mobile-extra-field h4 {
		color: rgba(255, 255, 255, 0.45);
		font-size: 0.6875rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		margin: 1rem 0 0.35rem;
	}

	/* Legacy text widget (grey Account links) — replaced by drawer buttons */
	body.mdt-modern-header .col-full-nav .mobile-extra,
	body.mdt-modern-header .main-navigation .mobile-extra,
	body.mdt-modern-header .main-navigation .mobile-extra-field {
		display: none !important;
	}

	body.mdt-modern-header .mdt-mobile-drawer-utilities {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.65rem;
		margin-top: 1.25rem;
		padding-top: 0;
		border-top: 0;
	}

	body.mdt-modern-header .mdt-mobile-drawer-utilities__btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.45rem;
		min-height: 44px;
		padding: 0.55rem 0.75rem;
		border-radius: 8px;
		border: 1px solid rgba(255, 255, 255, 0.14);
		background: rgba(255, 255, 255, 0.06);
		color: #fff;
		font-size: 0.875rem;
		font-weight: 600;
		line-height: 1.2;
		text-decoration: none;
		transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	}

	body.mdt-modern-header .mdt-mobile-drawer-utilities__btn svg {
		flex-shrink: 0;
		color: var(--mdt-gold);
	}

	body.mdt-modern-header .mdt-mobile-drawer-utilities__btn:hover,
	body.mdt-modern-header .mdt-mobile-drawer-utilities__btn:focus-visible {
		background: rgba(217, 181, 74, 0.14);
		border-color: rgba(217, 181, 74, 0.45);
		color: #fff;
	}

	body.mdt-modern-header .mobile-menu.close-drawer span {
		color: #fff;
	}
}

/* -------------------------------------------------------------------------
   SearchWP Live Ajax — overlay modal (desktop) + mobile drawer
   ------------------------------------------------------------------------- */

body.mdt-modern-header dialog.shoptimizer-modal.mdt-search-modal[data-shoptimizermodal-id="searchToggle"][open] {
	display: flex !important;
	align-items: flex-start;
	justify-content: center;
	margin: 0 !important;
	padding: clamp(2rem, 5vh, 3.5rem) 1rem 1.5rem;
	width: 100vw !important;
	max-inline-size: 100vw !important;
	height: 100vh !important;
	max-height: 100vh !important;
	inset: 0 !important;
	position: fixed !important;
	background: rgba(0, 0, 0, 0.72) !important;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 0;
	box-sizing: border-box;
	overflow-y: auto;
	z-index: 100000 !important;
}

body.mdt-modern-header dialog.mdt-search-modal[data-shoptimizermodal-id="searchToggle"] .shoptimizer-modal--container {
	width: min(92vw, 40rem) !important;
	height: auto !important;
	min-height: 0;
	max-height: min(88vh, 44rem);
	margin: 0 auto;
	padding: 0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
	overflow: visible !important;
	display: flex;
	flex-direction: column;
}

body.admin-bar.mdt-modern-header dialog.mdt-search-modal[data-shoptimizermodal-id="searchToggle"] {
	padding-top: calc(clamp(2rem, 5vh, 3.5rem) + 32px);
}

body.mdt-modern-header dialog.mdt-search-modal[data-shoptimizermodal-id="searchToggle"] form.mdt-search-modal__toolbar {
	position: relative;
	top: auto;
	right: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding: 0.85rem 1rem 0.85rem 1.25rem;
	border-bottom: 1px solid #ececec;
	font-size: 1rem;
	font-weight: 600;
	color: #111;
}

body.mdt-modern-header dialog.mdt-search-modal[data-shoptimizermodal-id="searchToggle"] .mdt-search-modal__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
}

body.mdt-modern-header dialog.mdt-search-modal[data-shoptimizermodal-id="searchToggle"] .shoptimizer-modal--button_close {
	position: relative !important;
	flex-shrink: 0;
	height: 2rem;
	width: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #666;
}

body.mdt-modern-header dialog.mdt-search-modal[data-shoptimizermodal-id="searchToggle"] .shoptimizer-modal--button_close:hover,
body.mdt-modern-header dialog.mdt-search-modal[data-shoptimizermodal-id="searchToggle"] .shoptimizer-modal--button_close:focus-visible {
	color: #111;
	background: rgba(0, 0, 0, 0.05);
}

body.mdt-modern-header dialog.mdt-search-modal[data-shoptimizermodal-id="searchToggle"] .shoptimizer-modal--button_close svg {
	width: 1.35rem;
	height: 1.35rem;
}

body.mdt-modern-header dialog.mdt-search-modal[data-shoptimizermodal-id="searchToggle"] .shoptimizer-modal--content {
	position: relative;
	max-width: none;
	margin: 0;
	padding: 1rem 1.25rem 1.25rem;
	overflow: visible !important;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

body.mdt-modern-header .mdt-search-form--modal {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1 1 auto;
}

body.mdt-modern-header .mdt-search-form {
	width: 100%;
}

body.mdt-modern-header .mdt-search-form .searchwp-form,
body.mdt-modern-header .mdt-search-form .woocommerce-product-search,
body.mdt-modern-header .mdt-search-form form {
	position: relative;
	width: 100%;
	margin: 0;
}

body.mdt-modern-header .mdt-search-form .searchwp-form .swp-flex--row,
body.mdt-modern-header .mdt-search-form .searchwp-form .searchwp-form-input-container {
	width: 100%;
}

body.mdt-modern-header .mdt-search-form--modal input[type="search"],
body.mdt-modern-header .mdt-search-form--modal .search-field,
body.mdt-modern-header .mdt-search-form--modal .swp-input--search {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem 0.75rem 2.75rem;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
	color: #111;
	font-size: 1rem;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.mdt-modern-header .mdt-search-form--modal input[type="search"]:focus,
body.mdt-modern-header .mdt-search-form--modal .swp-input--search:focus {
	outline: none;
	border-color: var(--mdt-gold);
	box-shadow: 0 0 0 3px rgba(217, 181, 74, 0.22);
}

body.mdt-modern-header .mdt-search-form--modal .woocommerce-product-search:before,
body.mdt-modern-header .mdt-search-form--modal .searchwp-form:before,
body.mdt-modern-header .mdt-search-form--modal form:before {
	content: "";
	position: absolute;
	left: 0.85rem;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
	mask-size: contain;
	mask-repeat: no-repeat;
	background-color: #888;
	pointer-events: none;
	z-index: 1;
}

body.mdt-modern-header .mdt-search-modal .searchwp-live-search-results {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	margin: 0.75rem 0 0;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	max-height: min(52vh, 26rem);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	z-index: 1;
}

body.mdt-modern-header .mdt-search-modal .searchwp-live-search-results.searchwp-live-search-results-showing {
	display: block !important;
	height: auto !important;
	max-height: min(52vh, 26rem) !important;
	overflow-y: auto !important;
	opacity: 1 !important;
}

body.mdt-modern-header .mdt-search-modal .searchwp-live-search-results .spinner {
	display: none !important;
}

body.mdt-modern-header .mdt-search-modal .searchwp-live-search-no-min-chars::after {
	content: "Mindestens 2 Zeichen eingeben";
	display: block;
	padding: 1rem 1.1rem 0.85rem;
	text-align: center;
	color: #777;
	font-size: 0.875rem;
}

body.mdt-modern-header .mdt-search-modal .searchwp-live-search-no-results {
	padding: 1.25rem 1rem;
	color: #666;
	font-size: 0.875rem;
}

body.mdt-modern-header .mdt-search-modal .searchwp-live-search-result {
	padding: 0.65rem 0.85rem;
	border-bottom: 1px solid #f0f0f0;
}

body.mdt-modern-header .mdt-search-modal .searchwp-live-search-result:last-child {
	border-bottom: 0;
}

body.mdt-modern-header .mdt-mobile-drawer-search .searchwp-form input[type="search"],
body.mdt-modern-header .mdt-mobile-drawer-search .swp-input--search {
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 1rem 0.65rem 2.75rem;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #fff;
	color: #111;
	font-size: 0.9375rem;
	box-sizing: border-box;
}

body.mdt-modern-header .mdt-mobile-drawer-search .searchwp-form:before {
	content: "";
	position: absolute;
	left: 0.85rem;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
	mask-size: contain;
	mask-repeat: no-repeat;
	background-color: #888;
	pointer-events: none;
	z-index: 1;
}

body.mdt-modern-header .mdt-mobile-drawer-search .searchwp-live-search-results .spinner {
	display: none !important;
}

body.mdt-modern-header .mdt-mobile-drawer-search .searchwp-live-search-no-min-chars::after {
	content: "Mindestens 2 Zeichen eingeben";
}

body.mdt-modern-header .searchwp-live-search-result .searchwp-live-search-result--title a {
	color: #111;
	font-weight: 600;
	text-decoration: none;
}

body.mdt-modern-header .searchwp-live-search-result .searchwp-live-search-result--title a:hover {
	color: var(--mdt-gold-dark);
}

body.mdt-modern-header .searchwp-live-search-result .searchwp-live-search-result--price {
	color: var(--mdt-gold-dark);
	font-weight: 600;
}

@media (max-width: 992px) {
	body.mdt-modern-header dialog.shoptimizer-modal.mdt-search-modal[data-shoptimizermodal-id="searchToggle"] {
		display: none !important;
	}
}
