/********************** horizontal_slider **********************/
.list_fsales_scrollingng,
.sub_fsales_banner_scrolling,
.tag_fsales_scrolling {
    position: relative;
}
.list_fsales_scrolling .items,
.sub_fsales_banner_scrolling .items,
.tag_fsales_scrolling .items {
    overflow-x: scroll;
    white-space: nowrap;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding: 15px 0;
}

.tag_fsales_scrolling .items {
    padding-top: 15px;
    padding-bottom: 0;
    margin-top: -15px;
}
.tag_fsales_scrolling .items .item_scroll a {
    border-bottom: 0 !important;
    height: 100%;
    color: #515151;
}

.list_fsales_scrolling .items::-webkit-scrollbar,
.sub_fsales_banner_scrolling .items::-webkit-scrollbar,
.tag_fsales_scrolling .items::-webkit-scrollbar {
    display: none; 
}
.list_fsales_scrolling .items .item_scroll,
.sub_fsales_banner_scrolling .items .item_scroll,
.tag_fsales_scrolling .items .item_scroll {
    display: inline-block; /* notice the comments between inline-block items */
    margin-right: 2px;
    text-align: center;
}
.list_fsales_scrolling .items .item_scroll:last-of-type,
.sub_fsales_banner_scrolling .items .item_scroll:last-of-type,
.tag_fsales_scrolling .items .item_scroll:last-of-type {
    margin-right: 0;
}

.list_fsales_scrolling .items .item_scroll .woocommerce-product-gallery__image,
.sub_fsales_banner_scrolling .items .item_scroll .woocommerce-product-gallery__image,
.tag_fsales_scrolling .items .item_scroll .woocommerce-product-gallery__image {
    display: block;
}

.sub_fsales_banner_scrolling .items .item_scroll {
    width: 230px;
    margin-right: 14px;
}
.sub_fsales_banner_scrolling .items .item_scroll a {
    display: block;
    border-bottom: 0 !important;
}

.sub_fsales_banner_scrolling .items .item_scroll a img {
    width: 100%;
    height: auto;
}

.list_fsales_scrolling .items .item_scroll img,
.sub_fsales_banner_scrolling .items .item_scroll img,
.tag_fsales_scrolling .items .item_scroll img {
    height: 100px;    
}


/**************** icons ****************/
.icon-flash-sales {
    background: url("../images/icons/icon-flash-sales.png") no-repeat;
    background-size: contain;
    width: 36px;
    height: 36px;
    display: inline-block;
}

/**************** countdown ****************/
.countdown .countdown_title {font-size: 16px;margin: 0;line-height: 43px;}
.countdown .main_countdown {display: flex;/* line-height: 25px; */margin: 9px 0 4px 10px;}
.countdown .countdown_number {
    width: 25px;
    height: 25px;
    line-height: 25px;
    display: inline-block;
    background: #0d0e14;
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}
.countdown .countdown_box {
    margin: 0 4px;
    font-size: 16px;
}

/**************** flash sale ****************/
.wrap_list_fsales {
    padding-top: 10px;
    overflow: hidden;
}

.wrap_fsales .main_fsales_banner {
    padding: 0;
}
.wrap_fsales .main_fsales_banner>.container {
    padding-left: 0;
    padding-right: 0;
}
.wrap_fsales .main_fsales_banner img {
    width:100%;
}
.wrap_fsales .fsales_cnt #loadmore-loading {
    width: calc(100% + 40px);
    margin-left: -20px;
}
.wrap_fsales .fsales_cnt .wrap_list_fsales,
.wrap_fsales .fsales_cnt #fsales_products {
    padding-left: 15px;
    padding-right: 15px;    
}

.wrap_fsales .fsales_cnt #fsales_products {
    padding-top: 15px;
}
.wrap_list_fsales .countdown {
    display: flex;
    min-width: 307px;
    border-right: 1px solid #f2f2f2;
    margin-bottom: 14px;
}
.wrap_list_fsales .countdown .countdown_title i {
    width: 25px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
}
.wrap_list_fsales .list_fsales_dates {
    width: 100%;
}
.wrap_list_fsales .list_fsales_dates .items {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    text-align: center;
    padding-bottom: 14px;
}
.wrap_list_fsales .list_fsales_dates .items .item_scroll {
    min-width: 137px;
    border-right: 1px solid #f2f2f2;
    font-size: 16px;
    position: relative;
    cursor: pointer;
}
.wrap_list_fsales .list_fsales_dates .items .item_scroll:last-child {
    border-right: 0;
}
.wrap_list_fsales .list_fsales_dates .items .item_scroll:after {
    content: "";
    width: 100%;
    height: 4px;
    position: absolute;
    bottom: -14px;
    left: 0;
    background: transparent;
}
.wrap_list_fsales .list_fsales_dates .items .item_scroll.active:after {
    background: #55acee;
}
.wrap_list_fsales .list_fsales_dates .items .item_scroll.active a {
    color: #55acee;
    font-weight: 500;
}
.wrap_list_fsales .list_fsales_dates .items .item_scroll a {
    color: #515151;
}
.wrap_list_fsales .list_fsales_dates .items .item_scroll a:hover {
    border-bottom: 0;
}
.wrap_list_fsales .list_fsales_dates .items .item_scroll .event_date,
.wrap_list_fsales .list_fsales_dates .items .item_scroll .event_status {
    margin: 0;
}
    
