.ret-product-search { position: relative; width: 100%; }
.ret-product-search__panel {
    position: absolute;
    z-index: 120;
    top: calc(100% + .5rem);
    left: 0;
    right: 0;
    overflow: hidden;
    max-height: min(520px, 70vh);
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--ret-line);
    border-radius: var(--ret-radius);
    box-shadow: var(--ret-shadow);
}
.ret-product-search__item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
    padding: .75rem;
    color: var(--ret-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ret-line);
}
.ret-product-search__item:hover,
.ret-product-search__item.is-active { background: var(--ret-surface-soft); color: var(--ret-ink); }
.ret-product-search__media {
    width: 58px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: .55rem;
    background: #fff;
    border: 1px solid var(--ret-line);
}
.ret-product-search__media img { width: 100%; height: 100%; object-fit: contain; }
.ret-product-search__copy { min-width: 0; display: grid; gap: .2rem; }
.ret-product-search__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; line-height: 1.25; }
.ret-product-search__meta { color: var(--ret-muted); font-size: .76rem; }
.ret-product-search__price { white-space: nowrap; font-size: .82rem; font-weight: 800; color: var(--ret-accent-strong); }
.ret-product-search__empty { padding: 1rem; color: var(--ret-muted); font-size: .9rem; }
.ret-product-search__all {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--ret-accent-strong);
    font-weight: 800;
}
.ret-product-search__all:hover { background: var(--ret-surface-soft); color: var(--ret-accent-strong); }
.ret-product-search-results__header { margin-bottom: 2rem; }
.ret-product-search-results__header h1 { margin-bottom: .5rem; }
.ret-product-search-results__summary { color: var(--ret-muted); }
.ret-product-search-empty { padding: 3rem 0; max-width: 760px; }
.ret-product-search-empty h2 { margin-top: 0; }
@media (max-width: 640px) {
    .ret-product-search__item { grid-template-columns: 48px minmax(0, 1fr); }
    .ret-product-search__media { width: 48px; }
    .ret-product-search__price { grid-column: 2; }
}
