.search-input input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.search-product-list {
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    min-width: 100%;
    max-width: none;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 500px;
    overflow: auto;
    display: none;
    color: #404242;
    font-size: 0.7rem;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-product-list.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.search-product-list.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.search-product-item {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    cursor: pointer;
}

.search-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.6rem;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    background-color: #7C8189;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.search-product-link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.search-product-item:hover {
    background-color: #f0f0f0;
}

.search-product-thumbnail {
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-product-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.search-product-name {
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-product-reference {
    font-size: 0.6rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    max-width: 800px;
    padding: 8px 20px 8px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.8rem;
}

.search-clear-button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    user-select: none;
    display: none;
}

.search-clear-button:hover {
    color: #666;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.search-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    padding: 15px 0;
    pointer-events: none;
}

.search-no-results-icon svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    fill: #aaa;
}

.search-no-results-text {
    line-height: 1.2;
}

span.search-text-match  {
    background-color: rgba(255, 255, 0, 0.3);
    font-weight: bold;
    margin-right: 0 !important;
    display: inline-block !important;
    padding: 0;
}