/* ===========================================================================
   3xToys header (common/tpl_header_3xtoys.php + jscript/threex_header.js)
   Loaded after Wokiee's theme.css and user_custom_styles.css (loader_threex_header.php).
   Everything is scoped to .x3-header, so Wokiee's other header layouts are untouched.
   Breakpoints follow Wokiee's JS: desktop >= 1025px, mobile/tablet <= 1024px.
   =========================================================================== */
.x3-header {
	--x3-red: #d20003;
	--x3-ink: #191919;
	--x3-muted: #777;
	--x3-line: #e9e7e7;
	--x3-soft: #f7f8fa;
	--x3-gutter: clamp(16px, 3vw, 40px);
	--x3-max: 1600px;
	--x3-logo-h: 60px;
	--x3-nav-h: 48px;
	--x3-thumb: 48px;    /* mega menu level-2 image */
	--x3-thumb-l3: 32px; /* mega menu level-3 image */
	--x3-thumb-l4: 24px; /* mega menu level-4 image */
	--x3-mthumb: 40px;   /* mobile menu image (levels 2 and 3) */
	position: relative;
	z-index: 60;
	background: #fff;
	color: var(--x3-ink);
}
.x3-header .x3-wrap {
	max-width: var(--x3-max);
	margin: 0 auto;
	padding-left: var(--x3-gutter);
	padding-right: var(--x3-gutter);
}
.x3-header a:focus-visible,
.x3-header button:focus-visible,
.x3-header input:focus-visible {
	outline: 2px solid var(--x3-ink);
	outline-offset: 2px;
}

/* ---- Sticky: the whole header sticks with a negative top, so only the part from the
   menu row down stays on screen (desktop); on phones/tablets the logo/icons/search rows.
   threex_header.js sets --x3-sticky-offset. overflow-x: clip (not hidden) keeps
   Wokiee's body/html horizontal clipping without breaking position: sticky. ---- */
body:has(.x3-header.x3-is-sticky),
html.touch-device:has(.x3-header.x3-is-sticky) {
	overflow-x: clip;
}
#headerWrapper:has(> .x3-header.x3-is-sticky) {
	position: sticky;
	top: calc(var(--x3-sticky-offset, 0px) * -1);
	z-index: 60;
}
/* While Wokiee's mobile menu or a mobile cart/account panel is open, drop the header's
   stacking context (a sticky element always creates one) so Wokiee's page backdrop
   (body level, z-index 21) covers the header rows and its slide-in panels (z-index 22,
   rendered inside the header) still sit above the backdrop. Page scrolling is locked
   while these are open, so nothing moves. */
body.mm-open #headerWrapper:has(> .x3-header.x3-is-sticky),
body.tt-popup-dropdown #headerWrapper:has(> .x3-header.x3-is-sticky) { position: static; z-index: auto; }
body.mm-open .x3-header, body.tt-popup-dropdown .x3-header { z-index: auto; }
/* While a Bootstrap modal is open (newsletter popup, quick view, add-to-cart), keep the
   header below Wokiee's modal (z-index 30) and its backdrop (24): the whole popup and its
   close button stay visible and the header is dimmed like the rest of the page. */
body.modal-open #headerWrapper:has(> .x3-header.x3-is-sticky) { z-index: 20; }
.x3-header.x3-stuck .x3-nav,
.x3-header.x3-stuck .x3-main {
	box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .18);
}
@media (min-width: 1025px) {
	.x3-header.x3-stuck .x3-main { box-shadow: none; }
}

