/* Styling for the live search result container */
#livesearch {
    display: none;
    position: absolute; /* Keeps the results dropdown positioned properly */
    z-index: 3000; /* Ensures it stays on top */
    width:220%; /* Matches the input field width */
    background-color: #ffffff; /* White background for contrast */
    border: 1px solid #A5ACB2; /* Matches border style */
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds subtle shadow */
    margin-top: 5px; /* Space below the input field */
    margin-left: -450px; /* Adjusts to the left for better spacing */
    padding: 4px ; /* Adds spacing inside the dropdown */
}
#livesearch th, #livesearch td {
    padding: 2px;
    text-align: left;
}
#livesearch a { 
    padding: 10px 1px;
    text-decoration: none;
    color: #000000;
    border-bottom: 1px solid #f4f4f4;
    width: 100%; /* Ensure it fits within the container */
    height:60px;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflowing text */
    text-overflow: ellipsis; /* Add ellipsis (...) to truncated text */
    box-sizing: border-box; /* Includes padding in width */

}

#livesearch a:last-child {
    border-bottom: none; /* Removes the border for the last item */
}

#livesearch a:hover {
    background-color: #f1f1f1;
}


.item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.no-suggestion {
    font-style: italic;
    color: #999;
}
.serad {
    width: 100%;
    box-sizing: border-box;
    border: 0.1px solid #000000;
    border-radius: 4px;
    font-size: 16px;
    background-color: #ffffff57;
    background-image: url('../../sahouryweb/revolution/assets/search.png');
    background-position: 10px 10px;
    background-repeat: no-repeat;

}
@media (min-width: 769px) {
    .serad {
        padding: 12px 20px 12px 40px; /* Set specific padding for laptop and larger screens */
    }
}
@media (max-width: 768px) {
    .serad {
        background-image: none;
        width: 100%;
        padding: 12px -20px 12px 40px;
    }
    #livesearch {
        margin-left: -50%;; /* Adjusts to the left for better spacing */
    }
    .item-image {
        width: 0px;
        height: 0px;
    }

}