/* XO mobile header (phones and small tablets). Computers keep the theme's header. */
.xo-mh, .xo-mh-drawer, .xo-mh-scrim { display: none; }
@media (max-width: 900px) {
	/* hide the theme's own header on phones */
	body.xo-mh-on header.wp-block-template-part,
	body.xo-mh-on .wp-site-blocks > header,
	body.xo-mh-on #masthead, body.xo-mh-on .site-header, body.xo-mh-on header#header,
	body.xo-mh-on .elementor-location-header, body.xo-mh-on #ast-desktop-header, body.xo-mh-on #ast-mobile-header,
	body.xo-mh-on .xof-pill { display: none !important; }

	.xo-mh {
		--mh-accent: var(--xof-accent, #1f1f1f);
		display: block; position: sticky; top: 0; z-index: 9990; background: #fff;
		font-family: var(--xo-font-body, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
		box-shadow: 0 1px 0 #e5e7eb; transition: box-shadow .2s;
	}
	body.admin-bar .xo-mh { top: 46px; }
	.xo-mh.is-scrolled { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
	.xo-mh.is-scrolled .xo-mh-bar { display: none; }
	.xo-mh * { box-sizing: border-box; }

	.xo-mh-bar { display: flex; align-items: center; gap: 4px; min-height: 42px; padding: 0 4px; background: #1f2328; color: #fff; }
	.xo-mh-msgs { flex: 1; min-width: 0; text-align: center; }
	.xo-mh-msg { margin: 0; font-size: .9rem; line-height: 1.3; padding: 6px 0; animation: xo-mh-fade .35s ease; }
	.xo-mh-msg a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
	.xo-mh-arrow { appearance: none; flex: none; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }

	.xo-mh-main { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
	.xo-mh-icon { appearance: none; position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: #1f2328; cursor: pointer; text-decoration: none; }
	.xo-mh-icon:active { background: #f1f3f5; }
	.xo-mh-logo { flex: none; display: inline-flex; align-items: center; height: 44px; text-decoration: none; color: #1f2328; font-weight: 800; }
	.xo-mh-logo img { display: block; height: 38px; width: auto; max-width: 96px; object-fit: contain; }
	.xo-mh-search { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; height: 44px; margin: 0 2px; border: 1.5px solid #dfe3e8; border-radius: 999px; background: #f6f7f9; }
	.xo-mh-search input[type=search] { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: none !important; padding: 0 4px 0 16px !important; font: inherit; font-size: 16px; color: #1f2328; outline: none; box-shadow: none !important; margin: 0; }
	.xo-mh-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
	.xo-mh-search button { appearance: none; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-right: 2px; border: 0; border-radius: 999px; background: var(--mh-accent); color: #fff; cursor: pointer; }
	.xo-mh-search:focus-within { border-color: var(--mh-accent); background: #fff; }
	.xo-mh-cart .xo-cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--mh-accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
	.xo-mh-cart .xo-cart-count:empty, .xo-mh-cart .xo-cart-count.is-zero { display: none; }

	.xo-mh-fulfill { appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 16px; border: 0; border-top: 1px solid #e5e7eb; background: #fff; color: #1f2328; font: inherit; text-align: left; cursor: pointer; }
	.xo-mh-fulfill:active { background: #f6f7f9; }
	.xo-mh-ftext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.xo-mh-ftext small { font-size: .78rem; color: #5f6670; }
	.xo-mh-ftext span { font-size: 1.08rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

	.xo-mh-scrim { display: block; position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.45); }
	.xo-mh-scrim[hidden] { display: none; }
	.xo-mh-drawer { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 9999; width: min(86vw, 360px); background: #fff; box-shadow: 8px 0 30px rgba(0,0,0,.2); transform: translateX(-100%); transition: transform .25s ease; font-family: var(--xo-font-body, system-ui, sans-serif); }
	.xo-mh-drawer.is-open { transform: none; }
	.xo-mh-drawer[hidden] { display: none; }
	.xo-mh-dhead { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid #e5e7eb; }
	.xo-mh-dlogo { height: 40px; width: auto; }
	.xo-mh-list { list-style: none; margin: 0; padding: 0; }
	.xo-mh-drawer > .xo-mh-list { flex: 1; overflow-y: auto; padding: 6px 0; }
	.xo-mh-row { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; color: #1f2328; text-decoration: none; font-size: 1.05rem; font-weight: 600; }
	a.xo-mh-row:active, .xo-mh-row a:active { background: #f6f7f9; }
	.xo-mh-row > a { flex: 1; align-self: stretch; display: flex; align-items: center; color: inherit; text-decoration: none; }
	.xo-mh-exp { appearance: none; width: 44px; height: 44px; border: 0; background: none; color: #5f6670; cursor: pointer; transition: transform .2s; }
	.xo-mh-exp[aria-expanded="true"] { transform: rotate(180deg); }
	.xo-mh-list.is-sub { background: #f8f9fa; }
	.xo-mh-list.is-sub .xo-mh-row { padding-left: 32px; font-weight: 500; min-height: 46px; font-size: 1rem; }
	.xo-mh-dfoot { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-top: 1px solid #e5e7eb; }
	.xo-mh-dfoot a { color: #1f2328; font-weight: 600; text-decoration: none; padding: 8px 0; }
	.xo-mh :focus-visible, .xo-mh-drawer :focus-visible { outline: 3px solid #4dabf7; outline-offset: 2px; }
	.xo-mh-dpick, .xo-mh-lbl, .xo-mh-nav { display: none !important; }
	body:not(.xo-mh-on) .xo-mh, body:not(.xo-mh-on) .xo-mh-drawer, body:not(.xo-mh-on) .xo-mh-scrim { display: none !important; }
	.xo-mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	html.xo-mh-lock, html.xo-mh-lock body { overflow: hidden; }
}
@media (max-width: 380px) {
	.xo-mh-main { gap: 2px; padding: 8px 6px; }
	.xo-mh-logo img { max-width: 72px; height: 34px; }
	.xo-mh-icon { width: 40px; }
}
@keyframes xo-mh-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .xo-mh-msg { animation: none; } .xo-mh-drawer { transition: none; } }

/* ---------- Computers (XO Ordering → Phone header → also on computers) ---------- */
@media (min-width: 901px) {
	body.xo-dh-on header.wp-block-template-part,
	body.xo-dh-on .wp-site-blocks > header,
	body.xo-dh-on #masthead, body.xo-dh-on .site-header, body.xo-dh-on header#header,
	body.xo-dh-on .elementor-location-header, body.xo-dh-on #ast-desktop-header,
	body.xo-dh-on .xof-pill { display: none !important; }

	body.xo-dh-on .xo-mh {
		--mh-accent: var(--xof-accent, #1f1f1f);
		display: block; position: sticky; top: 0; z-index: 9990; background: #fff;
		font-family: var(--xo-font-body, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
		box-shadow: 0 1px 0 #e5e7eb;
	}
	body.xo-dh-on.admin-bar .xo-mh { top: 32px; }
	body.xo-dh-on .xo-mh * { box-sizing: border-box; }
	body.xo-dh-on .xo-mh.is-scrolled { box-shadow: 0 4px 14px rgba(0,0,0,.08); }

	body.xo-dh-on .xo-mh-bar { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; background: #1f2328; color: #fff; }
	body.xo-dh-on .xo-mh-msgs { text-align: center; min-width: 420px; }
	body.xo-dh-on .xo-mh-msg { margin: 0; font-size: .95rem; padding: 8px 0; animation: xo-mh-fade .35s ease; }
	body.xo-dh-on .xo-mh-msg a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
	body.xo-dh-on .xo-mh-arrow { appearance: none; width: 36px; height: 36px; border: 0; background: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

	body.xo-dh-on .xo-mh-main { display: flex; align-items: center; gap: 18px; max-width: 1320px; margin: 0 auto; padding: 14px 24px; }
	body.xo-dh-on .xo-mh-main > [data-xo-menu] { display: none; }
	body.xo-dh-on .xo-mh-logo { flex: none; display: inline-flex; align-items: center; height: 60px; color: #1f2328; font-weight: 800; font-size: 1.4rem; text-decoration: none; }
	body.xo-dh-on .xo-mh-logo img { display: block; height: 60px; width: auto; max-width: 180px; object-fit: contain; }
	body.xo-dh-on .xo-mh-search { flex: 1; min-width: 0; display: flex; align-items: center; height: 50px; border: 1.5px solid #dfe3e8; border-radius: 999px; background: #f6f7f9; }
	body.xo-dh-on .xo-mh-search:focus-within { border-color: var(--mh-accent); background: #fff; }
	body.xo-dh-on .xo-mh-search input[type=search] { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: none !important; padding: 0 8px 0 22px !important; font: inherit; font-size: 1rem; color: #1f2328; outline: none; box-shadow: none !important; margin: 0; }
	body.xo-dh-on .xo-mh-search button { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: 3px; border: 0; border-radius: 999px; background: var(--mh-accent); color: #fff; cursor: pointer; }

	body.xo-dh-on .xo-mh-dpick { appearance: none; flex: none; display: flex; align-items: center; gap: 10px; max-width: 300px; padding: 6px 12px; border: 1.5px solid #dfe3e8; border-radius: 14px; background: #fff; color: #1f2328; font: inherit; text-align: left; cursor: pointer; }
	body.xo-dh-on .xo-mh-dpick:hover { border-color: #adb5bd; }
	body.xo-dh-on .xo-mh-ftext { min-width: 0; display: flex; flex-direction: column; }
	body.xo-dh-on .xo-mh-ftext small { font-size: .75rem; color: #5f6670; }
	body.xo-dh-on .xo-mh-ftext span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

	body.xo-dh-on .xo-mh-icon { position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 56px; height: 56px; padding: 0 6px; border: 0; border-radius: 12px; background: none; color: #1f2328; text-decoration: none; cursor: pointer; }
	body.xo-dh-on .xo-mh-icon:hover { background: #f6f7f9; }
	body.xo-dh-on .xo-mh-lbl { font-size: .78rem; font-weight: 600; line-height: 1; }
	body.xo-dh-on .xo-mh-cart .xo-cart-count { position: absolute; top: 2px; right: 8px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--mh-accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
	body.xo-dh-on .xo-mh-cart .xo-cart-count.is-zero { display: none; }

	body.xo-dh-on .xo-mh-fulfill { display: none; }
	body.xo-dh-on .xo-mh-nav { border-top: 1px solid #e5e7eb; }
	body.xo-dh-on .xo-mh-navlist { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
	body.xo-dh-on .xo-mh-navlist > li { position: relative; display: flex; align-items: center; }
	body.xo-dh-on .xo-mh-navlist > li > a { display: flex; align-items: center; height: 48px; padding: 0 12px; color: #1f2328; font-weight: 600; font-size: .98rem; text-decoration: none; border-bottom: 3px solid transparent; }
	body.xo-dh-on .xo-mh-navlist > li > a:hover, body.xo-dh-on .xo-mh-navlist > li:focus-within > a, body.xo-dh-on .xo-mh-navlist > li.is-open > a { border-bottom-color: var(--mh-accent); }
	body.xo-dh-on .xo-mh-navlist > li.has-dd > a { padding-right: 2px; }
	body.xo-dh-on .xo-mh-ddbtn { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 32px; margin-right: 6px; border: 0; border-radius: 6px; background: none; color: #5f6670; cursor: pointer; }
	body.xo-dh-on .xo-mh-dd { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 240px; padding: 10px 0; background: #fff; border-radius: 0 0 14px 14px; box-shadow: 0 14px 30px rgba(0,0,0,.14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
	body.xo-dh-on .xo-mh-navlist > li.has-dd:hover .xo-mh-dd, body.xo-dh-on .xo-mh-navlist > li.has-dd.is-open .xo-mh-dd, body.xo-dh-on .xo-mh-navlist > li.has-dd:focus-within .xo-mh-dd { opacity: 1; visibility: visible; transform: none; }
	body.xo-dh-on .xo-mh-navlist > li.has-dd.is-shut .xo-mh-dd { opacity: 0; visibility: hidden; transform: translateY(6px); }
	body.xo-dh-on .xo-mh-dd ul { list-style: none; margin: 0; padding: 0; }
	body.xo-dh-on .xo-mh-dd a { display: block; padding: 9px 20px; color: #1f2328; text-decoration: none; font-weight: 500; white-space: nowrap; }
	body.xo-dh-on .xo-mh-dd a:hover { background: #f6f7f9; color: var(--mh-accent); }
	body.xo-dh-on .xo-mh-ddall { font-weight: 700 !important; color: var(--mh-accent) !important; border-bottom: 1px solid #eef0f2; margin-bottom: 4px; }
	body.xo-dh-on .xo-mh :focus-visible { outline: 3px solid #4dabf7; outline-offset: 2px; }
	body.xo-dh-on .xo-mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1240px) {
	body.xo-dh-on .xo-mh-navlist { gap: 0; padding: 0 8px; }
	body.xo-dh-on .xo-mh-navlist > li > a { padding: 0 7px; font-size: .88rem; }
	body.xo-dh-on .xo-mh-ddbtn { width: 18px; margin-right: 4px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
	body.xo-dh-on .xo-mh-dpick { max-width: 210px; }
	body.xo-dh-on .xo-mh-main { gap: 12px; }
	body.xo-dh-on .xo-mh-navlist > li > a { padding: 0 5px; font-size: .84rem; }
}