/* ---- Row 1: announcement ---- */
.x3-announce {
	background: var(--x3-red);
	color: #fff;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}
.x3-announce__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	gap: 12px;
}
.x3-announce__track {
	flex: 0 1 auto;
	min-width: 0;
	text-align: center;
}
.x3-announce__msg {
	margin: 0;
	padding: 8px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.x3-announce__msg a { color: #fff; text-decoration: underline; }
.x3-announce__arrow {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
}
.x3-announce__arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
	transform: translate(-30%, -50%) rotate(-45deg);
}
.x3-announce__next::before { transform: translate(-70%, -50%) rotate(135deg); }

/* ---- Row 2: logo, search, icons ---- */
.x3-main {
	background: #fff;
	border-bottom: 1px solid var(--x3-line);
}
.x3-main__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "logo search icons";
	align-items: center;
	column-gap: clamp(24px, 3vw, 56px);
	min-height: 88px;
}
.x3-main__burger { grid-area: burger; display: none; }
.x3-main__logo { grid-area: logo; line-height: 0; }
.x3-main__search { grid-area: search; justify-self: center; width: 100%; max-width: 760px; }
.x3-main__icons { grid-area: icons; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.x3-header .x3-logo { display: inline-block; margin: 0; }
.x3-header .x3-logo img {
	display: block;
	height: var(--x3-logo-h);
	width: auto;
	max-width: none;
	max-height: none;
}

/* search */
.x3-search {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}
.x3-header .x3-search__input {
	width: 100%;
	height: 48px;
	padding: 0 60px 0 22px;
	border: 1px solid var(--x3-line);
	border-radius: 999px;
	background: var(--x3-soft);
	color: var(--x3-ink);
	font-size: 15px;
	line-height: 48px;
	box-shadow: none;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, background-color .2s;
}
.x3-header .x3-search__input::placeholder { color: #8a8a8a; opacity: 1; }
.x3-header .x3-search__input:focus { border-color: var(--x3-ink); background: #fff; }
.x3-header .x3-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.x3-search__btn {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--x3-red);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s;
}
.x3-search__btn:hover { background: var(--x3-ink); }
.x3-search .search-results {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 70;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	text-align: left;
}
.x3-search .search-results:has(.resultsContainer:not(:empty)),
.x3-search .search-results:has(.no-res[style*="block"]) { display: block; }
.x3-search .search-results:has(.resultsContainer[style*="none"]):not(:has(.no-res[style*="block"])) { display: none; }
.x3-search .search-results .no-res { display: none; margin: 0; }
.x3-search .search-results ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.x3-search .search-results ul > li a { display: block; color: var(--x3-muted); }
.x3-search .search-results ul > li a .thumbnail img { width: 100%; height: auto; }
.x3-search .search-results ul > li a .tt-description { padding-top: 10px; font-size: 14px; line-height: 20px; white-space: normal; }
.x3-search .search-results ul > li a .tt-title { color: var(--x3-ink); }
.x3-search .search-results ul > li a:hover .tt-title { color: var(--x3-red); }
.x3-search .search-results .tt-view-all { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--x3-red); cursor: pointer; }

/* icons: account / cart / currency (Wokiee objects, moved between the desktop and
   mobile parents by bundle.js; both sets of parents sit in this row) */
.x3-main__icons .tt-parent-box { margin: 0; }
.x3-main__icons .tt-parent-box:empty { display: none; }
.x3-header .x3-main__icons .tt-dropdown-obj .tt-dropdown-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 10px;
	color: var(--x3-ink);
	font-size: 22px;
}
.x3-header .x3-main__icons .tt-dropdown-obj .tt-dropdown-toggle:hover,
.x3-header .x3-main__icons .tt-dropdown-obj.active .tt-dropdown-toggle { color: var(--x3-red); }
.x3-header .x3-main__icons .tt-dropdown-toggle > * { pointer-events: none; }
.x3-header .x3-icon-label {
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .01em;
}
.x3-header .x3-main__icons .tt-cart .tt-dropdown-toggle { position: relative; }
.x3-header .x3-main__icons .tt-cart .tt-badge-cart {
	position: absolute;
	top: 2px;
	left: 24px;
	right: auto;
	min-width: 18px;
	width: auto;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}
.x3-header .x3-currency-code { font-size: 14px; font-weight: 600; }
.x3-header .x3-caret {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .2s;
}
/* Desktop: each dropdown (currency, account, cart) opens right under its own button,
   right-aligned to it. Wokiee only makes .tt-dropdown-obj the positioning parent inside its
   own header markup; without this the panels positioned against the whole header and opened
   below the menu row at the page edge. Phones/tablets keep Wokiee's slide-in panels. */
@media (min-width: 1025px) {
	.x3-header .x3-main__icons .tt-dropdown-obj { position: relative; }
	.x3-header .x3-main__icons .tt-dropdown-obj .tt-dropdown-menu {
		top: calc(100% + 6px);
		right: 0;
		left: auto;
		z-index: 40; /* above the menu row (20) and mega menu panels (30) */
	}
}

