.fpt-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
    border: 1px solid #ddd;
    -webkit-overflow-scrolling: touch;
}
.fpt-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    min-width: 500px;
}
.fpt-table th, .fpt-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: center;
}
.fpt-table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}
.fpt-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.fpt-price-low { color: #2ecc71; font-weight: bold; }
.fpt-price-mid { color: #e67e22; font-weight: bold; }
.fpt-price-high { color: #e74c3c; font-weight: bold; }
.fpt-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.fpt-filters select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 120px;
}

/* --- PHẦN STYLE CHO NÚT LIÊN HỆ TRÊN TỪNG DÒNG BẢNG GIÁ --- */
.fpt-action-cell {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    padding: 6px 4px !important;
}
.fpt-btn-zl, .fpt-btn-call {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none !important;
    border-radius: 3px;
    color: #fff !important;
    line-height: 1.4;
}
.fpt-btn-zl {
    background-color: #0068ff; /* Màu xanh Zalo */
}
.fpt-btn-zl:hover {
    background-color: #0056d2;
}
.fpt-btn-call {
    background-color: #2ecc71; /* Màu xanh lá cây Hotline */
}
.fpt-btn-call:hover {
    background-color: #27ae60;
}

/* --- TỐI ƯU TOÀN BỘ HIỂN THỊ TRÊN MOBILE (ĐÃ GỘP CHUNG KHỐI MEDIA) --- */
@media screen and (max-width: 768px) {
    /* 1. Tạo khoảng cách an toàn với phần Album ảnh phía dưới và bật cuộn mượt */
    .fpt-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 35px; 
    }

    /* 2. Ẩn bớt cột Hướng (cột 4) và Vị trí (cột 5) để giải phóng không gian */
    .fpt-table th:nth-child(4), .fpt-table td:nth-child(4),
    .fpt-table th:nth-child(5), .fpt-table td:nth-child(5) {
        display: none !important;
    }
    
    /* 3. Thu nhỏ font chữ và co gọn khoảng cách đệm (Padding) trong ô */
    .fpt-table {
        font-size: 13px !important;
    }
    .fpt-table th, .fpt-table td {
        padding: 6px 4px !important; 
    }
    
    /* 4. Tự động co giãn đều các bộ lọc select/input theo chiều ngang màn hình */
    .fpt-filters input[type="text"], .fpt-filters select {
        flex: 1 1 140px; 
        min-width: unset !important;
    }

    /* 5. Định dạng lại ô nút bấm liên hệ nhỏ gọn, nằm ngang */
    .fpt-action-cell {
        display: flex !important;
        flex-direction: row; 
        gap: 4px !important;
        justify-content: center;
    }
    .fpt-btn-zl, .fpt-btn-call {
        padding: 4px 6px !important;
        font-size: 11px !important;
    }

    /* 6. Cấu hình lại thanh header thành dạng flexbox để tách biệt Logo và Menu */
    .site-header .header-main, 
    .navbar-header,
    .ast-mobile-header-wrap .ast-site-header-main-wrap { 
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 10px 15px !important;
    }

    /* Đẩy khung chứa Logo vào căn chính giữa màn hình điện thoại */
    .site-branding, 
    .ast-site-identity {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 auto !important;
        z-index: 10;
    }

    /* Đảm bảo nút menu ba gạch (mục lục) nằm độc lập ở góc không bị đè dính */
    .menu-toggle,
    .ast-mobile-menu-trigger {
        position: relative !important;
        z-index: 11;
        margin: 0 !important;
    }
}