﻿/* ===== Mobile Search ===== */
.anvu-m-search-form {
    position: relative;
    width: 100%;
}

.anvu-m-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 8px 6px 14px;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

    .anvu-m-search-inner input {
        flex: 1 1 auto;
        min-width: 0;
        height: 32px;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 14px;
        color: #111827;
    }

        .anvu-m-search-inner input::placeholder {
            color: #9ca3af;
        }

    .anvu-m-search-inner button {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border: 0;
        border-radius: 10px;
        background: #0f62fe;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .anvu-m-search-inner button i {
            font-size: 14px;
        }

/* ===== Suggest Panel ===== */
.anvu-m-search-form .anvu-search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1200;
    display: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.anvu-m-search-form .anvu-suggest-list {
    max-height: min(56vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.anvu-m-search-form .anvu-suggest-item-search {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

    .anvu-m-search-form .anvu-suggest-item-search:last-child {
        border-bottom: 0;
    }

    .anvu-m-search-form .anvu-suggest-item-search.active,
    .anvu-m-search-form .anvu-suggest-item-search:hover {
        background: #f8fbff;
    }

.anvu-m-search-form .anvu-suggest-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .anvu-m-search-form .anvu-suggest-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.anvu-m-search-form .anvu-suggest-info {
    min-width: 0;
}

.anvu-m-search-form .anvu-suggest-name-search {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anvu-m-search-form .anvu-suggest-meta {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #94a3b8;
    min-height: 17px;
}

.anvu-m-search-form .anvu-suggest-price {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    color: #dc2626;
    text-align: right;
    white-space: nowrap;
    align-self: start;
}

.anvu-m-search-form .anvu-suggest-empty {
    padding: 16px 14px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.anvu-m-search-form .anvu-suggest-footer {
    padding: 10px 12px 12px;
    border-top: 1px solid #f1f5f9;
    background: #fcfdff;
}

.anvu-m-search-form .anvu-suggest-all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #eff6ff;
    color: #0f62fe;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* ===== Small phones ===== */
@media (max-width: 399.98px) {
    .anvu-m-search-form .anvu-suggest-item-search {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
    }

    .anvu-m-search-form .anvu-suggest-thumb {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .anvu-m-search-form .anvu-suggest-price {
        grid-column: 2 / 3;
        text-align: left;
        margin-top: 2px;
    }
}
