.custom-main-search {
    max-width: 800px;
    margin: 30px auto;
    position: relative;
}

.custom-main-search form {
    display: flex;
    align-items: center;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

#search-input {
    width: 100%;
    padding: 12px 42px 12px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.icon-button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

.icon {
    font-size: 18px;
    color: #333;
}

#live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 100%;
    z-index: 10;
    border: 1px solid #ddd;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 12px;
    border-bottom: 1px solid #eee;
}

.result-item img,
.result-item svg {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.result-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    font-size: 16px;
}

.result-item:hover {
    background: #f9f9f9;
}

.highlighted {
    background-color: yellow;
    color: #000;
    font-weight: bold;
}

.loading-spinner {
    margin: 12px auto;
    width: 30px;
    height: 30px;
    border: 4px solid #ccc;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-message {
    padding: 12px;
    text-align: center;
    font-style: italic;
    color: #888;
}

.custom-main-search button {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    padding: 12px 33px;
    background: #303030;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    width: 25%;
}