/*
Theme Name: MaiLisa
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/*.product-small.box .box-text p.category,.product-info .breadcrumbs>a {
    background-color: var(--fs-color-alert);
    width: max-content;
    padding: 5px 15px;
    line-height: 25px;
    border-radius: 6px;
    color: #ffffff;
}
*/
.product-small.box .box-text p.category,.product-info .breadcrumbs>a {
    width: max-content;
    padding: 0px 0px;
	text-transform: inherit;
    line-height: 20px;
    color: black;
}
.widget .product-small.box .box-text p.category{
	     padding: 2px 0px;
    font-size: 95%;
    text-transform: inherit;
    line-height: 15px;
    margin-bottom: 5px;
}
.widget .product-small.box.box-vertical {
    display: flex !important;
    flex-wrap: wrap;    overflow: hidden;
}
.widget .product-small.box.box-vertical .box-image{
	width:40%!important;    max-height: 150px;
}
.widget .product-small.box.box-vertical .image-cover{
	position: unset
}
.widget .product-small.box.box-vertical .box-text{
	width:60%
}
@media screen and (max-width: 549px) {
    .widget .product-small.box.box-vertical .box-image {
        width: 40% !important;
    }
}
#secondary .product_list_widget li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

#secondary .product_list_widget li img {
    flex-shrink: 0;
    width: 80px;
    height: auto;
}
span.wpcf7-spinner {
    display: none !important;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .single-post .row-reverse {
        flex-direction: column !important;
    }

    /* Nội dung chính lên trước */
    .single-post #primary {
        order: 1 !important;
    }

    /* Sidebar xuống dưới */
    .single-post #secondary {
        order: 2 !important;
    }
.single-product .row-reverse {
        flex-direction: column !important;
    }

    /* Nội dung sản phẩm (hình + mô tả) */
    .single-product .product-main {
        order: 1 !important;
    }

    /* Sidebar sản phẩm (cột bên phải) */
    .single-product #secondary {
        order: 2 !important;
    }
	    #product-sidebar.hide-for-medium {
        display: block !important;
        order: 2 !important;
    }
	    .list-post5 .post-item .box-image {
        width: 50% !important;
        overflow: unset !important;
        height: 5px !important;
    }
}
}
}


/* Trạng thái bình thường */
.product-small .product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.35s ease;
}

/* Khi hover */
.product-small .product-title a:hover {
    -webkit-line-clamp: unset;
    max-height: 200px; /* đủ lớn để show hết */
    overflow: visible;
}
.product-small .product-title a {
    max-height: 48px; /* ~2 dòng */
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.product-small .product-title a:hover {
    max-height: 200px;
}
.box-label .box-text-product {
    width: 100% !important;
}