/**
 * Marketplace Hub — site header.
 * Accent: black / near-black (#111827). No green, no blue.
 */

.mh-marketplace-header-wrap {
	--mh-header-bg:     #ffffff;
	--mh-header-text:   #111827;
	--mh-header-accent: #111827;   /* black accent */
	--mh-header-border: #e5e7eb;
	position: relative;
	z-index: 100;
	background: var(--mh-header-bg);
}

/* ── Announcement bar ────────────────────────────────────────── */
.mh-announce {
	background: #111827;
	color: #f9fafb;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}
.mh-announce__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0.5rem 1.25rem;
	text-align: center;
}
.mh-announce__inner a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	margin-left: 4px;
}

/* ── Main header ─────────────────────────────────────────────── */
.mh-header {
	background: var(--mh-header-bg);
	border-bottom: 1px solid var(--mh-header-border);
	position: sticky;
	top: 0;
	z-index: 100;
}
/* If announcement bar is showing, header sticks below it */
.mh-marketplace-header-wrap .mh-header {
	position: static; /* wrapper is what sticks */
}
.mh-marketplace-header-wrap {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 #e5e7eb;
}

.mh-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.25rem;
	height: 60px;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

/* Logo */
.mh-header__logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	color: inherit;
	text-decoration: none !important;
}
.mh-header__logo img {
	max-height: 40px;
	width: auto;
	display: block;
}
.mh-header__logo-text {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #111827;
	text-decoration: none !important;
}

/* Nav */
.mh-header__nav {
	display: flex;
	gap: 0.25rem;
	flex: 0 0 auto;
}
.mh-header__nav a {
	color: #374151;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none !important;
	padding: 0.375rem 0.75rem;
	border-radius: 6px;
	transition: background 120ms ease, color 120ms ease;
}
.mh-header__nav a:hover {
	background: #f3f4f6;
	color: #111827;
}
.mh-header__nav a[style*="color:#10b981"],
.mh-header__nav a[style*="color: #10b981"] {
	/* override any inline green from old PHP */
	color: #111827 !important;
	font-weight: 700;
}

/* Search */
.mh-header__search {
	flex: 1 1 auto;
	display: flex;
	position: relative;
	max-width: 420px;
	margin: 0 auto;
}
.mh-header__search input[type="search"] {
	width: 100%;
	padding: 0.5rem 2.75rem 0.5rem 0.875rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
	font-size: 0.875rem;
	color: #111827;
	transition: border-color 120ms ease, box-shadow 120ms ease;
	outline: none;
}
.mh-header__search input[type="search"]:focus {
	border-color: #111827;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(17,24,39,0.08);
}
.mh-header__search button {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: 0;
	background: #111827;
	color: #fff;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 120ms ease;
	padding: 0;
}
.mh-header__search button:hover { opacity: 0.8; }

/* Actions */
.mh-header__actions {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	flex: 0 0 auto;
	margin-left: auto;
}
.mh-header__action {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #374151 !important;
	text-decoration: none !important;
	padding: 0.4375rem 0.875rem;
	border-radius: 6px;
	border: 1px solid transparent;
	transition: background 120ms ease, border-color 120ms ease;
	white-space: nowrap;
}
.mh-header__action:hover {
	background: #f3f4f6;
	color: #111827 !important;
}
.mh-header__action--primary {
	background: #111827;
	color: #fff !important;
	border-color: #111827;
}
.mh-header__action--primary:hover {
	background: #1f2937;
	color: #fff !important;
}

/* Cart icon */
.mh-header__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	color: #374151 !important;
	text-decoration: none !important;
	transition: background 120ms ease;
	flex: 0 0 auto;
}
.mh-header__cart:hover {
	background: #f3f4f6;
	color: #111827 !important;
}
.mh-header__cart-count {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.mh-header__inner {
		flex-wrap: wrap;
		height: auto;
		padding: 0.625rem 1rem;
		gap: 0.625rem;
	}
	.mh-header__nav {
		order: 3;
		width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		gap: 0.25rem;
		padding-bottom: 2px;
	}
	.mh-header__nav::-webkit-scrollbar { display: none; }
	.mh-header__search {
		order: 4;
		width: 100%;
		max-width: none;
		margin: 0;
	}
	.mh-header__actions { margin-left: auto; }
	.mh-header__action { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
}
