.products-list {
    margin: 0 -10px;
}
.products-list .item {
    width: 25%;
    padding: 0 12px;
}
.products-list .item:nth-child(4n+1) {
    clear: left;
}
.products-list .box {
    max-width: 270px;
    margin: 8px auto 22px;
    position: relative;
    -webkit-transition: all .2s;
    transition: all .2s;
}
.products-list .box.new:before {
    content: '';
    display: block;
    background: url('../../images/common/products/new_tag.png') no-repeat;
    width: 47px;
    height: 48px;
    position: absolute;
    z-index: 10;
    left: 8px;
    top: -22px;
}
.products-list .box:after {
    content: '';
    display: block;
    width: 0px;
    height: 1px;
    background: #f8eedd;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    position: absolute;
    right: -10px;
    top: -8px;
    -webkit-transition-delay: .2s;
    transition-delay: .2s;
    visibility: visible;
}

.products-list .box:hover:after {
    width: 90%;
    background: #ffb94a;
}
.products-list .pic-box {
    margin-bottom: 20px;
    position: relative;
}

.products-list .pic-box:before {
    content: '';
    display: block;
    width: 1px;
    height: 0px;
    background: #f8eedd;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    position: absolute;
    left: -10px;
    top: -10px;
}

.products-list>li>a:hover .pic-box:before {
    height: 80%;
    background: #ffb94a;
}

.products-list .pic-box:after {
    content: '';
    display: block;
    width: 1px;
    height: 0px;
    background: #f8eedd;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    position: absolute;
    right: -10px;
    bottom: -10px;
}

.products-list>li>a:hover .pic-box:after {
    height: 80%;
    background: #ffb94a;
}


.products-list .pic {
    display: block;
    position: relative;
    overflow: hidden;
}
.products-list .pic:before {
    content: "";
    background: url(../../images/common/products/hover.png) 50% 60% no-repeat rgba(0,0,0, 0.55);
    display: block;
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: all 0.3s;
}
.products-list a:hover .pic:before {
    background-position: 50% 50%;
    opacity: 1;
}

.products-list .txt {
    position: relative;
}

.products-list .txt:before {
    content: '';
    width: 0px;
    height: 1px;
    background: #f8eedd;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    -webkit-transition-delay: .2s;
    transition-delay: .2s;
    position: absolute;
    left: -10px;
    top: -10px;
}

.products-list li>a:hover .txt:before {
    width: 80%;
    background: #ffb94a;
}