/* ---- Row 3: main menu (desktop only: .tt-desktop-header is hidden <= 1024px by theme.css) ---- */
.x3-header .x3-nav {
	position: relative; /* containing block of the mega menu panels */
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--x3-line);
}
.x3-header .x3-nav .tt-desctop-parent-menu,
.x3-header .x3-nav .tt-desctop-menu,
.x3-header .x3-nav .mainmenu-nav { width: 100%; margin: 0; }
.x3-header .x3-nav .tt-desctop-menu nav > ul {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	height: var(--x3-nav-h);
	margin: 0 calc(var(--x3-item-pad, 14px) * -1);
	padding: 0;
	overflow: hidden; /* until threex_header.js has moved what doesn't fit into "More" */
}
.x3-header .x3-nav .tt-desctop-menu.x3-menu-ready nav > ul { overflow: visible; }
.x3-header .x3-nav .tt-desctop-menu nav > ul > li {
	position: static;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin: 0;
}
.x3-header .x3-nav .tt-desctop-menu nav > ul > li.x3-overflow,
.x3-header .x3-nav .tt-desctop-menu nav > ul > li[hidden] { display: none; }
.x3-header .x3-nav .tt-desctop-menu nav > ul > li.x3-nav-highlight { order: 99; }
.x3-header .x3-nav .tt-desctop-menu nav > ul > li.x3-more { order: 98; position: relative; }

.x3-header .x3-nav .tt-desctop-menu nav > ul > li > a,
.x3-header .x3-nav .x3-more__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: var(--x3-nav-h);
	padding: 0 var(--x3-item-pad, 14px);
	color: var(--x3-ink);
	background: none;
	border: 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .01em;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
}
/* long names without a short menu label: cut with an ellipsis rather than wrap */
.x3-header .x3-nav .tt-desctop-menu nav > ul > li > a { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; display: block; line-height: var(--x3-nav-h); }
.x3-header .x3-nav .tt-desctop-menu nav > ul > li > a .tt-badge { display: none; }
.x3-header .x3-nav .tt-desctop-menu nav > ul > li.x3-has-panel > a { padding-right: 4px; }
.x3-header .x3-nav .tt-desctop-menu nav > ul > li > a::after,
.x3-header .x3-nav .x3-more__btn::after {
	content: "";
	position: absolute;
	left: var(--x3-item-pad, 14px);
	right: var(--x3-item-pad, 14px);
	bottom: 0;
	height: 3px;
	background: var(--x3-red);
	transform: scaleX(0);
	transition: transform .2s;
}
.x3-header .x3-nav .tt-desctop-menu nav > ul > li.x3-has-panel > a::after { right: 0; }
.x3-header .x3-nav .tt-desctop-menu nav > ul > li.x3-open > a,
.x3-header .x3-nav .tt-desctop-menu nav > ul > li > a:hover,
.x3-header .x3-nav .tt-desctop-menu nav > ul > li.x3-open > .x3-more__btn { color: var(--x3-red); }
.x3-header .x3-nav .tt-desctop-menu nav > ul > li.x3-open > a::after,
.x3-header .x3-nav .tt-desctop-menu nav > ul > li.x3-open > .x3-more__btn::after,
.x3-header .x3-nav .tt-desctop-menu nav > ul > li.selected > a::after,
.x3-header .x3-nav .tt-desctop-menu nav > ul > li.active > a::after { transform: scaleX(1); }

/* highlighted item (e.g. Blowouts) */
.x3-header .x3-nav-hl { color: var(--x3-red); font-weight: 700; }

/* "NEW" item (wt_common/tpl_wt_drop_menu_static_content.php + tpl_mobile_menu_3xtoys.php):
   red pill badge. Not scoped to .x3-header: Wokiee's panel menu moves the mobile menu out of it. */


/* caret toggle (keyboard / touch opener) */
.x3-header .x3-nav .x3-caret-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: var(--x3-nav-h);
	margin-right: calc(var(--x3-item-pad, 14px) - 8px);
	padding: 0;
	border: 0;
	background: none;
	color: var(--x3-muted);
	cursor: pointer;
}
.x3-header .x3-nav li.x3-open > .x3-caret-btn,
.x3-header .x3-nav li.x3-open > .x3-more__btn .x3-caret { color: var(--x3-red); }
.x3-header .x3-nav li.x3-open > .x3-caret-btn .x3-caret,
.x3-header .x3-nav li.x3-open > .x3-more__btn .x3-caret { transform: translateY(2px) rotate(-135deg); }
.x3-header .x3-nav .x3-more__btn .x3-caret { margin-left: 8px; color: var(--x3-muted); }

