/* Yozita retail header: deliberately independent of Blocksy builder selectors. */
.yozita-header {
	--yozita-header-row-height: 104px;
	color: var(--yozita-color-text);
	font-family: var(--yozita-font-family);
	background: var(--yozita-color-surface);
}

.yozita-header *, .yozita-header *::before, .yozita-header *::after { box-sizing: border-box; }
.yozita-header a { color: inherit; text-decoration: none; }
.yozita-header svg { width: 24px; height: 24px; flex: 0 0 auto; stroke-width: 1.8; }
.yozita-header button, .yozita-header summary { -webkit-tap-highlight-color: transparent; }
.yozita-header-container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.yozita-header-utility { background: var(--yozita-color-brand); color: #fff; font-size: 12px; }
.yozita-header-utility .yozita-header-container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.yozita-header-utility p { margin: 0; }
.yozita-header-utility a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-weight: 500; }
.yozita-header-utility svg { width: 15px; height: 15px; }
.yozita-header-utility a:hover { color: #fff; text-decoration: underline; }
.yozita-header-main-slot { min-height: var(--yozita-header-row-height); }
.yozita-header-main { background: #fff; border-bottom: 1px solid #ededed; }
.yozita-header-main.is-stuck { position: fixed; inset: var(--yozita-admin-offset, 0px) 0 auto; z-index: 1000; box-shadow: 0 4px 18px #1f293710; }
.yozita-header-main > .yozita-header-container { display: grid; grid-template-columns: 165px minmax(200px, 1fr) auto; align-items: center; gap: 32px; min-height: 104px; padding-block: 20px; }
.yozita-header-logo { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; }
.yozita-header-wordmark { font-size: 36px; font-weight: 700; letter-spacing: -1.8px; line-height: 1; }
.yozita-header-wordmark > span { color: var(--yozita-color-brand); }
.yozita-header-logo-image { max-width: 165px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
/* One composite control owns its border, radius, height and focus indicator. */
.yozita-header-search {
	--yozita-search-height: 50px;
	--yozita-search-category-width: 190px;
	--yozita-search-button-width: 54px;
	display: flex;
	align-items: stretch;
	min-width: 0;
	height: var(--yozita-search-height);
	margin: 0;
	border: 1px solid var(--yozita-color-border);
	border-radius: var(--yozita-radius);
	background: var(--yozita-color-surface);
	overflow: hidden;
}

.yozita-header-search:focus-within {
	border-color: var(--yozita-color-brand);
	/* Contiguous with the border: a visible 2px edge without a second ring. */
	box-shadow: 0 0 0 1px var(--yozita-color-brand);
}

/* Reset Blocksy's field appearance and :focus outline only in this component.
 * The broader Yozita focus rules explicitly exclude these inner controls. */
.yozita-header-search :is(input, select, button) {
	-webkit-appearance: none;
	appearance: none;
	height: 100%;
	min-height: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	font-family: inherit;
	font-size: 13px;
	line-height: normal;
	color: var(--yozita-color-text);
	background-color: transparent;
}

.yozita-header-search :is(input, select, button):focus {
	outline: none;
	box-shadow: none;
}

.yozita-header-search :is(input, select):focus {
	color: var(--yozita-color-text);
	background-color: transparent;
}

.yozita-header-search input[type="search"] {
	flex: 1 1 0;
	width: 0;
	min-width: 0;
	padding: 0 16px;
}

.yozita-header-search input::placeholder { color: var(--yozita-color-muted); opacity: 1; }

.yozita-header-search-category {
	position: relative;
	flex: 0 0 var(--yozita-search-category-width);
	min-width: 0;
}

.yozita-header-search-category::before {
	content: "";
	position: absolute;
	inset-block: 12px;
	inset-inline-start: 0;
	width: 1px;
	background: var(--yozita-color-border);
	pointer-events: none;
}

.yozita-header-search select {
	width: 100%;
	padding-inline: 16px 32px;
	background-image: url('../icons/lucide/chevron-down.svg');
	background-size: 14px;
	background-position: right 12px center;
	background-repeat: no-repeat;
	text-overflow: ellipsis;
	cursor: pointer;
}

.yozita-header-search button {
	flex: 0 0 var(--yozita-search-button-width);
	width: var(--yozita-search-button-width);
	padding: 0;
	display: grid;
	place-items: center;
	background: var(--yozita-color-brand);
	color: var(--yozita-color-surface);
}

.yozita-header-search button:is(:hover, :focus-visible) { background: var(--yozita-color-brand-hover); }

@media (forced-colors: active) {
	.yozita-header-search:focus-within {
		outline: 2px solid Highlight;
		outline-offset: 2px;
		box-shadow: none;
	}
	.yozita-header-search select { appearance: auto; background-image: none; }
}
.yozita-header-actions { display: flex; align-items: center; gap: 24px; }
.yozita-header-account, .yozita-header-cart, .yozita-header-cart-link { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.yozita-header-account, .yozita-header-cart-link { min-height: 44px; }
.yozita-header-account:hover, .yozita-header-cart-link:hover { color: var(--yozita-color-brand-hover); }
.yozita-header-cart { position: relative; }
.yozita-header-cart .wc-block-mini-cart { margin: 0; }
.yozita-header-cart .wc-block-mini-cart__button { padding: 10px 0; min-width: 36px; min-height: 44px; border: 0; background: transparent; color: inherit; }
.yozita-header-cart .wc-block-mini-cart__quantity-badge { display: inline-flex; align-items: center; min-width: 26px; }
.yozita-header-cart .wc-block-mini-cart__quantity-badge > svg { visibility: hidden; width: 26px; height: 26px; }
.yozita-header-cart .wc-block-mini-cart__quantity-badge::before { content: ""; position: absolute; width: 26px; height: 26px; background: currentColor; mask: url('../icons/lucide/shopping-cart.svg') center / contain no-repeat; }
.yozita-header-cart .wc-block-mini-cart__badge, .yozita-header-cart-count { display: grid; place-items: center; position: absolute; inset: 1px auto auto 18px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 50px; background: var(--yozita-color-brand); color: #fff; font: 500 10px/1 var(--yozita-font-family); }
.yozita-header-cart-label { pointer-events: none; }
/* The native interactivity store writes an inline color; keep badge contrast. */
.yozita-header-cart .wc-block-mini-cart__badge { color: #fff !important; }
.yozita-header-cart-link { position: relative; }
.yozita-header-menu-open { display: none; }
.yozita-header-navigation { border-bottom: 1px solid #e9e9e9; }
.yozita-header-navigation > .yozita-header-container { display: flex; align-items: stretch; gap: 32px; min-height: 55px; }
.yozita-header-categories { position: relative; width: 225px; flex-shrink: 0; z-index: 20; }
.yozita-header-categories summary { display: flex; align-items: center; gap: 12px; min-height: 55px; padding: 0 18px; background: var(--yozita-color-brand); color: #fff; font-size: 13px; font-weight: 600; list-style: none; cursor: pointer; }
.yozita-header-categories summary::-webkit-details-marker, .yozita-header-mobile-categories summary::-webkit-details-marker { display: none; }
.yozita-header-categories summary svg { width: 19px; height: 19px; }
.yozita-header-categories summary svg:last-child { width: 15px; margin-left: auto; }
.yozita-header-categories[open] summary { background: var(--yozita-color-brand-hover); }
.yozita-header-categories > ul { position: absolute; inset: 100% 0 auto; min-width: 270px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--yozita-color-border); border-top: 0; border-radius: 0 0 8px 8px; box-shadow: 0 12px 24px #1f293714; }
.yozita-header-categories li { margin: 0; }
.yozita-header-categories li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; font-size: 13px; border-radius: 4px; }
.yozita-header-categories li svg { width: 15px; height: 15px; }
.yozita-header-categories li a:hover { background: var(--yozita-color-background); color: var(--yozita-color-brand-hover); }
.yozita-header-primary { display: flex; align-items: center; }
.yozita-header-menu { display: flex; align-items: stretch; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 0; }
.yozita-header-menu li { margin: 0; position: relative; }
.yozita-header-menu > li { display: flex; align-items: center; flex-wrap: wrap; }
.yozita-header-menu a { display: inline-flex; align-items: center; min-height: 54px; font-size: 13px; font-weight: 500; }
.yozita-header-menu a:hover, .yozita-header-menu .current-menu-item > a { color: var(--yozita-color-brand-hover); }
.yozita-header-menu .current-menu-item > a { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.yozita-header-submenu-toggle { display: inline-grid; place-items: center; width: 44px; min-height: 44px; padding: 8px; border: 0; background: transparent; color: inherit; }
.yozita-header-submenu-toggle svg { width: 16px; height: 16px; }
.yozita-header-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; z-index: 25; padding: 8px 16px; margin: 0; list-style: none; background: #fff; border: 1px solid var(--yozita-color-border); border-radius: 6px; }
.yozita-header-menu .sub-menu.is-open { display: block; }
.yozita-header-menu .sub-menu .sub-menu { top: 0; left: 100%; }
.yozita-header-dialog:not([open]) { display: none; }
.yozita-header-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; max-width: min(400px, 100%); width: 100%; height: 100dvh; max-height: 100dvh; border: 0; padding: 24px; background: #fff; color: var(--yozita-color-text); overflow: auto; overscroll-behavior: contain; }
.yozita-header-dialog::backdrop { background: #11182780; }
html.yozita-menu-is-open { overflow: hidden; }
.yozita-header-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.yozita-header-dialog-heading h2 { margin: 0; font: 600 20px/1.4 var(--yozita-font-family); }
.yozita-header-dialog-heading button { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 8px; background: var(--yozita-color-background); color: inherit; border: 0; border-radius: 6px; }
.yozita-header-dialog .yozita-header-menu { display: block; }
.yozita-header-dialog .yozita-header-menu > li { border-bottom: 1px solid var(--yozita-color-border); }
.yozita-header-dialog .yozita-header-menu li > a { flex: 1; min-height: 50px; }
.yozita-header-dialog .yozita-header-menu .sub-menu { position: static; width: 100%; border: 0; padding-inline: 16px 0; }
.yozita-header-mobile-categories { margin-top: 24px; }
.yozita-header-mobile-categories summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; }
.yozita-header-mobile-categories ul { list-style: none; margin: 0; padding: 0; }
.yozita-header-mobile-categories li a { display: flex; align-items: center; min-height: 44px; font-size: 13px; }
.yozita-header-dialog-account { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 24px; font-size: 14px; }
.yozita-header :is(a, button, input, select, summary):not(:where(.yozita-header-search *)):focus-visible { outline: 2px solid var(--yozita-color-text); outline-offset: 3px; }
.yozita-header-utility a:focus-visible, .yozita-header-categories summary:focus-visible { outline-color: #fff; outline-offset: -4px; }

@media (max-width: 1199px) and (min-width: 1000px) {
	.yozita-header-main > .yozita-header-container { grid-template-columns: 135px minmax(180px, 1fr) auto; gap: 20px; }
	.yozita-header-actions { gap: 18px; }
	.yozita-header-account span, .yozita-header-cart-label { display: none; }
	.yozita-header-search { --yozita-search-category-width: 180px; }
	.yozita-header-menu { gap: 20px; }
}

@media (max-width: 999px) {
	.yozita-header { --yozita-header-row-height: 148px; }
	.yozita-header-container { width: calc(100% - 32px); }
	.yozita-header-main > .yozita-header-container { grid-template-columns: 1fr auto; gap: 14px; min-height: 148px; padding-block: 16px; }
	.yozita-header-logo-image { max-width: 140px; max-height: 44px; }
	.yozita-header-wordmark { font-size: 30px; }
	.yozita-header-search { --yozita-search-height: 46px; --yozita-search-category-width: 180px; grid-row: 2; grid-column: 1 / -1; width: 100%; }
	.yozita-header-actions { gap: 12px; }
	.yozita-header-account, .yozita-header-cart-link { justify-content: center; width: 44px; }
	.yozita-header-cart .wc-block-mini-cart__button { min-width: 44px; }
	.yozita-header-account span, .yozita-header-cart-label, .yozita-header-cart-link > span:not(.yozita-header-cart-count) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
	.yozita-header-menu-open { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 8px; color: inherit; background: transparent; border: 0; }
	.yozita-header-navigation { display: none; }
	.yozita-header-utility a { display: none; }
	.yozita-header-utility .yozita-header-container { justify-content: center; min-height: 30px; }
	.yozita-header-utility p { font-size: 10px; }
}

@media (max-width: 480px) {
	.yozita-header-main > .yozita-header-container { gap: 10px; }
	.yozita-header-actions { gap: 6px; }
	.yozita-header-search { --yozita-search-category-width: 112px; --yozita-search-button-width: 44px; }
	.yozita-header-search input[type="search"] { font-size: 12px; padding-inline: 10px; }
	.yozita-header-search select { padding-inline: 10px 26px; background-position: right 8px center; font-size: 11px; }
}

/* A no-script visitor still gets navigation and native search. */
.yozita-header:not(.is-enhanced) .yozita-header-menu .sub-menu { display: block; position: static; }
@media (max-width: 999px) {
	.yozita-header:not(.is-enhanced) .yozita-header-navigation { display: block; }
	.yozita-header:not(.is-enhanced) .yozita-header-navigation > .yozita-header-container { flex-wrap: wrap; padding-block: 8px; }
	.yozita-header:not(.is-enhanced) .yozita-header-menu-open { display: none; }
}
