﻿.products-box{
    width: 100%;
    display: block;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 100px 0;
    background-color: #333;
}
.products-all-box{
    width: 1360px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
    padding-top: 100px;
}
.products-category-box{
    width: 260px;
    display: inline-block;
    vertical-align: top;
}
.products-category-title-box{
    width: 100%;
    display: block;
    margin-bottom: 40px;
}
.products-category-title{
    width: 360px;
    max-width: 100%;
    font-family: "Noto Sans TC";
    font-size: 36px;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #fff;
    display: inline-block;
    vertical-align: bottom;
    transition: all .3s linear;
}
.products-category-path-box{
    display: inline-block;
    vertical-align: bottom;
}
.products-category-path{
    font-family: 'Noto Sans TC';
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 16px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    transition: all .3s linear;
}
a.products-category-path{
    color: #ddd;
    font-weight: 300;
    position: relative;
    margin-right: 40px;
}
a.products-category-path::after{
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    display: inline-block;
    vertical-align: top;
    font-size: 16px;
    color: #000;
    line-height: 1;
    margin: 0 15px;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 100%;
}
.products-category-close{
    display: none;
}
.products-category-info{
    box-sizing: border-box;
    padding: 0 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    display: block;
    transition: all .3s linear;
}
.products-category-info-name{
    width: 100%;
    display: block;
}
.products-category-info-name p{
    font-family: "Noto Sans TC";
    font-size: 20px;
    color: #ccc;
    letter-spacing: 0.06em;
    line-height: 1.4;
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 18px);
    margin-right: 10px;
}
a.products-category-info-name p,
.products-category-info-name p>a{
    transition: all .3s linear;
}
.products-category-info-name span{
    width: 8px;
    height: 2px;
    display: inline-block;
    vertical-align: middle;
    background-color: #ffe100;
    position: relative;
    transition: all .3s linear;
}
.products-category-info-name span::before{
    content: "";
    width: 2px;
    height: 8px;
    display: block;
    position: absolute;
    top: -3px;
    left: 3px;
    background-color: #ffe100;
    transition: all .3s linear;
}
.products-category-list-box{
    box-sizing: border-box;
    padding-top: 5px;
    display: none;
}
.products-category-list{
    font-family: "Noto Sans TC";
    font-weight: 300;
    font-size: 16px;
    color: #666;
    letter-spacing: 0.06em;
    line-height: 36px;
    transition: all .3s linear;
}
.products-category-list.active::before{
    content: "[";
    font-family: "Noto Sans TC";
    font-weight: 300;
    font-size: 16px;
    color: #ffe100;
    line-height: 36px;
    margin-right: 10px;
}
.products-category-list.active::after{
    content: "]";
    font-family: "Noto Sans TC";
    font-weight: 300;
    font-size: 16px;
    color: #ffe100;
    line-height: 36px;
    margin-left: 10px;
}
.products-right-box{
    width: calc(100% - 260px);
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding-left: 100px;
    margin-top: 10px;
}
.products-info{
    width: 300px;
    display: inline-block;
    vertical-align: top;
    margin-right: 50px;
    transition: all .3s linear;
}
.products-info:nth-child(3n){
    margin-right: 0;
}
.products-info:nth-child(n + 4){
    margin-top: 50px;
}
.products-info-img{
    width: 100%;
    height: calc((400 / 400) * 300px);
    display: block;
    overflow: hidden;
    position: relative;
    transition: all .3s linear;
}
.products-info-text{
    font-family: 'Noto Sans TC';
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 1.4;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 5px;
    transition: all .3s linear;
}
.products-page-box{
    margin-top: 100px;
}




.products-pages-info-left-box{
    width: 500px;
    display: inline-block;
    vertical-align: top;
}
.products-pages-info-img{
    width: 100%;
    height: 350px;
    display: block;
    background-color: #f2f2f2;
}
.products-pages-info-right-box{
    width: calc(100% - 500px);
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding: 10px 0;
    padding-left: 40px;
}
.products-pages-info-name{
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 0.1em;
    line-height: 30px;
    color: #fff;
}
.products-pages-info-text{
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.1em;
    line-height: 30px;
    color: #bbb;
    margin-top: 10px;
}
.products-pages-edit-box{
    width: 100%;
    display: block;
    margin-top: 75px;
}
.products-pages-edit-title-box{
    width: 100%;
    display: block;
    box-sizing: border-box;
    border-bottom: 3px solid #ffe100;
}
.products-pages-edit-title{
    width: 160px;
    text-align: center;
    background-color: #ffe100;
    line-height: 30px;
    font-family: "Noto Sans TC";
    color: #000;
    font-size: 16px;
    letter-spacing: 0.01em;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}
