@charset "utf-8";
/* CSS Document */

.toshow {display: inline-block!important;}
.tohide {display: none!important;}
#carte {
    height: 100%;
    width: 100%;
    position: fixed;
    padding: 60px 0 50px 0;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}
#totop {
    text-align: center;
    margin-top: 1.5em;
}
#totop a {
    padding: .5em;
    cursor: pointer;
}
#totop a:hover {
    color: black;
    text-decoration: underline;
}

/*---------------------------------------------页面上半部分*/
#market-head {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #525252;
    background-size: cover;
    background-position: center;
}

#title-cap {
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 50px;
    background-color: whitesmoke;
}
#title {
    width: 50%;
    background-color: whitesmoke;
    text-align: center;
    margin: 0 auto 20px auto;
    padding: 0 2% 50px 2%;
    -webkit-box-shadow: 0 0 30px #e5e5e5;
	box-shadow: 0 0 30px #e5e5e5;
}
#title h1 {
    font-size: 2em;
    padding-bottom: .8em;
}
#title p {font-size: .9em;}

/*---------------------------------------------翻页按钮*/
.flashLeft, .flashRight {
    position: absolute;
    top: 160px;
    padding: 0 .1em;
	text-align: center;
	font-size: 2.7em;
    color: rgba(245, 245, 245, 0.8);
	background: rgba(0, 0, 0, 0.4);
    transition: .2s;
}
.flashLeft {left: 5%;}
.flashRight {right: 5%;}
.flashLeft:hover, .flashRight:hover {
	color: rgba(0, 0, 0, 0.4);
	background: rgba(255, 255, 255, 0.6);
	transition: .2s;
}

/*---------------------------------------------过滤标签*/
#filter-switch-box {width: 100%;}
#filter-switch {
    position: absolute;
    top: 520px;
    left: 10%;
    padding: .5em;
    border: 1px solid #1a1a1a;
    border-radius: .3em;
    cursor: pointer;
    transition: .1s;
}
#filter-switch:hover, .labbox:hover, #panieropen:hover {
    color: white;
    background: #1a1a1a;
}
#filter-list {
    padding: 0 10% 1.6em 10%;
    display: none;
}
.labbox {
    display: inline-block;
    padding: .5em;
    border: 1px solid #1a1a1a;
    border-radius: .3em;
    margin: .3em;
    cursor: pointer;
    transition: .1s;
}
.labbox img, .labbox p {float: left;}
.labbox img {
    width: 1.1em;
    height: auto;
}
.labbox p {
    font-size: .9em;
    padding: 0 .5em;
}

/*---------------------------------------------商品列表*/
#prod-list {
    width: 85%;
    height: auto;
    margin: auto;
}
.prod-box {
    float: left;
    width: 20%;
}
.prod-scale, .img-scale {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    height: 0;
}
.prod {
    position: absolute;
    width: 96%;
    height: 96%;
    left: 2%;
    top: 2%;
    cursor: pointer;
    transition: .2s;
}
.img-box {
    width: 100%;
    background: whitesmoke;
}
.prod-img {
    position: absolute;
    width: 96%;
    height: 96%;
    left: 2%;
    top: 2%;
    background-color: #c6c6c6;
    background-size: 100% auto;
    background-position: center;
}
.addinfo {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
}
.addinfo p {
    font-family: "Helvetica", serif;
    text-align: center;
    font-size: .8em;
    padding: 1em;
}
.prod-info-box {
    position: absolute;
    display: none;
    width: 100%;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    background: whitesmoke;
    -webkit-box-shadow: 0 .3em .3em rgba(0, 0, 0, 0.4);
	box-shadow: 0 .3em .3em rgba(0, 0, 0, 0.4);
    z-index: +1;
}
.prod-info-scale {
    position: relative;
    width: 100%;
    padding-bottom: 40%;
    height: 0;
}
.prod-info {
    text-align: center;
    position: absolute;
    width: 96%;
    height: 96%;
    top: 0;
    left: 2%;
}
.prod-info h2 {
    font-family: "Helvetica", serif;
    font-size: .7em;
    padding-bottom: .5em;
}
.prodname {font-size: .8em;}

/*购买按钮*/
.buy {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1.9em;
    background: whitesmoke;
}
.prodprice {
    font-family: "Roboto", serif;
    font-size: .8em;
    padding-top: .2em;
    display: inline-block;
    float: left;
    margin-left: 1em;
}
.euro {font-size: .8em;}
.compose {
    color: whitesmoke;
    font-family: "Helvetica", serif;
    font-size: .8em;
    float: right;
    padding: .3em .6em;
    margin-right: 1em;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    transition: .1s;
}
.addsub {
    float: right;
    height: 2em;
    margin-right: .8em;
}
.addsub button, .prodnum {
    display: block;
    float: left;
}
.addsub button {
    color: whitesmoke;
    font-size: .8em;
    padding: .3em .5em;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    transition: .1s;
}
.prodnum {
    font-family: "Helvetica", serif;
    padding: .1em .8em 0 .8em;
}
.buy button:hover {
    color: black;
    background: transparent;
}

