.elementor-2 .elementor-element.elementor-element-ccd459a{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-2 .elementor-element.elementor-element-7137868{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-widget-image .widget-image-caption{color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-2 .elementor-element.elementor-element-9c28264{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-2 .elementor-element.elementor-element-f457ef3{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--padding-top:50px;--padding-bottom:50px;--padding-left:0px;--padding-right:0px;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-2 .elementor-element.elementor-element-43ce34f{text-align:center;}.elementor-2 .elementor-element.elementor-element-43ce34f .elementor-heading-title{font-family:"Montserrat", Sans-serif;font-size:25px;font-weight:800;line-height:35px;}:root{--page-title-display:none;}@media(min-width:768px){.elementor-2 .elementor-element.elementor-element-7137868{--width:50%;}.elementor-2 .elementor-element.elementor-element-9c28264{--width:50%;}}/* Start custom CSS for html, class: .elementor-element-86506f6 */.tw-products-section-wrapper {
    font-family: 'Montserrat', sans-serif;
    padding: 40px 0; /* Thêm padding trên dưới cho section */
}

/* Optional: Section Title Style */
/*
.tw-section-product-title {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}
.tw-section-product-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #000;
    margin: 10px auto 0;
}
*/

.tw-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 sản phẩm mỗi hàng */
    gap: 30px; /* Khoảng cách giữa các sản phẩm */
    max-width: 1200px; /* Giới hạn chiều rộng tối đa của grid */
    margin: 0 auto; /* Căn giữa grid */
    padding: 0 15px; /* Padding nhỏ hai bên grid */
}

.tw-product-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Để bo góc hoạt động và popup không bị tràn */
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative; /* Cần cho popup định vị */
}

.tw-product-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.tw-product-image-wrapper {
    position: relative; /* Để popup mô tả có thể được định vị bên trong */
    width: 100%;
    /* Tỷ lệ khung hình cho ảnh (ví dụ 1:1) */
    padding-top: 100%; /* Aspect ratio 1:1. Adjust if your images are different. e.g. 75% for 4:3 */
    overflow: hidden; /* Giữ cho popup không tràn ra ngoài */
}

.tw-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh lấp đầy mà không bị méo, có thể cắt bớt */
    transition: transform 0.4s ease;
}

.tw-product-item:hover .tw-product-image {
    transform: scale(1.05); /* Hiệu ứng zoom nhẹ cho ảnh khi hover item */
}

.tw-product-description-popup {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85); /* Nền đen mờ */
    color: #fff;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 5; /* Đảm bảo popup ở trên ảnh */
    overflow-y: auto; /* Cho phép cuộn nếu mô tả dài */
    font-size: 14px;
    line-height: 1.6;
    display: flex; /* Để căn giữa nội dung bên trong */
    flex-direction: column;
    justify-content: center; /* Căn giữa theo chiều dọc */
    align-items: center; /* Căn giữa theo chiều ngang */
    text-align: center; /* Căn giữa chữ */
}
.tw-product-description-popup h4 {
    font-size: 16px; /* Kích thước cho tiêu đề nhỏ trong popup */
    font-weight: 600;
    margin-bottom: 10px;
    color: #f0f0f0;
}
.tw-product-description-popup p {
    margin-bottom: 0;
    color: #e0e0e0;
}

.tw-product-item:hover .tw-product-description-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}


.tw-product-content {
    padding: 20px;
    text-align: center; /* Căn giữa nội dung text */
    flex-grow: 1; /* Để button luôn ở cuối nếu nội dung khác nhau */
    display: flex;
    flex-direction: column;
}

.tw-product-name {
    font-size: 20px; /* Kích thước tên sản phẩm */
    font-weight: 600; /* Montserrat thường có weight 600 hoặc 700 cho bold */
    color: #111; /* Màu đen cho tên sản phẩm */
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 52px; /* Đảm bảo tên SP có đủ không gian cho 2 dòng, giúp các block đều hơn */
}

.tw-product-price {
    font-size: 16px; /* Kích thước giá sản phẩm, có thể dùng 14px */
    color: #333;
    font-weight: 500;
    margin-bottom: 15px;
}

.tw-product-button {
    display: inline-block;
    background-color: #000000; /* Màu nền đen */
    color: #ffffff; /* Màu chữ trắng */
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    text-transform: uppercase; /* Chữ in hoa cho button */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    margin-top: auto; /* Đẩy button xuống cuối cùng của .tw-product-content */
}

.tw-product-button:hover {
    background-color: #333333; /* Màu đen đậm hơn khi hover */
    color: #fff;
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 991px) { /* Máy tính bảng và nhỏ hơn */
    .tw-products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 sản phẩm mỗi hàng */
        gap: 20px;
    }
    .tw-product-name {
        font-size: 18px; /* Giảm kích thước font trên tablet */
        min-height: 48px;
    }
}

@media (max-width: 767px) { /* Điện thoại */
    .tw-products-grid {
        grid-template-columns: 1fr; /* 1 sản phẩm mỗi hàng */
        gap: 25px;
    }
    .tw-product-name {
        font-size: 17px;
        min-height: auto; /* Không cần min-height khi chỉ có 1 cột */
    }
    .tw-product-description-popup {
        padding: 15px; /* Giảm padding cho popup trên mobile */
    }
    .tw-product-description-popup h4 {
        font-size: 15px;
    }
    .tw-product-description-popup p {
        font-size: 13px;
    }
}/* End custom CSS */