.search-wrapper {
    position: relative;
    width: 100%;
	font-family: yekanbakh;
}
.search-box input {
    outline: none;
    font-size: 14px;
    direction: rtl;
    color: #111;
    display: flex;
    align-items: center;
    background: #FAFAFA;
    border-radius: 8px !important;
    padding: 0 48px !important;
    gap: 8px;
    height: 48px;
    border: none !important;
}
.search-box svg,
.clear-btn {
    display: flex ;
	justify-content: center;
    align-items: center;
    color: #888;
    transition: color 0.15s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    aspect-ratio: 1;
    height: auto;
    padding: 13px;
}
.clear-btn {
    left: 0;
    background: none !important;
    border: none !important;
    justify-content: center;
}
.clear-btn:hover {
    color: #333;
}
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid #e0e0e0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    padding: 16px;
    direction: rtl;
}
.search-dropdown.active {
    display: block;
}
.search-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    margin: 0 0 12px;
    text-align: right;
}
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.search-tag {
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.search-tag:hover {
    background: #ebebeb;
	color: #000;
}
.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-result-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 0.5px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}

.search-result-item:last-child a {
    border-bottom: none;
}

.search-result-item a:hover .search-result-title {
    color: #0057d9;
}

.search-result-item svg {
    flex-shrink: 0;
    color: #aaa;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-title {
    font-size: 14px;
    color: #111;
    transition: color 0.15s;
}

.search-result-title mark {
    background: none;
    color: #0057d9;
    font-weight: 500;
}

.search-result-cat {
    font-size: 12px;
    color: #888;
}

/* ─── Empty / Loading ────────────────────────────────────────── */
.search-empty {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    padding: 16px 0;
    list-style: none;
}

/* ─── Mobile Popup ───────────────────────────────────────────── */
/* دکمه تریگر فقط در موبایل نشون داده بشه */
.search-mobile-trigger, .search-mobile-popup {
	display:none;
} {
    display: none;
}
.search-results-list img {
	display: none;
}
@media (max-width: 768px) {

    /* مخفی کردن فیلد اصلی در موبایل */
    .search-wrapper .search-box,
    .search-wrapper .search-dropdown {
        display: none !important;
    }

    /* دکمه آیکون سرچ */
    .search-mobile-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #CECED1;
        border-radius: 8px;
        width: 48px;
        height: 48px;
        cursor: pointer;
        color: #9D9EA2;
        padding: 0;
    }

    /* اوورلی پس‌زمینه */
    .search-mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 99998;
    }
    .search-mobile-overlay.active {
        display: block;
    }

    /* پاپ‌آپ */
    .search-mobile-popup {
        display: none;
        position: fixed;
        inset: 0;
        background: #fff;
        z-index: 99999;
        flex-direction: column;
        padding: 0;
		font-family: yekanbakh;
    }
    .search-mobile-popup.active {
        display: flex;
    }

    /* هدر پاپ‌آپ: دکمه بک + اینپوت */
    .search-mobile-header {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        border-bottom: 0.5px solid #e0e0e0;
        direction: rtl;
    }

    .search-mobile-back {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #CECED1;
    color: #555;
    width: 48px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 10px;
    aspect-ratio: 1;
    }

    .search-mobile-header .search-box {
        display: flex !important;
        flex: 1;
        position: relative;
    }

    .search-mobile-header .search-box input {
        width: 100%;
    }

    /* محتوای پاپ‌آپ = همان دراپ‌داون */
    .search-mobile-body {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        direction: rtl;
    }
	.search-results-list {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
	}
	.search-result-item {
		width: 100%;
	}
	.search-results-list img {
		display: block;
		width: 100px;
	}
    /* نمایش نتایج و دیفالت داخل پاپ‌آپ */
    .search-mobile-body .search-dropdown {
        display: block !important;
        position: static !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
}