﻿.products-box{
    width: 100%;
    background-color: #f5f5f5;
    position: relative;
    margin-top: 118px;
    padding-top: 60px;
    padding-bottom: 50px;
    min-height: calc(100vh - 118px);
}
.products-info-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0px auto;
    font-size: 0;
    position: relative;
}

#products .kaka-shop-page-title{
    padding-bottom: 80px;
}
#products .kaka-shop-page-title p{
    margin-bottom: 10px;
}
.products-info-top-box{
    display: block;
    position: relative;
}
.products-info-top-img{
    width: 220px;
    height: 70px;
    display: inline-block;
    overflow: hidden;
    border-bottom: 1px solid #d0011b;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top left;
    background-image: url(../img/front/products-class.png);

}
.products-info-top-img img{
    display: none;
}
.products-info-top-path-box{
    display: inline-block;
    float: right;
}
.products-info-top-path{
    display: inline-block;
    font-size: 14px;
    color: #555;
    position: relative;
    padding-right: 10px;
    line-height: 46px;
    cursor: pointer;
    transition: all .5s ease;
}
.products-info-top-path:after{
    content: '>';
    font-size: 14px;
    color: #555;
    position: absolute;
    top: 0;
    right: -5px;
}
.products-info-top-path:last-child:after{
    display: none;
}
.products-info-top-path:nth-child(n+2){
    padding-left: 10px;
}
.products-info-classification-box{
    width: 220px;
    max-width: 100%;
    background-color: #fff;
    padding-top: 30px;
    padding-bottom: 1px;
    display: inline-block;
    vertical-align: top;
}
.products-info-classification-list-box{
    display: block;
    width: 100%;
    height: 46px;
    text-align: center;
    margin-bottom: 15px;
    cursor: pointer;
}
.products-info-classification-list-box>span{
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 46px;
}

.products-info-classification-list-box:hover{
    color: #fff;
}
.products-info-classification-list-box:hover{
    background-color: #d0011b;
}
.products-info-list-box{
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 220px);
    max-width: 100%;
}
.news-products2 .products-info-list-box{
    width: 100%;
}
.products-info-list-outer{
    display: inline-block;
    vertical-align: top;
}

#products .products-info-list-outer{
    margin-left: 25px;
    margin-bottom: 25px;
}

.products-info-list{
    width: 220px;
    max-width: 100%;
    padding-bottom: 20px;
    display: block;
    background-color: #fff;
    position: relative;
}
.products-info-list:after{
    content: 'none';
    font-size: 0;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border: 2px solid #d0011b;
    opacity: 0;
    transition: all .5s ease;
    pointer-events: none;
}
.products-info-list-img-box{
    width: 100%;
    height: 240px;
    display: block;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.products-info-list-img-box .main-bg{
    background-size: contain;
}
.products-info-list-img{
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}
.products-info-list-name{
    font-size: 14px;
    color: #333;
    text-align: center;
    letter-spacing: 1px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    text-overflow : ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.products-info-list-taste-block{
    width: 100%;
    height: 100px;
    display:         flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    flex-direction:column;
    -webkit-flex-direction:column;
     justify-content:space-around;
    -webkit-justify-content:space-around;
}
.products-info-list-taste-block> div{
    margin-bottom: 5px;

}
.products-info-list-taste-block> div:last-child{
    margin-bottom: 0;
}
.products-info-list-price-box{
    text-align: center;
    padding-top: 3px;
    padding-bottom: 5px;
}
.products-info-list-price-original{
    display: inline-block;
    font-size: 12px;
    font-family: "Anton";
    color: #888;
    text-decoration: line-through;
    margin-right: 10px;
}
.products-info-list-price-special{
    display: inline-block;
    font-size: 16px;
    font-family: "anton";
    color: #d0011b;
}
.products-info-list-quantity-box{
    display: block;
    font-size: 0;
    width: 90%;
}

.products-info-list-taste-box,
.products-info-list-weight-box{
    width: 90%;
    display: block;
    position: relative;
}
.products-info-list-taste,
.products-info-list-weight{
    display: block;
    width: 100%;
    max-width: 100%;
    height: 24px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 0 auto;
    cursor: pointer;
    padding: 0 5px;
    box-sizing: border-box;
    color: #555555;
    font-size: 12px;
    font-family: "微軟正黑體";
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-expand: none;
    cursor: pointer;
    position: relative;
    outline: none;
    background-color: #FFF;
}
.products-info-list-taste-box:before,
.products-info-list-weight-box:before{
    content: 'normal';
    font-size: 0;
    width: 20px;
    display: block;
    border-left: 1px solid #ccc;
    height: 23px;
    position: absolute;
    z-index: 1;
    pointer-events: none;
    bottom: 0;
    right: 0px;
}

.products-info-list-taste-box:after,
.products-info-list-weight-box:after{
    content: 'normal';
    font-size: 0;
    width: 0px;
    height: 0px;
    border-right: 4px solid transparent;
    border-top: 6px solid #555555;
    border-left: 4px solid transparent;
    display: block;
    position: absolute;
    bottom: calc(50% - 3px);
    right: 7px;
    pointer-events: none;
}


.products-info-quantity-info{
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    height: 24px;
    border: 1px solid #ccc;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.products-info-quantity-number input{
    border: none;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 0 5px;
    box-sizing: border-box;
    font-size: 12px;
    color: #555;
}
.products-info-quantity-minus{
    text-align: center;
    display: inline-block;
    width: 20px;
    height: 100%;
    font-size: 14px;
    color: #555;
    vertical-align: middle;
    cursor: pointer;
    line-height: 18px;
    cursor: pointer;
    transition: all .2s linear;
    box-sizing: border-box;
}
.products-info-quantity-number{
    vertical-align: top;
    width: calc(100% - 40px);
    display: inline-block;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    height: 100%;
    box-sizing: border-box;
}
.products-info-quantity-plus{
    vertical-align: top;
    text-align: center;
    display: inline-block;
    width: 20px;
    height: 100%;
    line-height: 22px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all .2s linear;
    box-sizing: border-box;
}

.products-info-list-joinbuycar{
    display: block;
    width: 90%;
    max-width: 100%;
    padding: 5px 0;
    background-color: #d0011b;
    border-radius: 10px;
    margin: 0 auto;
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .2s linear;
}
.products-info-quantity-minus:hover,
.products-info-quantity-plus:hover{
    background-color: #d0011b;
    color: #fff;
}
.products-info-list-joinbuycar:hover{
    background-color: #7b0010;
}
#products .rwd-menu-class-list{
    display: none;
}

.products-news-icon-box{
    
    font-size: 12px;
    padding: 5px;
    font-weight: bold;
    position: absolute;
    z-index: 5;
    top: -9px;
    right: -8px;
    background-color: #d0011b;
    color: #FFF;
    border-radius: 50%;
}

/*---------------最新優惠區----------------------*/

#news-products .products-info-list-box{
    width: 100%;
    display: block;
}

