﻿.products-box{
    width: 100%;
    position: relative;
    display: block;
    min-height: calc(100vh - 84px);
    z-index: 100;
}
.products-all-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 70px 0;
}
.products-info-btn-box{
    width: 200px;
    display: inline-block;
    vertical-align: top;
    position: relative;
    box-sizing: border-box;
    padding-left: 28px;
}
.products-info-path-title{
    font-size: 28px;
    font-weight: bold;
    color: #162148;
    position: relative;
    letter-spacing: 1px;
    margin-bottom: 50px;
}
.products-info-path-first-name{
    font-size: 16px;
    display: block;
    font-weight: bold;
    color: #333;
    position: relative;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: all .3s linear;
}
.products-info-path-first-name.open{
    color: #162148;
    font-weight: bold;
}
.products-info-path-first-name a{
    position: relative;
}
.products-info-path-first-name a:after{
    content: '';
    width: 0%;
    height: 1px;
    display: block;
    background-color: #162148;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: all .3s linear;
}
.products-info-path-first-name.open a:before{
    background-color: #162148;
}
.products-info-path-first-name.open:after{
    background-color: #162148;
}
.products-info-path-first-second{
    font-size: 16px;
    width: initial;
    display: block;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: 1px;
    margin-left: 40px;
}
.products-info-path-first-second:after{
    content: '';
    width: 14px;
    height: 1px;
    background-color: #000;
    display: block;
    position: absolute;
    left: -20px;
    top: 12px;
    z-index: 2;
}

.products-info-path-first-second a{
    position: relative;
}
.products-info-path-first-second a:after{
    content: '';
    width: 0%;
    height: 1px;
    display: block;
    background-color: #ae8c4f;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: all .3s linear;
}
.products-info-path-line{
    width: 1px;
    height: calc(100% - 49px);
    position: absolute;
    top: 18px;
    left: 7px;
    background-color: #000;
    z-index: 1;
    display: none;
}
.products-info-box{
    width: calc(100% - 200px);
    display: inline-block;
    vertical-align: top;
}
.products-info{
    width: 320px;
    display: inline-block;
    vertical-align: top;
    margin-left: 20px;
    margin-bottom: 20px;
}
.products-info:nth-child(3n + 1){
    margin-left: 0;
}
.products-info-img-box{
    width: 100%;
    height: 420px;
    display: block;
    overflow: hidden;
}
.products-info-img{
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: block;
    position: relative;
    transition: all .3s linear;
}
.products-info-name{
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    color: #333;
    letter-spacing: 1px;
    margin: 5px 0;
    padding: 5px 0;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all .3s linear;
}
.products-info-price{
    font-size: 16px;
    color: #162148;
    font-family: "Roboto";
    letter-spacing: 2px;
    transition: all .3s linear;
    text-align: center;
}
.page-box{
    text-align: center;
}
.products-font-smail{
    font-size: 22px;
}
.products-font-max-smail{
    font-size: 18px;
}
/*<---------------hover--------------->*/
.products-info-path-first-name a.active,
.products-info-path-first-name a:hover{
    color: #162148;
}
.products-info-path-first-name a.active:before,
.products-info-path-first-name a:hover:before{
    background-color: #162148;
}
.products-info-path-first-second.active a,
.products-info-path-first-second a:hover{
    color: #ae8c4f;
}
.products-info:hover .products-info-img{
    transform: scale(1.1);
}
.products-info:hover .products-info-name{
    color: #162148;
}
.products-info:hover .products-info-price{
    color: #ae8c4f;
}



