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

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
 .commitments {
    padding: 40px 0;
}

.commitments .container {
    /* FIX: Sử dụng max-width 1390px (thay vì 1400px) để đồng bộ với nội dung chính */
    max-width: 1400px; 
    margin: 0 auto;
    /* FIX: Thêm padding 0 15px để đảm bảo nó căn lề như các container Flatsome */
    padding: 0 15px; 
}

.commitments .row {
    /* FIX: BỎ padding 15px ở đây để grid căng hết chiều rộng container 1300px */
    padding: 0; 
    
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}

/* Giữ nguyên các phần CSS khác cho .commitment, .icon, v.v. */

.commitment {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.commitment:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.commitment .icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
    color: #082243;
    transition: all 0.3s ease-in-out;
}

.commitment:hover .icon {
    color: #ffcc00; 
    transform: scale(1.2); 
}

.commitment p {
    font-size: 16px;
    font-weight: 600;
    color: #082243;
    margin: 0;
}

/* Responsive (giữ nguyên) */
@media (max-width: 768px) {
    .commitments .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .commitments .row {
        grid-template-columns: 1fr;
        gap: 15px; 
    }
}
 
/* ========================================================= */
/* Media Query: CHỈ KÍCH HOẠT STICKY trên màn hình lớn (Desktop) */
/* ========================================================= */
@media (min-width: 992px) {
    
    /* 1. Kích hoạt Header Main (thanh trên) cố định ở TOP: 0 */
    .header-main {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999 !important; 
        
        /* THÊM FIX: Đảm bảo màu nền lấp đầy khi cố định */
        background: #082243 !important; 
        
        transition: all 0.3s ease-in-out !important;
    }
    
    /* 2. Kích hoạt Header Bottom (thanh menu) cố định ngay DƯỚI Header Main */
    .header-bottom {
        position: fixed !important;
        
        /* Điều chỉnh TOP bằng chiều cao của Header Main (Ví dụ: 50px) */
        top: 50px !important; /* **Điều chỉnh giá trị này (50px) theo chiều cao Header Main** */
        
        left: 0 !important;
        width: 100% !important;
        z-index: 998 !important; 
        
        /* THÊM FIX: Đảm bảo màu nền lấp đầy khi cố định */
        background: #082243 !important; 
        
        transition: all 0.3s ease-in-out !important;
    }
    
    /* 3. Cần thêm Padding cho Body để tránh nội dung bị Header che khuất */
    /* Điều chỉnh giá trị 120px bằng tổng chiều cao cố định của Header Main + Header Bottom */
    body {
        padding-top: 120px !important; 
    }
}

/* ========================================================= */
/* Đảm bảo Header cuộn theo trang trên MOBILE/TABLET (TẮT FIXED) */
/* ========================================================= */
@media (max-width: 991px) {
    .header-main,
    .header-bottom {
        position: relative !important; 
        top: auto !important;
        transform: none !important;
        z-index: 1 !important;
    }
    body {
        padding-top: 0 !important; 
    }
}
/* Khung bao link "Kiểm tra đơn hàng" */
.check-order-main {
    padding-top: 40px; /* khoảng cách trên dưới cho cả khối */
}

/* Căn chỉnh link trong col */
.custom-checkout-link {
    font-size: 18px;
    font-weight: 600;
    padding: 10px 15px;
    display: inline-block;

}

/* Link chính */
.custom-checkout-link a {
    color: #d32f2f;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover effect */
.custom-checkout-link a:hover {
    color: #b71c1c;
}

