.grid-products-wrap {
    margin-top: 30px;

    .tabs {
        display: flex;
        padding-left: 0;

        .tab-item {
            font-size: 20px;
            font-weight: var(--font-light);
            padding: 15px 3px;
            color: $color-black;

            &.active {
                &:after {
                    opacity: 1;
                }
            }
        }
    }

    .tab-products-header {
        position: relative;

        hr {
            display: none;
        }
    }
}

.grid-products {
    .slick-list {
        padding: 23px 0 42px !important;
    }

    .arrow-prev.slick-arrow,
    .arrow-next.slick-arrow {
        top: -40px;
    }

    .arrow-prev {
        right: 69px;
    }

    .arrow-next {
        right: -3px;
    }

    .grid-products-item {
        flex: 0 0 16.66666666666667%;
        max-width: 16.66666666666667%;
        padding: 10px;

        .product-card {
            margin: 0;
            height: 100%;
        }
    }
}

@media screen and (max-width: 1760px) {
    .grid-products {
        .grid-products-item {
            flex: 0 0 20%;
            max-width: 20%;
        }
    }
}

@media screen and (max-width: 1300px) {
    .grid-products {
        .grid-products-item {
            flex: 0 0 25%;
            max-width: 25%;
        }
    }
}

@media screen and (max-width: $lg) {
    .grid-products {
        .grid-products-item {
            padding: 7.5px;
        }
    }
}

@media screen and (max-width: $md) {
    .grid-products-wrap {
        margin-bottom: 0;
        
        .tabs {
            display: flex;
            text-align: center;

            .tab-item {
                display: inline-block;

                &.active {
                    &::after {
                        opacity: 1 !important;
                    }
                }

                &::after {
                    bottom: -8px;
                }

                &::before {
                    bottom: -1px;
                    z-index: 1;
                }
            }
        }

        .tab-products-header {
            overflow: auto;
            padding-bottom: 10px;
            border-bottom: unset;
            display: flex;

            .tabs {
                display: flex !important;
                border-bottom: 1px solid #e5e5e5;
                justify-content: center;
                margin-left: auto;
                margin-right: auto;
            }

            hr {
                display: block;
                height: 0;
                background: transparent;
                position: absolute;
                width: 100%;
                top: 40px;
                left: 0;
                border: unset;
                border-bottom: 1px solid #e5e5e5;
                opacity: 1;
            }

            &::-webkit-scrollbar {
                width: 0px;
                height: 0px;
            }

            &::-webkit-scrollbar-track,
            &::-webkit-scrollbar-thumb,
            &::-webkit-scrollbar-thumb:hover {
                background: transparent;
            }
        }
    }

    .grid-products {
        .slick-dots {
            margin-top: 27px;
        }

        .grid-products-item {
            flex: 0 0 33.33333333333333%;
            max-width: 33.33333333333333%;
        }
    }
}

@media screen and (max-width: $sm) {
    .grid-products {
        .grid-products-item {
            flex: 0 0 50%;
            max-width: 50%;
        }
    }
}
