

#products{
    position: relative;
    overflow: hidden;
}


#products .products-list{
    margin-top: 70px;
    position: relative;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
}

.product-item{
    padding: 15px !important;
    background-color: #fff !important;
    position: relative;
    box-sizing: border-box;
    align-items: center;
    border: 5px solid #fff;
    width: 19%;
    border-radius: 8px;
    margin: 10px 8px;
    box-shadow: 0 3px 9px 2px rgb(0 0 0 / 12%);
}

.product-item .product-body{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



.recommend-product{
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border: 5px solid #30BD51;
}

.recommend-head{
    position: absolute;
    top: 0;
    transform: translateY(-100%);
    left: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% + 10px);
    padding: 16px 0;
    background-color: #30BD51;   
    color: #fff;
    font-size: 18px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: bold;
}



.product-item .product-name{
    font-size: 24px;
    color: #333333;
    font-weight: bold;
    text-align: center;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display:-webkit-box;
    -webkit-line-clamp:3; 
    -webkit-box-orient:vertical;
    width: 100%;
    word-break: break-word;
}

#products .products-list  .active{
    border: 5px solid #00AAEB;
    background-image: none !important;
}

.active .recommend-head{
    box-sizing: border-box;
    border-bottom: none;
    background-color: #00AAEB;
}

.product-image{
    margin-top: 35px;
}

.product-price{
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: nowrap;
    text-align: center;
    align-items: center;
    margin-top: 30px;
}

.product-price .product-original-price{
    color: #898c8c;
    font-size: 16px;
    position: relative;
}

.product-price .product-original-price::before{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    height: 1px;
    width: 110%;
    background-color: #898c8c;
    transform: translateY(-50%) translateX(-50%);
}

.product-price .product-sale-price{
    color: #00AAEB;
    font-size: 30px;
    font-weight: bold;
}

.product-info{
    margin-top: 15px;
    margin-bottom: 10px;
}

.product-info-item{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #1A1A1A;
}

.product-info-item .checked{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00AAEB;
    flex-shrink: 0;
}

.goods-detail{
    position: absolute;
    left: 232px;
    top: 0;
    z-index: 3;
    display: none;
}

.product-info-item .info-item-text{
    margin-left: 5px;
    white-space: nowrap;
}

.checkout-list{
    flex-wrap: nowrap !important;
}

.pay-type{
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    width: 318px;
}

.iframe-view_stripe{
    width: 48% !important;
    margin-right: 0 !important;
}

.secure-checkout{
    max-width: 620px;
    /* margin: 60px auto 22px; */
    margin: 60px auto 32px;

    border-radius: 5px 5px 5px 5px;
    border: 0.5px solid #979797;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0 13px;
}

.secure-checkout-title{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 191px;
    margin: -27px 0 0;
    background-color: #f4f4f4;
    min-height: 50px;
}

.secure-checkout-title-icon{
    color: #000;
    max-width: 18px;
}

.secure-checkout-title-text{
    margin: 0 0 0 5px;
    font-size: 20px;
    line-height: 24px;
}

.secure-checkout-img{
    color: #000;
    display: block;
    margin: 0 auto;
    width: 575px;
    height: 50px;
}

/* .paypal-btn{
    width: 48% !important;
} */

@media (max-width:1199px) {
    .main{
        max-width: 100%;
        padding: 0 15px;
    }
    .goods-detail{
        position: static;
        margin-left: 0 !important;
        width: 100%;
    }
    #products .products-list{
        flex-wrap: wrap !important;
        width: 100%;
    }

    .product-item{
        width: 100%;
        margin-top: 15px;
        padding: 41px 25px 26px 25px !important;
    }

    .product-item:last-child{
        /* margin-top: 74px; */
    }

    .product-image{
        position: absolute;
        top: 50%;
        right: 25px;
        transform: translateY(-50%);
        margin-top: 0;
        max-height: 150px;
        max-width: 40%;
        object-fit: contain;
        flex-shrink: 0;
    }

    .product-item .product-name{
        text-align: left !important;
        max-width: 50%;
    }

    .product-price{
        align-items: flex-start;
    }

    .product-info{
        display: none;
    }
    .purchase-tips{
        margin-top: 13px;
        margin-bottom: 13px;
    }
    .checkout{
        margin-left: 0 !important;
    }
}

@media (min-width:768px) {
    .certification-comments{
        display: block !important;
    }

    .certification-comment-item{
        width: auto;
    }
}

@media (max-width:767px){
    .product-item .product-name{
        font-size: 16px;
    }
    
    .certification-comments{
        overflow-x: scroll;
    }

    .product-price .product-original-price{
        font-size: 12px;
    }

    .product-price .product-sale-price{
        font-size: 20px;
    }
    .certification{
        padding-top: 25px;
        padding-bottom: 25px;
    }
    .goods-left{
        max-width: 50%;
    }

    .simple-goods{
        flex-wrap:  nowrap !important;
    }
    .goods-desc{
        flex-wrap:  nowrap;
        align-items: flex-start !important;
    }
    .product-image{
        max-height: 100px;
    }
}
/* fix template 2022/12/2 whh */

.certification-comment-item {
    height: 635px;
    border-radius: 4px;
    overflow: hidden;
    /* margin: 20px 15px; */
    box-shadow: 0px 3px 10px 1px rgba(0, 0, 0, 0.1);
  }
  .certification-comment-item > img {
    height: 300px;
    object-fit: cover;
  }
  .certification-comment-item:nth-child(1){
    margin-top: 0;
  }
  .comments-item-content {
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 8;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  @media (min-width: 1280px) and (max-width: 1400px) {
    .products-list, .secure {
      padding: 0 45px;
    }
    .product-item .product-name {
        font-size: 20px;
    }
    .product-info-item .info-item-text {
        font-size: 17px;
    }
    .recommend-head {
        font-size: 16px;
    }
  }
  .addTitle {
    margin-top: 80px;
  }
 
  @media (max-width: 767px) {
    .certification-comment-item:nth-child(1){
        margin-top: 20px;
    }
    .addTitle {
        margin-top: 25px;
      }
  }