#news-products .products-info-list-outer{
    width: 48%;
    margin-bottom: 4%;
    background-color: #FFF;
    padding-bottom: 1px
}
#news-products .products-info-list-outer:nth-child(even){
    margin-left: 4%;
}
#news-products .products-info-list{
    width: 100%;
    height: inherit;
}


.news-products-info{
    padding-top: 50px;
    width: 1000px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
#news-products .products-info-list-taste-box, 
#news-products .products-info-list-weight-box{
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 10px;
}
#news-products .products-info-list-taste, 
#news-products .products-info-list-weight{
    width: 100%;
    height: 30px;
    text-align: center;
    padding: 0 20px;
}
#news-products .products-info-list-taste-name, 
#news-products .products-info-list-taste-name{

    text-align: center;
}
#news-products .products-info-list-name{
    font-size: 16px;
    margin-bottom: 5px;
}
#news-products .products-info-quantity-info{
    width: 300px;
    height: 30px;
}
#news-products .products-info-list-joinbuycar{
    width: 300px;
}
#news-products .products-info-list-taste-box:before, 
#news-products .products-info-list-weight-box:before{
    right: 0;
    top: 0;
    width: 30px;
    height: 30px;
}

#news-products .products-info-list-taste-box:after, 
#news-products .products-info-list-weight-box:after{
    right: 12px;
    bottom: calc(50% - 3px);
}
#news-products .products-info-quantity-minus{
    height: 30px;
    width: 30px;
    line-height: 28px;
}
#news-products .products-info-quantity-number{
    width: calc(100% - 60px);
}
#news-products .products-info-quantity-plus,
#news-products .products-info-quantity-number{
    height: 30px;
    line-height: 30px;
}
#news-products .products-info-list-joinbuycar{
    height: 30px;
    line-height: 30px;
}
#news-products .products-info-quantity-plus{
    width: 30px;
}

/*------------------hover--------------------*/
.products-info-list:hover .main-bg{
    transform: scale(1.1);
}
.products-info-top-path:hover{
    color: #ccc;
}

.products-info-list:hover:after{
    opacity: 1;
    pointer-events: none;
}


