.search_form {
    position: relative;
}

.search_form input {
    padding-right: 35px;
}

.search-loading {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.search-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.search-results-dropdown.show {
    display: block;
}

.products-section {
    padding: 10px 0;
}

.categories-section > div:first-child,
.products-section > div:first-child {
    background: #f5f5f5;
    padding: 8px 15px;
    color: #333;
}

.categories-list,
.products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-list > li,
.products-list > li {
    padding: 0;
}

.categories-list a,
.products-list a {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.categories-list a:hover,
.products-list a:hover {
    background: #f8f8f8;
}

.categories-list a:hover span,
.products-list a:hover span {
    color: #e31837;
}

.categories-list a .img-wrapper,
.products-list a .img-wrapper {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
}
.categories-list a:hover .img-wrapper,
.products-list a:hover .img-wrapper {
    border-color: var(--dark_blue);
}

.categories-list a img,
.products-list a img {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 2px;
}
