/* ============================================================
 * Mtech — tighten the desktop header (top bar + main header + search)
 * Shoptimizer "header-5" layout. Desktop only; mobile header untouched.
 * ============================================================ */

@media (min-width: 992px) {

	/* --- Top utility bar (phone / email / address) --- */
	.top-bar,
	.topbar-wrapper .top-bar {
		padding: 0.3rem 0 !important;
	}

	/* --- Main header row height is driven by the logo block --- */
	.site-header .site-branding {
		height: 48px !important;
	}
	.site-header .site-branding img,
	.site-header .site-branding .custom-logo,
	.site-header .site-branding svg {
		max-height: 38px !important;
		width: auto !important;
	}

	/* --- Search bar: remove the oversized vertical padding --- */
	.header-5 .site-header .site-search,
	.site-search {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
	.site-search input,
	.header-5 .site-header input[type="search"] {
		height: 39px !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		min-height: 0 !important;
	}

	/* --- Account / Checkout / Cart aligned to the shorter row --- */
	.header-5 .site-header .site-header-cart {
		height: 39px !important;
		display: flex !important;
		align-items: center !important;
	}
	.header-5 .shoptimizer-cart a.cart-contents {
		height: 39px !important;
		line-height: 39px !important;
	}

	/* --- Trim extra vertical padding on the main header row --- */
	.main-header {
		padding-top: 6px !important;
		padding-bottom: 6px !important;
	}
}
