:root {
    --color-green: #4CAF50;
}

.custom-padding-fancybox .header-product-detail {
    position: absolute;
    display: block;
    top: 5px;
}

.custom-padding-fancybox {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.custom-padding-fancybox .width-content-fancybox {
    width: 100% !important;
    height: 100%;
}

#popup_product_detail .custom-margin {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.custom-padding-fancybox .size-img {
    height: 600px;
    max-height: 450px;
}
.custom-padding-fancybox .image {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.custom-padding-fancybox .img-detail {
    width: 70px !important;
    height: 70px !important;
    cursor: pointer;
}

.custom-padding-fancybox .img-detail img {
    max-width: 100%;
}

.slick-prev,
.slick-next {
    color: #7e7e7e !important;
}
.slick-prev:before,
.slick-next:before {
    color: #7e7e7e !important;
}

.info-product .price-category {
    position: relative;
}
.info-product .detail-product-icons {
    position: absolute;
    top: -5px;
    right: 0;
}
.info-product .variant-product .btn-variant {
    min-width: 70px;
    margin-right: 10px;
    margin-bottom: 10px;
    background: rgba(129, 129, 129, 0.5);
    color: white;
}

.info-product .variant-product .btn-variant:hover {
    background-color: #017ee9;
    color: white;
}

.info-product .variant-product .choosed {
    background-color: #017ee9;
    color: white;
}

.info-product .size-product .btn-size {
    min-width: 70px;
    margin-right: 10px;
    margin-bottom: 10px;
    background: rgba(129, 129, 129, 0.5);
    color: white;
}

.info-product .size-product .btn-size:hover {
    background-color: #017ee9;
    color: white;
}

.info-product .size-product .choosed {
    background-color: #017ee9;
    color: white;
}

.info-product .quantity-product .padding-custom-info-product {
    height: 40px;
}

.info-product .quantity-product button {
    background: unset;
    height: 100%;
    width: 40px;
    text-align: center;
    color: #292a31;
}
.info-product .quantity-product button i {
    -webkit-text-stroke: 0.5px black;
}
.info-product .quantity-product .plus {
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
}
.info-product .quantity-product .minus {
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
}

.info-product .quantity-product input {
    text-align: center;
    height: 100%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.info-product .quantity-product input::-webkit-outer-spin-button,
.info-product .quantity-product input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.info-product .submit-product button {
    background: linear-gradient(96.13deg, #048afd -48.42%, #ff00ff 157.13%);
    background: #4CAF50;
    color: white;
    padding: 0;
}

.info-product .padding-custom-info-product {
    padding-left: 3rem;
}

.product-wrapper .product-price {
    position: relative;
}

.product-wrapper .product-price .a-detail-product {
    position: absolute;
    display: block;
    right: 0;
    top: 5px;
    font-size: 14px;
}

.slick-track .slick-current {
    opacity: 0.5;
}

.div-frame {
    top: 0;
}

.div-frame .fa-cube {
    font-size: 25px;
    color: gray;
}

.div-frame .div-icon-pause {
    height: 50%;
    width: 50%;
    background-color: rgba(100, 98, 98, 0.5);
}

.poi_product_content .product-wrapper .product-description {
    max-height: 150px;
    overflow-y: auto;
}

.box-content .simplebar-horizontal,
.box-content .simplebar-vertical {
    display: none;
}
.product-content .product-description::-webkit-scrollbar {
    width: 2px;
    background-color: #f5f5f5;
}
.product-content .product-description::-webkit-scrollbar-thumb {
    background-color: gray;
    border: 1px solid gray;
    border-radius: 10px;
}

.info-product .description-product::-webkit-scrollbar {
    width: 2px;
    background-color: #f5f5f5;
}
.info-product .description-product::-webkit-scrollbar-thumb {
    background-color: gray;
    border: 1px solid gray;
    border-radius: 10px;
}

.product-love .like-item {
    font-weight: 900;
    color: red;
}

.custom-font-size {
    font-size: 20px;
}

.info-product .warning-background {
    background-color: antiquewhite;
}
/* Media */

@media only screen and (max-width: 480px) {
    .custom-padding-fancybox .size-img {
        height: 250px;
    }

    .info-product .padding-custom-info-product {
        padding-left: 0;
    }

    .link-product a img {
        width: 20px;
    }

    .variant-product .btn-variant {
        min-width: 50px !important;
    }

    .size-product .btn-size {
        min-width: 50px !important;
    }
    .fancybox-slide .default-padding{
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .g_amount_card{
        height: unset !important;
        flex-direction: column;
        margin-top: 5px;
    }

    .g_amount_card .submit-product{
        margin-top: 5px;
    }
}
.quantity-item-cart {
    top: -10px;
    right: 15px;
    height: max-content;
    min-width: 20px;
    max-width: max-content;
    text-align: center;
}

@media only screen and (max-width: 600px) {
    .custom-padding-fancybox .size-img {
        height: 250px;
    }
    .info-product .padding-custom-info-product {
        padding-left: 0;
    }
}

@media only screen and (min-width: 768px) {
    .link-product a img {
        width: 23px;
    }
    .custom-padding-fancybox .size-img {
        height: 450px;
    }
}

@media only screen and (min-width: 1024px) {
    .link-product a img {
        width: 25px;
    }
    .custom-padding-fancybox .size-img {
        height: 450px;
    }
}

@media only screen and (min-width: 1367px) {
    .info-product .description-product {
        max-height: 200px;
        overflow: auto;
    }
}

@media only screen and (min-width: 1368px) {
    .info-product .description-product {
        max-height: 200px;
        overflow: auto;
    }

    .custom-padding-fancybox .size-img {
        height: 600px;
    }
}

.fa-star {
    color: #919EAB;
    cursor: pointer;
}

.fa-star.active {
    color: gold;
}

.popup_rating{
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #00000040;
    display: none;
}

.content_rating{
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: max-content;
    width: 40%;
    background: #ebebeb;
    border-radius: 10px;
}

.close_rating{
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}

.g_show_rating{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    padding: 5px;
    margin-right: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.header_rate{
    padding: 15px;
    background: #8BC34A;
    border-radius: 5px 5px 0 0;
    color: #ffffff;
    max-height: 49px;
}

.rating-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 10%;
}

.rating-icons span {
    position: absolute;
    display: flex;
    font-size: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
}

.two {
    /*background: linear-gradient(to right, #ffd700 70%, #ffffff 0%);*/
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
    transition: 0.5s ease-in-out all;
}

.total_rate{
    display: flex;
    flex-direction: column;
    width: 35%;
    align-items: center;
    height: 100%;
    justify-content: center;
}

#rating_average{
    font-size: 90px;
    font-weight: bold;
}

.footer_rate{
    text-align: center;
    height: 180px;
    padding: 10px;
    border-top: 1px solid #8bc34a;
}

.footer_rate h1{
    margin-top: 5px;
}

.body_rate{
    height: calc(100% - 250px);
    display: flex;
}

.btn_send_rate{
    background: #8BC34A !important;
    text-transform: uppercase;
    color: #ffffff !important;
    margin-top: 15px;
}

.chart_rate {
    width: 65%;
    display: flex;
    justify-content: space-between;
    height: 100%;
    flex-direction: column-reverse
}

.chart_rate .rate-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: 30px;
    padding: 20px 0;
    padding: 10px;
}
.chart_rate .rate-box > * {
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #000;
    width: 40px;
}
.rate-box .value {
    display: flex;
    align-items: center;
}
.chart_rate .value {
    font-size: 30px;
    cursor: pointer;
}
.rate-box .progress-bar {
    border-width: 1px;
    position: relative;
    background-color: #c1c1c1;

    height: 10px;
    border-radius: 100px;
    width: 350px;
}
.rate-box .progress-bar .progress {
    background-color: gold;
    height: 100%;
    border-radius: 100px;
    transition: 300ms ease-in-out;
    position: unset;
}

.description-product{
    height: 100px;
}

.info-product{
    overflow: auto;
    overflow-x: hidden;
    height: 100%;
    margin: 0 !important;
    align-items: center;
}

.price-category p{
    margin: 0 !important;
}

.bootstrap-iso hr{
    margin: 0 !important;
}

.g_amount_card{
    display: flex;
    align-items: center;
    height: 40px;
}

.g_amount_card #quantity{
    padding: 2px;
}

/* version 2*/
#popup_detail_product{
    position: absolute;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: #00000038;
    z-index: 99999;
    display: none;
}
#popup_detail_product .popup_content{
    position: absolute;
    z-index: 99999;
    background: #ffffff;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border-radius: 5px;
}