/*---------------------------------------------页内购物车*/
#panieropen {
    position: absolute;
    top: 520px;
    right: 10%;
    padding: .5em;
    border: 1px solid black;
    border-radius: .3em;
    cursor: pointer;
    transition: .1s;
}
#cartepanier {
    display: block;
    float: right;
    width: 0;
    transition: .8s;
}
#cpbox {
    font-size: .8em;
    width: 400px;
    border: none;
    height: 80%;
    position: fixed;
    top: 10%;
    /*right: -400px; js动态设定*/
    z-index: +100;
    background: whitesmoke;
    transition: .5s;
}
#maininfo {
    width: 94%;
    height: 100px;
    margin: auto;
    padding: 12px 0;
    border-bottom: 1px solid black;
    position: relative;
}
.infobox {padding: 3px 0;}
.lefttext {
    font-weight: bolder;
    text-transform: uppercase;
}
.righttext{
    font-family: "Roboto", serif;
    font-style: italic;
    float: right;
}
#panierclose {
    /*display: none; js动态设定*/
    color: whitesmoke;
    position: absolute;
    top: 0;
    left: -65px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    cursor: pointer;
}
#panierclose:hover {
    background: rgba(156, 156, 156, 0.35);
}
#panierclose span {
    width: 100%;
    font-size: 2em;
    text-align: center;
    padding-top: 9px;
}
#panierwindow {
    width: 100%;
    border: none;
    margin: 0;
    padding: 0;
}
#gotocart {
    display: block;
    width: 100%;
    height: 50px;
    background: #1a1a1a;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    color: whitesmoke;
    padding-top: 14px;
    transition: .1s;
}
#gotocart:hover {
    color: white;
    background: #525252;
}

/*---------------------------------------------详情页*/
#detailbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 300;
}
#detailwindow {
    position: absolute;
    left: 5%;
    top: 7%;
    width: 90%;
    height: 87%;
    border: none;
}
.closebox {
    position: absolute;
    right: 8%;
    top: 10%;
    background: transparent;
    border: none;
    z-index: +1;
}
.closebox:hover {color: #878787;}


/*---------------------------------------------窗体自适应性布局*/
@media (min-width: 2000px) {
    .prod-box {width: calc(100% / 6);}
}

@media (max-width: 1680px) {
    .prodprice {font-size: .7em;}
    .prodname {font-size: .7em;}
    .prod-info-scale {padding-bottom: 50%;}
}

@media (max-width: 1280px) {
    #carte {padding: 42px 0 35px 0;}
    #market-head {height: 280px;}
    #title-cap {height: 35px;}
    #title {
        padding-bottom: 35px;
        margin-bottom: 14px;
        -webkit-box-shadow: 0 0 21px #e5e5e5;
        box-shadow: 0 0 21px #e5e5e5;
    }
    .flashLeft, .flashRight {top: 112px;}
    #filter-switch {top: 364px;}
    #cpbox {width: 280px;}
    #maininfo {
        height: 70px;
        padding: 8px 0;
    }
    .infobox {padding: 2px 0;}
    #panieropen {top: 364px;}
    #panierclose {
        left: -45px;
        width: 35px;
        height: 35px;
    }
    #panierclose span {padding-top: 6px;}
    #gotocart {
        height: 35px;
        padding-top: 10px;
    }
}

@media (max-width: 1024px) {
    #prod-list {width: 90%;}
    .prod-box {width: 25%;}
}

@media (max-width: 860px) {
    #market-head {height: 310px;}
    #title-cap {
        left: 15%;
        width: 70%;
    }
    #title {width: 70%;}
    .flashLeft, .flashRight {top: 122px;}
    .flashLeft {left: 3%;}
    .flashRight {right: 3%;}
    #filter-switch {
        position: static;
        padding: 0 0 1em 0;
        width: 100%;
        border: none;
        border-radius: 0;
        text-align: center;
    }
    #filter-switch:hover {
        color: black;
        background: transparent;
    }
    .prod-box {width: calc(100% / 3);}
    #panieropen {display: none;}
    #cartepanier {display: none;}
}

@media (max-width: 768px) {
    #carte {padding-top: 60px;}
    #detailwindow {
        top: 8%;
        left: 2%;
        width: 96%;
    }
}

@media (max-width: 660px) {
    #title-cap {
        left: 10%;
        width: 80%;
    }
    #title {width: 80%;}
    #prod-list {width: 98%;}
    .prod-box {width: 50%;}
    .prodprice {font-size: .8em;}
    .prodname {font-size: .8em;}
}

@media (max-width: 580px) {
    .prod-info-scale {padding-bottom: 55%;}
    .prodname span {font-size: .8em;}
}
