/*!
 * Home.css
 * Version - 1.2
 * Website: Elmich
 * Author: CongThuong_zozo
 * Copyright (c) 2021 bicweb.vn
 */

.bic_story__items ._item {
    flex: 0 0 25%;
    padding: 10px;
    border-radius: 10px;
    transition: 0.4s;
    text-align: center;
}

.bic_story__items ._item a {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.bic_story__items ._item:hover {
    box-shadow: 0 0 10px #b9b9b9;
}

.bic_box__title .sub_text {
    text-align: center;
}

.story_title {
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
    min-height: 3.2rem;
}

.bic_p__title .bic_text {
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.bic_p__image {
    margin-bottom: 1rem;
    overflow: hidden;
}

/*
.bic_p__image img {
     transition: 0.4s;
    height: calc(258 / 375 * (var(--content-size) / 4) - 30px); 
}

.bic_p__image:hover img {
    transform: scale(1.05);
}
*/

.bic_product__slide {
    position: relative;
}

.bic_product__slide .owl-nav {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
}

.bic_product__slide .owl-prev,
.bic_product__slide .owl-next {
    width: 2.5rem;
    height: 5.125rem;
    background-image: url("../images/arrow_left.png");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    cursor: pointer;
}

.bic_product__slide .owl-next {
    right: -5rem;
    transform: rotateZ(180deg);
}

.bic_product__slide .owl-prev {
    left: -5rem;
}

.bic_cat__product {
    justify-content: space-between;
    margin-top: 2rem;
}

.bct-prodPrice ins {
    color: #ed2024;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
}

.th_saled {
    background-color: #ffbda6;
    border-radius: 16px;
    background-repeat: no-repeat;
    background-size: 100%;
    position: relative;
    max-width: 83%;
    margin: auto;
    margin-top: 10px;
    overflow: hidden;
    display: none;
}

.active .th_saled {
    display: block;
}

.th_saled span {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.th_saled .bg::before {
    position: absolute;
    width: 25px;
    height: 25px;
    content: "";
    background-size: contain;
    background-image: url("../images/fire.png");
    bottom: 0;
    background-repeat: no-repeat;
    background-position: center;
    left: 3px;
}

.bct-prodPrice {
    margin-top: 5px;
}

.bic_cat__product ._item {
    text-align: center;
    border-radius: 5px;
    transition: 0.4s;
    overflow: hidden;
    position: relative;
}

.bic_cat__product ._item .c-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.bic_cat__product ._item .c-img img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.bic_p__item .bic_title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
    -webkit-box-orient: vertical;
    min-height: 3rem;
}

.th_sale {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background-image: url("../icon/sale.png");
    background-size: contain;
    background-repeat: no-repeat;
    color: #fff;
    font-size: 12px;
    height: 3.5rem;
    width: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    padding-right: 5px;
    padding-top: 10px;
    text-shadow: 2px 2px 5px #686464;
    top: 10px;
}

.th_sale>span {
    line-height: 1;
}

._item.bic_p__item img {
    object-fit: contain;
    height: 100%;
    max-height: 300px;
}

.bic_cat__product ._item:hover .inner {
    box-shadow: 0 0 10px #e6e6e6;
}

.bic_cat__product ._item .inner {
    padding: 10px 5px;
    height: 100%;
}

.bic_story__items {
    flex-wrap: wrap;
}

.bic_story__items.whychoose ._item {
    flex: 0 0 20%;
}

.bic_thucdon__wrap .p_inner {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.bic_thucdon__wrap .p_inner .post_content {
    position: absolute;
    width: calc(100% - 20px);
    left: 10px;
    bottom: 10px;
    padding: 1rem;
    outline: 1px solid #fff;
    outline-offset: -8px;
    background-color: #ed2024c9;
    color: #fff;
    font-size: 1.125rem;
    transition: 0.4s;
    opacity: 0;
    transform: translateY(2rem);
    border-radius: 10px;
}

.bic_thucdon__wrap .p_inner:hover .post_content {
    transform: none;
    opacity: 1;
}

.bic_thucdon__wrap ._item {
    margin-bottom: 2rem;
}

.bic_thucdon__wrap .p_inner img {
    width: 100%;
    object-fit: cover;
    height: calc(300 / 450 * (var(--content-size) / 3));
}

.chinhsach ._item img {
    height: 2.5rem;
    margin-bottom: 10px;
}

.chinhsach_title {
    font-size: 1.5rem;
    color: #eb2627;
    text-transform: uppercase;
    font-weight: 600;
}

.chinhsach_desc {
    font-size: 1.5rem;
    color: #2d2d2d;
    font-weight: 500;
}

.owl1Slider ._item {
    width: 50vw;
    max-height: 32rem;
    transform: scaleY(0.8);
    overflow: hidden;
    border-radius: 1rem;
    transition: 0.4s;
}

.owl1Slider ._item img {
    max-height: 40rem;
    object-fit: cover;
    border-radius: 1rem;
    transition: 0.4s;
    object-position: center;
    height: 100%;
}

.owl1Slider .center ._item {
    transform: none;
}

.owl1Slider ._item:hover img {
    transform: scale(1.05);
}

.strory_product__items .owl-nav,
.bct-banner .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
}

.strory_product__items .owl-prev,
.strory_product__items .owl-next,
.bct-banner .owl-prev,
.bct-banner .owl-next {
    width: 3rem;
    height: 3rem;
    border-radius: 100%;
    background: 50% rgba(101, 101, 108, 0.54);
    position: absolute;
    top: calc(50% - 30px);
    z-index: 1;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    outline: 0;
    border: 1px solid hsla(0, 0%, 100%, 0);
    -webkit-transition: border-color 0.1s ease-out;
    text-align: center;
    line-height: 6pc;
    cursor: pointer;
    transition: 0.4s;
    background-image: url("../icon/arr_left_small.png");
    background-repeat: no-repeat;
    background-size: 15px;
    cursor: pointer;
    top: 50%;
}

.strory_product__items .owl-prev,
.bct-banner .owl-prev {
    left: 25%;
    transform: translateX(-50%) translateY(-50%);
}

.strory_product__items .owl-next,
.bct-banner .owl-next {
    right: 25%;
    transform: translateX(50%) translateY(-50%) rotateZ(180deg);
}

.bct-banner .owl-prev {
    left: 3rem;
}

.bct-banner .owl-next {
    right: 3rem;
}

@media only screen and (min-width: 768px) {
    .owl-carousel .owl-stage {
        display: flex;
        align-items: center;
    }
}

.bic_story__items ._item img {
    max-width: 8rem;
    object-fit: contain;
}

@media screen and (max-width: 1600px) and (min-width: 1440px) {
    .chinhsach_desc {
        font-size: 1.125rem;
    }
    .chinhsach_title {
        font-size: 1.254rem;
    }
    .bic_cat__title {
        font-size: 2.25rem;
    }
}

@media screen and (max-width: 1440px) and (min-width: 1200px) {
    .owl1Slider ._item img {
        height: 28rem;
    }
    .bic_product__slide .owl-prev {
        left: -3.5rem;
    }
    .bic_product__slide .owl-next {
        right: -3.5rem;
    }
    .bic_story__items.whychoose ._item img {
        max-width: 7rem;
    }
    .chinhsach_desc {
        font-size: 1.25rem;
    }
    .bic_story__items ._item img {
        max-width: 7rem;
    }
}

@media screen and (max-width: 767px) {
    .th_saled::after {
        width: 30px;
        height: 30px;
        left: 0;
    }
    .bic_thucdon__wrap .p_inner .post_content {
        transform: none;
        opacity: 1;
    }
    .owl1Slider ._item img {
        height: calc(300 / 450 * (var(--content-size) / 1));
    }
    .bic_thucdon__wrap .p_inner img {
        height: calc(300 / 450 * (var(--content-size) / 1));
    }
    .bic_story__items ._item {
        flex: 0 0 50%;
        margin-bottom: 1rem;
        justify-content: start;
    }
    .bic_story__items.whychoose ._item img {
        max-width: 7rem;
    }
    .owl1Slider ._item {
        width: 100%;
        transform: none;
    }
    .story_title {
        font-size: 1rem;
    }
    .bic_p__title .bic_text {
        font-size: 1rem;
        font-weight: 400;
    }
    .bic_story__items.whychoose ._item {
        flex: 0 0 50%;
    }
    .bic_story__items ._item img {
        max-width: 7rem;
    }
    .bic_story__items.whychoose ._item:last-child {
        flex: 0 0 100%;
    }
    .chinhsach_title {
        font-size: 1rem;
    }
    .chinhsach_desc {
        font-size: 1rem;
        text-align: center;
    }
    .bic_p__image img {
        /* height: calc(258 / 375 * (var(--content-size) / 2) - 30px); */
    }
}

@media screen and (max-width: 375px) {
    .bic_story__items ._item {
        padding: 10px 0;
    }
    .chinhsach_title {
        font-size: 14px;
    }
    .chinhsach_desc {
        font-size: 13px;
    }
}

@media screen and (max-width: 767px) {
    .bic_module.product .bic_p__image {
        height: auto !important;
    }
}

.bic_module.cat_product .bic_title {
    margin-top: 10px;
}

.bic_module .sub_text {
    text-align: center;
    width: 800px;
    max-width: 100%;
    margin: 0 auto 20px;
}