/* Isolated MaStore header — black / white. Scoped to .msh / .msh-dock. */

.msh {
	--msh-bg: #000000;
	--msh-ink: #fafafa;
	--msh-muted: #a1a1aa;
	--msh-line: #27272a;
	--msh-soft: #18181b;
	--msh-sale: #ffffff;
	--msh-ease: cubic-bezier(0.16, 1, 0.3, 1);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 80;
	color: var(--msh-ink);
	background: #000;
	font-family: inherit;
	border-bottom: 1px solid #e5e5e5;
	transition: border-color 0.2s var(--msh-ease);
}

.msh.is-stuck {
	border-bottom-color: #e5e5e5;
}

.msh a,
.msh button {
	color: inherit;
	cursor: pointer;
}

.msh-skip {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	transform: none;
}

.msh-skip:focus,
.msh-skip:focus-visible {
	left: 12px;
	top: 8px;
	z-index: 95;
	width: auto;
	height: auto;
	margin: 0;
	padding: 8px 12px;
	overflow: visible;
	clip: auto;
	clip-path: none;
	border-radius: 8px;
	background: #fff;
	color: #000;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transform: none;
}

.msh-skip-target {
	height: 0;
	overflow: hidden;
}

.msh-shell {
	width: min(1440px, calc(100% - 32px));
	margin: 0 auto;
}

.msh.is-compact .msh-utils {
	display: none;
}

.msh-announce {
	display: block;
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	background: #000;
	color: #d4d4d8;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	border-bottom: 1px solid #18181b;
	container-type: inline-size;
	container-name: msh-announce;
}

.msh-announce__fade {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, #000 0, transparent 4%, transparent 96%, #000 100%);
}

.msh-announce__track {
	display: flex;
	width: max-content;
	animation: msh-marquee 180s linear infinite;
}

.msh-announce__group {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-evenly;
	min-width: 100%;
	min-width: 100cqi;
	box-sizing: border-box;
}

.msh-announce__item {
	flex: 1 0 auto;
	white-space: nowrap;
	padding: 8px 32px;
	text-align: center;
}

.msh-announce:hover .msh-announce__track {
	animation-play-state: paused;
}

@keyframes msh-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.msh-rail {
	font-size: 12px;
	border-bottom: 1px solid var(--msh-line);
}

.msh-rail__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	min-height: 34px;
	align-items: center;
}

.msh-rail a {
	text-decoration: none;
	color: var(--msh-muted);
	transition: color 0.18s var(--msh-ease);
}

.msh-rail a:hover {
	color: #fff;
}

.msh-rail__left,
.msh-rail__right {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.msh-bar {
	position: relative;
	z-index: 30;
}

.msh-bar__row {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 68px;
}

.msh-logo {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.msh-logo img {
	display: block;
	width: 40px;
	height: auto;
	max-height: 32px;
	object-fit: contain;
}

.msh-word {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.18em;
}

.msh-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}

.msh-burger__bar {
	display: block;
	width: 18px;
	height: 1.6px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.2s var(--msh-ease);
}

.msh-burger[aria-expanded="true"] .msh-burger__bar:first-child {
	transform: translateY(3.3px) rotate(45deg);
}

.msh-burger[aria-expanded="true"] .msh-burger__bar:last-child {
	transform: translateY(-3.3px) rotate(-45deg);
}

.msh-search {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	height: 44px;
	padding: 0 6px 0 16px;
	border: 1px solid #3f3f46;
	border-radius: 999px;
	background: #0a0a0a;
	transition: border-color 0.18s var(--msh-ease), box-shadow 0.18s var(--msh-ease);
}

.msh-search:focus-within {
	border-color: #fff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.msh-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 16px;
	outline: none;
	color-scheme: dark;
}

.msh-search input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	margin: 0 6px;
	cursor: pointer;
	background: center / 14px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.msh-search input[type="search"]::placeholder {
	color: #a1a1aa;
}

.msh-kbd {
	display: none;
	min-width: 22px;
	height: 22px;
	margin-right: 6px;
	border: 1px solid #3f3f46;
	border-radius: 6px;
	color: #a1a1aa;
	font: 600 11px/22px ui-monospace, SFMono-Regular, Menlo, monospace;
	text-align: center;
}

@media (hover: hover) and (min-width: 901px) {
	.msh-kbd { display: inline-block; }
	.msh-search:focus-within .msh-kbd { opacity: 0; }
}

.msh-search button[type="submit"] {
	flex: 0 0 auto;
	min-width: 92px;
	height: 36px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 700;
	transition: transform 0.16s var(--msh-ease);
}

.msh-search button[type="submit"]:hover { transform: translateY(-1px); }
.msh-search button[type="submit"]:active { transform: scale(0.94); }

.msh-suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	z-index: 80;
	background: #000;
	max-height: min(68vh, 420px);
	overflow: auto;
	padding: 8px;
	border: 1px solid var(--msh-line);
	border-radius: 14px;
	background: #000;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
	transform: translateY(-6px);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.2s var(--msh-ease), opacity 0.2s var(--msh-ease);
}

