/* Best selling products widget */
.elementor .e-con:has(.elementor-widget-mihanjs_best_sale_products) {
    padding: 0;
    gap: 0;
    width: 100%;
    max-width: 100%;
}

.elementor .e-con.e-con-boxed:has(.elementor-widget-mihanjs_best_sale_products) > .e-con-inner {
    width: 100%;
    max-width: 100%;
    padding: 0;
    gap: 0;
}

.elementor-widget-mihanjs_best_sale_products,
.elementor-widget-mihanjs_best_sale_products > .elementor-widget-container {
    width: 100%;
    max-width: 100%;
}

.mihanjs_best-sale-products {
    line-height: normal;
}

.mihanjs_best-sale-products .mihanjs_title-category-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mihanjs_best-sale-products .mihanjs_info-category-head {
    display: flex;
    align-items: center;
    width: 676px;
}

.mihanjs_best-sale-products .mihanjs_title-subtitle-category {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 250px;
}

.mihanjs_best-sale-products .mihanjs_main-title-category {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-500);
    margin: 0.83em 0 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mihanjs_best-sale-products .mihanjs_main-title-category .mihanjs_dash {
    border: 2px solid var(--primary-500);
    width: 20px;
    border-radius: 50px;
}

.mihanjs_best-sale-products .mihanjs_english-title {
    font-size: 16px;
    color: var(--primary-100);
    letter-spacing: 0.5px;
}

.mihanjs_best-sale-products .mihanjs_highlight {
    color: var(--secondry-500);
}

.mihanjs_best-sale-products .mihanjs_divider {
    width: 1px;
    height: 50px;
    background-color: var(--primary-100);
    margin: 0 40px;
    transform: rotate(15deg);
}

.mihanjs_best-sale-products .mihanjs_left-section {
    flex: 1;
    text-align: right;
}

.mihanjs_best-sale-products .mihanjs_left-section p {
    margin: 1em 0;
    font-size: 16px;
    color: var(--primary-400);
    line-height: 1.8;
    font-weight: 500;
}

.mihanjs_best-sale-products .mihanjs_btn-more-best-sale-product {
    background: var(--secondry-500);
    padding: 8px 24px 8px 13px;
    box-shadow: inset 0 0 8px var(--white-50);
    border-radius: 50px;
    cursor: pointer;
    flex-shrink: 0;
}

.mihanjs_best-sale-products .mihanjs_btn-more-best-sale-product a {
    display: flex;
    align-items: center;
    color: var(--white-50);
    gap: 16px;
    text-decoration: none;
}

.mihanjs_best-sale-products .mihanjs_btn-more-best-sale-product a i {
    background: var(--white-50);
    color: var(--secondry-500);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50px;
}

.mihanjs_best-sale-products .mihanjs_btn-more-best-sale-product:hover {
    background: var(--primary-500);
}

.mihanjs_best-sale-products .mihanjs_btn-more-best-sale-product:hover i {
    color: var(--primary-500);
}

.mihanjs_best-sale-products .mihanjs_list-best-sale-products {
    position: relative;
    margin-top: 40px;
}

.mihanjs_best-sale-products .mihanjs_list-best-sale-viewport {
    width: 100%;
}

.mihanjs_best-sale-products .mihanjs_list-best-sale-track {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mihanjs-bs-gap, 20px);
}

.mihanjs_best-sale-products .mihanjs_best-sale-next {
    display: none;
}

.mihanjs_best-sale-products .mihanjs_best-sale-product-item {
    display: flex;
    background: var(--white-100);
    padding: 16px;
    border: 1px solid var(--gray-100);
    border-radius: 24px;
    gap: 40px;
    width: calc((100% - (var(--mihanjs-bs-gap, 20px) * (var(--mihanjs-bs-cols, 3) - 1))) / var(--mihanjs-bs-cols, 3));
    height: 190px;
    cursor: pointer;
    box-sizing: border-box;
}

.mihanjs_best-sale-products .mihanjs_best-sale-product-item-image {
    display: flex;
    align-items: center;
    width: 90px;
    height: 158px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 80px 16px 16px 80px;
    position: relative;
    box-sizing: border-box;
}

.mihanjs_best-sale-products span.mihanjs_discount-sale-product {
    position: absolute;
    right: 7px;
    top: 15px;
    z-index: 1;
    display: block;
    line-height: 0;
}

