#sg-product-search {
    --search-navy: #173c63;
    --search-blue: #075f9f;
    --search-line: #cfdeeb;
    position: relative;
    z-index: 25;
    padding: .65rem clamp(.85rem, 3vw, 2rem);
    background: #f1f7fd;
    border-bottom: 1px solid var(--search-line);
}
#sg-product-search form {
    position: relative;
    display: flex;
    align-items: center;
    gap: .6rem;
    max-width: 42rem;
    margin: 0 auto;
}
#sg-product-search label { color: var(--search-navy); font-weight: 680; margin: 0; }
.sg-search-field { display: flex; flex: 1; min-width: 0; }
.sg-search-field input {
    width: 100%;
    min-width: 0;
    height: 2.5rem;
    border: 1px solid var(--search-line);
    border-radius: .45rem 0 0 .45rem;
    background: #fff;
    color: var(--search-navy);
    padding: .45rem .65rem;
}
.sg-search-field button {
    padding: .45rem .8rem;
    border: 1px solid var(--search-blue);
    border-radius: 0 .45rem .45rem 0;
    color: #fff;
    background: var(--search-blue);
    font-weight: 650;
}
.sg-search-results {
    position: absolute;
    top: calc(100% + .4rem);
    left: 0;
    right: 0;
    margin: 0;
    max-height: min(60vh, 420px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--search-line);
    border-radius: .55rem;
    box-shadow: 0 9px 24px rgba(16, 50, 77, .15);
}
.sg-search-results[hidden] { display: none !important; }
.sg-search-results > p { margin: 0; padding: .6rem .75rem; color: #3a5670; font-size: .84rem; }
.sg-search-results ul { list-style: none; padding: 0; margin: 0; }
.sg-search-results a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .75rem;
    border-top: 1px solid #e4edf6;
    color: var(--search-navy);
    text-decoration: none;
}
.sg-search-results a:hover { background: #eff7ff; }
.sg-search-results img { width: 46px; height: 42px; object-fit: contain; border-radius: .25rem; background: #eff6fd; }
.sg-search-results a > span:first-of-type { flex: 1; min-width: 0; }
.sg-search-results strong, .sg-search-results small { display: block; overflow-wrap: anywhere; }
.sg-search-results small { color: #456279; }
.sg-search-price { font-size: .87rem; font-weight: 650; text-align: right; }
#sg-product-search :is(a, button, input):focus-visible { outline: 2px solid #075f9f; outline-offset: -2px; }
@media (max-width: 550px) {
    #sg-product-search form { display: block; }
    #sg-product-search label { display: block; margin-bottom: .3rem; font-size: .88rem; }
}

