/**
 * Woolements - Advanced Live Search Widget Stylesheet
 * استایل‌های جامع، ایزوله، مدرن و سازگار با چیدمان راست‌چین (RTL) برای ویجت جستجوی زنده المنتور
 */

/* ==========================================================================
   ۱. متغیرها و کانتینر اصلی ویجت
   ========================================================================== */
.woolements-search-widget {
    --woolements-search-focus-ring-color: rgba(99, 102, 241, 0.16);
    --woolements-search-focus-ring-width: 3px;
    --woolements-search-focus-translate-y: 0px;
    --woolements-search-transition-duration: 220ms;
    position: relative;
    width: 100%;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    font-family: inherit;
}

.woolements-search-widget *,
.woolements-search-widget *::before,
.woolements-search-widget *::after {
    box-sizing: border-box;
}

/* تب‌ها و کپسول‌های بالای فیلد (Pills Bar) */
.jazeb-search-pills-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.jazeb-search-pill-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    line-height: 1.4;
}

.jazeb-search-pill-btn:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.jazeb-search-pill-btn.is-active {
    background: #6366f1;
    color: #ffffff !important;
    border-color: #6366f1;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

/* ==========================================================================
   ۲. فیلد ورودی و فرم جستجو (Search Input Bar)
   ========================================================================== */
.jazeb-search-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.jazeb-search-input-wrap {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    min-width: 0;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 0 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: border-color var(--woolements-search-transition-duration) ease, background-color var(--woolements-search-transition-duration) ease, box-shadow var(--woolements-search-transition-duration) ease, transform var(--woolements-search-transition-duration) cubic-bezier(0.16, 1, 0.3, 1);
}

/* حلقه فوکوس به جای یک کادر دوم بیرونی، دقیقاً روی مرز خود فیلد رندر می‌شود. */
.jazeb-search-input-wrap::after {
    content: '';
    position: absolute;
    z-index: 0;
    inset: calc(-1 * var(--woolements-search-focus-ring-width));
    border: var(--woolements-search-focus-ring-width) solid var(--woolements-search-focus-ring-color);
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--woolements-search-transition-duration) ease;
}

.jazeb-search-input-wrap > * {
    position: relative;
    z-index: 1;
}

.jazeb-search-input-wrap:hover {
    border-color: #cbd5e1;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.055);
}

.jazeb-search-input-wrap:focus-within,
.jazeb-search-input-wrap.is-focused {
    background: #ffffff;
    border-color: #6366f1 !important;
    box-shadow: 0 8px 20px -12px rgba(79, 70, 229, 0.32);
    transform: translateY(var(--woolements-search-focus-translate-y));
}

.jazeb-search-input-wrap:focus-within::after,
.jazeb-search-input-wrap.is-focused::after {
    opacity: 1;
}

/* منوی انتخاب نوع محتوا داخل فیلد */
.jazeb-search-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.jazeb-search-type-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    padding: 4px 18px 4px 4px;
    font-family: inherit;
}

.jazeb-search-select-arrow {
    position: absolute;
    left: 2px;
    pointer-events: none;
    font-size: 10px;
    color: #94a3b8;
}

/* آیکون جستجو */
.jazeb-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 17px;
    width: 22px;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.jazeb-search-icon-pos-start .jazeb-search-icon {
    margin-left: 10px;
    margin-right: 0;
}

body:not(.rtl) .jazeb-search-icon-pos-start .jazeb-search-icon {
    margin-right: 10px;
    margin-left: 0;
}

.jazeb-search-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: block;
}

.jazeb-search-icon-pos-end .jazeb-search-icon {
    order: 3;
    margin-right: 8px;
    margin-left: 0;
}

.jazeb-search-input-wrap:focus-within .jazeb-search-icon {
    color: #6366f1;
}

/* اینپوت تایپ متن */
.jazeb-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    color: #1e293b;
    font-size: 14.5px;
    padding: 0 10px;
    margin: 0 !important;
    font-family: inherit;
    width: 100%;
}

