/*------------ product-list ------------*/

.product-list {
    margin: 0 -10px;
}

.product-list li {
    width: 25%;
    padding: 0 10px 35px;
}

.product-list li:nth-child(4n+1) {
    clear: left;
}

.product-list > li > .box{
    margin: 0 auto;
    max-width: 280px;
    box-sizing: border-box;
    position: relative;
}
.product-list .box .cover{
    font-size: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index:30;
}

.product-list .pic {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    transition: all .2s;
    border: 0px solid #fff;
    margin: 0 0 3px;
    z-index: 0;
}

.product-list .pic img {
    transition: all 0.35s ease-in-out;
    transform: scale(1);
}

.product-list .pic:hover img {
    transition: all 0.35s ease-in-out;
    transform: scale(1.2);
}

.product-list .pic:before,
.product-list .pic:after {
    position: absolute;
    display: block;
    transition: all .2s;
    opacity: 0;
}

.product-list .pic:before {
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 50;
}

.product-list .pic:after {
    content: "MORE";
    display: block;
    border: 1px solid #E52028;
    width: 120px;
    height: 56px;
    line-height: 56px;
    color: #E52028;
    box-sizing: border-box;
    top: 50%;
    left: 50%;
    z-index: 50;
    margin: -28px 0 0 -60px;
    transition: all 0.35s ease-in-out;
    transform: scale(3);
}

.product-list .box:hover .pic:before,
.product-list .box:hover .pic:after {
    transition: all .2s;
    opacity: 1;
}

.product-list li .box:hover .pic:after {
    top: 50%;
    transform: scale(1);
}

.product-list .text {
    text-align: center;
    max-width: 280px;
    margin: 0 auto;
    box-sizing: border-box;
    background: #DDB63F;
    padding: 8px 10px;
    position: relative;
    transition: all .2s;
}

.product-list li .box:hover .text {
    transition: all .2s;
}

.product-list .name {
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
    color: #000000;
    font-size: 20px;
    font-weight: bold;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 47px;
    height: 47px;
    line-height: 25px;
}


/*------------ search-list ------------*/

.search-list li {
    width: 20%;
}

.search-list li:nth-child(4n+1) {
    clear: none;
}

.search-list li:nth-child(5n+1) {
    clear: left;
}


/*------------ detail ------------*/
.p-detail-flex{
    display: flex;
    justify-content: space-between;
}
.p-detail-flex .p-word{
    flex:0 0 560px;
}
.p-detail-flex .p-pic{
    flex:0 0 500px;
}


.product-name {
   color: #DDB63F;
   font-size: 40px;
   line-height: 40px;
   background: transparent;
   width: 100%;
   min-height: 167px;
   box-sizing: border-box;
   margin: 0;
   line-height: 54px;
   padding-left: 0px;
   padding-right: 0px;
   padding-top: 20px;
   padding-bottom: 20px;
   display: flex;
   justify-content: flex-start;
   align-items: center;
   font-weight: 500;
   margin-bottom: 5px;
   border-top:1px solid #E62129 ;

}
.products-detail{
   border-top: 3px solid #E62129 ;
   min-height: 419px;
   background: #3E3E3E;
   box-sizing: border-box;
   padding-left: 30px;
   padding-right: 30px;
   padding-top: 20px;
   padding-bottom: 20px;
}
.p-d-title.first{
    border-top: 1px solid rgba(217,219,218,0.2); 
}
.p-d-title{
    display: flex;
    border-bottom: 1px solid rgba(217,219,218,0.2);
    padding:8px 15px;
}
.p-d-title-1{
    flex: 0 0 100px;
    color:#DDB63F;
    font-weight: bold;
    font-size: 16px;
}
.p-d-title-2{
    flex: 0 0 calc( 100% - 100px);
    font-family: "Nunito Sans","微軟正黑體";
    color:#FFF;
    font-size: 15px;
}

.products-info {
    max-width: 500px;
    margin: 0 auto 50px;
}

.gallery {
    max-width: 500px;
    margin: 0 auto 50px;
    outline: 0;
}

