/* TEDY SHOP - YITH AJAX SEARCH */

#header .autocomplete-suggestions,
#header .ywcas-search-results,
#header .ywcas-popover,
#header .yith-woocommerce-ajax-search-result {
    background:#fff !important;
    border:1px solid #e6e6e6 !important;
    border-radius:12px !important;
    box-shadow:0 10px 30px rgba(0,0,0,.14) !important;
    color:#222 !important;
    direction:rtl !important;
    text-align:right !important;
    overflow:hidden !important;
    min-width:440px !important;
    max-width:520px !important;
    z-index:999999 !important;
}

/* هر محصول */
#header .autocomplete-suggestion,
#header .ywcas-search-results li,
#header .ywcas-search-results__item,
#header .yith-woocommerce-ajax-search-result li {
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    background:#fff !important;
    padding:10px 12px !important;
    min-height:78px !important;
    border-bottom:1px solid #eee !important;
    color:#222 !important;
}

/* هاور */
#header .autocomplete-suggestion:hover,
#header .ywcas-search-results li:hover,
#header .ywcas-search-results__item:hover,
#header .yith-woocommerce-ajax-search-result li:hover {
    background:#f3f6fa !important;
}

/* متن در هاور = سرمه‌ای */
#header .autocomplete-suggestion:hover *,
#header .ywcas-search-results li:hover *,
#header .ywcas-search-results__item:hover *,
#header .yith-woocommerce-ajax-search-result li:hover * {
    color:#142d4c !important;
}

/* تصویر */
#header .yith_wcas_result_image,
#header .ywcas-search-results__image {
    flex:0 0 64px !important;
    width:64px !important;
    max-width:64px !important;
}

#header .autocomplete-suggestion img,
#header .yith_wcas_result_image img,
#header .ywcas-search-results img,
#header .yith-woocommerce-ajax-search-result img {
    width:64px !important;
    height:64px !important;
    min-width:64px !important;
    object-fit:contain !important;
    border-radius:8px !important;
    margin:0 !important;
    background:#fff !important;
}

/* محتوای محصول */
#header .yith_wcas_result_content,
#header .ywcas-search-results__content,
#header .search-info-wrap {
    flex:1 1 auto !important;
    min-width:0 !important;
    text-align:right !important;
}

/* اسم */
#header .yith_wcas_result_content .title,
#header .ywcas-search-results .title,
#header .ywcas-search-results .product-title,
#header .yith-woocommerce-ajax-search-result strong,
#header .autocomplete-suggestion .search-name {
    display:block !important;
    color:#222 !important;
    font-size:14px !important;
    font-weight:600 !important;
    line-height:1.7 !important;
    white-space:normal !important;
}

/* قیمت */
#header .yith_wcas_result_content .price,
#header .ywcas-search-results .price,
#header .yith-woocommerce-ajax-search-result .price,
#header .autocomplete-suggestion .search-price {
    color:#555 !important;
    font-size:13px !important;
    font-weight:500 !important;
    margin-top:4px !important;
}

/* جلوگیری از متن سفید تم Porto */
#header .autocomplete-suggestion a,
#header .ywcas-search-results a,
#header .yith-woocommerce-ajax-search-result a {
    color:#222 !important;
    text-decoration:none !important;
}

/* موبایل */
@media(max-width:767px){
    #header .autocomplete-suggestions,
    #header .ywcas-search-results,
    #header .ywcas-popover,
    #header .yith-woocommerce-ajax-search-result {
        width:calc(100vw - 20px) !important;
        min-width:0 !important;
        max-width:calc(100vw - 20px) !important;
    }

    #header .autocomplete-suggestion,
    #header .ywcas-search-results li,
    #header .ywcas-search-results__item {
        min-height:70px !important;
        padding:8px !important;
    }
}
