.post-apply-products .elementor-posts-container {
    display: flex!important;
    flex-wrap: nowrap!important;
    overflow-x: auto!important;
    scroll-snap-type: inline proximity!important;
    justify-content: flex-start!important;
    -webkit-overflow-scrolling: touch!important;
    scrollbar-width: none!important;
    scroll-behavior: smooth!important;
}
.post-apply-products .elementor-posts-container article > div, .post-apply-products .elementor-posts-container article > div > div{
    height: 100%!important;
}
.post-apply-products .elementor-posts-container::-webkit-scrollbar {
    display: none!important;
}

.post-apply-products .elementor-posts-container article {
    width: calc(25% - 15px);
    scroll-snap-align: start;
    flex-shrink: 0!important;
}
.woocommerce div.product p.price del, .woocommerce div.product span.price del{
    opacity: 1 !important;
}
@media (max-width: 1024px) {
    .post-apply-products .elementor-posts-container article {
        width: calc((100% - 60px)/4.6);
    }
}
@media (max-width: 767px) {
    .post-apply-products .elementor-posts-container article {
        width: calc((100% - 30px)/2.3);
    }
}
.san-pham-item .product-type-simple{
    max-height: 460px !important;
}
.san-pham-item {
    position: relative;
}
.nuta-sale-tags .discount::after{
    content: "OFF";
    display: inline;
}
.nuta-sale-tags .discount{
    padding: 12px 12px 8px;
    background-color: #D81C1C;
    border: 1px solid #FFFFFF;
    border-radius: 10px;
    font-size: 14px;
    font-family: "Vazirmatn", Sans-serif;
    font-weight: 600;
    line-height: 16px;
    width: 100%;
    gap: 4px;
}
.anh-san-pham a {
    width: 100%;
}
.anh-san-pham img{
    aspect-ratio: 1.08;
    object-fit: cover;
}
.heading-limit-lines .elementor-heading-title {
    overflow: hidden;
    display: -webkit-box;
   -webkit-line-clamp: 1; 
   -webkit-box-orient: vertical;
}
.rating-product .e-rating-wrapper::after{
    content: "4.5";
    font-size: 17px;
    font-weight: 400;
    font-family: "Inter", Sans-serif;
    line-height: 1em;
    margin-left: 8px;
}
@media(max-width: 1024px){
    .rating-product .e-rating-wrapper::after{
        content: "4.5 ⭐";
        margin-left: 0;
    }
    .rating-product.elementor-widget-rating .e-rating .e-icon{
        display: none;
    }
}
@media(max-width: 767px){
    .rating-product .e-rating-wrapper::after{
        font-size: 13px;
    }
}
.gia-san-pham p.price{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: start;
    gap: 6px;
    margin: 0;
}
.gia-san-pham p.price > span > bdi{
    font-family: "Vazirmatn", Sans-serif;
    font-size: 22px;
    line-height: 34px;
    color: #20140A;
    font-weight: 600;
}
@media(max-width: 1024px){
    .gia-san-pham p.price{
        gap: 0;
    }
    .gia-san-pham p.price > span > bdi{
    font-family: "Vazirmatn", Sans-serif;
    font-size: 22px;
    line-height: 34px;
    color: #20140A;
    font-weight: 600;
    }
    .gia-san-pham p.price > span > bdi{
    font-size: 16px;
    position: relative;
    bottom: -4px;
    }
    .gia-san-pham p.price{
        flex-direction: column;
        align-items: start;
        gap: 6px;
    }
    .container-them-gio {
        position: absolute !important;
        bottom: 0;
        right: 0;
    }
}
.custom-add-cart .elementor-button-icon{
    justify-content: center;
    background-color: white;
    width: 32px !important;
    height: 32px;
    position: absolute;
    border-radius: 5px;
    border: 1px solid #000;
    left: 0;
    top: 0;
    transition: transform 1s ease-in-out;
}
.custom-add-cart .elementor-button-icon svg{
    font-size: 24px;
}
.custom-add-cart .added_to_cart.wc-forward{
    display: none;
}
.custom-add-cart .add_to_cart_button.loading .elementor-button-text{
    visibility: hidden;
}
.custom-add-cart .add_to_cart_button .elementor-button-text{
    transition: transform 1s ease-in-out;
}
.custom-add-cart .add_to_cart_button.loading .elementor-button-text::after{
    content: "";
    display: inline;
    background: url('https://blinds.vn/wp-content/uploads/2025/08/yt_loading.gif') no-repeat;
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    visibility: visible;
}
.custom-add-cart .add_to_cart_button.added::before{
    content: "Xem giỏ";
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-70%);
    z-index: 0;
}
.custom-add-cart .add_to_cart_button.added{
    display: flex;
    padding-left: 24px;
}
/*.custom-add-cart .add_to_cart_button.added .elementor-button-icon {*/
/*    transform: translateX(316%);*/
/*}*/
.custom-add-cart .add_to_cart_button.added .elementor-button-icon::after{
        content: "";
    display: inline-block;
    width: 130px;
    height: 100%;
    background: black;
    position: absolute;
    right: -2px;
    transform: translateX(100%);
}
.custom-add-cart .add_to_cart_button.added .elementor-button-text{
    white-space: nowrap;
    /*transform: translateX(140%);*/
}
@keyframes slideAndHide {
  0% { transform: translateX(0%); opacity: 1; }
  100% { transform: translateX(140%); opacity: 0; visibility: hidden; }
}

.custom-add-cart .add_to_cart_button.added .elementor-button-text {
  animation: slideAndHide 1s ease-out forwards;
}

.custom-add-cart{
    overflow: hidden;
}
@media(max-width: 1024px){
    .custom-add-cart.elementor-widget-wc-add-to-cart{
        width: 32px !important;
        height: 32px;
        border-radius: 5px;
    }
    .custom-add-cart .add_to_cart_button.loading .elementor-button-icon{
            visibility: hidden;
        }
    .custom-add-cart .add_to_cart_button.added .elementor-button-icon svg{
        font-size: 0;
    }
    .custom-add-cart .add_to_cart_button.added .elementor-button-icon::before{
        content: '\f00c';
        font-family: "Font Awesome 5 Free";
        font-size: 18px;
        font-weight: 700;
        color: var(--e-global-color-secondary);
    }
}
@media (max-width: 1024px) and (min-width: 881px) {
.custom-add-cart .elementor-button-content-wrapper{
    padding-left: 20%;
}
}
@media(max-width: 880px){
    .custom-add-cart .add_to_cart_button.added{
        justify-content: center;
        align-items: center;
    }
    .custom-add-cart .add_to_cart_button.added .elementor-button-text{
    transform: translateX(200%);
    }
    .custom-add-cart .add_to_cart_button.added::before{
    transform: translateX(-50%)!important;
    }
}