﻿.home-productb {
    background-image: url(../../../Design/img/bg-pro-bottom.png);
    background-size: cover;
}

    .home-productb .grid.wide {
        max-width: 1438px;
    }

.home-productb-top {
    display: flex;
    align-items: center;
    margin-bottom: 9px;
}

    .home-productb-top img {
        transform: translateY(-17px);
    }

    .home-productb-top .descript {
        display: block;
        flex: 1;
        font-size: 20px;
        font-family: baiR;
        color: #4D4D4D;
        padding-left: 47px;
    }

.home-productb-container {
    position: relative;
    padding-top: 230px;
    z-index: 2;
}

.home-productb .p-title {
    color: var(--default-color-4);
    font-size: 54px;
}

.home-productb .p-descript {
    font-family: 'baiM';
    font-size: 18px;
    max-width: 1141px;
    margin-top: 7px;
}

.home-productb-list {
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    grid-template-columns: repeat(3,minmax(0,1fr));
    column-gap: 31px;
    row-gap: 31px;
    margin-top: 88px;
    padding-bottom: 145px;
}

    .home-productb-list a {
        height: 402px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }

        .home-productb-list a:hover .img img {
            transform: scale(1.03);
        }

    .home-productb-list .cate-img {
        position: absolute;
        width: 100%;
        z-index: 2;
        top: -39px;
        height: 79px;
    }

        .home-productb-list .cate-img img {
        }

    .home-productb-list .img {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        overflow: hidden;
    }

        .home-productb-list .img img {
            transition: all linear .3s;
        }

    .home-productb-list .pro-img {
        position: absolute;
        z-index: 2;
    }

        .home-productb-list .pro-img img {
            max-height: 253px;
        }

    .home-productb-list .btn {
        position: absolute;
        background-color: var(--default-color-4);
        bottom: -24px;
        font-family: 'montM';
        color: #fff;
        font-size: 16px;
        line-height: 133.2%;
        border-radius: 7px;
        padding: 0 20px;
        padding-bottom: 13px;
        padding-top: 15px;
        transition: all linear .3s;
    }

        .home-productb-list .btn:hover {
            background-color: var(--default-color-1);
        }

/*RS*/
@media(max-width:1023px) {
    .home-productb-container {
        padding-top: 50px;
    }
}

@media(min-width:740px) and (max-width:1023px) {

    .home-productb-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 31px;
        row-gap: 109px;
        padding-bottom: 60px;
    }

    .home-productb-top {
        margin-bottom: 30px;
    }
}

@media(max-width:739px) {

    .home-productb-container {
        padding-top: 30px;
    }

    .home-productb-list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        row-gap: 104px;
        margin-top: 88px;
        padding-bottom: 60px;
    }

        .home-productb-list a {
            height: 330px;
        }

        .home-productb-list .pro-img img {
            max-height: 205px;
        }

    .home-productb-top {
        display: none;
    }

    .home-productb-container .p-product-item:last-child {
        display: none;
    }
}