.msh-suggest.is-open {
	transform: none;
	opacity: 1;
	pointer-events: auto;
}

.msh-suggest[hidden] { display: none; }

.msh-suggest a,
.msh-suggest p {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 10px;
	text-decoration: none;
	color: #fafafa;
	font-size: 13px;
}

.msh-suggest a:hover,
.msh-suggest a.is-active { background: #18181b; }

.msh-suggest img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 8px;
	background: #18181b;
}

.msh-suggest span {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.msh-suggest b { font-weight: 600; }
.msh-suggest small { color: var(--msh-muted); }
.msh-suggest em { font-style: normal; font-weight: 650; white-space: nowrap; }

.msh-actions {
	display: flex;
	align-items: center;
	gap: 2px;
}

.msh-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	text-decoration: none;
	transition: transform 0.18s var(--msh-ease), background 0.18s var(--msh-ease);
}

.msh-icon:hover { background: #18181b; transform: translateY(-1px); }
.msh-icon:active { transform: scale(0.94); }

.msh-icon__tip {
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	z-index: 7;
	padding: 4px 8px;
	border-radius: 6px;
	background: #fff;
	color: #000;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 4px);
	transition: opacity 0.16s var(--msh-ease), transform 0.16s var(--msh-ease);
}

.msh-icon:hover .msh-icon__tip,
.msh-icon:focus-visible .msh-icon__tip {
	opacity: 1;
	transform: translate(-50%, 0);
}

.msh-badge {
	position: absolute;
	top: 6px;
	right: 4px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.msh-nav {
	position: relative;
	z-index: 4;
	border-top: 1px solid var(--msh-line);
}

.msh-nav__row {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 46px;
	overflow-x: auto;
	scrollbar-width: none;
}

.msh-nav__row::-webkit-scrollbar { display: none; }

.msh-nav__btn,
.msh-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.msh-nav__btn svg { transition: transform 0.18s var(--msh-ease); }
.msh-nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.msh-nav__btn::after,
.msh-nav__link::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 4px;
	height: 1px;
	background: #fff;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s var(--msh-ease);
}

.msh-nav__btn:hover::after,
.msh-nav__btn[aria-expanded="true"]::after,
.msh-nav__link:hover::after {
	transform: scaleX(1);
}

.msh-nav__link.is-sale { color: #fff; }

/* —— Mega —— */
.msh-mega {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	top: var(--msh-offset, 120px);
	z-index: 200;
	background: #000;
	color: #fff;
	border-top: 1px solid var(--msh-line);
	max-height: min(78vh, 760px);
	overflow: hidden;
}

.msh-mega.is-open {
	display: block;
}

.msh-mega[hidden] { display: none; }

.msh-scrim {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 190;
	background: rgba(0, 0, 0, 0.62);
}

.msh-scrim.is-open { display: block; }
.msh-scrim[hidden] { display: none; }

.msh-mega__stage {
	display: flex;
	flex-direction: column;
	height: min(78vh, 760px);
	min-height: 420px;
}

.msh-mega__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 52px;
	flex: 0 0 auto;
}

.msh-mega__toolbar p {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.msh-mega__tools {
	display: flex;
	align-items: center;
	gap: 12px;
}

.msh-mega__tools a {
	color: var(--msh-muted);
	font-size: 13px;
	text-decoration: none;
}

.msh-mega__tools a:hover { color: #fff; }

.msh-mega__close {
	width: 36px;
	height: 36px;
	border: 1px solid var(--msh-line);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.16s var(--msh-ease), background 0.16s var(--msh-ease);
}

.msh-mega__close:hover {
	background: #18181b;
	transform: rotate(90deg);
}

.msh-mega__split {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	min-height: 0;
	flex: 1 1 auto;
	border-top: 1px solid var(--msh-line);
}

.msh-mega__aside {
	overflow: auto;
	border-right: 1px solid var(--msh-line);
	padding: 8px 0 16px;
}

.msh-cat {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 14px;
	border: 0;
	background: transparent;
	color: #a1a1aa;
	font: inherit;
	font-size: 14px;
	text-align: left;
	transition: color 0.16s var(--msh-ease), background 0.16s var(--msh-ease);
}

.msh-cat span { flex: 1 1 auto; }

.msh-cat i {
	font-style: normal;
	font-size: 11px;
	color: #71717a;
	font-variant-numeric: tabular-nums;
}

.msh-cat svg {
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.16s var(--msh-ease), transform 0.16s var(--msh-ease);
}

.msh-cat:hover,
.msh-cat.is-active {
	color: #fff;
	background: #0a0a0a;
}

.msh-cat.is-active svg {
	opacity: 1;
	transform: none;
}

.msh-mega__main {
	position: relative;
	overflow: auto;
	min-height: 360px;
}

.msh-panel {
	display: none;
	padding: 22px 8px 28px 28px;
}

.msh-panel.is-active {
	display: block;
}

.msh-panel__back {
	display: none;
}

.msh-panel__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.msh-panel__title {
	font-size: 28px;
	font-weight: 750;
	letter-spacing: -0.03em;
	text-decoration: none;
	text-wrap: balance;
}

.msh-panel__all {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #a1a1aa;
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
}

.msh-panel__all:hover { color: #fff; }

.msh-panel__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 6px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.msh-panel__grid > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 40px;
	padding: 6px 0;
	color: #fafafa;
	font-size: 15px;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.16s var(--msh-ease);
}

.msh-panel__grid > li > a svg {
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.16s var(--msh-ease), transform 0.16s var(--msh-ease);
}

.msh-panel__grid > li > a:hover {
	border-bottom-color: #fff;
}

.msh-panel__grid > li > a:hover svg {
	opacity: 1;
	transform: none;
}

.msh-panel__sub {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.msh-panel__sub a {
	display: block;
	padding: 3px 0;
	color: #a1a1aa;
	font-size: 13px;
	text-decoration: none;
}

.msh-panel__sub a:hover { color: #fff; }

.msh-panel__empty {
	margin: 0;
	color: var(--msh-muted);
	font-size: 14px;
}

.msh-brand-filter {
	width: min(220px, 42vw);
	height: 36px;
	padding: 0 12px;
	border: 1px solid #3f3f46;
	border-radius: 999px;
	background: #0a0a0a;
	color: #fff;
	font: inherit;
	font-size: 13px;
	outline: none;
}

.msh-brand-filter:focus { border-color: #fff; }

.msh-az {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0 0 14px;
}

.msh-az__btn {
	min-width: 32px;
	height: 32px;
	padding: 0 6px;
	border: 1px solid transparent;
	background: transparent;
	color: #a1a1aa;
	font: inherit;
	font-size: 12px;
	font-weight: 650;
}

.msh-az__btn:hover,
.msh-az__btn.is-active {
	color: #fff;
	border-color: #fff;
}

.msh-mega--brands .msh-brands {
	overflow: auto;
	flex: 1 1 auto;
	padding-bottom: 20px;
}

.msh-brands {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 12px;
}

.msh-brand {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	color: #fff;
}

.msh-brand.is-hidden { display: none; }

.msh-mega--brands.is-open .msh-brand:not(.is-hidden) {
	animation: msh-pop 0.32s var(--msh-ease) both;
	animation-delay: var(--msh-stagger, 0ms);
}

.msh-brand__media {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border: 1px solid #27272a;
	border-radius: 12px;
	background: #0a0a0a;
	overflow: hidden;
	transition: border-color 0.18s var(--msh-ease), transform 0.18s var(--msh-ease);
}

.msh-brand__media img {
	width: 72%;
	height: 72%;
	object-fit: contain;
}

.msh-brand__letter {
	font-size: 22px;
	font-weight: 750;
}

.msh-brand__name {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
}

.msh-brand:hover .msh-brand__media {
	border-color: #fff;
	transform: translateY(-2px);
}

.msh-brands-empty {
	grid-column: 1 / -1;
	margin: 8px 0 0;
	color: var(--msh-muted);
	font-size: 14px;
}

@keyframes msh-pop {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.msh-dock { display: none; }

.msh-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.msh :focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

body.msh-open { overflow: hidden; }

@media (max-width: 900px) {
	.msh-rail,
	.msh-nav { display: none; }

	.msh-chrome { display: block; }
	.msh.is-compact .msh-chrome { display: none; }
	.msh-announce,
	.msh.is-compact .msh-announce { display: block; }

	.msh-burger { display: inline-flex; }
	.msh-word { display: none; }

	.msh-search { display: none; }

	.msh-search.is-open {
		display: flex;
		position: absolute;
		left: 12px;
		right: 12px;
		top: 100%;
		z-index: 82;
		margin-top: 8px;
	}

	.msh-bar__row { min-height: 56px; }
	.msh-actions .msh-icon:not(.msh-cart) { display: none; }
	.msh-icon__tip { display: none; }

	.msh-dock {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 85;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		height: calc(64px + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: #000;
		border-top: 1px solid #27272a;
	}

	.msh-dock a,
	.msh-dock button {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-height: 44px;
		border: 0;
		background: transparent;
		color: #fff;
		font: inherit;
		font-size: 10px;
		font-weight: 600;
		text-decoration: none;
	}

	.msh-dock a:active,
	.msh-dock button:active { transform: scale(0.94); }

	.msh-mega {
		position: fixed;
		top: var(--msh-offset, 56px);
		bottom: calc(64px + env(safe-area-inset-bottom));
		max-height: none;
		overflow: hidden;
	}

	.msh-mega__stage { height: 100%; }

	.msh-mega__split {
		grid-template-columns: 1fr;
		position: relative;
	}

	.msh-mega__aside {
		border-right: 0;
		height: 100%;
	}

	.msh-mega__main {
		position: absolute;
		inset: 0;
		background: #000;
		transform: translateX(100%);
		transition: transform 0.24s var(--msh-ease);
		z-index: 2;
	}

	.msh-mega.is-drill .msh-mega__main {
		transform: none;
	}

	.msh-panel {
		padding: 12px 16px 24px;
	}

	.msh-panel__back {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		height: 40px;
		margin: 0 0 12px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #fff;
		font: inherit;
		font-size: 14px;
		font-weight: 600;
	}

	.msh-panel__title { font-size: 22px; }

	.msh-panel__grid { grid-template-columns: 1fr; }

	.msh-az { padding: 0 0 10px; }

	body.mc-page .mc { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
	.msh,
	.msh *,
	.msh *::before,
	.msh *::after {
		animation: none !important;
		transition: none !important;
	}

	.msh-chrome,
	.msh.is-compact .msh-chrome { grid-template-rows: 1fr; }

	.msh-announce__track { width: auto; transform: none; }
	.msh-announce__item[aria-hidden="true"] { display: none; }
}

.msh-scroll{overflow:auto;scrollbar-width:thin;scrollbar-color:#52525b #0a0a0a}
.msh-scroll::-webkit-scrollbar{width:8px}
.msh-scroll::-webkit-scrollbar-thumb{background:#3f3f46;border-radius:999px}


.msh-act--wish {
	position: relative;
}
.msh-act--wish .msh-badge {
	position: static !important;
	top: auto;
	right: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: 11px;
	font-weight: 800;
	line-height: 20px;
}
.msh-act--wish .msh-badge.is-empty {
	display: none;
}
.msh-act--wish.is-hot svg path {
	fill: currentColor;
}

/* Mobile: keep the mark on the physical centre of the header, independent
   of the controls at either edge. The desktop wordmark stays untouched. */
@media (max-width: 900px) {
	#msh-root .msh-bar__row {
		position: relative;
	}

	#msh-root .msh-logo {
		position: absolute;
		left: 50%;
		z-index: 1;
		flex: 0 0 auto;
		margin: 0;
		transform: translateX(-50%);
	}

	#msh-root .msh-word {
		display: none !important;
	}
}
