﻿/* 分类 */

.tab-category-content {
   /* position: relative ;*/
    top: 300px;
    left: 0;
    right: 0;
    bottom: 50px;
    display: flex;
}


.category-tab {
    width: 90px;
    height: 100%;
    position: relative;
    top: 0;
    bottom: 0;
    z-index: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #F8F9FA;
    min-height: 500px;
}

    .category-tab .category-box {
        width: 100%;
    }

    .category-tab .category-item {
        height: 50px;
        line-height: 50px;
        text-align: center;
        position: relative;
    }

        .category-tab .category-item.cur {
            background: #fff;
        }

            .category-tab .category-item.cur:before {
                content: "";
                position: absolute;
                top: 50%;
                left: 0;
                width: 3px;
                height: 20px;
                transform: translateY(-50%);
                background: linear-gradient(to bottom, #3793F5 0%, #3793F5 1%, #3793F5 100%);
            }

        .category-tab .category-item .tit {
            font-size: 14px;
            color: #262626;
        }

        .category-tab .category-item.cur .tit {
            color: #3793F5;
        }

/* 右边内容 */
.category-content {
    background: #fff;
    height: 100%;
    position: relative;
    top: 0;
    bottom: 0;
    z-index: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 500px;
}

    .category-content.category-box {
        -webkit-overflow-scrolling: touch;
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
        position: relative;
    }

    .category-content .category-con {
        display: none;
    }




/*分类导航滑块*/
.two-sort-tab {
    left: 0;
    right: 0;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
}

    .two-sort-tab .wrapper {
        position: relative;
        z-index: 2;
        height: 30px;
        width: 100%;
        overflow: hidden;
        margin: 10px auto;
    }

        .two-sort-tab .wrapper .scroller2 {
            position: absolute;
        }

            .two-sort-tab .wrapper .scroller2 .nav-li {
                width: auto;
                height: 30px;
                color: #262626;
                float: left;
                text-align: center;
                position: relative;
                z-index: 3;
            }

                .two-sort-tab .wrapper .scroller2 .nav-li .link-a {
                    color: #262626;
                    display: block;
                    height: 22px;
                    line-height: 22px;
                    border-radius: 3px;
                    font-size: 12px;
                    margin-left: 6px;
                    padding: 0 6px;
                    box-sizing: border-box;
                    background: #EAF7F3;
                }

                .two-sort-tab .wrapper .scroller2 .nav-li.cur2 .link-a {
                    background: linear-gradient(90deg, #3793F5 0%, #3793F5 1%, #3793F5 100%);
                }

                .two-sort-tab .wrapper .scroller2 .nav-li.cur2 .link-a {
                    color: #fff;
                }



    .two-sort-tab .allmenu {
        color: #333;
        background: #FFFFFF;
        position: relative;
        z-index: 3;
        height: 30px;
        padding: 0 10px;
    }


        .two-sort-tab .allmenu .icon-down {
            width: 10px;
        }

            .two-sort-tab .allmenu .icon-down.icon-up {
                transform: rotate(180deg);
            }
/* 弹出菜单 */
.popup-menu {
    position: fixed;
    height: calc(100% - 84px);
    top: 300px;
    left: 90px;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

    .popup-menu .modal-body {
        width: 100%;
        background: #FFFFFF;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 15px;
        padding-top: 0;
        border-radius: 0 0 20px 20px;
    }

        .popup-menu .modal-body .modal-head {
            font-size: 13px;
            color: #333;
            height: 50px;
            line-height: 50px;
        }

            .popup-menu .modal-body .modal-head .gbclose {
                position: absolute;
                top: -5px;
                right: 10px;
            }

                .popup-menu .modal-body .modal-head .gbclose img {
                    width: 10px;
                }


        .popup-menu .modal-body .modal-category {
            display: flex;
            flex-wrap: wrap;
            box-sizing: border-box;
            max-height: calc(50vh);
            overflow: scroll;
        }

            .popup-menu .modal-body .modal-category .item {
                width: 33.2626263333%;
                padding: 5px;
                box-sizing: border-box;
            }

                .popup-menu .modal-body .modal-category .item .link-a {
                    font-size: 12px;
                    height: 35px;
                    border-radius: 5px;
                    color: #262626;
                    background: #EAF7F3;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                .popup-menu .modal-body .modal-category .item.active .link-a {
                    background: linear-gradient(90deg, #3793F5 0%, #3793F5 1%, #3793F5 100%);
                    color: #fff;
                }

/* ================商品列表================== */

.tygoods-list {
    /* background: #fff; */
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 5px;
}

    .tygoods-list .goods-item {
        width: 50%;
        padding: 5px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        justify-content: center;
    }

        .tygoods-list .goods-item.one-row {
            width: 100%;
            display: block;
            text-decoration: none;
            box-sizing: border-box;
            position: relative;
            border-radius: 5px;
        }



            .tygoods-list .goods-item.one-row .goods-img .pro-img {
                width: 80px;
                height: 80px;
                border-radius: 5px;
                background: #fff;
            }

            .tygoods-list .goods-item.one-row .info-wrap {
                border-radius: 0;
                padding: 0;
                padding-bottom: 10px;
                margin-left: 10px;
                border-bottom: 1px solid #eee;
            }

                .tygoods-list .goods-item.one-row .info-wrap .pro-name {
                    box-sizing: border-box;
                    color: #262626;
                    font-size: 13px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 1;
                    -webkit-box-orient: vertical;
                    word-break: break-all;
                    max-height: 16px;
                    line-height: 16px;
                }

        .tygoods-list .goods-item .info-wrap .pro-type span {
            font-size: 12px;
            color: #999;
            margin-right: 2px;
        }

        .tygoods-list .goods-item .info-wrap .tag {
            margin-right: 3px;
            padding: 0 5px;
            height: 16px;
            line-height: 14px;
            border-radius: 2px;
            font-size: 10px;
            margin-bottom: 3px;
        }

            .tygoods-list .goods-item .info-wrap .tag.tagred {
                color: #EB4D3D;
                border: 1px solid #EB4D3D;
            }

            .tygoods-list .goods-item .info-wrap .tag.taggreen {
                color: #3793F5;
                border: 1px solid #3793F5;
            }

        .tygoods-list .goods-item .info-wrap .discount-price {
            color: #EB4D3D;
            font-size: 12px;
            font-weight: 500;
        }

            .tygoods-list .goods-item .info-wrap .discount-price .unit {
                color: #EB4D3D;
                font-size: 12px;
            }

        .tygoods-list .goods-item .goods-img {
            font-size: 0;
            position: relative;
        }
