/* Matches the existing WooCommerce search/AJAX markup. */
.search_header { position: relative; width: 100%; min-width: 0; }
.search_header .navbar_search { position: relative; display: flex; align-items: center; min-width: 0; height: 50px; padding-inline: 14px 6px; border: 1px solid transparent; border-radius: var(--tw-radius); background: var(--tw-search); }
.search_header .navbar_search:focus-within { border-color: var(--tw-primary); }
.search_header input[type="search"] { flex: 1; min-width: 0; width: 100%; height: 44px; border: 0; background: transparent; color: var(--tw-text); font: inherit; font-size: 12px; outline: none; }
.search_header input::placeholder { color: var(--tw-muted); opacity: 1; }
.search_header .searchButton { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--tw-muted); cursor: pointer; }
.search_header .searchButton:hover { color: var(--tw-brand); }
.search_header .searchButton:focus-visible { outline: 2px solid var(--tw-brand); }
/* Existing bi-search markup also works without loading an icon font. */
.search_header .bi-search { display: block; width: 17px; height: 17px; border: 1.7px solid currentColor; border-radius: 50%; position: relative; }
.search_header .bi-search::before { content: none; }
.search_header .bi-search::after { content: ''; position: absolute; width: 7px; height: 2px; background: currentColor; right: -5px; bottom: -2px; transform: rotate(45deg); }
.search_header .search_result { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 80; max-height: min(60dvh, 440px); overflow-y: auto; overscroll-behavior: contain; padding: 12px; background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: 10px; box-shadow: var(--tw-shadow); }
.search_header .title_product_search { padding: 4px 4px 12px; border-bottom: 1px solid var(--tw-border); font-size: 12px; font-weight: 700; }
.search_header .result_post { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--tw-border); }
.search_header .result_post[hidden] { display: none; }
.search_header .result_post > a { flex: 0 0 56px; }
.search_header .result_post img { display: block; width: 56px; height: 56px; object-fit: contain; border-radius: 6px; }
.search_header .result_post h4 { min-width: 0; margin: 0; font-size: 12px; line-height: 1.9; }
.search_header .result_post:hover { background: var(--tw-background); }
.search_header .more_results a { display: block; padding: 12px 6px 4px; color: var(--tw-brand); text-align: center; font-size: 12px; font-weight: 700; }
.search_header .search-empty { font-size: 12px; line-height: 2; }
@media(max-width: 991px) { .header-main > .search_header { grid-column: 1 / -1; grid-row: 2; } .search_header input[type="search"] { font-size: 16px; } }
@media(max-width: 480px) { .search_header input::placeholder { font-size: 11px; } }
