.product-search {
    position: relative;
    min-width: 0;
}

.product-search-label {
    display: block;
    margin-bottom: 7px;
}

.product-search-field {
    position: relative;
}

.product-search-field::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 13px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: var(--burgundy, #671f3a);
    mask: url('icons/search.svg') center / contain no-repeat;
    pointer-events: none;
}

.product-search input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding-inline-start: 40px;
}

.product-search-panel {
    position: absolute;
    z-index: 10;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: min(360px, 55vh);
    overflow: auto;
    background: var(--paper, #fffaf5);
    border: 1px solid var(--line, #e8dcd4);
    border-radius: 10px;
    box-shadow: 0 16px 35px #391a221f;
    overscroll-behavior: contain;
}

.product-search-panel[hidden],
.product-search-message[hidden] {
    display: none;
}

.product-search-results {
    list-style: none;
    margin: 0;
    padding: 4px;
}

.product-search-results:empty {
    display: none;
}

.product-search-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 49px;
    padding: 6px 10px;
    color: var(--ink, #2e161d);
    border-radius: 6px;
    cursor: pointer;
}

.product-search-option:hover,
.product-search-option[aria-selected="true"] {
    background: #f2e5e9;
    color: #591c32;
}

.product-search-option img {
    width: 34px;
    height: 40px;
    object-fit: cover;
    flex: none;
    background: #f4ebe6;
    border-radius: 4px;
}

.product-search-option strong,
.product-search-option small {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.product-search-option strong {
    font-size: .9rem;
}

.product-search-option small {
    margin-top: 3px;
    color: var(--muted, #70565c);
}

.product-search-option-all {
    min-height: 42px;
    margin-top: 3px;
    border-top: 1px solid var(--line, #e8dcd4);
    border-radius: 0 0 6px 6px;
    font-size: .85rem;
    font-weight: 700;
    color: #671f3a;
}

.product-search-message {
    margin: 0;
    padding: 14px;
    font-size: .85rem;
    line-height: 1.45;
}

.product-search-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.home-product-search {
    padding: 17px 0;
    background: #f4e8e8;
    border-bottom: 1px solid #eadbd8;
}

.home-product-search-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 32rem);
    justify-content: center;
    align-items: center;
    gap: 7px clamp(18px, 3vw, 40px);
}

.home-product-search h2 {
    margin: 0;
    color: var(--burgundy, #671f3a);
    font: 600 1.06rem/1.3 var(--body);
}

.home-product-search-form {
    min-width: 0;
    margin: 0;
}

@media (max-width: 600px) {
    .filter-bar > .product-search {
        grid-column: 1 / -1;
    }

    .home-product-search-inner {
        grid-template-columns: 1fr;
    }
}
