/* ================================================================
   iranboschcenter.com — لایو سرچ
   ================================================================ */

.ls-form { position: relative; }

.ls-box {
    display: none;
    position: absolute;
    top: calc(100% + .4rem);
    inset-inline: 0;
    z-index: 120;
    background: #fff;
    border: 1px solid #ececef;
    border-radius: .9rem;
    box-shadow: 0 12px 32px rgba(11, 27, 43, .13);
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .35rem;
    text-align: right;
    direction: rtl;
}
.ls-box.open { display: block; }

.ls-head {
    font-size: .6875rem;
    font-weight: 800;
    color: #94a3b8;
    padding: .5rem .6rem .3rem;
    letter-spacing: .02em;
}

.ls-cat,
.ls-item,
.ls-all {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem .6rem;
    border-radius: .6rem;
    color: #33475b;
    font-size: .8125rem;
    line-height: 1.8;
    transition: background .12s;
}
.ls-cat:hover, .ls-item:hover, .ls-all:hover,
.ls-cat.active, .ls-item.active, .ls-all.active {
    background: var(--color-primary-light, #fdecec);
}

.ls-cat { justify-content: space-between; font-weight: 700; }
.ls-cat b {
    flex-shrink: 0;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0 .45rem;
    font-size: .6875rem;
    color: #64748b;
}

.ls-item img,
.ls-item .ls-noimg {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: .5rem;
    object-fit: contain;
    background: #fafafa;
    border: 1px solid #f1f1f4;
    display: block;
}
.ls-item__body { display: flex; flex-direction: column; min-width: 0; }
.ls-item__name {
    font-weight: 600;
    color: #0b1b2b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ls-item__price {
    font-size: .75rem;
    font-weight: 700;
    color: var(--color-primary, #e20015);
}

.ls-box mark {
    background: transparent;
    color: var(--color-primary, #e20015);
    font-weight: 800;
}

.ls-all {
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary, #e20015);
    border-top: 1px solid #f3f4f6;
    margin-top: .25rem;
    border-radius: 0 0 .6rem .6rem;
}

.ls-empty {
    padding: 1.1rem .6rem;
    text-align: center;
    font-size: .8125rem;
    color: #94a3b8;
}

/* روی موبایل نوار جستجو تمام‌عرض است، پس منو هم تمام‌عرض شود */
@media (max-width: 768px) {
    .ls-box { max-height: 60vh; border-radius: .75rem; }
    .ls-item img, .ls-item .ls-noimg { width: 38px; height: 38px; }
}