.wrap_list_fsales .list_fsales_dates .jc-left,
.wrap_list_fsales .list_fsales_dates .jc-right {
    display: none !important;
}
.sub_fsales_banner_section {
    background: #55acee;
}
.wrap_sub_fsales_banner {
    background: #55acee;
    padding: 18px 10px 10px 10px !important;
}

.tag_fsales_section {
    padding-bottom: 15px;
    padding-top: 30px;
}
.tag_fsales_section .tag_fsales_title {
    padding-bottom: 10px;
}
.wrap_tag_fsales {
    margin: 0;
    position: relative;
}
.wrap_tag_fsales .items .tag_fsales {
    width: 177px;
    height: 55px;
    line-height: 55px;
    border: 1px solid #55acee;
    font-weight: 500;
    font-size: 15px;
    margin-right: 15px !important;
    background: #fff;
    border-radius:  5px;
    cursor: pointer;
    position: relative;
}
.wrap_tag_fsales .items .tag_fsales.active {
    background: #55acee;
}
.wrap_tag_fsales .items .tag_fsales.active a {
    color: #fff;
}

.wrap_tag_fsales .items .tag_fsales .remove_filter {
    display: none;
    position: absolute;
    top: -14px;
    right: -14px;
    line-height: normal;
    width: 28px;
    height: 28px;
    color: #757575;
    box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 4px 8px 0 rgba(0,0,0,.2);
    background: #fff;
    border-radius: 50%;
    border: 0;
    padding: 0;
}
.wrap_tag_fsales .items .tag_fsales.active .remove_filter {
    display: inline-block;
}
.wrap_tag_fsales .jc-left,
.wrap_tag_fsales .jc-right {
    display: block !important;
    line-height: 36px;
    text-align: center;
    margin-top: 24px;
}

/* product slider */
.wrap_product_image_fs,
#fsales_products .wrap_product_image_fs {
    position: relative;
    display: block;
}

.wrap_product_image_fs .fs_sticker,
#fsales_products .wrap_product_image_fs .fs_sticker {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #f14f66;
    height: 29px;
    line-height: 29px;
    border-radius: 6px;
    text-align: center;
    padding: 0 7.5px;
    z-index: 10;
    color: #fff;
}
#fsales_products .wrap_product_image_fs .woocommerce-LoopProduct-link {
    display: block;
}

.woocommerce .woocommerce-LoopProduct-link .wrap_product_image_fs .fs_sticker img,
.product-image .wrap_product_image_fs .fs_sticker img,
#fsales_products .wrap_product_image_fs .fs_sticker img {
    margin: 0;
    width: 100%;
}

#fsales_products .price del {
    display: block;
}

#fsales_products .product:hover {
    background: #f2f2f2;
}
#fsales_products .bottom_actions {
    text-align: center;
}
#fsales_products .bottom_actions.out_of_stock img {
    max-height: 88.4px;
    display: block;
    margin: auto;
}
#fsales_products .bottom_actions .button_dat_truoc {
    background: #55acee;
    color: #fff;
    font-weight: 500;
    border-radius: 5px;
    border: 0;
    text-transform: unset;
    padding: 12px 20px;
    display: inline-block;
    font-size: 16px;
}
#fsales_products .bottom_actions .sold {
    background: #f291ab;
    color: #fff;
    font-size: 11px;
    margin: 15px;
    height: 12px;
    line-height: 13px;
    position: relative;
}
#fsales_products .bottom_actions .sold .sold_txt {
    z-index: 1;
    display: block;
    height: 100%;
    position: absolute;
    text-align: center;
    width: 100%;
}
#fsales_products .bottom_actions .sold .sold_bg {
    background: #f04f66;
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
}
#fs_products {
    font-size: 0;
}
#fs_products>li {
    float: none;
    clear: unset;
    margin-right: 0;
    display: inline-block;
}
#fs_products>li:nth-of-type(2n+1) {
    margin-right: 4%;
}
#fs_products>li a:hover {
    border-bottom: 0 !important;
}
#fs_products>li .woocommerce-LoopProduct-link {
    display: block;
}
#fs_products>li .woocommerce-LoopProduct-link img {
    height: 100%;
    margin-bottom: 16px;
}
#fs_products>li .woocommerce-loop-product__title {
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 2; */
    /* -webkit-box-orient: vertical; */
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 5px;
    height: 35px;
    display: block;
    font-size: 16px;
}
#fs_products>li .like_btn button {
    font-size: 16px;
}

