/* AI Search Autocomplete */
.ais-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 6px 20px rgba(0,0,0,.15);
    max-height: 450px;
    overflow-y: auto;
    display: none;
}
.ais-ac.active {
    display: block;
}

/* Item row */
.ais-ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}
.ais-ac-item:last-child {
    border-bottom: none;
}
.ais-ac-item:hover,
.ais-ac-item.ais-active {
    background: #f7f7f7;
}

/* Image */
.ais-ac-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.ais-ac-img-ph {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
    color: #bbb;
    font-size: 20px;
}

/* Info block (name + description) */
.ais-ac-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.ais-ac-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ais-ac-name mark {
    background: #fff3cd;
    padding: 0 1px;
    border-radius: 2px;
    color: inherit;
}
.ais-ac-desc {
    font-size: 12px;
    line-height: 1.4;
    color: #888;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category badge */
.ais-ac-badge {
    display: inline-block;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 3px;
    margin-top: 3px;
}

/* Price */
.ais-ac-price {
    flex-shrink: 0;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.ais-ac-price-old {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}
.ais-ac-price-new {
    display: block;
    color: #e00;
    font-weight: 600;
}

/* Show all results link */
.ais-ac-all {
    display: block;
    text-align: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}
.ais-ac-all:hover {
    background: #f0f0f0;
    color: #222;
}

/* Dropdown anchor — set via JS on the search form */
.ais-ac-anchor {
    position: relative;
}