.mihanjs_best-sale-products span.mihanjs_discount-sale-product p {
    margin: 0;
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 2;
    text-align: center;
    justify-content: center;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
    transform: translate(var(--mihanjs-bs-badge-x, 0px), var(--mihanjs-bs-badge-y, 0px));
    color: var(--white-50);
    font-size: 14px;
    font-weight: 600;
}

.elementor .mihanjs_best-sale-products span.mihanjs_discount-sale-product img,
.mihanjs_best-sale-products span.mihanjs_discount-sale-product img {
    display: block;
    width: 50px;
    height: 50px;
    max-width: none;
    object-fit: contain;
}

.elementor .mihanjs_best-sale-products img.mihanjs_image-product-sale,
.mihanjs_best-sale-products img.mihanjs_image-product-sale {
    width: 86px;
    height: 89px;
    max-width: none;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    position: absolute;
    left: -25px;
}

.mihanjs_best-sale-products .mihanjs_best-sale-product-item-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.mihanjs_best-sale-products .mihanjs_best-sale-product-item-content a {
    text-decoration: none;
}

.mihanjs_best-sale-products .mihanjs_best-sale-product-item-content a h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-500);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mihanjs_best-sale-products .mihanjs_category-sale-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mihanjs_best-sale-products .mihanjs_category-sale-product a,
.mihanjs_best-sale-products .mihanjs_category-sale-product .mihanjs_sale-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: var(--primary-200);
    text-decoration: none;
}

.mihanjs_best-sale-products .mihanjs_category-sale-product a i,
.mihanjs_best-sale-products .mihanjs_category-sale-product .mihanjs_sale-count i {
    color: var(--primary-200);
    font-size: 17px;
}

.mihanjs_best-sale-products span.mihanjs_line-category-sale-product {
    border-right: 1px solid var(--primary-100);
    height: 18px;
}

.mihanjs_best-sale-products span.mihanjs_line-info-sale-product {
    display: block;
    border-bottom: 1px solid var(--primary-50);
    margin: 12px 0 20px 0;
    position: relative;
}

.mihanjs_best-sale-products span.mihanjs_line-info-sale-product::before {
    content: "";
    position: absolute;
    border: 4px solid var(--primary-50);
    left: 0;
    top: -3px;
    border-radius: 50px;
}

.mihanjs_best-sale-products .mihamjs_sale-product-add-to-cart-heart {
    display: flex;
    justify-content: space-between;
}

.mihanjs_best-sale-products .mihanjs_sale-product-item-price {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mihanjs_best-sale-products .mihanjs_sale-product-item-price del {
    position: relative;
    align-self: flex-start;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 16px;
}

.mihanjs_best-sale-products .mihanjs_sale-product-item-price del::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1.5px solid currentColor;
    transform: rotate(-12deg);
}

.mihanjs_best-sale-products .mihanjs_sale-product-item-price > span {
    color: var(--primary-200);
    font-size: 14px;
}