/* جلوگیری از اعمال استایل‌های عمومی قالب روی input و ایجاد حس «فیلد داخل فیلد». */
.woolements-search-widget input.jazeb-search-input:focus,
.woolements-search-widget input.jazeb-search-input:focus-visible,
.woolements-search-widget input.jazeb-search-input:hover {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.jazeb-search-input::-webkit-search-decoration,
.jazeb-search-input::-webkit-search-cancel-button,
.jazeb-search-input::-webkit-search-results-button,
.jazeb-search-input::-webkit-search-results-decoration {
    display: none;
}

.jazeb-search-input::placeholder {
    color: #94a3b8;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.jazeb-search-input-wrap:focus-within .jazeb-search-input::placeholder {
    opacity: 0.7;
}

/* کلید میانبر (Shortcut badge) */
.jazeb-search-shortcut-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11px;
    font-family: monospace, sans-serif;
    font-weight: 600;
    user-select: none;
    margin: 0 4px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.jazeb-search-input-wrap.has-value .jazeb-search-shortcut-badge,
.jazeb-search-input-wrap.is-loading .jazeb-search-shortcut-badge {
    display: none;
}

/* لودینگ چرخان اسپینر */
.jazeb-search-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #6366f1 !important;
    border-radius: 50%;
    animation: jazebSearchSpin 0.7s linear infinite;
    margin: 0 6px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.jazeb-search-input-wrap.is-loading .jazeb-search-spinner {
    display: inline-block;
}

@keyframes jazebSearchSpin {
    to {
        transform: rotate(360deg);
    }
}

/* دکمه ضربدر پاک کردن */
.jazeb-search-clear-btn {
    display: none;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 26px;
    height: 26px;
    font-size: 13px;
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 4px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.jazeb-search-clear-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

.jazeb-search-input-wrap.has-value:not(.is-loading) .jazeb-search-clear-btn {
    display: inline-flex;
}

/* دکمه ارسال جستجو */
.jazeb-search-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    padding: 0 20px;
    height: calc(100% - 8px);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-right: 8px;
    flex-shrink: 0;
    outline: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.jazeb-search-submit-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.jazeb-search-submit-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   ۳. پنل شناور نتایج زنده (Results Dropdown Panel)
   ========================================================================== */
.jazeb-search-results-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-top: 10px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 1px rgba(15, 23, 42, 0.08);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.99);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.jazeb-search-results-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* نوار پیشرفت درخشان بالای نتایج (Glowing Top Progress Bar) */
.jazeb-search-progress-bar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(226, 232, 240, 0.4);
    overflow: hidden;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.jazeb-search-results-panel.is-loading .jazeb-search-progress-bar {
    opacity: 1;
    visibility: visible;
}

.jazeb-search-progress-glow {
    position: absolute;
    top: 0;
    right: -50%;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%);
    box-shadow: 0 0 12px #ec4899;
    animation: jazebSearchProgressGlow 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    border-radius: 4px;
}

@keyframes jazebSearchProgressGlow {
    0% {
        right: -50%;
        width: 30%;
    }
    50% {
        right: 25%;
        width: 55%;
    }
    100% {
        right: 100%;
        width: 30%;
    }
}

.jazeb-search-results-body {
    max-height: 480px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
}

/* اسکرول بار مدرن و باریک */
.jazeb-search-results-body::-webkit-scrollbar {
    width: 5px;
}

.jazeb-search-results-body::-webkit-scrollbar-track {
    background: #f8fafc;
}

.jazeb-search-results-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.jazeb-search-results-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* پیشنهادهای اولیه و عبارات محبوب */
.jazeb-search-suggestions-box {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}

.jazeb-search-suggestions-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
}

.jazeb-search-suggestions-title i {
    color: #f97316;
}

.jazeb-search-suggestions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jazeb-search-tag-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.jazeb-search-tag-pill:hover {
    background: #f1f5f9;
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-1px);
}

/* ==========================================================================
   ۴. عناوین و تفکیک گروه‌ها (Group Headers)
   ========================================================================== */
.jazeb-search-group {
    margin-bottom: 14px;
}

.jazeb-search-group:last-child {
    margin-bottom: 0;
}

.jazeb-search-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.jazeb-search-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.jazeb-search-group-title i {
    color: #6366f1;
    font-size: 14px;
}

.jazeb-search-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 12px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================================================
   ۵. کارت‌های محصول (Product Items)
   ========================================================================== */
.jazeb-search-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jazeb-search-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.jazeb-search-product-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid transparent;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
}

.jazeb-search-product-item:hover,
.jazeb-search-product-item.is-selected {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(-3px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

/* فریم تصویر محصول با حفظ ابعاد دقیق (object-fit: contain) */
.jazeb-search-product-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 14px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.jazeb-search-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jazeb-search-product-item:hover .jazeb-search-product-thumb img {
    transform: scale(1.1);
}

.jazeb-search-product-info {
    flex: 1;
    min-width: 0;
}

.jazeb-search-product-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.jazeb-search-product-item:hover .jazeb-search-product-title {
    color: #6366f1;
}

.jazeb-search-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.jazeb-search-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
}

.jazeb-search-badge-sale {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #ef4444;
}

.jazeb-search-badge-stock-in {
    background: #ecfdf5;
    color: #059669;
    gap: 4px;
}

.jazeb-search-badge-stock-in::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.jazeb-search-badge-stock-out {
    background: #fef2f2;
    color: #dc2626;
    gap: 4px;
}

.jazeb-search-badge-stock-out::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
}

/* بخش قیمت */
.jazeb-search-price {
    font-size: 13.5px;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jazeb-search-price del {
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 500;
}

.jazeb-search-price ins {
    text-decoration: none;
    color: #10b981;
}

/* رتبه‌بندی ستاره‌ای */
.jazeb-search-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #f59e0b;
    font-size: 11px;
}

/* دکمه افزودن سریع به سبد خرید ایجکس */
.jazeb-search-add-cart-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    outline: none;
}

.jazeb-search-add-cart-btn:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

