.sav-search-container {
    position: relative;
    width: 600px;
    margin: 0 auto;
    direction: rtl;
}

.sav-search-form {
    display: flex;
    width: 600px;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1px 16px;
    transition: all 0.3s ease;
}

.sav-search-form:focus-within {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.sav-search-input {
    flex: 1;
    outline: 0 !important;
    padding: 8px !important;
    font-size: 16px !important;
    line-height: normal !important;
    background-color: transparent !important;
    border: none !important;
    color: #333 !important;
    background-image: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    margin-bottom: 0 !important;
    text-align: right;
}

.sav-search-input:focus {
    outline: 0 !important;
    padding: 8px !important;
    font-size: 16px !important;
    line-height: normal !important;
    background-color: transparent !important;
    border: none !important;
    color: #333 !important;
    background-image: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    margin-bottom: 0 !important;
}

.sav-search-button {
    background: none;
    border: none;
    padding: 8px 8px 0;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.sav-search-button:hover {
    color: #4a90e2;
}

.sav-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sav-search-results.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.sav-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.sav-result-item:last-child {
    border-bottom: none;
}

.sav-result-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sav-product-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.sav-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.sav-product-info {
    flex: 1;
}

.sav-result-item h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.4;
}

.sav-product-price {
    font-size: 13px;
    color: #4a90e2;
    font-weight: bold;
}

.sav-product-price del {
    color: #999;
    font-weight: normal;
    margin-left: 8px;
    font-size: 12px;
}

.sav-no-results {
    padding: 16px;
    text-align: center;
    color: #666;
}

/* RTL Specific Styles */
.sav-search-form {
    flex-direction: row-reverse;
}

.sav-search-button {
    margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sav-search-container {
        width: 100%;
        max-width: 400px;
    }
    
    .sav-search-form {
        width: 100%;
    }
    
    .sav-search-input {
        font-size: 14px;
    }
    
    .sav-product-image {
        width: 50px;
        height: 50px;
    }
    
    .sav-result-item h4 {
        font-size: 13px;
    }
}

.sav-categories {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.sav-categories-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.sav-categories-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sav-categories-section {
    margin-bottom: 20px;
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}

.sav-categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.sav-categories-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.sav-scroll-buttons {
    display: flex;
    gap: 4px;
    position: absolute;
    left: 16px;
    top: 0;
    z-index: 10;
}

.sav-scroll-btn {
    width: 24px;
    height: 24px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sav-scroll-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.sav-scroll-btn svg {
    width: 16px;
    height: 16px;
}

.sav-categories-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
    gap: 8px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    height: auto;
}

.sav-categories-slider::-webkit-scrollbar {
    display: none;
}

.sav-category-item {
    flex: 0 0 auto;
    min-width: fit-content;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.sav-category-item a {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
    margin: 0;
}

.sav-category-item a:hover {
    background: #e0e0e0;
    color: #000;
}

.sav-category-icon {
    font-size: 14px;
}

.sav-products {
    padding: 12px 0;
}

.sav-products-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    padding: 0 16px;
}

/* Menu Hamburger Styles */
header .menuhamberger .menu {
    width: 55px;
    height: 77px;
    flex-direction: column;
    margin-top: 20px;
    justify-content: center;
}

header .menuhamberger .menu::before {
    content: "";
    position: absolute;
    transform: translateY(-5px);
    transition: 1s !important;
    width: 60px;
    height: 10px;
    background-color: #e1e1e1;
    border-radius: 25px;
}

header .menuhamberger .menu::after {
    content: "";
    position: absolute;
    transform: translateY(5px);
    transition: 1s;
    width: 60px;
    height: 10px;
    background-color: #e1e1e1;
    border-radius: 25px;
}

.sav-search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.sav-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.sav-error {
    padding: 20px;
    text-align: center;
    color: #ff0000;
} 