﻿/*********产品、订单******/
.p-list {
    display: flex;
    width: 100%;
    flex-wrap: wrap; 
}
.p-list .item {
    display: flex;
    flex-direction: column;
    width:25%;
    padding:10px;
}
.p-list .item .img-wrap {
    width: 100%;
    overflow: hidden;/*图片放大效果后多出的隐藏*/
    background: #fafafa;
}
.p-list .item .img-wrap img {
    width: 100%;
    transition: opacity .35s,transform .35s;
}
.p-list .item .img-wrap img:hover {
    opacity: .7;
    transform: scale3d(1.05,1.05,1); 
}

.p-list .item .info {
    display: flex;
    flex-direction: column;
    background: #fafafa;
    padding: 10px;
}
.p-list .item .info .name {
    font-size: 14px; 
    width: 100%;
    height: 25px;
    overflow: hidden; 
    text-align: center;
}
.p-list .item .info .price {
    font-size: 14px;
    font-weight: bold;
    color: var(--color-red); 
    text-align: center;
}
/*****产品详细页*****/
.p-detail {
    display: flex;
    background-color: #fff;
    border: 1px solid #ddd;
    padding:15px;
}
.p-detail .left { 
    width:420px;/*固定420，天猫大小*/
    position:relative;
}
.p-detail .left img{
    width:100%;
}
.p-detail .left .tag {
    position: absolute;
    top: 5px;
    right: 5px;  
    display: flex; 
    align-items:center;
    justify-content:center;
    width: 50px;
    height: 18px;
    color: #ffffff;
    font-weight: 700;
    background-color: #F30; 
    border-radius: 2px;
}
.p-detail .right {
    flex: 1;
    display: flex;
    flex-direction:column;
    padding-left:30px;
}
.p-detail .right .name { 
    font-weight:bold;
    color: #333;
    font-size: 22px;
    padding:10px 0;
}
.p-detail .right .txt {
    color: var(--color-grey);
    font-size: 14px;
    padding: 5px 0;
}
.p-detail .right .star { 
    width:110px;
    margin-top:5px;
}
.p-detail .right .price {
    font-size: 22px;
    font-weight: bold;
    color: var(--color-red);
    padding: 10px 0;
}
.p-detail .right .att-wrap {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 14px;
}
.p-detail .right .att-wrap:before {
    width:5px;
    height:90%;
   padding-top:10%; 
    color: var(--color-primary);
    content:" ";
}
.p-detail .right .att-wrap .att {
  padding: 5px 0;
} 

.p-detail .buy-box {
    display: flex;
    align-items: center;
    padding: 20px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}
.p-detail .buy-box .btn {
    background-color: var(--color-primary-light); /*浅主色*/
    border-color: var(--color-primary-light);
    font-size: 14px;
}
.p-detail .tips { 
    font-size: 14px;
    padding:10px 0;
}
.p-content-box {
    background-color: #fff; 
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}
.p-content-box .title {
    color: #fff;
    background-color: var(--color-primary-light); /*浅主色*/
    width: 80px;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}
.p-content-box .content {
    border: 1px solid #ddd;
    padding: 30px;
    background-color: #fff;
}
.p-content-box .content img {
    max-width: 800px;
}
/*产品规格：产品详细页、礼包领取、复消，公用*/
.sp-group {
    padding: 5px 0;
    display: flex;
    align-items: center;
    font-size: 12px;
}

.sp-group .sp-name {
    flex-shrink: 0; /*右边内容多时别挤我*/
}

.sp-group ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.sp-group li {
    margin: 2px 12px 2px 0;
    font-size: 12px;
    padding: 2px 7px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
}

.sp-group li:hover,
.sp-group li.selected {
    border: 1px solid var(--color-red);
    color: var(--color-red);
} 
.sp-group li.noStock{
    cursor: not-allowed;
    border: 1px dashed #ccc !important;
    color: #999999;
}
/*---购物车弹出层---*/
.cart-dialog {
    z-index: 100;
    width: 400px;   
    background-color: #fff;
    border: 1px solid #ddd;
    position: fixed;
    left: 50%;
    margin-left: -200px;
    top: 250px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0; 
}
.cart-dialog .success {
    font-size: 16px;
    font-weight: bold;
    display:flex;
    align-items:center;
}
.cart-dialog .success:before {
    font-size: 30px;
    color: #47adf8;
    margin-right: 5px;
}
.cart-dialog .close {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-size: 22px;
}
/*地址选择：购物车、复消、礼包领取，公用*/
.address-item {
    margin-bottom: 5px;
    float: left;
    width: 100%;
}
.address-item span {
    position: relative;
    border: 1px solid #ddd;
    height: 30px;
    line-height: 30px;
    padding: 5px 10px;
    text-align: left;
    cursor: pointer;
    background-color: #fff;
}
.address-item.on span {
    border: 1px solid #ff3300;
}
.address-item.on em {
    /*受父节点的on控制，这里直接再写一次样式，js中就无需对em进行额外处理了*/
    border: 1px solid #0081F6;
    background: var(--color-primary) url(/images/ture.png) no-repeat center;
    background-size: 10px 10px;
}
/*订单*/
.orderMsg {
    font-size: 12px;
    line-height: 25px;
    border-bottom: 1px solid var(--color-primary-light);
    padding-bottom: 15px; 
}

.orderMsg .t {
    font-weight: bold;
    font-size: 14px;
}
/*end 订单*/