.jazeb-search-add-cart-btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.jazeb-search-add-cart-btn.is-added {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

/* ==========================================================================
   ۶. کارت‌های مقالات و برگه‌ها (Content Items)
   ========================================================================== */
.jazeb-search-content-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-radius: 10px;
    background: #ffffff;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.jazeb-search-content-item:hover,
.jazeb-search-content-item.is-selected {
    background: #f8fafc;
    transform: translateX(-2px);
}

.jazeb-search-content-thumb {
    width: 65px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 12px;
    background: #f1f5f9;
}

.jazeb-search-content-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
}

.jazeb-search-content-info {
    flex: 1;
    min-width: 0;
}

.jazeb-search-content-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 3px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jazeb-search-content-item:hover .jazeb-search-content-title {
    color: #6366f1;
}

.jazeb-search-content-excerpt {
    font-size: 11.5px;
    color: #64748b;
    margin: 0 0 5px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jazeb-search-content-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #94a3b8;
}

.jazeb-search-content-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   ۷. فوتر پنل و دکمه مشاهده همه نتایج (View All Button & Footer)
   ========================================================================== */
.jazeb-search-results-footer {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.jazeb-search-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 700;
    color: #4f46e5;
    background: #f5f3ff;
    border: 1px solid #ede9fe;
    text-decoration: none !important;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    line-height: 1.4;
}

.jazeb-search-view-all-btn:hover {
    color: #ffffff !important;
    background: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
}
}

.jazeb-search-view-all-btn i,
.jazeb-search-view-all-btn .jazeb-search-view-all-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.jazeb-search-view-all-btn .jazeb-search-view-all-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.jazeb-search-view-all-btn:hover .jazeb-search-view-all-icon,
.jazeb-search-view-all-btn:hover i {
    transform: translateX(-4px);
}

/* ==========================================================================
   ۸. وضعیت نبود نتیجه و خطا (Empty & Error States)
   ========================================================================== */
.jazeb-search-empty-state {
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* کادر آیکون انیمیشنی وضعیت خالی */
.jazeb-search-empty-icon-wrap {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(148, 163, 184, 0.15);
    position: relative;
    animation: jazebSearchEmptyFloat 3s ease-in-out infinite;
}

@keyframes jazebSearchEmptyFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 14px rgba(148, 163, 184, 0.15);
    }
    50% {
        transform: translateY(-6px);
        box-shadow: 0 10px 22px rgba(148, 163, 184, 0.22);
    }
}

.jazeb-search-empty-icon {
    font-size: 34px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.jazeb-search-empty-icon svg {
    width: 36px;
    height: 36px;
    fill: #94a3b8;
}

.jazeb-search-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.jazeb-search-empty-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 18px 0;
    line-height: 1.7;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* دکمه پاک کردن و جستجوی مجدد */
.jazeb-search-empty-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background: #ffffff;
    color: #4f46e5;
    border: 1px solid #e0e7ff;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.jazeb-search-empty-reset-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.jazeb-search-empty-reset-btn i,
.jazeb-search-empty-reset-btn svg {
    font-size: 12px;
    transition: transform 0.35s ease;
}

.jazeb-search-empty-reset-btn:hover i,
.jazeb-search-empty-reset-btn:hover svg {
    transform: rotate(180deg);
}

/* اسکلت بارگذاری مدرن با موج درخشان (Modern Wave Shimmer Skeleton) */
.jazeb-search-skeletons-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}

.jazeb-search-skeleton {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    gap: 12px;
}

.jazeb-search-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(100%);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.75) 50%,
        transparent 100%
    );
    animation: jazebSearchShimmer 1.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes jazebSearchShimmer {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.jazeb-search-skeleton-thumb {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: #f1f5f9;
    flex-shrink: 0;
}

.jazeb-search-skeleton-lines {
    flex: 1;
    min-width: 0;
}

.jazeb-search-skeleton-line {
    background: #f1f5f9;
    border-radius: 4px;
    margin-bottom: 7px;
}

.jazeb-search-skeleton-title {
    height: 13px;
    width: 65%;
}

.jazeb-search-skeleton-meta {
    height: 10px;
    width: 40%;
}

.jazeb-search-skeleton-price {
    height: 11px;
    width: 25%;
    margin-bottom: 0;
}

/* هایلایت کلمات */
.jazeb-search-highlight {
    background-color: #fef08a;
    color: #854d0e;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 700;
}

/* ==========================================================================
   ۹. استایل‌های ریسپانسیو و حالت موبایل (Mobile Responsiveness)
   ========================================================================== */
@media (max-width: 768px) {
    .jazeb-search-items-grid {
        grid-template-columns: 1fr !important;
    }

    .jazeb-search-results-panel {
        width: 100% !important;
        max-width: 100% !important;
        position: absolute;
        right: 0;
        left: 0;
    }

    .jazeb-search-submit-btn {
        padding: 0 14px;
        font-size: 13px;
    }

    .jazeb-search-shortcut-badge {
        display: none !important;
    }

    .jazeb-search-product-thumb {
        width: 48px;
        height: 48px;
    }
}
