.search-icon-container {
    position: relative;
}

.search-icon {
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-icon:hover {
    transform: scale(1.1);
}

.product-search-popup {
    display: none;
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
}

.product-search-popup.active {
    display: block;
}

.product-search-container {
    position: relative;
    width: 100%;
    outline: none;
}

#product-search-input {
    padding: 10px 15px;
    width: 100%;
    border: 1px solid #000000;
    font-size: 15px;
    box-sizing: border-box;
    color: #ffffff;
    outline: none;
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 4px 40px 0 rgba(0, 0, 0, 0);
}

#product-search-input::placeholder {
    color: #999;
}

.search-results-dropdown {
    display: flex;
    position: absolute;
    top: 49px;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 4px 40px 0 rgba(0, 0, 0, 0);
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    color: rgb(255 255 255 / 50%);
    transition: background-color 0.2s ease;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 4px 40px 0 rgba(0, 0, 0, 0);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #0243ff;
    color: white;
}

.search-no-result {
    padding: 10px 15px;
    color: rgb(255 255 255 / 50%);
    font-style: italic;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 4px 40px 0 rgba(0, 0, 0, 0);
}

.search-results-dropdown {
    overflow-y: auto;
    scrollbar-width: thin; /* Для Firefox */
    scrollbar-color: #ffffff #0243ff ; /* Для Firefox */
}

/* Для Chrome, Edge, Safari */
.search-results-dropdown::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 4px 40px 0 rgba(0, 0, 0, 0);
    border-radius: 0 10px 10px 0;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background-color: #ffffff;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background-color: #ffffff;
}

@media (max-width: 991px) {
    .search-icon-container {
        order: 2;
    }

    .product-search-popup {
        max-width: 991px;
    }
}