/* ---- Mega menu panel: full width under the menu row, never over the menu or logo ---- */
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu {
	display: none !important;
	position: absolute;
	top: 100% !important;
	left: 0 !important;
	right: 0 !important;
	width: auto !important;
	min-width: 0;
	max-width: none !important; /* theme.css caps panels at 1200px */
	margin: 0 !important;
	padding: 24px 0 28px;
	border: 0;
	border-top: 1px solid var(--x3-line);
	border-radius: 0;
	background: #fff;
	box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .18);
	z-index: 30;
	max-height: calc(100vh - var(--x3-panel-top, 160px) - 8px);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.x3-header .x3-nav .tt-desctop-menu li.x3-open > .dropdown-menu { display: block !important; opacity: 1 !important; }
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu > * {
	max-width: var(--x3-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--x3-gutter);
	padding-right: var(--x3-gutter);
}
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu > .row { display: block; }
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu > .row > [class*="col"] { max-width: none; width: auto; padding: 0; flex: none; }

/* panel head: category name + "View all ..." (added by threex_header.js) */
.x3-header .x3-panel-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}
.x3-header .x3-panel-title { font-size: 18px; font-weight: 600; color: var(--x3-ink); }
.x3-header .x3-panel-all { font-size: 14px; font-weight: 600; color: var(--x3-red); white-space: nowrap; }
.x3-header .x3-panel-all:hover, .x3-header .x3-panel-title:hover { color: var(--x3-ink); }

/* Wokiee's .container inside the panel would add its own width cap and padding */
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .mmenu-submenu-inside > .container { max-width: none; width: auto; margin: 0; padding: 0; }

/* subcategory columns: each level-2 category (image + name) with its level-3 list below it.
   CSS columns (not a grid) so short and long lists pack without gaps; tall panels scroll. */
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .tt-col-list.level1 {
	display: block !important;
	column-width: 250px;
	column-gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .tt-col-list.level1 > li {
	display: block;
	flex: none;
	width: auto;
	max-width: none;
	margin: 0 0 20px;
	padding: 0;
	break-inside: avoid;
}
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .tt-col-list .tt-title-submenu {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--x3-ink);
}
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .tt-col-list .tt-title-submenu > a:first-child {
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .tt-col-list .tt-title-submenu > a:last-child:not(:first-child) {
	order: -1;
	flex: 0 0 var(--x3-thumb);
}
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .tt-col-list .tt-title-submenu span.submenu-img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--x3-thumb);
	height: var(--x3-thumb);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .tt-col-list .tt-title-submenu img {
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
}
/* (a category without an image gets images/category_placeholder_image.jpg, see 3xtoys_megamenu.php) */
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .tt-col-list .tt-title-submenu span.submenu-img { border: 1px solid var(--x3-line); }
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .tt-col-list .tt-title-submenu:hover,
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .tt-col-list .tt-title-submenu:hover a { color: var(--x3-red); }

/* level 3: image + name, hanging under the level-2 image */
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu ul.x3-mm-l3 {
	display: block;
	position: static;
	margin: 8px 0 0 calc(var(--x3-thumb) / 2);
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--x3-line);
	background: none;
	box-shadow: none;
}
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu ul.x3-mm-l3 > li { display: block; margin: 0; padding: 0; }
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu ul.x3-mm-l3 a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 0 4px 12px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	text-transform: none;
	color: #444;
}
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu ul.x3-mm-l3 a:hover { color: var(--x3-red); }
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .x3-mm-thumb {
	flex: 0 0 var(--x3-thumb-l3);
	width: var(--x3-thumb-l3);
	height: var(--x3-thumb-l3);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--x3-line);
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .x3-mm-thumb img { width: 100%; height: 100%; max-width: none; margin: 0; object-fit: contain; }
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .x3-mm-name { min-width: 0; }

/* level 4: smaller, indented under its level-3 image, dashed guide line */
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu ul.x3-mm-l4 {
	display: block;
	position: static;
	margin: 0 0 4px calc(12px + var(--x3-thumb-l3) / 2);
	padding: 0;
	list-style: none;
	background: none;
	box-shadow: none;
}
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu ul.x3-mm-l4 > li { display: block; margin: 0; padding: 0; }
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu ul.x3-mm-l3 ul.x3-mm-l4 a {
	gap: 8px;
	padding: 3px 0 3px 12px;
	font-size: 12px;
	color: #666;
	border-left: 1px dashed var(--x3-line);
}
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu ul.x3-mm-l3 ul.x3-mm-l4 a:hover { color: var(--x3-red); }
.x3-header .x3-nav .tt-desctop-menu .dropdown-menu .x3-mm-thumb--l4 {
	flex-basis: var(--x3-thumb-l4);
	width: var(--x3-thumb-l4);
	height: var(--x3-thumb-l4);
	border-radius: 3px;
}

