/* Winnipeg Prototyping: compact two-row header + live search (loaded by novamira-sandbox/wp-header-search.php) */

:root {
	--wp-navy: #03255b;
	--wp-navy-deep: #021b44;
	--wp-orange: #ee9632;
	--wp-orange-deep: #e0861f;
	--wp-ink: #1d2b44;
	--wp-muted: #5f6f86;
	--wp-line: #e6ebf2;
	--wp-shadow: 0 18px 48px rgba(3, 37, 91, .16), 0 2px 6px rgba(3, 37, 91, .06);
}

/* ---------- Row 1: logo | search | icons ---------- */
.site-header .header-main { border-bottom: 0; }
.site-header .header-main .header-left-items { flex: 0 0 auto; }
.site-header .header-main .header-center-items { flex: 1 1 auto; justify-content: center; padding: 0 32px; }
.site-header .header-main .header-right-items { flex: 0 0 auto; }
.site-header .header-main .header-search { width: 100%; max-width: 780px; margin: 0; }

.wp-hs-form { position: relative; }
.site-header .header-main .header-search .form-search {
	display: flex;
	align-items: stretch;
	height: 46px;
	border: 2px solid var(--wp-navy);
	border-radius: 10px;
	background: #fff;
	overflow: visible;
	transition: border-color .2s, box-shadow .2s;
}
.site-header .header-main .header-search .form-search:focus-within {
	border-color: var(--wp-orange);
	box-shadow: 0 0 0 3px rgba(238, 150, 50, .22);
}
/* category picker on the left, like Amazon */
.site-header .header-main .header-search .product-cat {
	order: -1;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	position: relative;
	padding: 0 12px 0 14px;
	border: 0;
	border-right: 1px solid var(--wp-line);
	border-radius: 8px 0 0 8px;
	background: #f4f6fa;
	color: var(--wp-ink);
	font-size: 14px;
}
/* Razzi gives the picker a fixed, taller height and top padding; keep it inside the 46px bar */
.site-header .header-main .header-search .form-search .product-cat {
	height: auto;
	min-height: 0;
	max-height: 100%;
	align-self: stretch;
	margin: 0;
	padding-top: 0;
	padding-bottom: 0;
	box-sizing: border-box;
}
.site-header .header-main .header-search .product-cat-label { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; height: auto; line-height: 1; }
.site-header .header-main .header-search .product-cat-label .razzi-svg-icon { font-size: 10px; }
.site-header .header-main .header-search .product-cat-dd { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.site-header .header-main .header-search .search-fields { flex: 1 1 auto; position: relative; }
.site-header .header-main .header-search .search-field {
	width: 100%;
	height: 100%;
	padding: 0 14px;
	border: 0;
	background: transparent;
	font-size: 15px;
	color: var(--wp-ink);
	box-shadow: none;
}
.site-header .header-main .header-search .search-field:focus { outline: none; }
.site-header .header-main .header-search .close-search-results,
.site-header .header-main .header-search .razzi-loading { display: none; }
.site-header .header-main .header-search .search-submit {
	flex: 0 0 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto;
	margin: -2px -2px -2px 0;
	padding: 0;
	border: 0;
	border-radius: 0 10px 10px 0;
	background: var(--wp-orange);
	color: #fff;
	box-shadow: none;
	transition: background-color .2s;
}
.site-header .header-main .header-search .search-submit:hover { background: var(--wp-orange-deep); }
.site-header .header-main .header-search .search-submit .razzi-svg-icon { color: #fff; font-size: 18px; }
.site-header .header-main .header-search > .search-results { display: none !important; }

/* icons */
.site-header .header-main .header-right-items > div { margin-left: 18px; }
.site-header .header-main .header-right-items a { color: var(--wp-navy); }
.site-header .header-main .header-right-items a:hover { color: var(--wp-orange); }

/* ---------- Row 2: navy bar with categories, menu, quote link ---------- */
.site-header .header-bottom {
	background: var(--wp-navy);
	border: 0;
}
.site-header .header-bottom .header-items { height: 100%; }
.site-header .header-bottom .header-left-items { flex: 0 0 auto; }
.site-header .header-bottom .header-center-items { flex: 1 1 auto; justify-content: flex-start; padding-left: 16px; }
.site-header .header-bottom .header-right-items { flex: 0 0 auto; }

/* Browse Categories as a compact button inside the bar */
.site-header .header-bottom .header-department { height: 100%; background: var(--wp-navy-deep); border: 0; }
.site-header .header-bottom .header-department .department-icon {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 0 18px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}
.site-header .header-bottom .header-department .department-icon .razzi-svg-icon { font-size: 16px; }
.site-header .header-bottom .header-department:hover { background: #011638; }
.site-header .header-items .header-department .department-content { left: 0; }

/* menu links */
.site-header .header-bottom #primary-menu .nav-menu > li { height: 100%; display: flex; align-items: center; }
.site-header .header-bottom #primary-menu .nav-menu > li > a {
	color: #fff;
	font-size: 15px;
	font-weight: 500;
}
.site-header .header-bottom #primary-menu .nav-menu > li:hover > a,
.site-header .header-bottom #primary-menu .nav-menu > li.focus > a,
.site-header .header-bottom #primary-menu .nav-menu > li.active > a { color: var(--wp-orange); }
.site-header .header-bottom #primary-menu .nav-menu > li > .dropdown-submenu { top: 100%; }

/* quote link on the right */
.site-header .header-bottom .header-custom-text a.wp-hm-quote {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--wp-orange);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color .2s;
}
.site-header .header-bottom .header-custom-text a.wp-hm-quote:hover { background: var(--wp-orange-deep); color: #fff; }

@media (max-width: 1199px) {
	.site-header .header-bottom #primary-menu .nav-menu > li { margin: 0 9px; }
	.site-header .header-bottom #primary-menu .nav-menu > li > a { font-size: 14px; }
	.site-header .header-main .header-center-items { padding: 0 20px; }
}

/* ---------- Mobile: always-visible search under the header ---------- */
.wp-hs-mobile { padding: 0 12px 10px; background: #fff; }
.wp-hs-mobile form {
	display: flex;
	height: 44px;
	border: 2px solid var(--wp-navy);
	border-radius: 10px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.wp-hs-mobile form:focus-within { border-color: var(--wp-orange); box-shadow: 0 0 0 3px rgba(238, 150, 50, .22); }
.wp-hs-mobile .search-field {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0 12px;
	border: 0;
	background: transparent;
	font-size: 16px; /* 16px stops iOS zooming on focus */
	color: var(--wp-ink);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.wp-hs-mobile .search-field:focus { outline: none; }
.wp-hs-mobile .search-submit {
	flex: 0 0 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: -2px -2px -2px 0;
	padding: 0;
	border: 0;
	border-radius: 0 10px 10px 0;
	background: var(--wp-orange);
	color: #fff;
}
.site-header .header-mobile { border-bottom: 0; }

/* ---------- Suggestions panel ---------- */
.wp-hs-panel {
	position: absolute;
	left: -2px;
	right: -2px;
	top: calc(100% + 6px);
	z-index: 1000;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	padding: 8px;
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--wp-shadow);
	text-align: left;
	font-family: Jost, Arial, sans-serif;
}
.wp-hs-panel[hidden] { display: none; }
.wp-hs-section + .wp-hs-section { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--wp-line); }
.wp-hs-heading {
	margin: 6px 8px 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp-muted);
}
.wp-hs-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 8px;
	color: var(--wp-ink);
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
}
.wp-hs-item:hover,
.wp-hs-item.is-active { background: #f4f6fa; color: var(--wp-ink); }
.wp-hs-item mark { padding: 0; background: none; color: var(--wp-navy); font-weight: 700; }
.wp-hs-product img {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
	background: #f4f6fa;
}
.wp-hs-text { display: flex; flex-direction: column; min-width: 0; }
.wp-hs-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-hs-price { font-size: 13px; font-weight: 600; color: var(--wp-orange-deep); }
.wp-hs-link { padding: 8px 10px; }
.wp-hs-all {
	justify-content: center;
	margin-top: 6px;
	border-top: 1px solid var(--wp-line);
	border-radius: 0 0 8px 8px;
	font-weight: 600;
	color: var(--wp-navy);
}
.wp-hs-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 8px; }
.wp-hs-item.wp-hs-chip {
	padding: 6px 12px;
	border: 1px solid var(--wp-line);
	border-radius: 999px;
	font-size: 14px;
}
.wp-hs-item.wp-hs-chip:hover,
.wp-hs-item.wp-hs-chip.is-active { border-color: var(--wp-orange); background: #fdf1e3; }
.wp-hs-form.is-loading .search-submit { opacity: .75; }

/* Nothing found: offer to source it (panel and search results page) */
.wp-hs-empty { padding: 14px 12px 12px; text-align: center; }
.wp-hs-empty__title { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--wp-navy); }
.wp-hs-empty__text { margin: 0 0 14px; font-size: 14px; color: var(--wp-muted); }
.wp-hs-empty__actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.wp-hs-btn,
.wp-hs-item.wp-hs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 20px;
	border: 2px solid var(--wp-orange);
	border-radius: 10px;
	background: var(--wp-orange);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}
.wp-hs-btn:hover,
.wp-hs-item.wp-hs-btn:hover,
.wp-hs-item.wp-hs-btn.is-active { background: var(--wp-orange-deep); border-color: var(--wp-orange-deep); color: #fff; }
.wp-hs-btn--ghost,
.wp-hs-item.wp-hs-btn--ghost { background: #fff; border-color: var(--wp-navy); color: var(--wp-navy); }
.wp-hs-btn--ghost:hover,
.wp-hs-item.wp-hs-btn--ghost:hover,
.wp-hs-item.wp-hs-btn--ghost.is-active { background: var(--wp-navy); border-color: var(--wp-navy); color: #fff; }
.wp-hs-empty--page {
	max-width: 560px;
	margin: 24px auto 40px;
	padding: 28px 24px;
	border: 1px solid var(--wp-line);
	border-radius: 16px;
	background: #fff;
}
.wp-hs-empty--page .wp-hs-empty__title { font-size: 22px; }
.wp-hs-empty--page .wp-hs-empty__text { font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
	.site-header .header-main .header-search .form-search,
	.wp-hs-mobile form { transition: none; }
}
