.hx-search:not(#hx_),
.hx-hd__search:not(#hx_) {
--s-accent: var( --hx-accent, var( --helix-plum, #764452 ) );
--s-ink:    var( --helix-ink, #1C1C1C );
--s-muted:  #6B6762;
--s-line:   #ECE5DA;
--s-tint:   var( --hx-tint, var( --helix-cream, #F6F1EA ) );
--s-ease:   cubic-bezier( .2, .8, .2, 1 );
} .hx-hd:not(#hx_) .hx-hd__search {
display: inline-flex;
align-items: center;
justify-content: center;
width: 46px;
height: 46px;
margin: 0;
padding: 0;
border: 0;
border-radius: 14px;
background: transparent;
box-shadow: none;
color: var( --s-ink );
cursor: pointer;
transition: background-color .2s, color .2s;
}
.hx-hd:not(#hx_) .hx-hd__search:hover,
.hx-hd:not(#hx_) .hx-hd__search[aria-expanded="true"] { background: var( --s-tint ); color: var( --s-accent ); }
.hx-hd:not(#hx_) .hx-hd__search:focus-visible { outline: 2px solid var( --s-accent ); outline-offset: 2px; }
.hx-hd__search:not(#hx_) .hx-ico { width: 22px; height: 22px; } .hx-search:not(#hx_) {
position: fixed;
inset: 0;
z-index: 10025;
color: var( --s-ink );
font-family: inherit;
}
.hx-search[hidden]:not(#hx_) { display: none; }
.hx-search:not(#hx_) *,
.hx-search:not(#hx_) *::before { box-sizing: border-box; }
.hx-search__scrim:not(#hx_) {
position: absolute;
inset: 0;
background: rgba( 28, 22, 20, .3 );
backdrop-filter: blur( 3px );
-webkit-backdrop-filter: blur( 3px );
opacity: 0;
transition: opacity .25s;
}
.hx-search.is-open:not(#hx_) .hx-search__scrim { opacity: 1; }
.hx-search__panel:not(#hx_) {
position: relative;
display: flex;
flex-direction: column;
width: min( 760px, calc( 100vw - 24px ) );
max-height: calc( 100vh - 48px - var( --wp-admin--admin-bar--height, 0px ) );
max-height: calc( 100dvh - 48px - var( --wp-admin--admin-bar--height, 0px ) );
margin: calc( 14px + var( --wp-admin--admin-bar--height, 0px ) ) auto 0;
overflow: hidden;
border-radius: 24px;
background: #fff;
box-shadow: 0 30px 80px rgba( 0, 0, 0, .22 );
opacity: 0;
transform: translateY( -12px ) scale( .99 );
transition: opacity .25s, transform .35s var( --s-ease );
}
.hx-search.is-open:not(#hx_) .hx-search__panel { opacity: 1; transform: none; }
html.hx-search-open:not(#hx_),
html.hx-search-open:not(#hx_) body { overflow: hidden; } .hx-search__form:not(#hx_) {
position: relative;
display: flex;
align-items: center;
gap: 12px;
height: 70px;
margin: 0;
padding: 0 14px 0 22px;
border-bottom: 1px solid var( --s-line );
}
.hx-search__ico:not(#hx_) { flex: 0 0 auto; width: 24px; height: 24px; color: var( --s-accent ); }
.hx-search:not(#hx_) .hx-search__input {
flex: 1 1 auto;
min-width: 0;
height: 100%;
margin: 0;
padding: 0;
border: 0;
background: transparent;
box-shadow: none;
color: var( --s-ink );
font: inherit;
font-size: 20px;
font-weight: 500;
outline: 0;
-webkit-appearance: none;
appearance: none;
}
.hx-search:not(#hx_) .hx-search__input::placeholder { color: #A39E97; font-weight: 400; }
.hx-search:not(#hx_) .hx-search__input::-webkit-search-cancel-button { display: none; } .hx-search__form:not(#hx_)::after {
content: "";
position: absolute;
left: 0;
bottom: -1px;
width: 30%;
height: 2px;
background: var( --s-accent );
opacity: 0;
transform: translateX( -100% );
}
.hx-search.is-busy:not(#hx_) .hx-search__form::after { opacity: 1; animation: hx-search-load 1s var( --s-ease ) infinite; }
@keyframes hx-search-load {
to { transform: translateX( 340% ); }
}
.hx-search:not(#hx_) .hx-search__close {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
gap: 6px;
height: 36px;
margin: 0;
padding: 0 10px;
border: 1px solid var( --s-line );
border-radius: 10px;
background: #fff;
box-shadow: none;
color: var( --s-muted );
font: inherit;
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.hx-search:not(#hx_) .hx-search__close:hover { border-color: var( --s-ink ); background: #fff; color: var( --s-ink ); }
.hx-search__close:not(#hx_) svg { display: none; width: 18px; height: 18px; } .hx-search__body:not(#hx_) { flex: 1 1 auto; min-height: 0; padding: 10px; overflow-y: auto; overscroll-behavior: contain; }
.hx-search__start[hidden]:not(#hx_) { display: none; }
.hx-search__cats:not(#hx_) { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 6px 10px; }
.hx-search:not(#hx_) .hx-search__cat {
display: inline-flex;
align-items: center;
gap: 10px;
height: 48px;
padding: 0 16px 0 6px;
border: 1px solid var( --s-line );
border-radius: 999px;
color: var( --s-ink );
font-size: 14px;
font-weight: 600;
text-decoration: none;
transition: border-color .2s;
}
.hx-search:not(#hx_) .hx-search__cat:hover { border-color: var( --s-ink ); color: var( --s-ink ); }
.hx-search:not(#hx_) .hx-search__cat img {
width: 36px;
height: 36px;
max-width: none;
border-radius: 50%;
background: var( --s-tint );
object-fit: contain;
mix-blend-mode: multiply;
}
.hx-search:not(#hx_) .hx-search__list { margin: 0; padding: 0; list-style: none; }
.hx-search:not(#hx_) .hx-search__item {
display: grid;
grid-template-columns: 56px minmax( 0, 1fr ) auto;
align-items: center;
gap: 14px;
padding: 8px 14px 8px 8px;
border-radius: 16px;
color: var( --s-ink );
text-decoration: none;
animation: hx-search-in .3s var( --s-ease ) both;
animation-delay: calc( var( --i, 0 ) * 25ms );
}
@keyframes hx-search-in {
from { opacity: 0; transform: translateY( 4px ); }
to   { opacity: 1; transform: none; }
}
.hx-search:not(#hx_) .hx-search__item:hover,
.hx-search:not(#hx_) .hx-search__item.is-active { background: var( --s-tint ); color: var( --s-ink ); }
.hx-search__thumb:not(#hx_) {
display: block;
width: 56px;
height: 56px;
overflow: hidden;
border-radius: 12px;
background: var( --s-tint );
}
.hx-search:not(#hx_) .hx-search__thumb img { width: 100%; height: 100%; max-width: none; object-fit: cover; mix-blend-mode: multiply; }
.hx-search__text:not(#hx_) { display: grid; gap: 2px; min-width: 0; }
.hx-search__text:not(#hx_) strong { overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hx-search__text:not(#hx_) small { overflow: hidden; color: var( --s-muted ); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.hx-search__price:not(#hx_) { color: var( --s-accent ); font-size: 14px; font-weight: 700; white-space: nowrap; }
.hx-search:not(#hx_) .hx-search__none { margin: 0; padding: 14px 12px 4px; color: var( --s-muted ); font-size: 14px; }
.hx-search__none[hidden]:not(#hx_) { display: none; }
.hx-search:not(#hx_) .hx-search__all {
display: block;
margin: 6px 0 0;
padding: 14px;
border-top: 1px solid var( --s-line );
color: var( --s-accent );
font-size: 14px;
font-weight: 600;
text-align: center;
text-decoration: none;
}
.hx-search:not(#hx_) .hx-search__all:hover { color: var( --s-ink ); }
.hx-search__all[hidden]:not(#hx_) { display: none; } @media ( max-width: 767px ) {
.hx-search__panel:not(#hx_) {
width: calc( 100vw - 16px );
margin-top: 8px;
border-radius: 20px;
}
.hx-search__form:not(#hx_) { height: 60px; padding: 0 8px 0 16px; }
.hx-search:not(#hx_) .hx-search__input { font-size: 17px; }
.hx-search:not(#hx_) .hx-search__close { width: 40px; padding: 0; justify-content: center; border: 0; background: var( --s-tint ); border-radius: 50%; }
.hx-search__close:not(#hx_) span { display: none; }
.hx-search__close:not(#hx_) svg { display: block; }
.hx-search:not(#hx_) .hx-search__item { grid-template-columns: 48px minmax( 0, 1fr ); gap: 12px; }
.hx-search__thumb:not(#hx_) { width: 48px; height: 48px; }
.hx-search__price:not(#hx_) { grid-column: 2; margin-top: -2px; font-size: 13px; } .hx-hd-root.has-tabbar:not(#hx_) .hx-hd__bar .hx-hd__actions {
position: absolute;
top: 50%;
right: 8px;
display: flex;
transform: translateY( -50% );
animation: none;
}
.hx-hd-root.has-tabbar:not(#hx_) .hx-hd__bar .hx-hd__actions > :not( .hx-hd__search ) { display: none; }
.hx-hd:not(#hx_) .hx-hd__search { width: 42px; height: 42px; border-radius: 12px; }
}
@media ( prefers-reduced-motion: reduce ) {
.hx-search__panel:not(#hx_),
.hx-search__scrim:not(#hx_) { transition: none; }
.hx-search:not(#hx_) .hx-search__item { animation: none; }
}