/* ... (Các phần khác giữ nguyên) ... */

#search-suggestions {
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
    display: none; /* Initially hidden */
    width: calc(100% - 20px); /* Chiếm toàn bộ chiều rộng của .search-container, trừ padding */
    /* Hoặc bạn có thể dùng max-width thay vì width cố định */
    /* max-width: 500px;  */
}
/* ... (Phần còn lại của CSS giữ nguyên) ... */

/* Style the autocomplete dropdown */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ccc;
    background-color: #fff;
}

.ui-autocomplete .ui-menu-item {
    padding: 5px;
    cursor: pointer;
}

.ui-autocomplete .ui-menu-item:hover {
    background-color: #f0f0f0;
}

/* Style the search results container */
#search-suggestions {
    margin-top: 10px; /* Khoảng cách với ô tìm kiếm */
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
     display: none; /* Initially hidden */

}

#search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#search-suggestions li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

#search-suggestions li:last-child {
    border-bottom: none;
}

#search-suggestions img {
    vertical-align: middle; /* Căn giữa ảnh theo chiều dọc */
}

/* New styles for suggestion items */
.suggestion-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f9f9f9;
}

.pagination {
    text-align: center;
    margin-top: 10px;
}

.pagination-button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    margin: 0 2px;
    border-radius: 4px;
}

.pagination-button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}
.pagination-button:disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #ccc;
}
body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.search-container {
    width: 80%; /* Adjust as needed */
    max-width: 600px; /* Limit maximum width */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.search-input-wrapper {
    display: flex;
    align-items: center; /* Vertically center the button */
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
     box-sizing: border-box; /* Include padding and border in the element's total width */
}
.search-button{
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}