@media only screen and (max-width: 1200px){
    .products-info-box{
        width: 1000px;
    }
    .products-info-top-img,
    .products-info-classification-box{
        width: 170px;
    }
    .products-info-list-box{
        width: calc(100% - 170px);
    }
    .products-info-list-outer{
        padding-left: 0;
        padding-bottom: 0;
    }
    #products .products-info-list-outer{
        margin-left: 20px;
        margin-bottom: 20px;
    }
    .products-info-list{
        width: 187px;
     
    }
   
    .products-info-list-img-box{
        height: 207px;
    }
  

}
@media only screen and (max-width: 1000px){
    .products-info-list:after{
        display: none;
    }
    .products-info-quantity-minus{
        line-height: 24px;
    }
    .products-info-quantity-plus{
        line-height: 24px;
    }
    .news-products-info{
        padding-top: 30px;
    }
    .products-box{
        margin-top: 60px;
    }
    #products .kaka-shop-page-title{
        padding-bottom: 40px;
    }
    .products-info-box{
        width: 800px;
    }
    .products-info-top-box{
        display: none;
    }
    .products-info-list-box{
        width: 100%;
        display: block;
        margin-top: 20px;
    }
    #products .products-info-list-outer:nth-child(4n+1){
        margin-left: 0;
    }
    .products-info-list{
        width: 90%;
  
    }
  
    
    #products .rwd-menu-class-list{
        display: block;
        background-color: #d0011b;
        color: #fff;
    }
    .products-info-classification-list-box{
        border: 1px solid #d1d1d1;
        box-sizing: border-box;
        margin-bottom: 0;
        border-top: 0;
    }
    #products .rwd-menu-class-list:after{
        border-top-color: #fff;
    }
    .products-info-classification-box{
        width: 100%;
        position: absolute;
        z-index: 6;
        display: none;
        padding-top: 0px;
    }
    .products-info-classification-list-box:nth-child(1){
        background-color: #fff;
        color: #000;
    }
    .products-info-list-taste-block> div, 
    .products-info-list-taste-block> div{
        width: 90%;
    }
    .products-info-list-joinbuycar{
        width: 90%;
    }
}
@media only screen and (max-width: 800px){
    .news-products-info{
        padding-top: 0px;
    }
    .products-info-box{
        width: 550px;

    }
    .products-info-top-path-box{
        display: none;
    }
    .products-info-list-box{
        width: 100%;
        display: block;
    }
    #products .products-info-list-outer:nth-child(n){
        margin-left: 12.5px;
        margin-bottom: 12.5px;
    }
    #products .products-info-list-outer:nth-child(3n+1){
        margin-left: 0;
    }
    .products-info-list{
        width: 175px;
       
    }
   
 
}
@media only screen and (max-width: 550px){
    .products-info-list-taste, 
    .products-info-list-weight,
    .products-info-quantity-info{
        width: 100%;
    }
    .products-info-list-taste-box:before, 
    .products-info-list-weight-box:before{
        right: 0;
    }
    .products-info-list-taste-box:after, .products-info-list-weight-box:after {
        right: 5%;
    }
    .products-info-box{
        width: 340px;
    }
    .products-info-list-img-box{
        padding: 10px;
    }
    .products-info-top-path-box{
        display: none;
    }
    .products-info-list-box{
        width: 100%;
        display: block;
    }
    #products .products-info-list-outer:nth-child(n){
        margin-left: 10px;
        margin-bottom: 10px;
    }
    #products .products-info-list-outer:nth-child(2n+1){
        margin-left: 0;
    }
    .products-info-list{
        width: 165px;
     
    }
   
    .products-info-list-img-box{
        height: 160px;
    }

    .kaka-shop-page-title-en{
        font-size: 24px;
    }
    .kaka-shop-page-title-x{
        margin: 0 10px;
    }
    .kaka-shop-page-title-ch{
        font-size: 14px;
    }
}
@media only screen and (max-width: 340px){
    .products-info-box{
        width: 300px;
    }
    .products-info-list{
        width: 145px;
    }
}
/*<---------------------動畫------------------------>*/
@keyframes leftenter{
  0% {
    opacity: 0;
    transform:  translateX(-80px);
  }
  100% {
    opacity: 1;
  }
}
@keyframes upfedenter{
  0% {
    transform:  translateY(40px);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes rightfedenter{
  0% {
    transform:  translateX(140px);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes topenter{
  0% {
    transform:  translateY(-80px);
  }
  100% {
    opacity: 1;
  }
}
@media only screen and (min-width: 1001px){
    .products-info-classification-box,
    .products-info-top-img{
        opacity: 0;
        animation: leftenter 1s linear  both;
    }
    .products-info-top-path-box{
        opacity: 0;
        animation: rightfedenter 1s linear  both;
    }
    .products-info-list-box{
        opacity: 0;
        animation: upfedenter 1s linear  both;
    }
    /* #products .products-info-list-outer{
        opacity: 0;
    }
    #products .products-info-list-outer.active{
        animation: upfedenter 1s ease both;
    } */
    #products .products-info-list-outer:nth-child(n+100){
        opacity: 0;
    }
    #products .products-info-list-outer.active:nth-child(n+100){
        animation: upfedenter 1s ease both;
    }
    .kaka-shop-page-title{
        opacity: 0;
        animation: topenter 1s ease both;
    }
}