﻿.caspo.container {
}

    .caspo.container h2 {
        text-align: center;
        font-family: 'Dongle-Bold';
        font-size: 47px;
        color: #349411;
    }

    .caspo.container h4 {
        text-align: center;
        font-size: 21px;
        color: #353535;
    }

.inner-page.new-detail-childdd.cas {
    padding-top: 18px;
}

.filter-tabs {
    display: flex;
    background: #8e8e8e;
    padding: 5px;
    border-radius: 50px;
    width: fit-content;
    margin: 33px auto;
}

.tab-item {
    position: relative;
    background: #fff;
    color: #00a651;
    padding: 10px 25px;
    border-radius: 40px;
    margin: 0 5px;
    font-weight: bold;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s;
    text-decoration: none !important;
}
/* Hiệu ứng cho từng ô sỉ */
.item-sgiaoi {
    transition: all 0.3s ease; /* Tạo chuyển động mượt mà */
    cursor: pointer;
    border: 1px solid #ddd; /* Chỉnh lại border cho nhẹ nhàng */
}

    /* Khi di chuột vào ô sỉ */
    .item-sgiaoi:hover {
        transform: translateY(-5px); /* Nhấc ô lên một chút */
        box-shadow: 0 6px 15px rgba(0,0,0,0.15); /* Thêm bóng đổ đổ bóng */
        border-color: #FF7435; /* Đổi màu viền trùng với màu cam tiêu đề */
        z-index: 10;
        background-color: #fffdfb;
    }

        /* Thay đổi màu tiêu đề khi hover (tùy chọn) */
        .item-sgiaoi:hover .sgiaosi-top {
            background: #e65a1d; /* Cam đậm hơn một chút */
            transition: background 0.3s ease;
        }

        /* Làm nổi bật số tiền khi hover */
        .item-sgiaoi:hover .bvmony {
            color: #ff0000;
            transform: scale(1.05); /* Phóng to số tiền nhẹ */
            transition: all 0.3s ease;
        }

.product-item {
    display: flex;
    gap: 9px;
}

.bnxzs {
    font-size: 15px;
    white-space: nowrap;
}

    .bnxzs strong {
        font-size: 16px;
    }

.pro-items-left {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #000;
}

.sgiaosi-top {
    text-align: center;
    font-size: 12px;
    padding: 5px;
    white-space: nowrap;
    background: 6px;
    /* border-top-right-radius: 6px; */
    overflow: hidden;
    border-radius: 6px;
    border-bottom: 1px solid #000;
    background: #FF7435;
    font-weight: bold;
    color: #FFFF;
}

.bvmony {
    white-space: nowrap;
    padding: 9px;
    text-align: center;
    color: #d90b19;
    font-size: 14px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    font-weight: bold;
}

.rpro-top {
    text-align: center;
    background: #42A637;
    padding: 10px;
    border-radius: 13px;
    border: 1px solid #000;
    color: #FFF;
    font-weight: bold;
}

.dasv, .amfvvp, .bnxzs {
    margin-bottom: 11px;
}

.rpor-bottom {
    padding: 3px;
    border: 1px solid;
    border-radius: 7px;
    margin-top: 10px;
    background: #FFFF;
}

    .rpor-bottom > div:last-child {
        /* Đây là style dành cho thẻ .059gia-si */
        gap: 6px;
        display: flex;
        justify-content: space-between;
    }

.item-sgiaoi {
    /* padding: 4px; */
    border-radius: 10px;
    border: 1px solid;
    overflow: hidden;
}

.pro-items-left img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.product-list.czsadpo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 34px;
}
/* Lớp màu xanh lướt bên dưới */
.tab-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #39ff14, #00a651);
    transition: left 0.4s ease-in-out;
    z-index: -1;
}
/* Trạng thái Active: Kéo lớp xanh vào */
.tab-item.active {
    color: #fff !important;
}

    .tab-item.active::before {
        left: 0;
    }

.price-popup {
    display: none
}

.load-more-container {
    padding: 10px;
}

    .load-more-container a {
        background: #42A637;
        padding: 9px;
        color: #FFF;
        border-radius: 15px;
        transition: all 0.4s ease;
    }

        .load-more-container a:hover {
            trans;
            transform: translateY(10px);
            top: -5px;
            background: #FFFF;
            color: #42A637 !important;
            border: 1px solid #42A637;
        }
/* Tổng thể khu vực phía dưới sản phẩm */
.footer-service-info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 15px;
}

