/**
 * Bundled fallback autocomplete styling.
 *
 * Only activates on themes that don't expose prestashop.blocksearch.initAutocomplete.
 * On Studio / Studio-derived themes, the theme owns the dropdown and these
 * .sshopsearch-suggestions elements are never created.
 */

.sshopsearch-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: 2px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 420px;
    overflow-y: auto;
    display: none;
}

.sshopsearch-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.1s;
}

.sshopsearch-suggestion:last-child {
    border-bottom: none;
}

.sshopsearch-suggestion:hover,
.sshopsearch-suggestion:focus {
    background: #f7f7f7;
    text-decoration: none;
    color: #000;
}

.sshopsearch-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sshopsearch-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sshopsearch-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.sshopsearch-name {
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sshopsearch-price {
    font-size: 0.9em;
    color: #666;
}

.sshopsearch-tag {
    flex: 0 0 auto;
    font-size: 0.75em;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
}

.sshopsearch-show-all,
.sshopsearch-redirect {
    justify-content: center;
    font-weight: 600;
    background: #fafafa;
    color: #333;
    padding: 12px;
}

.sshopsearch-redirect {
    background: #fffaf0;
    color: #b85c00;
}
