form.search,
form.search-mobile {
    position: relative;
}

/* Mobil: Theme setzt form.search-mobile auf z-index 1, der Slider darunter liegt sonst über dem Dropdown */
form.search-mobile:focus-within {
    z-index: 1060;
}

.cc-search-ac {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    margin-top: 4px;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .375rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    text-align: left;
}

.cc-search-ac[hidden] {
    display: none;
}

/* Mobil direkt am Suchfeld ansetzen, ohne Spalt */
form.search-mobile .cc-search-ac {
    margin-top: 0;
}

.cc-search-ac__item {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 48px;
    padding: .375rem .75rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.cc-search-ac__item:hover,
.cc-search-ac__item[aria-selected="true"] {
    background: rgba(0, 0, 0, .05);
    color: inherit;
}

/* Rundes Icon wie im Minibasket (.minibasket-img-wrapper) */
.cc-search-ac__img {
    flex: 0 0 48px;
    display: flex;
    align-items: end;
    width: 48px;
    height: 48px;
    border: 1px solid #eeeeee;
    border-radius: 100%;
    overflow: hidden;
}

.cc-search-ac__img picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* Icons sind 90x72 – nicht verzerren, Kreis füllen */
.cc-search-ac__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Platzhalterbild (Logo) vollständig zeigen statt beschneiden */
.cc-search-ac__img img[src*="nopic"] {
    object-fit: contain;
}

.cc-search-ac__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.cc-search-ac__all {
    justify-content: center;
    text-align: center;
    font-weight: 600;
    border-bottom: 0;
}

.cc-search-ac__empty {
    padding: .75rem;
    color: #6c757d;
}