#popup_detail_product .h_popup{
    height: 40px;
    background: #4CAF50;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px;
    border-radius: 5px 5px 0 0;
    font-size: 20px;
}

#popup_detail_product .b_popup{
    height: calc(100% - 60px);
    display: flex;
    margin: 10px;
    overflow: auto;
    overflow-x: hidden;
}

::-webkit-scrollbar{
    width: 5px;
}

::-webkit-scrollbar-track{
    background: #d9d9d9;
}

::-webkit-scrollbar-thumb{
    background: var(--color-green);
}

#btn_close_detail_product{
    cursor: pointer;
    padding: 5px;
}

.b_popup .tab_1{
    width: 30%;
    padding: 0 10px;
}

.b_popup .tab_2{
    width: 50%;
    padding: 0 10px;
}

.b_popup .tab_3{
    width: 20%;
    padding: 0 10px;
}

.p_name{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
}

.font-weight-bold{
    font-weight: bold;
}

.p_category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.g_amount_product span:first-child{
    border-right: 2px solid #979797;
    padding-right: 10px;
    color: var(--color-green);
    font-weight: bold;
}

.g_amount_product span:last-child{
    padding-left: 10px;
}

.p_price{
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.discount_price{
    color: var(--color-green);
    font-size: 22px;
    font-weight: bold;
    margin-right: 10px;
}

.original_price{
    color: #979797;
}

.h_tab_2{
    border-bottom: 2px solid #e6e6e6;
    padding-bottom: 10px;
}

.b_tab_2{
    padding-top: 10px;
    /*overflow-x: hidden;*/
    /*overflow-y: auto;*/
    /*height: calc(100% - 110px);*/
}

.b_tab_2 div{
    display: flex;
    margin-bottom: 15px;
    line-height: 1.5;
}

.b_tab_2 div .p_title_content{
    min-width: 250px;
    font-weight: bold;
}

.g_direction_address{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.g_direction_address a{
    display: flex;
    align-items: center;
    margin-left: 20px;
    color: var(--color-green);
    min-width: max-content;
}

.p_name_right{
    display: flex;
}

.p_g_cart{
    position: relative;
    margin-left: 15px;
    cursor: pointer;
    display: flex;
}

.p_btn_heart{
    cursor: pointer;
}

.p_g_cart span{
    position: absolute;
    background: var(--color-green);
    padding: 0 5px;
    right: -5px;
    font-size: 12px;
    color: #ffffff;
    border-radius: 10px;
}

.tab_3 .p_cart{
    margin-top: 40px;
}

.tab_3 .p_cart, .tab_3 .p_e_commerce{
    margin-bottom: 15px;
}

.p_certification{
    height: 229px;
}

.p_certification div:last-child{
    text-align: center;
    margin-top: 10px;
    height: 100%;
}

.p_certification img{
    object-fit: cover;
    height: 100%;
}

.p_g_e_commerce{
    display: flex;
    align-items: center;
    margin-top: 15px;
    height: 68px;
}

.p_g_e_commerce a{
    padding: 0 5px;
}

.p_g_number_qr_code{
    display: flex;
    margin-bottom: 20px;
}

.p_g_number_qr_code div.p_g_number{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.p_g_number_qr_code a{
    width: 40%;
}

.p_g_number_qr_code a img{
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.amount-box{
    display: flex;
}

.p_quantity{
    width: 2.5rem;
    border: 0;
    outline: none;
    border-radius: .3rem;
    text-align: center;
    color: #191a3c;
    font-weight: bold;
}
.p_quantity::-webkit-inner-spin-button,
.p_quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.p_quantity {
    -moz-appearance: textfield;
}

.amount-box i{
    background: #cccccc;
    padding: 8px 9px;
    border-radius: 50px;
    cursor: pointer;
}

.p_buy_now{
    border-radius: 10px;
    padding: 10px;
    color: #ffffff;
    background: var(--color-green);
    text-align: center;
    cursor: pointer;
}

.p_buy_now:hover{
    background: #39843c;
}

.p_add_cart{
    border-radius: 10px;
    padding: 10px;
    color: var(--color-green);
    border: 1px solid var(--color-green);
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
}

.p_add_cart:hover{
    background: var(--color-green);
    color: #ffffff;
}

.p-slider-for img{
    object-fit: contain;
}

.p-slider-for img, .p-slider-for iframe, .p-slider-for #model_3d_product{
    width: 100%;
    height: 350px;
}

.p-slider-nav{
    margin-top: 15px;
}

.p-slider-nav .item_slick{
    margin: 0 3px;
}

.p-slider-nav .item_slick img{
    object-fit: cover;
}

.p-slider-nav .slick-prev, .p-slider-nav .slick-next{
    width: 32px;
    height: 32px;
}

.p-slider-nav .slick-prev:before, .p-slider-nav .slick-next:before{
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    padding: 0 12px 5px;
    border-radius: 50px;
    font-weight: bold;
    color: #000000 !important;
    font-size: 25px;
    opacity: 1;
}
.p-slider-nav .slick-prev{
    left: 0;
    z-index: 1;
}

.p-slider-nav .slick-prev:before{
    content: "‹";
}

.p-slider-nav .slick-next{
    right: 0;
    z-index: 1;
}

.p-slider-nav .slick-next:before{
    content: "›";
}

.p_g_rate{
    display: flex;
    align-items: center;
    margin-top: 20px;
    height: 40px;
    justify-content: flex-end;
}

.p_g_rate span{
    text-wrap: nowrap;
    color: var(--color-green);
}

.show-rating-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 40%;
    height: auto;
    float: right;
}

.show-rating-icons span {
    position: absolute;
    display: flex;
    font-size: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
}

.show-rating-icons .two {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
    transition: 0.5s ease-in-out all;
}

.show-rating-icons .one i{
    font-size: 24px;
    color: #000000;
}

.show-rating-icons .two i{
    font-size: 24px;
    color: #000000;
}

#popup_detail_product button.fancybox-close-small{
    position: absolute;
    right: 5%;
    top: 5%;
    z-index: 999999999;
    height: 40px;
    width: 40px;
    margin-right: 5px;
    padding: 0px;
    color: #ffffff;
}

.p_content_description{
    overflow-y: auto;
    overflow-x: hidden;
    height: 150px;
}

.p_content_description *{
    margin: 0;
}

.p_qrcode{
    width: 100px;
}

.btn_add_cart_mb{
    display: none;
}

.f_popup{
    background: #ffffff;
    padding: 0 15px;
}

.amount_mb{
    display: none;
    margin-top: 10px;
}

.direction_mb{
    display: none;
    align-items: center;
    color: var(--color-green);
}

.g_dir_address{
    display: flex;
    justify-content: space-between;
}