.products-list .name {
    color: #666;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 27px;
}
.products-list a:hover .name {
    color: #f02731;
}
.products-list .description {
    color: #9A9A9A;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 41px;
    margin-bottom: 10px;
}
.products-list a:hover .description {
}
.products-list .btn-group {
    overflow: hidden;
}
.products-list .btn {
    width: 100%;
    line-height: 30px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 0 12px;
    display: none;
}
.products-list .btn.detail {
    background: #ffb94a;
}
.products-list a:hover .btn.detail {
    background: #f02731;
}
.products-list .btn .icon {
    width: 20px;
    height: 20px;
    margin: 0 5px 3px 0;
}
.products-list .btn.detail .icon {
     background-position: -60px -87px;
}
/***產品列表1個排一列***/
.products-list .item_one {
    width: 100%;
}
.products-list .box {
    max-width: 600px;
    margin: 7px auto 22px;
    position: relative;
}
/**********************/
/***產品列表2個排一列***/
.products-list .item_two {
    width: 50%;
    padding: 0 10px;
}
.products-list .item_two:nth-child(2n+1) {
    clear: left;
}
.products-list .item_two .box {
    max-width: 490px;
    margin: 7px auto 22px;
    position: relative;
}
/**********************/
/***產品列表頁排序功能，下拉選單跟變換列表尺寸的小圖***/
.sort_box{
    margin-bottom: 10px;
    display: inline-block;
    width: 100%;
    padding: 5px 0;
}
.control-label{
    float: left;
    margin-right: 10px;
    line-height: 30px;
}
.control-box{
    float: left;
}
.form-control {
    margin-bottom: 0px;
}
.form-group {
    float: left;
    padding: 5px 0;
}
.form-group:after{
    content: '';
    display: block;
    
    float: left;
    z-index: 10;
    height: 22px;
    left: 0;
    top: 0;
    margin: 4px 4px;
}
.sort_icon{
    float: left;
    line-height: 30px;
    padding: 5px 0;
}
.sort_icon .ibtn.one {
    background-image: url(../../images/common/products/sort_pic3.png);
    width: 24px;
    height: 24px;
    display: none;
}
.sort_icon .ibtn.two {
    background-image: url(../../images/common/products/sort_pic1.png);
    width: 24px;
    height: 24px;
}
.sort_icon .ibtn.four {
    background-image: url(../../images/common/products/sort_pic2.png);
    width: 24px;
    height: 24px;
}
.sort_icon .ibtn.active{
    background-position: 0 100%;
}
/***************************/
.products-intro {
    margin-bottom: 50px;
}
.gallery {
    float: left;
    width: 53%;
    max-width: 600px;
}
.gallery .pic {
    background: #fff;
}
.pd-intro,
.thumbnails {
    float: right;
    width: 45%;
}
.no-pic .pd-intro,
.no-pic .thumbnails {
    float: none;
    width: 100%;
}
.pd-id {
    margin-bottom: 8px;
    color: #666;
    font-size: 13px;
}
.pd-name {
    border: 1px dashed #DDD;
    border-width: 1px 0;
    color: #555350;
    font-size: 20px;
    letter-spacing: 0.05em;
    padding: 8px 0;
    line-height: 27px;
    margin: 0;
}
.pd-description {
    font-size: 15px;
    letter-spacing: 0.035em;
    line-height: 1.7;
    margin: 1.4em 0;

}
.pd-info {
    margin: 12px 0;
}
.pd-info b {
    color: #F2856C;
    font-size: 20px;
}
.pd-info select.form-control {
    display: inline-block;
    margin: 0;
    max-width: 240px;
    border-color: #ccc;
    border-radius: 0;
}
.pd-price {
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
}
.pd-intro .btn-group {
    margin: 25px -7px 0;
}
.pd-intro .btn-group .col {
    float: left;
    width: 50%;
    padding: 0 7px;
}
.pd-intro .btn-group .btn {
    width: 100%;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 40px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.pd-intro .btn-group .btn.addcart {
    background: #1B7292;
}
.pd-intro .btn-group .btn.addcart:hover {
    background: #ABB315;
}
.pd-intro .btn-group .btn.wish {
    background: #FBCFC7;
}
.pd-intro .btn-group .btn.wish:hover {
    background: #ABB315;
}
.pd-intro .btn-group .btn.soldout {
    background: #EEE;
    color: #C6C6C6;
    cursor: not-allowed;
}
.pd-intro .btn-group .btn.arrival {
    border: 1px solid #C6C6C6;
    color: #B4B4B4;
    line-height: 38px;
}
.pd-intro .btn-group .btn.arrival:hover {
    color: #1B7292;
}
.pd-intro .btn-group .btn .icon {
    width: 20px;
    height: 20px;
    margin: 0 8px 5px 0;
}
.pd-intro .btn-group .btn.addcart .icon {
    background-position: -20px -87px;
}
.pd-intro .btn-group .btn.wish .icon {
    background-position: -40px -87px;
}
.pd-intro .share_box {
    margin: 0px 0 10px 0;
}
.pd-intro .share_box .share .btn{
    font-size: 28px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 15px;
    border: 1px solid transparent;
    margin: 2px 0;
}
.pd-intro .share_box .share .btn.facebook,
.pd-intro .share_box .share .btn.google,
.pd-intro .share_box .share .btn.twitter,
.pd-intro .share_box .share .btn.line{ 
    color: #ffb94a; 
}

.pd-intro .share_box .share .btn.facebook:hover { color: #405D9A; }
.pd-intro .share_box .share .btn.google:hover { color: #F34537; }
.pd-intro .share_box .share .btn.twitter:hover { color: #39A0CE; }
.pd-intro .share_box .share .btn.line:hover { color: #00C300; }

.thumbnails ul {
    margin: 0 -7px;
}
.thumbnails li {
    width: 33.33%;
    padding: 7px;
}
.thumbnails a {
    display: block;
    max-width: 155px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.thumbnails a:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: url('../../images/common/products/small_hover.png') 50% 50% no-repeat rgba(255, 185, 74, 0.7);
    opacity: 0;
    transition: all 0.3s;
}
.thumbnails a:hover:before,
.thumbnails li.active a:before {
    opacity: 1;
}

.products-detail {
    border: 1px solid #ccc;
    border-width: 1px 0;
    padding: 40px 0;
    position: relative;
}
.products-detail .title {
    background:#ffb94a;
    width: 136px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    border-radius: 5px;
    line-height: 30px;
    letter-spacing: 0.05em;
    position: absolute;
    top: -15px;
    left: 50%;
    margin-left: -68px;
}

@media screen and (max-width: 1300px) {
    /*.products-list .item {
        width: 33.33%;
    }
    .products-list .item:nth-child(4n+1) {
        clear: none;
    }
    .products-list .item:nth-child(3n+1) {
        clear: left;
    }*/
}
@media screen and (max-width: 1200px) {
    .gallery,
    .pd-intro,
    .thumbnails{
        float: none;
        width: auto;
    }
    .gallery {
        margin: 0 auto 25px;
    }

    .thumbnails li {
        width: 16.66%;
    }
}
@media screen and (max-width: 767px) {
    .products-list {
        margin: 0 -7px;
    }
    .products-list .item,
    .products-list .item_two{
        padding: 0 7px;
        width: 50%;
    }
    .products-list .item:nth-child(3n+1) {
        clear: none;
    }
    .products-list .item:nth-child(2n+1) {
        clear: left;
    }
    .products-list .box {
        margin-bottom: 30px;
    }
    .gallery {
        margin-bottom: 5px;
    }
    .thumbnails ul {
        margin: 0 -5px;
    }
    .thumbnails li {
        padding: 5px;
    }
    .sort_icon .ibtn.one {
        display: inline-block;
    }
    .sort_icon .ibtn.four {
        display: none;
    }
@media screen and (max-width: 560px) {
    .thumbnails li {
        width: 16.66%;
    }
}
@media screen and (max-width: 500px) {
    .products-list .item{
        width: 100%;
    }
}
@media screen and (max-width: 400px) {
    .pd-intro .btn-group .col {
        width: 100%;
    }
}