.page-id-45346 #main-content.rsrc-container .rsrc-content>article.rsrc-main {
    padding-left: 0;
    padding-right: 0;
}

.wrap_fsales {
    position: relative;
}
.wrap_fsales .fsales_cnt {
    position: relative;
}
.wrap_fsales .fsales_cnt .action-bottom {
    text-align: center;
    padding: 13px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}
.wrap_fsales .fsales_cnt .action-bottom button {
    width: 177px;
    height: 55px;
    line-height: 55px;
    border: 1px solid #55acee;
    font-weight: 500;
    font-size: 15px;
    margin-right: 15px !important;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    text-transform: unset;
}



/* footer */
.page-id-45346 .wpo-footer {
    margin: 0;
    padding-top: 18px;
    background: #f2f2f2;
}

@media (min-width:768px) {
    .wrap_list_fsales {
        display: flex;
    }
    
    .wrap_fsales .fsales_cnt .wrap_list_fsales,
    .wrap_fsales .fsales_cnt #fsales_products {
        padding-left: 0;
        padding-right: 0;    
    }
    .wrap_fsales .fsales_cnt #fsales_products {
        padding-top: 0;
    }
    .wrap_list_fsales .list_fsales_dates {
        width: calc(100% - 307px);
    }
    .wrap_list_fsales .list_fsales_dates .items {
        padding-bottom: 0;
    }
    .wrap_list_fsales .list_fsales_dates .items .item_scroll:after {
        bottom: -5px;
    }
    .wrap_list_fsales .list_fsales_dates .items .item_scroll .event_date,
    .wrap_list_fsales .list_fsales_dates .items .item_scroll .event_status {
        display: inline-block;
        margin: 7px 0 10px;
    }
    .wrap_list_fsales .list_fsales_dates .items .item_scroll {
        min-width: 241px;
    }
    .wrap_sub_fsales_banner {
        display: flex;
        justify-content: space-between;
    }
    .wrap_sub_fsales_banner .sub_fsales_banner {
        float: left;
        width: calc((100% - 90px) /4);
        margin-right: 30px !important;
    }
    .wrap_sub_fsales_banner .sub_fsales_banner:nth-child(4),
    .wrap_sub_fsales_banner .sub_fsales_banner:last-child {
        margin-right: 0 !important;
    }
    .wrap_sub_fsales_banner .sub_fsales_banner img {
        height: auto !important;
    }
    
    .page-id-45346 #main-content.rsrc-container .rsrc-content>article.rsrc-main {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .list_fsales_scrolling .items {
        padding: 5px 0 !important;
    }
    
    .sub_fsales_banner_scrolling .items {
        padding: 38px 15px 10px 15px !important;
        background: #55acee;
        display: flex;
        flex-wrap: wrap;
    }
    
    .wrap_tag_fsales {
        margin: 0 0 35px 0;
    }
    
    .wrap_fsales .main_fsales_banner {
        padding-top: 10px;
    }
    
    .wrap_fsales .main_fsales_banner>.container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .wrap_list_fsales .countdown {
        margin-bottom: 0;
    }
    
    .tag_fsales_section .tag_fsales_title {
        display: none;
    }
    
    .sub_fsales_banner_scrolling .items .item_scroll {
        /* width: 230px; */
        width: calc((100% - 90px) /4);
        margin-right: 2px;
        margin-bottom: 30px;
    }
    .sub_fsales_banner_scrolling .items .item_scroll a img {
        height: 100px;
        width: auto;
    }

    #fsales_products #fs_products {
        font-size: 14px;
    }

    #fsales_products #fs_products .wrap-product-like {
        width: 20%;
        height: 437px;
    }
    
    #fsales_products .product-meta .name a {
        font-size: 15px;
    }
    
    #fsales_products .product-block .image img {
        height: 230px;
    }
    #fsales_products .price del {
        display: inline-block;
    }

    #fsales_products .product-block .image .fs_sticker {
        position: absolute;
        bottom: 0;
        left: 0;
    }
    
    #fsales_products .product-block .image .fs_sticker img {
        height: auto;
    }
    
    
    .main-images .woocommerce-product-gallery .wrap_product_image_fs {
        height: 356px;
        width: 350px;
    }
}