.gallery .slider {
    float: left;
    width: 100%;
    margin-bottom: 14px;
}

.gallery .thumbnails ul {
    margin: 0 -4px;
}
.gallery .thumbnails li {
    width: 16.66%;
    padding: 0 4px 4px;
}
.gallery .thumbnails li a {
    position: relative;
    overflow: hidden;
}

.gallery .thumbnails li a:hover:before,
.gallery .thumbnails li.active a:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.thumbnails a {
    max-width: 95px;
    margin: 0 auto;
    display: block;
}

.thumbnails a:before,
.thumbnails a:after {
    content: "";
    position: absolute;
    transition: all .2s;
    opacity: 0;
}

.thumbnails a:before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .8);
}

.thumbnails a:after {
    content: "\e100d";
    font-size: 30px;
    color: #ACAC9D;
    z-index: 100;
    font-family: 'icon-font' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    top: 50%;
    left: 50%;
    margin: -15px 0 0 -15px;
}

.thumbnails .active a:before,
.thumbnails .active a:after,
.thumbnails a:hover:before,
.thumbnails a:hover:after {
    transition: all .2s;
    opacity: 1;
}


.side-nav.products-nav > li > a {
    color: #FFF;
    background: unset;
    border: 1px solid #FF1C3B;
    padding: 0px 0px;
}
.side-nav.products-nav > li {
    margin-bottom: 30px;
}
.side-nav.products-nav > li > ul {
    margin-top: 5px;
}
.p-nav{
    display: flex;
}
.p-nav-pic{
    flex: 0 0 100%;
}
.p-nav-title{
    flex: 0 0 calc(100% - 100px );
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    background: #0B131A;
    color: #FAFAFA;
    padding-left: 10px;
    box-sizing: border-box;
}
.side-nav.products-nav > li > a:hover , .side-nav.products-nav > li.active > a{
    border: 1px solid #D79729;
}
.side-nav.products-nav > li > a:hover .p-nav-title , .side-nav.products-nav > li.active > a .p-nav-title{
    background: #3E3E3E;
}