.products-pages-edit{
    font-family: 'Noto Sans TC';
    font-size: 16px;
    letter-spacing: 0.06em;
    line-height: 1.9;
    color: #fff;
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 20px 0;
}



@media only screen and (max-width: 1360px){
    .products-all-box{
        width: 1200px;
    }
    .products-info{
        width: 260px;
        margin-right: 30px;
    }
    .products-info-img{
        height: calc((400 / 400) * 260px);
    }
}
@media only screen and (max-width: 1200px){
    .products-all-box{
        width: 1000px;
    }
    .products-info{
        width: 200px;
        margin-right: 20px;
    }
    .products-info-img{
        height: calc((400 / 400) * 200px);
    }
    .products-pages-info-left-box{
        width: 300px;
    }
    .products-pages-info-img{
        height: calc((350 / 500) * 300px);
    }
    .products-pages-info-right-box {
        width: calc(100% - 300px);
        padding-left: 20px;
    }
    .products-pages-info-text{
        line-height: 1.6;
    }
}
@media only screen and (max-width: 1000px){
    .products-all-box{
        width: 750px;
    }
    .products-category-box{
        width: 210px;
    }
    .products-category-info{
        padding: 10px 10px;
    }
    .products-category-info-name p{
        font-size: 18px;
        color: #000;
    }
    .products-right-box {
        width: calc(100% - 210px);
        padding-left: 40px;
    }
    .products-info{
        width: 160px;
        margin-right: 10px;
    }
    .products-info-img{
        height: calc((400 / 400) * 160px);
    }
    .products-category-title{
        width: 250px;
        font-size: 30px;
    }
    .products-pages-info-left-box{
        width: 100%;
    }
    .products-pages-info-img{
        height: calc((350 / 500) * 500px);
    }
    .products-pages-info-right-box {
        width: 100%;
        padding-left: 0px;
        padding-top: 20px;
    }
}
@media only screen and (max-width: 768px){
    .products-box{
        padding: 60px 0;
        padding-bottom: 40px;
    }
    .products-all-box{
        width: 550px;
        padding-top: 40px;
    }
    .rwd-products-category{
        width: 100%;
        font-family: "Noto Sans TC";
        font-size: 16px;
        color: #333;
        letter-spacing: 0.06em;
        line-height: 36px;
        border: 1px solid #eee;
        background-color: #eee;
        text-align: center;
        display: block;
        position: relative;
        box-sizing: border-box;
    }
    .rwd-products-category:after {
        content: '';
        width: 0px;
        height: 0px;
        margin: 0 auto;
        border-right: 6px solid transparent;
        border-top: 8px solid #000;
        border-left: 6px solid transparent;
        display: block;
        position: absolute;
        bottom: calc(50% - 4px);
        right: 10px;
        box-sizing: border-box;
    }
    .products-category-box{
        width: 100%;
        height: 100vh;
        display: none;
        align-items: center;
        -webkit-align-items: center;
        justify-content: center;
        -webkit-justify-content: center;
        flex-direction: row;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
    }
    .products-category-box.active{
        display: inline-flex;
        display: -webkit-inline-flex;
    }
    .products-category-info-box{
        width: 550px;
        max-width: calc(100% - 40px);
        background-color: #fff;
        display: block;
        position: relative;
        z-index: 3;
        max-height: 80vh;
        overflow: auto;
    }
    .products-category-close{
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 20px;
        color: #000;
        font-family: "Noto Sans TC";
        text-align: center;
        display: block;
        position: absolute;
        top: 0px;
        right: 0;
        background-color: #ddd;
        cursor: pointer;
        z-index: 3;
    }
    .products-category-mask{
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0px;
        right: 0;
        background-color: rgba(0, 0, 0, .7);
        cursor: pointer;
        z-index: 2;
    }
    .products-category-path-box{
        display: none;
    }
    .products-category-title-box{
        margin-bottom: 10px;
    }
    .products-category-title{
        font-size: 24px;
    }
    .products-right-box{
        width: 100%;
        padding-left: 0;
        margin-top: 40px;
    }
    .products-info{
        width: 170px;
        margin-right: 20px;
    }
    .products-info-img{
        height: calc((400 / 400) * 170px);
    }
    .products-info-text{
        font-size: 16px;
    }
    .products-info:nth-child(n + 4) {
        margin-top: 20px;
    }
    .products-pages-info-img{
        height: calc((350 / 500) * 550px);
    }
    
    .products-category-info.active{
        background-color: #ffe100
    }
    .products-category-info.active .products-category-info-name>p{
        color: #000;
    }
}
@media only screen and (max-width: 550px){
    .products-box{
        padding-bottom: 20px;
    }
    .products-all-box{
        width: calc(100vw - 40px);
        padding-top: 20px;
    }
    .products-category-title{
        font-size: 18px;
    }
    .products-right-box{
        margin-top: 20px;
    }
    .products-info:nth-child(n){
        width: calc((100vw - 40px - 10px) / 2);
        margin-right: 10px;
        margin-top: 0;
    }
    .products-info:nth-child(2n){
        margin-right: 0;
    }
    .products-info:nth-child(n + 3){
        margin-top: 20px;
    }
    .products-info-img{
        height: calc((400 / 400) * ((100vw - 40px - 10px) / 2));
    }
    .products-info-text{
        font-size: 16px;
    }
    .products-page-box{
        margin: 20px 0;
        margin-top: 40px;
    }
    .page a{
        margin: 0;
        font-size: 14px;
    }
    .page .prev, .page .next{
        font-size: 14px;
    }


    
    .products-pages-info-img{
        height: calc((350 / 500) * (100vw - 40px));
    }
    .products-pages-info-right-box{
        padding-top: 10px;
    }
    .products-pages-info-name{
        font-size: 18px;
        line-height: 24px;
    }
    .products-pages-info-text{
        font-size: 14px;
        line-height: 1.4;
        letter-spacing: 0.06em;
    }
    .products-pages-edit-box{
        margin-top: 25px;
    }
    .products-pages-edit-title{
        width: 100px;
        font-size: 14px;
    }
    .products-pages-edit{
        font-size: 14px;
        line-height: 1.4;
        padding: 10px 0;
    }
}
@media only screen and (max-width: 400px){
    .products-info:nth-child(n){
        width: calc(100vw - 40px);
        margin-right: 10px;
        margin-top: 0;
    }
    .products-info:nth-child(2n){
        margin-right: 0;
    }
    .products-info:nth-child(n + 2){
        margin-top: 20px;
    }
    .products-info-img{
        height: calc((400 / 620) * (100vw - 40px));
    }
}


