/* Modern header search suggestions — scoped, no Tailwind */
.sh-help {
    direction: rtl;
    text-align: right;
    font-family: iransans, yekan, Tahoma, sans-serif;
    color: #1f2937;
}

.sh-section {
    margin-bottom: 14px;
}

.sh-section:last-child {
    margin-bottom: 0;
}

.sh-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sh-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #eef4ff;
    color: #4285F4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.sh-section-title {
    font-family: yekan, iransans;
    font-size: 13px;
    color: #6b7280;
}

.sh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sh-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.sh-chip:hover {
    background: #eef4ff;
    border-color: #c7dbff;
    color: #1d4ed8;
    text-decoration: none !important;
}

.sh-chip-text {
    font-size: 13px;
    font-family: iransans2, iransans;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-chip-en {
    color: #9ca3af;
    font-size: 11px;
    margin-right: 4px;
    font-family: Arial, sans-serif;
}

.sh-chip-arrow {
    font-size: 10px;
    color: #9ca3af;
    flex-shrink: 0;
}

.sh-products {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sh-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eef0f3;
    text-decoration: none !important;
    color: inherit;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.sh-product:hover {
    background: #f8fafc;
    border-color: #dbe3f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    text-decoration: none !important;
    color: inherit;
}

.sh-product-img-wrap {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sh-product-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.sh-product-title {
    font-size: 13px;
    line-height: 1.55;
    color: #111827;
    font-family: iransans2, iransans;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sh-product-sub {
    margin-top: 4px;
}

.sh-price {
    font-family: BYekan, iransans;
    font-size: 15px;
    color: #2563eb;
}

.sh-price small {
    font-family: yekan, iransans;
    font-size: 11px;
    color: #6b7280;
    margin-right: 3px;
}

.sh-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-family: yekan, iransans;
}

.sh-badge-on {
    background: #ecfdf5;
    color: #047857;
}

.sh-badge-off {
    background: #f3f4f6;
    color: #6b7280;
}

.sh-product-arrow {
    flex: 0 0 auto;
    color: #c0c4cc;
    font-size: 12px;
}

.sh-empty {
    text-align: center;
    padding: 48px 16px;
}

.sh-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sh-empty-title {
    font-family: yekan, iransans;
    font-size: 15px;
    color: #374151;
    margin-bottom: 4px;
}

.sh-empty-desc {
    font-size: 12px;
    color: #9ca3af;
}

/* Desktop dropdown panel — exact same width as search input */
.header-search-inner {
    position: relative !important;
    width: 100% !important;
}

#header_search_brief_result {
    display: none;
    box-sizing: border-box !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14) !important;
    padding: 14px !important;
    background: #fff !important;
    z-index: 2000;
    overflow-x: hidden;
}

@media screen and (max-width: 995px) {
    #header_search_brief_result {
        /* mobile fullscreen rules in layout.php take over */
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        min-width: 0 !important;
    }

    .hdr-search-fs-body {
        padding: 14px 14px 24px !important;
        background: #f8fafc;
    }

    .sh-product {
        background: #fff;
    }

    .sh-product-img-wrap {
        width: 64px;
        height: 64px;
    }

    .sh-product-title {
        font-size: 13px;
    }
}
