

.mtx-topbar {
	--mtx-topbar-strip: 8px;
	--mtx-topbar-drop: 48px;
	--mtx-topbar-paper: #f1f1f1;
	--mtx-topbar-shape: var(--mtx-topbar-paper);
	--mtx-topbar-ink: #2b2b2b;
	--mtx-topbar-ink-dim: #2b2b2b8c;
	--mtx-topbar-accent: #e4032e;
	--mtx-topbar-grid-a: 0.07;
	--mtx-topbar-lit: #1c1c1c;
	--mtx-topbar-lit-a: 0.18;

	position: fixed;
	inset: 0 0 auto;
	z-index: 1000;
	height: calc(var(--mtx-topbar-strip) + var(--mtx-topbar-drop));
	pointer-events: none;
	font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--mtx-topbar-ink);
}

.mtx-topbar.is-light {
	--mtx-topbar-grid-a: 0;
	--mtx-topbar-lit-a: 0.32;
}

.mtx-topbar {
	transition: opacity 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mtx-topbar.is-scrolling {
	opacity: 0;
	transition-duration: 140ms;
}

.mtx-topbar.is-scrolling .mtx-topbar__tab {
	pointer-events: none;
}

.mtx-topbar.is-glass {
	--mtx-topbar-shape: transparent;
	--mtx-topbar-grid-a: 0;
	--mtx-topbar-lit-a: 0.16;
}

.mtx-topbar__glass {
	position: fixed;
	inset: 0;
	opacity: 0;
	pointer-events: none;

	background: #ffffff8c;
	backdrop-filter: blur(14px) saturate(150%);
	-webkit-backdrop-filter: blur(14px) saturate(150%);

	clip-path: url(#mtx-topbar-clip);

	transition: opacity 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mtx-topbar.is-glass .mtx-topbar__glass {
	opacity: 1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.mtx-topbar__glass {
		background: #ffffffe6;
	}
}

.mtx-topbar[data-mtx-force="solid"].is-glass {
	--mtx-topbar-shape: var(--mtx-topbar-paper);
	--mtx-topbar-grid-a: 0.07;
	--mtx-topbar-lit-a: 0.18;
}

.mtx-topbar[data-mtx-force="solid"].is-glass .mtx-topbar__glass {
	opacity: 0;
}

.mtx-topbar[data-mtx-force="glass"] {
	--mtx-topbar-shape: transparent;
	--mtx-topbar-grid-a: 0;
	--mtx-topbar-lit-a: 0.16;
}

.mtx-topbar[data-mtx-force="glass"] .mtx-topbar__glass {
	opacity: 1;
}

.mtx-topbar__shape {
	position: absolute;
	inset: 0 0 auto 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.mtx-topbar__fill {
	fill: var(--mtx-topbar-shape);
	transition: fill 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mtx-topbar__edge {
	fill: none;
	stroke: url(#mtx-topbar-edge);
	stroke-width: 1;
}

.mtx-topbar__shape stop {
	stop-color: var(--mtx-topbar-lit);
	transition: stop-color 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mtx-topbar__shape .mtx-topbar__lit {
	stop-opacity: var(--mtx-topbar-lit-a);
	transition:
		stop-color 260ms cubic-bezier(0.16, 1, 0.3, 1),
		stop-opacity 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mtx-topbar__grid {
	position: fixed;
	inset: 0;
	background-image: url("grid.svg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: var(--mtx-topbar-grid-a);
	transition: opacity 260ms cubic-bezier(0.16, 1, 0.3, 1);
	clip-path: url(#mtx-topbar-clip);
	pointer-events: none;
}

.mtx-topbar__tab {
	position: absolute;
	top: var(--mtx-topbar-strip);
	left: 50%;
	transform: translateX(-50%);
	height: var(--mtx-topbar-drop);
	display: flex;
	align-items: center;
	padding-inline: 12px;
	box-sizing: border-box;

	pointer-events: auto;
}

.mtx-topbar__tabs {
	display: flex;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mtx-topbar__tab-item {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 36px;
	padding-inline: clamp(12px, calc((100vw - 220px) / 16), 22px);

	border-radius: 999px;
	color: var(--mtx-topbar-ink-dim);
	text-decoration: none;
	white-space: nowrap;
	transition:
		color 240ms cubic-bezier(0.16, 1, 0.3, 1),
		background 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mtx-topbar__tab-item:hover {
	color: var(--mtx-topbar-ink);
}

.mtx-topbar__tab-item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.mtx-topbar__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.mtx-topbar__tab-item--replica {
	--mtx-topbar-accent: #e4032e;
}

.mtx-topbar__tab-item--homegp {
	--mtx-topbar-accent: #fa0dc9;
}

.mtx-topbar__tab-item[aria-current="page"] {
	color: var(--mtx-topbar-ink);
}

.mtx-topbar__tab-item[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -6px;
	width: 7px;
	height: 2px;
	margin-left: -3.5px;
	border-radius: 999px;
	background: var(--mtx-topbar-accent);
}

.mtx-topbar__thumb {
	flex: 0 0 auto;
	display: grid;
	place-content: center;
	width: 34px;
	height: 26px;
	background: #1c1c1c;
	border-radius: 2px;
}

.mtx-topbar__thumb img {
	display: block;
	max-width: 30px;
	max-height: 22px;
	width: auto;
	height: auto;
}

/* The tab still carries data-stock="outofstock" from mt_nav_tab() in
   functions.php — only the visible label is switched off. Operator asked for
   it hidden on 2026-11-11 while the HomeGP livery (product 736) is out of
   stock across all six sizes. Restore this rule to bring the badge back:

   .mtx-topbar__tab-item[data-stock="outofstock"] .mtx-topbar__label::after {
     content: " · sold out";
     color: var(--mtx-topbar-accent);
     letter-spacing: 0.08em;
   }
*/

.mtx-topbar__cart {
	position: fixed;
	top: clamp(12px, 1.6vw, 22px);
	right: clamp(12px, 2vw, 28px);

	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	box-sizing: border-box;

	border-radius: 999px;
	background: var(--mtx-topbar-shape);
	box-shadow: inset 0 0 0 1px #1c1c1c1a;
	color: var(--mtx-topbar-ink);
	text-decoration: none;

	pointer-events: auto;
	transition:
		background 260ms cubic-bezier(0.16, 1, 0.3, 1),
		color 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mtx-topbar.is-glass .mtx-topbar__cart {
	background: #ffffff8c;
	backdrop-filter: blur(14px) saturate(150%);
	-webkit-backdrop-filter: blur(14px) saturate(150%);
	box-shadow: inset 0 0 0 1px #ffffff40;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.mtx-topbar.is-glass .mtx-topbar__cart {
		background: #ffffffe6;
	}
}

.mtx-topbar.is-scrolling .mtx-topbar__cart {
	pointer-events: none;
}

.mtx-topbar__cart:not(.has-items) {
	visibility: hidden;
	pointer-events: none;
}

.mtx-topbar[data-mtx-cart-empty="show"] .mtx-topbar__cart {
	visibility: visible;
	pointer-events: auto;
}

.mtx-topbar.is-carttab .mtx-topbar__cart {
	top: var(--mtx-topbar-strip);
	right: 0;
	width: 62px;
	height: var(--mtx-topbar-drop);
	border-radius: 0;

	background: none;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.mtx-topbar.is-carttab .mtx-topbar__cart-badge {
	top: 4px;
	right: 10px;
	border-color: transparent;
}

.mtx-topbar__cart svg {
	width: 20px;
	height: 20px;
}

.mtx-topbar__cart-badge {
	position: absolute;
	top: -1px;
	right: -1px;
	display: none;
	min-width: 19px;
	height: 19px;
	padding-inline: 5px;
	box-sizing: border-box;
	border-radius: 999px;
	border: 2px solid var(--mtx-topbar-shape);
	background: #1c1c1c;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 15px;
	text-align: center;
	letter-spacing: 0;
}

.mtx-topbar__cart.has-items .mtx-topbar__cart-badge {
	display: block;
}

@media (max-width: 600px) {
	.mtx-topbar__cart {
		width: 38px;
		height: 38px;
		top: 9px;
		right: 10px;
	}

	.mtx-topbar__cart svg {
		width: 18px;
		height: 18px;
	}
}

body.mtx-topbar-owns-cart .mtx-hero .wp-block-woocommerce-mini-cart {
	display: none;
}

body.single-product .mtx-hero {
	margin: 12px;
	border-radius: clamp(10px, 1.1vw, 18px);
	overflow: hidden;
	min-height: calc(100svh - 24px);
}

body.single-product .mtx-buy {
	align-self: center;
}

body.single-product form.variations_form {
	display: block;
}

@media (max-width: 1024px) {
	body.single-product .mtx-buy {
		padding-top: 72px;
	}

	body.single-product .mtx-gallery {
		grid-column: 1 / -1;
		margin-top: 40px;
	}
}

@media (max-width: 600px) {

	body.single-product .mtx-hero .wp-block-woocommerce-mini-cart {
		top: 8px;
		right: 12px;
		transform: none;
		transform-origin: top right;
	}

	body.single-product .mtx-buy {
		padding-top: 64px;
	}
}

@media (max-width: 600px) {
	.mtx-topbar {
		--mtx-topbar-drop: 40px;
	}

	.mtx-topbar__tab {
		padding-inline: 8px;
	}

	.mtx-topbar__tab-item {
		height: 30px;
		gap: 7px;
	}

	.mtx-topbar__label {
		font-size: 9px;
		letter-spacing: 0.04em;
	}

	.mtx-topbar__thumb {
		width: 16px;
		height: 12px;
	}

	.mtx-topbar__thumb img {
		max-width: 14px;
		max-height: 11px;
	}

	.mtx-topbar__tab {
		padding-inline: 4px;
	}

	.mtx-topbar__tab-item {
		gap: 4px;
		padding-inline: 4px;
	}
}

@media (min-width: 1025px) and (max-height: 880px) {
	body.single-product .mtx-buy {
		padding-block: 24px;
	}

	body.single-product .mtx-buy .wp-block-post-excerpt {
		margin-top: 14px;
	}

	body.single-product .mtx-buy .mtx-label {
		margin-top: 20px;
	}

	body.single-product .mtx-buy .mtx-note {
		margin-top: 10px;
	}
}

@media (max-width: 385px) {
	.mtx-topbar__thumb {
		display: none;
	}

	.mtx-topbar__label {
		font-size: 10px;
		letter-spacing: 0.06em;
	}

	.mtx-topbar__tab-item {
		padding-inline: 6px;
	}
}

@media (max-width: 350px) {
	body.single-product .mtx-hero .wp-block-woocommerce-mini-cart {
		top: 60px;
		right: 10px;
		transform: none;
	}

	body.single-product .mtx-buy {
		padding-top: 104px;
	}
}

body.mtx-topbar-offset {
	padding-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
	.mtx-topbar,
	.mtx-topbar * {
		transition: none !important;
	}
}
