/*--品牌篩選--*/
.brands-logo{
    max-width: 120px!important;
    max-height: 60px;
}
.tab-pane{
    min-height: 400px;
}
/*--品牌篩選 end--*/

.commodity{
    padding: 20px 0;
}
.commodity > .nav.navbar-default{
    margin: 0 8px;
}
.commodity:after{
    content: '';
    display: table;
    clear: both;
}
/*--首頁商品--*/
.commodity .nav .navbar-nav li {
     padding-left: 0;
}
.commodity .nav .navbar-nav li:first-child {
    padding-left: 0.5em;
}
.commodity .nav .navbar-nav li a{
    padding: 5px 12px;
    font-size: 18px;
    width: 150px;
    height: 100px;
    line-height: 100px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}
.commodity .nav .navbar-nav li:not(:last-child) a{
    /*border-right: 1px solid rgba(134, 153, 97, 0.76);*/
}
.commodity-box{
    width: calc(100% / 3  - 30px);
    margin: 10px 15px;
    float: left;
    transition: .5s;
    border-radius: 2px;
    min-height: 340px;
}
.npd-label{
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 60px;
    height: 57px;
}
.commodity-box:hover .img .img-box{
    transform: translate(0,0);
}
.commodity-box:hover{
    box-shadow: rgba(0,0,0,0.17) 0 0 13px;
}
.commodity-box .img a{
    display: flex;
    height: 100%;
}
.commodity-box .img{
    height: 180px;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.commodity-box .img .img-box{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(94,94,94,.7);
    z-index: 2;
    transform: translate( -500px , 0 );
    transition: .5s;
    height: 60px;
}
.commodity-box .img-box p{
    text-align: center;
    color: #fff;
    font-size: 20px;
    line-height: 60px;
}
.commodity-box .img img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate( -50% , -50% );
    max-height: 100%;
    z-index: 1;
}
.commodity-box .text{
    position: relative;
    overflow: hidden;
}
.commodity-box .text h3{
    font-size: 1.3em;
    line-height: 28px;
    color: #346e0d;
    margin: 10px;
    text-align: center;
    overflow: hidden;
}
/*描述文最大行數3行*/
.commodity-box>.text>p{
    padding: 0 10px;
    font-size: 14px;
    font-weight: normal;
    color: gray;
    transition: .5s;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 60px;
}
.commodity-cart{
    position: relative;
    height: 25px;
}
.commodity-cart p{
    font-size: 22px;
    font-weight: bolder;
    text-align: center;
    transition: .5s;
}
.commodity-box .text .cart{
    width: 100%;
    position: absolute;
    top: -28px;
    left: 0;
    transition: .5s;
    transform: translate(500px,0);
}
.commodity-box:hover .text .cart{
    transform: translate(0,0);
}
.commodity-box:hover .commodity-cart p{
    opacity: 0;
}
.commodity-box .text .cart:after{
    content: '';
    display: table;
    clear: both;
}
.commodity-box .text .button{
    width: calc( 50% - 20px);
    float: left;
    margin: 10px 10px;
    color: white;
    text-align: center;
    padding: 10px 4px;
    border-radius: 2px;
    cursor: pointer;
}
.commodity-box .text .button.join{
    background:#346e0d;
}
.commodity-box .text .button.more{
    background-color: black;
}
.commodity-box .text .button.join:hover{
    background:rgba(134, 153, 97, 0.86);
}
.commodity-box .text .button.more:hover{
    background-color: rgba(94,94,94,.6);

}
@media (max-width: 991px) {

    .commodity-box{
        width: calc( 100%/2 - 30px );
    }
}
@media (max-width: 520px){
    .commodityService{
        display: none;
    }
    .commodity-box{
        width: calc( 100% );
        margin: 15px 0  ;
        box-shadow: rgba(0,0,0,0.17) 0 0 13px;
    }
    .commodity-box .img .img-box{
        transform: translate(0,0);
    }
    .commodity-box .text .cart{
        transform: translate(0,0);
    }
    .commodity-box .text p {
        opacity: 0;
    }
    .brands-logo {
        max-width: 60px!important;
        max-height: 40px;
    }
    .commodity .nav .navbar-nav li a{
        width: unset;
        height: unset;
        line-height: unset;
    }
    .commodity {
        padding: 0;
    }
    .commodity-box .text .cart {
        transform: translate(80px,0);
    }
    .commodity-box:hover .text .cart {
        transform: unset;
    }
}
/*--/首頁商品--*/

/*--商品服務--*/
.commodityService-fluid{
    background-color: black;
}
.commodityService{
    color: white;
    padding: 16px 0 ;
    margin: 0;
}
.commodityService:after{
    display: table;
    content: '';
    clear: both;
}
.commodityService .type-text{
    /*float: right;*/
    color: grey;
}
.commodityService .type-text h3{
    color: white;
    margin-bottom: 0;
}
.commodityService li img{
    float: left;
    width: 40px;
    height: 40px;
    margin: 3px 10px 0 0;
    line-height: 60px;
    text-align: center;
    filter: brightness(0) invert(1);
}
.commodityService li p{
    margin: 0;
}

.commodityService-border .nav-pills>li {
    float: unset;
    display: inline-block;
    padding: 0 25px;
    width: calc(100vw / 3 - 30px);
}

@media (max-width: 991px){
    .commodityService-border{
        border-right: none;
        border-bottom: 1px dashed  #d9d9d9;
    }
}