/* Lưu ý phía trên nút */
.note-top {
    color: #666;
    font-style: italic;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Nút Xem Thêm */
.btn-load-more {
    background: #42A637;
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 166, 55, 0.2);
}

    .btn-load-more:hover {
        background: #349411;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(66, 166, 55, 0.3);
    }

/* Hộp Cộng tác viên */
.ctv-box {
    background: #f0f9ef; /* Màu xanh lá cực nhẹ */
    border: 1px dashed #42A637;
    border-radius: 15px;
    padding: 15px 25px;
    max-width: 664px;
    width: 100%;
}

.ctv-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

    .ctv-content img {
        width: 30px;
        height: 30px;
    }

    .ctv-content p {
        margin: 0;
        color: #333;
        font-size: 15px;
        line-height: 1.6;
    }

    .ctv-content strong {
        color: #0068ff; /* Màu xanh Zalo */
        font-size: 16px;
    }

/* Mobile Responsive */
@media screen and (max-width: 739px) {
    .ctv-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .note-top {
        font-size: 13px;
        text-align: center;
    }

        .note-top i {
            display: none;
        }
}
/* --- RESPONSIVE CHO ĐIỆN THOẠI (< 739px) --- */
@media screen and (max-width: 739px) {
    .product-list.czsadpo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px;
        background-color: #f8f8f8;
        gap: 15px; /* Thu hẹp khoảng cách giữa các thẻ */
    }

    .price-popup {
        display: block
    }
    /* Thẻ sản phẩm: Biến thành nút nhấn */
    .product-item {
        flex-direction: column;
        background: #ffffff;
        border: none;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        cursor: pointer;
        transition: transform 0.1s ease;
        -webkit-tap-highlight-color: transparent;
    }

        .product-item:active {
            transform: scale(0.97); /* Hiệu ứng lún xuống khi chạm */
            background: #fdfdfd;
        }

    .pro-items-left {
        width: 100%;
        height: 140px; /* Chỉnh lại độ cao ảnh cho vừa vặn 2 cột */
        border: none;
        border-radius: 0;
    }

    .pro-items-right {
        padding: 5px;
    }

    .rpro-top {
        background: transparent;
        color: #349411; /* Đổi về màu thương hiệu */
        border: none;
        text-align: left;
        font-size: 14px;
        padding: 0;
        margin-bottom: 8px;
        height: auto;
    }

    /* Ẩn hoàn toàn bảng giá ở ngoài danh sách */
    .059gia-si {
        display: none !important;
    }

    .dasv, .amfvvp {
        font-size: 13px;
        margin-bottom: 5px;
        border-bottom: 1px dashed #eee;
        white-space: normal;
    }
.amfvvp{
    margin-bottom: 15px;
}
    .bnxzs {
        background: #fff8e1;
        border-left: 3px solid #ff7435;
        padding: 8px;
        font-size: 11px;
        white-space: normal;
        margin: 5px 0;
    }

    /* --- STYLE CHO POPUP (GIỮ NGUYÊN HOẶC CẬP NHẬT) --- */
    .price-popup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(4px);
        z-index: 10000;
        justify-content: center;
        align-items: center;
    }

    .popup-content {
        background: #fff;
        width: 85%;
        max-width: 350px;
        padding: 20px;
        border-radius: 20px;
        position: relative;
        animation: slideUp 0.3s ease-out;
    }

    @keyframes slideUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    #popupTitle {
        padding-top: 18px;
        font-family: 'InterR';
        font-weight: bold;
    }

    .close-popup {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 28px;
        color: #999;
        cursor: pointer;
    }

    /* Hiện lại bảng giá TRONG popup */
    .popup-content .059gia-si {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 15px;
    }

    .popup-content .item-sgiaoi {
        background: #f9f9f9;
        border: 1px solid #eee;
    }

    .et_pb_section.et_pb_section_0 {
        /* height: 298px !important; */
        /* object-fit: cover; */

        display: none;
    }

    .caspo.container h2 {
        font-size: 34px;
        line-height: 28px;
    }

    .caspo.container h4 {
        font-size: 13px;
        margin-top: 10px;
    }

    .tab-item {
        font-size: 11px;
    }

    .rpor-bottom > div:last-child {
        display: none
    }

    .rpor-bottom {
        border: unset
    }

    .bnxzs strong {
        font-size: 12px
    }

    #popupBody > div:last-child {
        width: 100%;
        padding: 0;
        display: grid;
        grid-auto-rows: minmax(min-content, max-content);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 10px;
    }

    .footer-service-info {
        margin-top: 0
    }
}
