/* === فرم جستجو (قاب اصلی) === */
.ebr-ajax-search-form {
    position: relative;
    width: 500px;
    max-width: 100%;
    margin: auto;
}

/* === اینپوت متن === */
.ebr-search-input {
    width: 100%;
    padding: 10px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    /* می‌خواهی فاصله آیکن سمت چپ رو آزاد کنی؟ */
    padding-left: 34px;
}

/* === لودر چرخان === */
.ebr-loader {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 23px;
    height: 23px;
    background: #fff;
    border: 2px solid #ccc;
    border-top: 2px solid #ab8e66;   /* تم طلایی دوناوب */
    border-radius: 50%;
    animation: ebr-spin 0.8s linear infinite;
    z-index: 999;
}

@keyframes ebr-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === لیست نتایج === */
.ebr-search-results {
    display: none;
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: absolute;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ebr-search-results li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.ebr-search-results li:last-child {
    border-bottom: none;
}

.ebr-search-results li a {
    text-decoration: none;
    color: #333;
}

.ebr-search-results li:hover {
    background-color: #f0f0f0;
}

/* === گزینه «نمایش همه…» === */
.ebr-search-results li.ebr-show-all {
    background: #f9f9f9;
    font-weight: 700;
    text-align: center;
    border-top: 1px solid #ddd;
    color: #ab8e66;
    cursor: pointer;
}

.ebr-search-results li.ebr-show-all:hover {
    background: #e6f4ff;
}

/* === آیکن ذره‌بین === */
.ebr-ajax-search-form i {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 998;
}

/* ‌ــ اختیاری: ریسپانسیو سریع برای موبایل ــ */
@media (max-width: 480px) {
    .ebr-ajax-search-form { width: 100%; }
}

#header-bottom .ebr-ajax-search-form{
    transform: translateY(8px);
}