@media only screen and (max-width: 1200px){
    .products-all-box{
        width: 1000px;
    }
    .products-info{
        width: 253px;
    }
    .products-info-img-box{
        height: 332px;
    }
    .products-info-name{
        font-size: 24px;
    }
}
@media only screen and (max-width: 1000px){
    .products-all-box{
        width: 750px;
        padding: 50px 0;
    }
    .products-info-btn-box{
        width: 100%;
        display: block;
        padding-left: 0;
        margin-bottom: 20px;
    }
    .rwd-products-info-path{
        font-size: 28px;
        font-weight: bold;
        color: #162148;
        position: relative;
        letter-spacing: 1px;
        z-index: 4;
        display: inline-block;
        width: initial;
        box-sizing: border-box;
        padding-left: 20px;
        margin-top: 15px;
    }
    .rwd-products-info-path:before {
        content: '';
        width: 0px;
        height: 0px;
        margin: 0 auto;
        border-right: 5px solid transparent;
        border-top: 8px solid #162148;
        border-left: 5px solid transparent;
        display: block;
        position: absolute;
        bottom: calc(50% - 5px);
        right: -20px;
        box-sizing: border-box;
    }
    .products-info-path-box{
        position: absolute;
        z-index: 3;
        top: 0;
        box-sizing: border-box;
        padding: 0 20px;
        background-color: #fff;
        box-shadow: 0 0 5px #888;
        display: none;
        padding-top: 15px;
    }
    .products-info-path-title{
        opacity: 0;
        margin-bottom: 20px;
    }
    .products-info-path-line{
        left: 19px;
        top: 35px;
        height: calc(100% - 66px);
    }
    .products-info-box{
        width: 100%;
    }
    .products-info{
        width: 236px;
    }
    .products-info-img-box{
        height: 310px;
    }
    #products .page{
        width: 100%;
    }
    .products-box{
        min-height: calc(100vh - 69px);
    }
    .products-info-path-first-second:after{
        animation: products_path_first_line .3s ease .3s both;
    }
    .products-info-name{
        font-size: 20px;
    }
}
@media only screen and (max-width: 750px){
    .products-all-box{
        width: 550px;
    }
    .products-info{
        width: 265px;
    }
    .products-info-img-box{
        height: 348px;
    }
    .products-info:nth-child(3n + 1) {
        margin-left: 20px;
    }
    .products-info:nth-child(2n + 1) {
        margin-left: 0px;
    }
    .products-info-btn-box{
        margin-bottom: 15px;
    }
}
@media only screen and (max-width: 550px){
    .products-all-box{
        width: 400px;
    }
    .rwd-products-info-path{
        font-size: 24px;
    }
    .products-info{
        width: 190px;
    }
    .products-info-img-box{
        height: 250px;
    }
    .products-info-name{
        font-size: 18px;
        margin: 3px 0;
        padding: 2px 0;
    }
    .products-info-price{
        font-size: 14px;
    }
    #products .page{
        margin: 0;
    }
    .products-box{
        min-height: calc(100vh - 57px);
    }
}
@media only screen and (max-width: 400px){
    .products-all-box{
        width: 300px;
    }
    .rwd-products-info-path{
        font-size: 20px;
    }
    .products-info{
        width: 100%;
        margin-bottom: 10px;
    }
    .products-info-img-box{
        height: 394px;
    }
    .products-info-path-box{
        padding-right: 0px;
        z-index: 99;
    }
    .products-info:nth-child(n) {
        margin-left: 0px;
    }
}


/*animation*/
@keyframes products_path_line {
    0%{
        height: 0;
    }
    to {
        height: calc(100% - 49px);
    }
}
@media only screen and (min-width: 1001px){
    .products-info-path-title
    .products-info-path-line,
    .products-info-path-first-name,
    .products-info{
        opacity: 0;
    }
    .products-info-path-title{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .products-info-path-line.active{
        animation: products_path_line 1s ease 0s 1 both;
    }
    .products-info-path-first-name.active{
        animation: fadeInUp 1s ease 0s 1 both;
        z-index: 2;
    }
    .products-info-path-first-second{
        animation: fadeInUp 1s ease .3s 1 both;
        z-index: 2;
    }
    .products-info.active{
        animation: fade 1s ease 0s 1 both;
    }
    .page-box{
        animation: fade 1s ease 0s 1 both;
    }
}
