.new-product-list-section {
    padding: 40px 0;
    background-color: #ffffff; 
}


.product-grid {
    display: grid;
    gap: 20px; /* Khoảng cách giữa các sản phẩm */
    margin-bottom: 30px;
}

/*PRODUCT CARD LAYOUT */
.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px); 
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%; 
}

/*PRODUCT IMAGE AND TAGS */
.product-image-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* tỷ lệ 1:1 cho ảnh */
}

.product-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.05); /* Hiệu ứng zoom nhẹ khi hover */
}

.sale-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5722; /* Màu cam nổi bật */
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

/* FLOATING CONTACT WIDGET */
.float-contact-wrapper {
    position: fixed;
    bottom: 30px; /* Cách đáy 30px */
    right: 20px; /* Cách phải 20px */
    z-index: 9999; /* Đảm bảo nổi lên trên cùng */
}

/* Nút bấm bật/tắt chính (Icon) */
.contact-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d90429; /* Màu đỏ nổi bật */
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    line-height: 1; /* Căn giữa icon */
}

.contact-toggle-btn:hover {
    background-color: #ef233c;
    transform: scale(1.05);
}

/* Hộp nội dung liên hệ */
.contact-box-content {
    display: none; /* Ban đầu ẩn đi */
    position: absolute;
    bottom: 80px; /* Nằm phía trên icon */
    right: 0;
    width: 250px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 10px;
}

.contact-box-content h2 {
    text-align: center;
    font-size: 18px;
    color: #2a9d8f;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.contact-box-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-box-content li {
    margin-bottom: 8px;
}

.contact-box-content a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.contact-box-content a:hover {
    background-color: #f0f0f0;
    color: #d90429;
}

.contact-icon {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

/* Custom icon colors */
.icon-zalo { background-color: #0084ff; }
.icon-phone { background-color: #ff5722; } 
.icon-facebook { background-color: #1877f2; }


/*PRODUCT INFO */
.product-info {
    padding: 15px;
    text-align: center;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    /* Giới hạn tên sản phẩm 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px; /* bảo chiều cao đồng nhất */
}

.product-desc {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
    /* Giới hạn mô tả 1 dòng */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PRODUCT PRICE */
.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 20px;
    font-weight: 800;
    color: #d90429; 
    margin-right: 10px;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/*PRODUCT ACTIONS (Button) */
.product-actions {
    margin-top: 10px;
}

.btn-detail {
    display: inline-block;
    padding: 8px 20px;
    background-color: #2a9d8f; /* #2a9d8f */
    color: white;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.box-sidebar{
text-align: center; 
padding: 20px 0 0 0;

}

.box-sidebar h2{

text-align: center; 
font-size: 28px; 
color: #333; 
margin-top: 5px; 
margin-bottom: 20px; 
border-bottom: 2px solid #EAA926; 
display: inline-block; 
padding-bottom: 5px;
    
}

/* HOT TAG STYLE */
.hot-tag {
    position: absolute;
    top: 10px;
    left: 10px; 
    
    background-color: #ff0000; 
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    
    /* Hiệu ứng nhẹ */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* Tạo hiệu ứng xoay nhẹ để bắt mắt hơn */
    /* transform: rotate(-5deg); */
}

/* Đảm bảo thẻ sale-tag vẫn ở góc phải */
.sale-tag {
    position: absolute;
    top: 10px;
    right: 10px;
}

.product-card:hover .btn-detail {
    background-color: #218380;
}

/*VIEW ALL BUTTON */
.view-all-button {
    text-align: center;
    margin-top: 30px;
}

.btn-view-all {
    display: inline-block;
    padding: 10px 30px;
    background-color: #ff5722;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s;
    border: 2px solid #ff5722;
}

.btn-view-all:hover {
    background-color: #e64a19;
    border-color: #e64a19;
}

/* Màn hình Mobile (dưới 576px) */
@media (max-width: 575px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cột */
        gap: 15px;
    }
    .product-name {
        font-size: 14px;
        min-height: 45px;
    }
    .current-price {
        font-size: 16px;
    }
    .old-price {
        font-size: 12px;
    }


.product-desc {
    font-size: 12px;
}
}

/* Màn hình Tablet (576px đến 991px) */
@media (min-width: 576px) and (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cột */
        gap: 20px;
    }
        .product-name {
        font-size: 14px;
        min-height: 45px;
    }
    .current-price {
        font-size: 16px;
    }
    .old-price {
        font-size: 12px;
    }


.product-desc {
    font-size: 12px;
}
}

/* Màn hình Desktop (992px trở lên) */
@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 cột */
        gap: 25px;
    }
}

#cart-mobile-item-count{

position: absolute;
        top: -5px; 
        right: 7px;
        background-color: red;
        color: white;
        border-radius: 50%;
        padding: 2px 6px;
        font-size: 12px;
        font-weight: bold;
        display: none; /* Ẩn ban đầu nếu giỏ hàng trống */
    
}


.news-card-new:hover .news-image-wrap-new img {
    transform: scale(1.05);
}