.side-nav.products-nav ul li a {
    padding: 17px 22px 17px 22px;
    color: #FFF;
    background: linear-gradient(to bottom,#96272A,#EE1C25);
    font-weight: bold;
    font-size: 18px;
}
.side-nav.products-nav ul li a:hover, .side-nav.products-nav ul li.active a{
    background: linear-gradient(to bottom,#8E5E31,#DBAF41);
}

.mobile-p-nav , .mobile-p-nav-2{
    display: none;
}
.nav-desk-pic{ 
    display: block;
}
.nav-mobile-pic{
    display: none;
}
/*------------ products-title ------------*/


/*------------ rwd ------------*/

@media screen and (max-width: 1500px) {
    .p-detail-flex {
        flex-direction: column;
        justify-content: start;
    }
    .p-detail-flex .p-pic {
        flex: 0 0 100%;
        order: 1;
    }
    .p-detail-flex .p-word {
        flex: 0 0 100%;
        order: 2;
    }
    .product-name {
        font-size: 22px;
        line-height: 40px;
        width: 100%;
        min-height: unset;
        box-sizing: border-box;
        margin: 0;
        line-height: 30px;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 15px;
        padding-bottom: 15px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        font-weight: 500;
        margin-bottom: 5px;
    }
    .products-detail {
        min-height: unset;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
}


@media screen and (max-width: 1280px) {
    .product-list li {
        width: calc((100% / 3) - 0.1px);
    }
    .product-list li:nth-child(4n+1),
    .search-list li:nth-child(5n+1) {
        clear: none;
    }
    .product-list li:nth-child(3n+1) {
        clear: left;
    }
    .search-list {
        max-width: 950px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 1024px) {

    .mmenu-show .side {
        display: block;
        width: 100%;
        float: none;
    }

    .mmenu-show .pro-detail .side {
        display: none;
    }
    .p-nav-title{
        padding-left: 20px;
    }
    .side-nav.products-nav > li > ul > li:not(.mobile-p-nav) {
        display: none;
    }
    .side-nav.products-nav > li {
        margin-bottom: 10px;
    }
    .side-nav.products-nav > li > ul {
        margin-top: 10px;
    }
    .mobile-p-nav ,.mobile-p-nav-2{
        display: block;
    }
    .mobile-p-nav select ,.mobile-p-nav-2 select{
        display: block;
        width: 100%;
        height: 40px;
        line-height: 40px;
        color: #FFF;
        border: 3px solid #9A1818;
        background-color: #101010;
        box-sizing: border-box;
        margin-bottom: 6px;
        font-size: 16px;
        padding: 0 10px;
    }
    .mobile-p-nav-2{
        margin-bottom: 20px;
    }
    .main-content .container{
        display: flex;
        flex-direction: column;
    }
    .nav-desk-pic{
        display: none;
    }
    .nav-mobile-pic{ 
        display: block;
    }
    .main-content .side{
        order: 1;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .main-content .breadcrumb-2{
        order: 2;
    }
    .main-content .content{
        order: 3;
    }

    .p-d-title {
        padding-left: 0;
    }
    .p-d-title-1 {
        flex: 0 0 82px;
    }
   
    .main-content .side{
        position: relative;
    }
    .products-nav{
        display: flex !important;
        max-width: 800%;
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 50px;
        justify-content: space-between;
        overflow-x: scroll;
        position: static;
    }

    .products-nav > li{
        width: calc(100%);
        min-width: 120px;
    }
    .products-nav > li + li{
        margin-left: 10px;
    }
    .products-nav .mobile-p-nav{
        position: absolute;
        left: 0;
        bottom: 10px;
        right: 0;
        min-width: calc(100vw - 50px);
    }
    .side-nav.products-nav > li > a{
        padding: 10px 0;
        /* min-height: 145px; */
    }
    .side-nav > li > a{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .p-nav-pic{
        overflow: hidden;
    }
    .p-nav-pic img {
        width: 100px;
        /* height: 125px !important; */
        /* max-height: 125px !important; */
        object-fit: contain;
        object-position: center;
    }
    
}
@media screen and (max-width: 1100px) {
    .product-list {
        margin: 0 -10px;
    }
    .product-list li {
        padding: 0 10px 17px;
    }
    .search-list {
        margin: 0 auto;
    }
}
@media screen and (max-width: 830px) {
    .products-nav {
        position: static;
        max-width: 800px;
        padding-top: 24px;
    }
    .products-nav::-webkit-scrollbar-track {
        background: #666666; 
    }
    .products-nav::-webkit-scrollbar-thumb {
        background: #fffFFF; 
      }
    .main-content .side::before{
        position: absolute;
        content: "\10ffff\10ffff\10ffff\10ffff";
        display: block;
        color: #666;
        font-family: 'icon-font' !important;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: normal;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        right: 6px;
        top: -6px ;
        display: none;
    }
}
@media screen and (max-width: 767px) {
    .product-list li {
        width: 50%;
    }
    .product-list li:nth-child(2n+1),
    .search-list li:nth-child(3n+1) {
        clear: left;
    }
    .product-list li:nth-child(3n+1),
    .search-list li:nth-child(2n+1) {
        clear: none;
    }
    .search-list li {
        width: calc((100% / 3) - 0.1px);
    }
}

@media screen and (max-width: 600px) {
    .search-list {
        margin: 0;
    }
    .search-list li {
        width: 100%;
        padding: 0 0 75px;
    }
    .gallery .slider,
    .gallery .txt {
        float: none;
        width: 100%;
        text-align: center;
        max-width: 650px;
        margin: 0 auto;
    }
    .thumbnails {
        max-width: 320px;
        margin: 15px auto 0;
    }
    .thumbnails li {
        padding: 0 5px 10px;
        width: calc((100% / 3) - 0.1px);
        box-sizing: border-box;
    }
    .thumbnails li + li {
        margin: 0;
    }
}

@media screen and (max-width: 480px) {
    .product-list {
        margin: 0;
    }
    .product-list li {
        width: 100%;
        padding: 0 0 35px;
    }
}