@media only screen and (min-width: 769px){
    .products-category-info:hover,
    .products-category-info.active{
        background-color: #ffe100;
    }
    a.products-category-path:hover{
        color: #ffe100;
    }
    .products-info:hover .main-bg{
        transform: scale(1.1);
    }
    .products-info:hover .products-info-img{
        box-shadow: 0 0 10px rgba(0, 0, 0, .35);
    }
    .products-category-info:hover .products-category-info-name p,
    .products-category-info.active .products-category-info-name>p{
        color: #000;
    }


/*  .products-category-title-box,
    .products-category-box,
    .products-info,
    .products-page-box,
    .products-pages-info-left-box,
    .products-pages-info-name,
    .products-pages-info-text-box,
    .products-pages-edit-box{
        opacity: 0;
    }
    .products-category-title-box.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .products-category-title-box.anima .products-category-path-box{
        animation: fadeInLeft 1s ease 0.6s 1 both;
    }
    .products-category-box.anima{
        animation: fade 1s ease 0.4s 1 both;
    }
    .products-info.anima,
    .products-page-box.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .products-pages-info-left-box.anima{
        animation: fade 1s ease 0s 1 both;
    }
    .products-pages-info-right-box.anima .products-pages-info-name{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .products-pages-info-right-box.anima .products-pages-info-text-box,
    .products-pages-edit-box.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    } */
}