.search-ac {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 440px;
    overflow-y: auto;
}

.search-ac__list {
    padding: 4px 0;
}

.search-ac__item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.15s;
    gap: 12px;
}

.search-ac__item:hover {
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
}

.search-ac__img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: #f9f9f9;
}

.search-ac__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-ac__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-ac__name {
    font-size: 13px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-ac__name mark {
    background: rgba(255, 210, 0, 0.35);
    padding: 0;
    border-radius: 2px;
}

.search-ac__price {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.search-ac__footer {
    display: block;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
    color: #555;
    border-top: 1px solid #eee;
    text-decoration: none;
    transition: background-color 0.15s;
}

.search-ac__footer:hover {
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

@media (max-width: 767px) {
    .search-ac {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 60vh;
        border-radius: 12px 12px 0 0;
        border: none;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    }

    .search-ac__item {
        padding: 10px 16px;
    }

    .search-ac__img {
        width: 48px;
        height: 48px;
    }
}