/* mobile slide-in menu: image in front of level-2 and level-3 names */
.x3-mthumb {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--x3-mthumb, 40px);
	height: var(--x3-mthumb, 40px);
	margin-right: 12px;
	vertical-align: middle;
	border: 1px solid #e9e7e7;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}
.x3-mthumb img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
/* Until panelmenu.js has split the menu into panels, the nested lists sit just off screen and
   the browser would download every menu image ("near the viewport"). Hidden lists don't load
   lazy images; after the split, sub-panels are hidden until opened, so images load per panel. */
nav.panel-menu > ul ul { display: none; }
/* keep long names clear of the panel's ">" arrow (drawn at right: 30px, 24px wide) */
.mmpanel a.mm-next-level:has(> .x3-mthumb) { padding-right: 58px; }

/* "More" dropdown: a simple list anchored under the More item */
.x3-header .x3-more__menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 240px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: #fff;
	border-top: 1px solid var(--x3-line);
	box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .18);
	z-index: 31;
}
.x3-header li.x3-open > .x3-more__menu { display: block; }
.x3-header .x3-more__menu a {
	display: block;
	padding: 9px 20px;
	color: var(--x3-ink);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
}
.x3-header .x3-more__menu a:hover, .x3-header .x3-more__menu a:focus-visible { color: var(--x3-red); background: var(--x3-soft); }

/* ---- breakpoints ---- */
@media (min-width: 1025px) and (max-width: 1439px) {
	.x3-header { --x3-logo-h: 52px; --x3-item-pad: 12px; }
	.x3-header .x3-nav .tt-desctop-menu nav > ul > li > a,
	.x3-header .x3-nav .x3-more__btn { font-size: 14px; }
}
@media (min-width: 1025px) and (max-width: 1199px) {
	.x3-header { --x3-logo-h: 44px; --x3-item-pad: 10px; }
	.x3-main__inner { min-height: 76px; }
	.x3-header .x3-icon-label:not(.x3-currency-code) { display: none; }
}
@media (max-width: 1024px) {
	.x3-header { --x3-logo-h: 40px; }
	.x3-main__inner {
		grid-template-columns: auto auto minmax(0, 1fr) auto;
		grid-template-areas: "burger logo search icons";
		column-gap: 16px;
		min-height: 68px;
	}
	.x3-main__burger { display: flex; align-items: center; }
	/* Wokiee's red menu button (tpl_btn_menu_toggle02, .stylization-02) as a 40px square
	   with the icon centred; its red background, radius and black hover come from theme.css */
	.x3-header .x3-main__burger .tt-menu-toggle {
		display: inline-flex !important; /* theme.css forces inline-block !important */
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		margin: 0;
		padding: 0;
		line-height: 1;
		top: 0;
	}
	.x3-header .x3-main__burger .tt-menu-toggle i {
		display: block;
		font-size: 18px;
		line-height: 1;
		color: #fff;
	}
	.x3-header .x3-icon-label:not(.x3-currency-code) { display: none; }
	.x3-header .x3-main__icons .tt-dropdown-obj .tt-dropdown-toggle { padding: 6px 8px; }
	.x3-header .x3-search__input { height: 44px; line-height: 44px; }
	.x3-header .x3-search__btn { width: 36px; height: 36px; font-size: 16px; }
	.x3-search .search-results ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.x3-header { --x3-logo-h: 30px; --x3-gutter: 12px; }
	.x3-main__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas:
			"burger logo icons"
			"search search search";
		column-gap: 8px;
		row-gap: 0;
		min-height: 0;
	}
	.x3-main__logo { min-height: 56px; display: flex; align-items: center; }
	.x3-header .x3-logo img { max-width: 100%; height: auto; max-height: var(--x3-logo-h); }
	.x3-main__search { max-width: none; padding-bottom: 10px; }
	.x3-header .x3-main__icons .tt-dropdown-obj .tt-dropdown-toggle { padding: 6px; min-width: 40px; justify-content: center; }
	.x3-header .x3-currency-code { font-size: 13px; }
	.x3-announce { font-size: 13px; }
	.x3-search .search-results { padding: 14px; }
	.x3-search .search-results ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
	.x3-header { --x3-logo-h: 24px; }
	.x3-header .x3-caret { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.x3-header *, .x3-header *::before, .x3-header *::after { transition: none !important; }
}
