/*
Theme Name: Tidigi Agency
Theme URI: https://tidigi.vn/
Description: Child theme
Author: Tidigi Agency
Author URI: https://tidigi.vn/
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
*/

/* Khối 1: Khuyến mãi mua số lượng lớn */
.custom-block-wholesale {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border: 1px dashed #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    gap: 15px;
}
.custom-block-wholesale .wholesale-icon {
    width: 36px;
    height: 36px;
    color: #ff8a00;
    flex-shrink: 0;
}
.custom-block-wholesale .wholesale-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
}
.custom-block-wholesale .wholesale-text a {
    color: #ff8a00;
    font-weight: bold;
    text-decoration: none;
}
.custom-block-wholesale .wholesale-text a:hover {
    text-decoration: underline;
}

/* Khối 2: Chính sách bảo hành & vận chuyển */
.custom-block-policy {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.custom-block-policy .policy-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.custom-block-policy .policy-icon {
    color: #28a745; /* Màu xanh lá cho icon tick */
    font-weight: bold;
    font-size: 16px;
    width: 20px;
    height: 20px;
    background-color: #eafaf1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.custom-block-policy .policy-text {
    font-size: 14px;
    color: #333333;
    font-weight: 500;
}

.single-product div.product_meta {
    display: none !important;
}

/* Ép buộc hiển thị 2 cột sản phẩm trên thiết bị di động cho shortcode WooCommerce */
@media (max-width: 767px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-gap: 10px !important; /* Khoảng cách giữa 2 cột, anh có thể tăng/giảm tùy ý */
    }
    
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
}

/* Thu nhỏ nhãn dán HOT, NEW của plugin WPC */
/* Thu nhỏ nhãn dán HOT, NEW của plugin WPC */
.wpcbm-badge {
    padding: 3px 8px !important;
}

.wpcbm-badge .wpcbm-badge-inner {
    font-size: 11px !important;
    line-height: 1.2 !important;
}

/* Thu nhỏ nhãn Giảm giá mặc định của Kadence/WooCommerce */
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
    font-size: 11px !important;
    padding: 3px 8px !important;
    line-height: 1.2 !important;
    min-height: unset !important;
    min-width: unset !important;
    border-radius: 4px !important;
}

/* Định dạng nút Shopee */
.btn-shopee-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ee4d2d; /* Mã màu cam chuẩn của Shopee */
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-left: 10px;
    border: none;
    vertical-align: middle;
    transition: background-color 0.2s ease-in-out;
}

.btn-shopee-custom:hover {
    background-color: #d73a1e; /* Hiệu ứng hover tối màu hơn */
    color: #ffffff;
}

.btn-shopee-custom .shopee-icon {
    margin-right: 8px;
    fill: #ffffff;
}

/* Đưa form giỏ hàng về dạng Flexbox để căn chỉnh các thành phần thẳng hàng */
form.cart {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px; /* Tạo khoảng cách đều giữa ô số lượng, nút Thêm giỏ hàng và nút Shopee */
}

/* Loại bỏ margin thừa mặc định để tránh xô lệch khi đã dùng gap */
form.cart .quantity,
form.cart .single_add_to_cart_button,
form.cart .btn-shopee-custom {
    margin: 0 !important;
}

/* Đồng bộ cấu trúc và chiều cao cho cả 2 nút */
form.cart .single_add_to_cart_button,
form.cart .btn-shopee-custom {
    height: 42px !important; /* Anh có thể tăng/giảm con số này tùy theo thiết kế của giao diện */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
/* Đổi màu tiêu đề sản phẩm */
h1.product_title.entry-title {
    color: #2b6cb0 !important;
}

/* Đổi màu giá bán (trong thẻ ins) */
ins .woocommerce-Price-amount.amount {
    color: #2b6cb0 !important;
}

/* Tùy chọn: Đổi màu cả ký hiệu tiền tệ nếu cần đồng bộ */
ins .woocommerce-Price-amount.amount .woocommerce-Price-currencySymbol {
    color: #2b6cb0 !important;
}