.sws-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}
.sws-input-group {
    position: relative;
}
.sws-search-input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
}
.sws-loader {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #eee;
    border-top-color: #2196f3;
    border-radius: 50%;
    display: none;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.sws-suggestions, .sws-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.sws-suggestions.active, .sws-results.active {
    display: block;
}
.sws-suggestion-item, .sws-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.sws-suggestion-item:hover, .sws-result-item:hover {
    background: #f9f9f9;
}
.sws-result-item {
    display: flex;
    gap: 12px;
    align-items: center;
}
.sws-item-info {
    flex: 1;
}
.sws-title mark {
    background: #ffeb3b;
}
.sws-price {
    color: #e91e63;
    font-size: 13px;
    margin-top: 4px;
}
.sws-no-result {
    padding: 15px;
    text-align: center;
    color: #888;
}


/* اضافه کنید به انتهای فایل CSS */
.sws-sku {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}
.sws-stock {
    font-size: 11px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 4px;
}
.sws-stock.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}
.sws-stock.out-of-stock {
    background: #ffebee;
    color: #c62828;
}