/* Shared header and Search V2. Scoped to the public site. */
body.page-id-48 #masthead,
body.page-id-97 #masthead { display:block !important; }

.ohcs-search-trigger { display:inline-flex; align-items:center; justify-content:center; width:44px !important; min-width:44px; height:44px !important; min-height:44px; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; }
.ohcs-search-trigger svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; }
.ohcs-search-overlay { position:fixed; z-index:100001; inset:0; padding:92px 20px 20px; background:rgba(0,0,0,.56); }
.ohcs-search-overlay[hidden] { display:none; }
.ohcs-search-panel { position:relative; width:min(720px,100%); max-height:calc(100vh - 112px); margin:auto; overflow:auto; padding:20px 64px 22px 20px; border-top:2px solid #ed1c24; background:#111; box-shadow:0 16px 42px rgba(0,0,0,.36); }
.ohcs-search-close { position:absolute; top:6px; right:8px; width:44px; height:44px; padding:0; border:0; background:transparent; color:#fff; font:300 34px/44px Arial,sans-serif; cursor:pointer; }
#ohcs-search-input { box-sizing:border-box; width:100%; height:56px; padding:0 16px; border:1px solid #d8d8d8; color:#111; background:#fff; font-size:18px; }
.ohcs-search-results { margin-top:14px; color:#fff; }
.ohcs-search-group { margin:18px 0 0; }
.ohcs-search-group h3 { margin:0 0 8px; color:#ed1c24; font-size:11px; letter-spacing:.14em; }
.ohcs-search-result { display:flex; justify-content:space-between; gap:14px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.16); color:#fff; text-decoration:none; }
.ohcs-search-result small { color:#bcbcbc; white-space:nowrap; }
body.ohcs-search-open { overflow:hidden; }

@media (max-width:921px) {
	/* Symmetric 44px action zones keep the logo on the geometric centre. */
	#ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row { position:relative; display:grid !important; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; min-height:68px; }
	#ast-mobile-header .site-header-primary-section-left { position:absolute; z-index:1; left:50%; top:50%; width:auto !important; transform:translate(-50%,-50%); }
	#ast-mobile-header .site-header-primary-section-left > .ast-builder-layout-element,
	#ast-mobile-header .site-header-primary-section-left .site-branding { display:flex !important; justify-content:center; width:100% !important; }
	#ast-mobile-header .site-header-primary-section-left .site-branding { position:relative; height:54px; }
	#ast-mobile-header .site-header-primary-section-right { display:contents !important; }
	#ast-mobile-header [data-section="section-header-mobile-trigger"] { grid-column:1; grid-row:1; display:flex !important; align-items:center; justify-content:center; }
	#ast-mobile-header .site-header-primary-section-left .site-logo-img { display:flex !important; justify-content:center; width:100% !important; }
	#ast-mobile-header .site-header-primary-section-left .custom-logo-link { position:absolute; left:50%; top:50%; display:flex !important; justify-content:center; width:auto !important; transform:translate(-50%,-50%); }
	#ast-mobile-header .site-header-primary-section-left .site-logo-img img { width:166px; height:auto; max-height:54px; object-fit:contain; }
	#ast-mobile-header .ohcs-search-trigger { grid-column:3; grid-row:1; justify-self:center; }
	#ast-mobile-header .ast-header-search { display:none !important; }
	.ohcs-search-overlay { padding:0; }
	.ohcs-search-panel { width:100%; max-height:100vh; min-height:100vh; padding:72px 18px 24px; border-top:0; }
	#ohcs-search-input { height:50px; font-size:16px; }
}
@media (max-width:430px) {
	#ast-mobile-header .site-header-primary-section-left .site-logo-img img { width:150px; max-height:48px; }
}
@media (min-width:922px) {
	#ast-desktop-header #ast-hf-menu-1 .ohcs-search-trigger { margin-left:10px; }

	/* Motorcycle header dropdown: compact navigation, not category cards. */
	#ast-desktop-header #ast-hf-menu-1 > .menu-item-545 > .sub-menu { min-width:210px; width:210px; }
	#ast-desktop-header #ast-hf-menu-1 .menu-item-545 > .sub-menu > .menu-item > .menu-link { min-height:42px; padding:10px 34px 10px 14px; font-size:14px; line-height:1.25; }
	#ast-desktop-header #ast-hf-menu-1 .menu-item-545 > .sub-menu > .menu-item > .sub-menu { min-width:220px; width:220px; }
	#ast-desktop-header #ast-hf-menu-1 .menu-item-545 > .sub-menu > .menu-item > .sub-menu > .menu-item > .menu-link { min-height:38px; padding:9px 14px; font-size:13px; line-height:1.25; }
}

@media (max-width:921px){#ast-mobile-header .ast-primary-header-bar{position:relative;z-index:100;background:#fff;border-bottom:1px solid #d7d7d7}}

@media (max-width:921px){body.page-id-12 #ast-mobile-header{position:relative}body.page-id-12 #ast-mobile-header:after{content:"";position:absolute;z-index:101;left:0;right:0;bottom:0;height:1px;background:#d7d7d7;pointer-events:none}}

@media (max-width:921px){.ohcs-search-overlay{position:fixed;z-index:100001;inset:68px 0 auto 0;padding:10px 14px 14px;background:#fff;box-shadow:0 8px 18px rgba(0,0,0,.12)}.ohcs-search-panel{width:100%;min-height:0;max-height:calc(100vh - 82px);padding:0 46px 0 0;overflow:auto;background:#fff;box-shadow:none}.ohcs-search-close{display:block;right:0;top:0;color:#171717;font-size:30px}.ohcs-search-results{color:#171717}.ohcs-search-result{color:#171717;border-bottom:1px solid #e1e1e1}.ohcs-search-result small{color:#626262}}

/* FIAT archive: remove product-card border only. */
body.term-fiat.woocommerce-page .site-main ul.products > li.product{border:0!important;}
