#fast_search_result {
    position: absolute;
    top: 100%;
    z-index: 5;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 10px 5px rgba(0, 0, 0, 0.25);
}

.fs-result {
    position: relative;
    padding: 35px 15px 15px;
    height: 80vh;
    display: flex;
    overflow: hidden;
}

.fs-result .close {
    position: absolute;
    top: -10px;
    right: 5px;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    font-size: 40px;
    color: #00aeef;
    opacity: 0.7;
}

.fs-result .close:hover {
    opacity: 1;
}

.fs-tabs {
    padding: 0;
    margin: 0;
    list-style: none;
    width: 280px;
}

header.color .navbar ul.fs-tabs > li {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
    background-color: white;
    color: #3e3e40;
    font-size: 16px;
    margin-bottom: 15px;
    transition: background-color .5s, color .5s;
}

header.color .navbar ul.fs-tabs > li.active, header.color .navbar ul.fs-tabs > li:hover {
    background-color: #00aeef;
    color: white;
}

.fs-tabs li svg {
    display: inline-block;
    width: 24px;
    margin-right: 10px;
    transition: fill .5s;
}

.fs-tabs li.active svg .st0, .fs-tabs li:hover svg .st0 {
    fill: white;
}

.fs-tabs-items {
    padding: 0;
    margin: 0;
    position: absolute;
    left: 320px;
    right: 10px;
    top: 25px;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    list-style: none;
}

header.color .navbar ul.fs-tabs-items li {
    display: none;
    background-color: white;
}

header.color .navbar ul.fs-tabs-items li.active {
    display: block;
}

.fs-items {
    display: flex;
    flex-wrap: wrap;
}

.fs-items .item {
    box-sizing: border-box;
    width: 30%;
    margin: 0 1.5% 20px;
    padding: 10px;
    border: 1px solid #eee;
    position: relative;
}

.fs-items .item .stock {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
}

.fs-items .item a {
    display: block;
    text-decoration: none;
}

.fs-items .item .image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin-bottom: 10px;
}

.fs-items .item .title {
    font-size: 16px;
    color: #3e3e40;
    font-weight: 500;
    margin-bottom: 10px;
}

.fs-items .item .price {
    font-size: 22px;
    font-weight: 500;
    color: #3e3e40;
    margin-bottom: 10px;
}

.square {
    display: block;
    width: 100%;
    margin: auto;
    overflow: hidden; /* clearfix */
}

.square:before {
    content: "";
    padding-top: 100%;
    float: left;
}

.fs-supply-items {
    text-align: left;
}

.fs-supply-items .item a {
    position: relative;
    display: flex;
    padding: 5px 20px 5px 40px;
    transition: background-color .3s;
    color: #545557;
    font-size: 14px;
    align-items: end;
    text-decoration: none;
}

.fs-supply-items .item a .cur {
    display: inline-block;
    margin-right: 15px;
}

.fs-supply-items .item a .rub {
    color: #3e3e40;
    font-size: 16px;
}

.fs-supply-items .item a:hover {
    background-color: #f2f6f7;
}

.fs-supply-items .item a .stock {
    position: absolute;
    left: 10px;
    top: 3px;
    color: red;
    font-size: 1.2em;
}

.fs-supply-items .item .name {
    width: 60%;
}

.fs-supply-items .item .price {
    width: 40%;
    text-align: right;
}

@media (max-width: 992px) {
    .fs-result {
        display: block;
    }

    .fs-tabs {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-top: 10px;
    }

    header.color .navbar ul.fs-tabs > li {
        width: auto;
        justify-content: center;
    }

    .fs-tabs-items {
        left: 0;
        top: 137px;
    }

    .fs-items .item {
        width: 45%;
        margin: 0 2.5% 20px;
    }

    .fs-supply-items .item a:hover {
        background-color: transparent;
    }

    .fs-supply-items .item a {
        padding: 5px 20px 0 40px;
    }

    .fs-supply-items .item .name, .fs-supply-items .item .price {
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #e8e8e8;
    }

    .fs-supply-items .item a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 578px) {
    .fs-tabs-items {
        top: 137px;
    }

    .fs-result {
        height: 75vh;
    }

    .fs-items .item {
        width: 100%;
        margin: 0 0 20px;
    }

    header.color .navbar ul.fs-tabs > li {
        font-size: 12px;
        padding: 5px;
        margin-bottom: 0;
    }

    .fs-tabs li svg {
        display: inline-block;
        width: 18px;
        margin-right: 10px;
    }

    .fs-items .item .image {
        width: 80%;
        margin: 0 auto 10px;
    }

    .fs-supply-items .item a {
        flex-wrap: wrap;
    }

    .fs-supply-items .item .name {
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 5px;
        border-bottom: none;
    }

    .fs-supply-items .item .price {
        width: 100%;
        text-align: left;
    }
}