/* Rounded storefront search, using the configured Babitec brand colour. */
.babitec-search { --search-surface: #f2f3f5; --search-text: #252832; --search-muted: #747983; }
body[theme="dark"] .babitec-search { --search-surface: #34363c; --search-text: #f5f6f8; --search-muted: #c1c5ce; }
.babitec-search .babitec-search-shell { display: flex; align-items: center; gap: 4px; padding: 5px; background: var(--search-surface); border: 1px solid transparent; border-radius: 999px; transition: box-shadow .2s, border-color .2s; }
.babitec-search .babitec-search-shell:focus-within { border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .14); }
.babitec-search .select-wrap { flex: 1; min-width: 0; border: 0 !important; background: transparent; }
.babitec-search .babitec-search-icon { color: var(--search-muted); font-size: 20px; padding-inline: 12px 6px; flex-shrink: 0; }
.babitec-search .form-control { flex: 1; width: 100%; min-width: 0; inline-size: auto; height: 44px; padding: 8px; background: transparent; color: var(--search-text); border: 0; box-shadow: none; font-size: 16px; }
.babitec-search .form-control::placeholder { color: var(--search-muted); opacity: 1; }
.babitec-search .header-search-dropdown-button { color: var(--search-text) !important; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.babitec-search button.babitec-search-submit { flex-shrink: 0; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px; font-weight: 600; }
.babitec-search .search-result-box { border-radius: 18px; margin-top: 8px; overflow: hidden; box-shadow: 0 8px 24px #0002 !important; }
.header-middle .babitec-search { flex: 1; max-width: 790px; min-width: 0; }
.babitec-mobile-search { position: relative; margin-top: 12px; margin-bottom: 4px; }
.search-result-box { --suggestion-text: #293343; --suggestion-muted: #727c8b; --suggestion-soft: #f6f7fa; background: #fff !important; color: var(--suggestion-text); border: 1px solid #e9edf2; border-radius: 20px !important; box-shadow: 0 14px 40px #16233518 !important; overflow-y: auto !important; overflow-x: hidden; max-height: min(480px, 60vh); max-height: min(480px, 60dvh); overscroll-behavior: contain; scrollbar-width: thin; z-index: 1050; }
body[theme="dark"] .search-result-box { --suggestion-text: #edf1f7; --suggestion-muted: #b5bfce; --suggestion-soft: #303647; background: #222838 !important; border-color: #394154; }
.babitec-suggestions { padding: 9.6px 16px; }
.babitec-suggestions-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--suggestion-muted); }
.babitec-suggestions-categories { padding-bottom: 8.4px; }
.babitec-category-chips { display: flex; gap: 4.8px 8px; flex-wrap: wrap; margin-top: 6px; }
.search-result-box .babitec-category-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4.8px 12px; border-radius: 12px; background: var(--suggestion-soft); color: var(--suggestion-text); font-size: 12px; max-width: 100%; overflow-wrap: anywhere; }
.babitec-suggestions-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7.2px 0; border-top: 1px solid #8793a21a; }
.babitec-suggestions-heading a { color: var(--suggestion-text); font-size: 12px; font-weight: 600; white-space: nowrap; }
.babitec-suggestions-products { list-style: none; padding: 0; margin: 0; }
.search-result-box .babitec-suggestion-product { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 12px; color: var(--suggestion-text); min-width: 0; }
.babitec-suggestion-product:hover, .babitec-suggestion-product:focus-visible, .babitec-category-chip:hover { background: var(--suggestion-soft); }
.search-result-box a:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.babitec-suggestion-image { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px; background: #f6f7f9; overflow: hidden; }
.search-result-box .babitec-suggestion-image img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; box-sizing: border-box; padding: 3px; object-fit: contain; object-position: center; }
.babitec-suggestion-details { flex: 1; min-width: 0; }
.babitec-suggestion-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 600; line-height: 1.5; }
.babitec-suggestion-category { display: block; margin-top: 2.4px; font-size: 12px; color: var(--suggestion-muted); overflow-wrap: anywhere; }
.babitec-suggestion-arrow { color: var(--suggestion-muted); font-size: 14px; flex-shrink: 0; }
.babitec-search-empty { padding: 14.4px 8px; text-align: center; color: var(--suggestion-muted); font-size: 14px; }
@media (max-width: 1199.98px) {
 /* Lift the header's stacking context above Swiper and positioned content. */
 .header { position: relative; z-index: 1000; overflow: visible; }
 .header .header-main { z-index: 1000; overflow: visible; }
 .header .header-main:not(.sticky) { position: relative; }
 .header .header-main > .container { overflow: visible; }
 .header .babitec-mobile-search { z-index: 1001; overflow: visible; }
 .header .babitec-mobile-search .search-result-box { z-index: 1001; }
 .babitec-mobile-search .search-result-box { width: 100%; inset-inline-start: 0; margin-top: 8px; }
 .babitec-aside-search { position: relative; }
 .babitec-aside-search .search-result-box { position: relative !important; width: 100%; margin-top: 8px; }
 .search-result-box .babitec-suggestions { padding: 7.2px 12px; }
 .search-result-box .babitec-suggestion-product { gap: 10px; padding: 5.4px 0; }
 .babitec-suggestion-image { width: 31.2px; height: 31.2px; flex-basis: 31.2px; }
 .babitec-suggestion-name { font-size: 13px; }
 .babitec-mobile-search .babitec-search-shell { width: 100%; }
 .babitec-mobile-search button.babitec-search-submit { width: 44px; padding: 10px; }
 .babitec-mobile-search .form-control { font-size: 16px; }
}
