/* =========================================================================
   MB Storefront UX: optional marketplace header polish for WoodMart.
   Loaded only when the filter 'mb_sfux_header_polish' returns true:
     add_filter( 'mb_sfux_header_polish', '__return_true' );
   Pair with the Header Builder layout in the implementation plan.
   ========================================================================= */

/* Top bar: slim, high-contrast utility strip */
.whb-top-bar {
	background: var(--mb-ink, #14171a) !important;
	color: #e9ecef;
	font-size: 12.5px;
}
.whb-top-bar .whb-flex-row { min-height: 34px; }
.whb-top-bar a,
.whb-top-bar .wd-nav > li > a,
.whb-top-bar .info-box-title,
.whb-top-bar .info-box-subtitle { color: #e9ecef !important; }
.whb-top-bar a:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.whb-top-bar .wd-header-divider::before { border-color: rgba(255, 255, 255, .2); }

/* Main row: one unified search bar */
.whb-general-header .wd-search-form form.searchform {
	--wd-form-height: 46px;
	border: 2px solid var(--mb-ink, #14171a);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.whb-general-header .wd-search-form input[type="text"],
.whb-general-header .wd-search-form input[type="search"] {
	border: 0 !important;
	box-shadow: none !important;
	font-size: 15px;
}
.whb-general-header .wd-search-form .wd-search-cat,
.whb-general-header .wd-search-form .search-by-category {
	border: 0 !important;
	border-right: 1px solid var(--mb-line, #e5e7eb) !important;
	background: var(--mb-surface, #f5f6f7);
}
.whb-general-header .wd-search-form .wd-search-cat > a,
.whb-general-header .wd-search-form .search-by-category .input-dropdown-inner > a {
	color: var(--mb-ink, #14171a);
	font-size: 13px;
	font-weight: 500;
}
.whb-general-header .wd-search-form .searchsubmit {
	width: 54px;
	background: var(--mb-red, #ff2936) !important;
	color: #fff !important;
	border-radius: 0;
}
.whb-general-header .wd-search-form .searchsubmit:hover { background: var(--mb-red-ink, #d81b2a) !important; }

/* Icon cluster: even spacing */
.whb-general-header .whb-col-right .wd-tools-element { margin-inline: 4px; }
.whb-general-header .wd-header-cart .wd-cart-number,
.whb-general-header .wd-tools-count { background: var(--mb-red, #ff2936); color: #fff; }

/* Sub-navigation strip: uniform category links */
.whb-header-bottom { border-top: 1px solid var(--mb-line, #e5e7eb); border-bottom: 1px solid var(--mb-line, #e5e7eb); }
.whb-header-bottom .whb-flex-row { min-height: 44px; }
.whb-header-bottom .wd-nav-main > li > a {
	height: 44px;
	padding-inline: 12px;
	font-size: 13.5px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: var(--mb-ink, #14171a);
}
.whb-header-bottom .wd-nav-main > li > a:hover,
.whb-header-bottom .wd-nav-main > li.current-menu-item > a {
	color: var(--mb-ink, #14171a);
	box-shadow: inset 0 -3px 0 var(--mb-red, #ff2936);
}
.whb-header-bottom .wd-header-cats .menu-opener {
	height: 44px;
	border-radius: 0;
	font-size: 13.5px;
	text-transform: none;
}

/* Mobile: the sticky row keeps search + garage chip together */
@media (max-width: 1024px) {
	.whb-general-header .mb-garage-chip { padding-inline: 4px; }
	.whb-general-header .mb-garage-chip__label { display: none; }
}