.mihanjs_best-sale-products .mihanjs_sale-product-item-price > span ins {
    color: var(--secondry-500);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.mihanjs_best-sale-products .mihanjs_sale-product-add-to-cart-add-to-heart {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mihanjs_best-sale-products .mihanjs_sale-product-add-to-cart-add-to-heart a {
    border: 1px solid var(--secondry-500);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50px;
    box-sizing: border-box;
}

.mihanjs_best-sale-products .mihanjs_sale-product-add-to-cart-add-to-heart a i {
    color: var(--secondry-500);
}

.mihanjs_best-sale-products .mihanjs_sale-product-add-to-cart-add-to-heart a:hover {
    background: var(--secondry-500);
}

.mihanjs_best-sale-products .mihanjs_sale-product-add-to-cart-add-to-heart a:hover i {
    color: var(--white-50);
}

.mihanjs_best-sale-products .mihanjs_best-sale-empty {
    margin: 0;
    color: var(--primary-500);
}

@media screen and (max-width: 1024px) {
    .mihanjs_best-sale-products .mihanjs_list-best-sale-products {
        display: block;
        position: relative;
        width: 100%;
        margin-top: 24px;
    }

    .mihanjs_best-sale-products .mihanjs_list-best-sale-viewport {
        width: 100%;
        overflow: hidden;
        position: relative;
    }

    .mihanjs_best-sale-products .mihanjs_list-best-sale-viewport::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 72px;
        background: linear-gradient(90deg, var(--white-50) 40%, rgba(254, 255, 255, 0) 100%);
        pointer-events: none;
        z-index: 1;
    }

    .mihanjs_best-sale-products.mihanjs_no-fade .mihanjs_list-best-sale-viewport::after,
    .mihanjs_best-sale-products .mihanjs_list-best-sale-products.mihanjs_is-single .mihanjs_list-best-sale-viewport::after {
        display: none;
    }

    .mihanjs_best-sale-products .mihanjs_list-best-sale-track {
        display: grid;
        grid-template-rows: repeat(var(--mihanjs-bs-rows, 3), auto);
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        column-gap: 12px;
        row-gap: 12px;
        width: 100%;
    }

    .mihanjs_best-sale-products .mihanjs_best-sale-next {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 28px;
        height: 28px;
        padding: 0;
        border: none;
        background: none;
        color: var(--primary-500);
        font-size: 25px;
        cursor: pointer;
    }

    .mihanjs_best-sale-products .mihanjs_list-best-sale-products.mihanjs_is-single .mihanjs_best-sale-next {
        display: none;
    }

    .mihanjs_best-sale-products .mihanjs_best-sale-product-item {
        width: 100%;
        height: auto;
        min-height: 132px;
        gap: 30px;
        padding: 12px 16px;
        align-items: center;
    }

    .mihanjs_best-sale-products .mihanjs_best-sale-product-item-image {
        width: 73px;
        height: 108px;
        flex-shrink: 0;
        border-radius: 80px 16px 16px 80px;
    }

    .mihanjs_best-sale-products span.mihanjs_discount-sale-product {
        right: -8px;
        left: auto;
        top: 4px;
    }

    .mihanjs_best-sale-products span.mihanjs_discount-sale-product p {
        font-size: 12px;
    }

    .elementor .mihanjs_best-sale-products span.mihanjs_discount-sale-product img,
    .mihanjs_best-sale-products span.mihanjs_discount-sale-product img {
        width: 42px;
        height: 42px;
    }

    .elementor .mihanjs_best-sale-products img.mihanjs_image-product-sale,
    .mihanjs_best-sale-products img.mihanjs_image-product-sale {
        width: 88px;
        height: 92px;
        left: 40%;
        transform: translateX(-50%);
        bottom: 4px;
        top: auto;
    }

    .mihanjs_best-sale-products .mihanjs_best-sale-product-item-content {
        gap: 8px;
        min-width: 0;
        flex: 1;
    }

    .mihanjs_best-sale-products .mihanjs_best-sale-product-item-content a h3 {
        font-size: 14px;
        font-weight: 700;
    }

    .mihanjs_best-sale-products .mihanjs_category-sale-product {
        gap: 10px;
    }

    .mihanjs_best-sale-products .mihanjs_category-sale-product a,
    .mihanjs_best-sale-products .mihanjs_category-sale-product .mihanjs_sale-count {
        font-size: 12px;
    }

    .mihanjs_best-sale-products .mihamjs_sale-product-add-to-cart-heart {
        justify-content: flex-start;
        margin-top: 4px;
    }

    .mihanjs_best-sale-products.mihanjs_hide-actions-mobile .mihanjs_sale-product-add-to-cart-add-to-heart {
        display: none;
    }

    .mihanjs_best-sale-products .mihanjs_sale-product-item-price {
        gap: 2px;
        align-items: flex-start;
    }

    .mihanjs_best-sale-products .mihanjs_sale-product-item-price del {
        font-size: 13px;
    }

    .mihanjs_best-sale-products .mihanjs_sale-product-item-price > span {
        font-size: 12px;
    }

    .mihanjs_best-sale-products .mihanjs_sale-product-item-price > span ins {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .mihanjs_best-sale-products .mihanjs_info-category-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .mihanjs_best-sale-products .mihanjs_divider {
        display: none;
    }

    .mihanjs_best-sale-products.mihanjs_container {
        display: flex;
        flex-direction: column;
    }

    .mihanjs_best-sale-products > .mihanjs_title-category-more {
        display: contents;
    }

    .mihanjs_best-sale-products .mihanjs_info-category-head {
        order: 1;
        width: 100%;
    }

    .mihanjs_best-sale-products .mihanjs_list-best-sale-products {
        order: 2;
    }

    .mihanjs_best-sale-products .mihanjs_btn-more-best-sale-product {
        order: 3;
        width: 100%;
        margin-top: 12px;
        box-sizing: border-box;
    }

    .mihanjs_best-sale-products .mihanjs_btn-more-best-sale-product a {
        width: 100%;
        justify-content: space-between;
    }
}

@media screen and (max-width: 425px) {
    .mihanjs_best-sale-products .mihanjs_main-title-category {
        font-size: 20px;
        font-weight: 700;
    }
}
