/* Fix mobile width overflow */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
/* Desktop */
.tzimcha-search-li {
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
}
#tzimcha-search-wrapper {
    position: relative;
}
#tzimcha-search-toggle {
    background: transparent;
    border: 2px solid #1F3D2B;
    border-radius: 20px;
    padding: 6px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    color: #1F3D2B;
    font-size: 14px;
}
#tzimcha-search-toggle:hover {
    background: #1F3D2B;
    color: #fff;
}
#tzimcha-search-toggle:hover svg {
    stroke: #fff;
}
#tzimcha-search-toggle svg {
    stroke: #1F3D2B;
    transition: all 0.3s;
}
#tzimcha-search-box {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 99999;
}
#tzimcha-search-input,
#tzimcha-mobile-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    direction: rtl;
    box-sizing: border-box;
}
#tzimcha-search-input:focus,
#tzimcha-mobile-input:focus {
    outline: none;
    border-bottom-color: #1F3D2B;
}
#tzimcha-search-results,
#tzimcha-mobile-results {
    max-height: 400px;
    overflow-y: auto;
    direction: rtl;
}
.tzimcha-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}
.tzimcha-result-item:hover {
    background: #f9f9f9;
}
.tzimcha-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 12px;
}
.tzimcha-result-info {
    flex: 1;
}
.tzimcha-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #1F3D2B;
    margin-bottom: 4px;
}
.tzimcha-result-price {
    font-size: 13px;
    color: #6B1E2D;
}
.tzimcha-no-results, .tzimcha-loading {
    padding: 20px;
    text-align: center;
    color: #999;
}
/* Mobile */
@media (max-width: 921px) {
    #tzimcha-search-wrapper {
        display: none !important;
    }
    
    /* Header מקובע */
    .ast-primary-header-bar,
    .ast-mobile-header-wrap {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9998 !important;
    }
    
    body {
        padding-top: 60px !important;
    }
    
    #tzimcha-mobile-search {
        position: fixed !important;
        top: 10px !important;
        left: 90px !important;
        z-index: 9999 !important;
    }
    
    #tzimcha-mobile-toggle {
        width: 42px;
        height: 42px;
        padding: 0;
        background: #1F3D2B;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    #tzimcha-mobile-box {
        display: none;
        position: fixed;
        top: 65px;
        right: 15px;
        left: 15px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        overflow: hidden;
        z-index: 999999;
    }
    #tzimcha-mobile-results {
        max-height: 300px;
    }
}
/* Move logo more to center on mobile */
@media (max-width: 921px) {
    .ast-mobile-header-wrap .custom-logo-link,
    .ast-mobile-header-wrap .site-logo-img {
        margin-right: 88px !important;
    }
}
