/*
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. ***************/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Roboto:wght@400;500;700&display=swap');

/* ==========================================
   1. ĐỒNG BỘ TIÊU ĐỀ SẢN PHẨM MỚI
   ========================================== */
.title-new, 
h2.title-product-below { 
    color: #d31212 !important;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
}

.title-new h4 {
    color: #d31212 !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    font-size: 21px;
}

/* ==========================================
   2. TÙY CHỈNH TABS (PILLS)
   ========================================== */
.nav-pills > li > a {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #333333 !important;
    background-color: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 30px !important;
    padding: 8px 20px !important;
    margin: 5px;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-pills > li > a:hover {
    color: #d31212 !important;
    background-color: #fff1f1 !important;
    border-color: #d31212 !important;
}

.nav-pills > li.active > a {
    background-color: #d31212 !important;
    color: #ffffff !important;
    border-color: #d31212 !important;
    box-shadow: 0 4px 12px rgba(211, 18, 18, 0.3);
}

/* ==========================================
   3. TÙY CHỈNH BÊN TRONG Ô SẢN PHẨM
   ========================================== */
/* Tên sản phẩm */
.title-new .name.product-title a,
.title-new .woocommerce-loop-product__title a {
    color: #333333 !important;
    font-size: 14px !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
    text-decoration: none;
}

.title-new .box-text-products .title-wrapper .product-title a.woocommerce-LoopProduct-link {
    color: #333333 !important;
    font-size: 14px !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

.title-new .box-text-products .title-wrapper .product-title a.woocommerce-LoopProduct-link:hover {
    color: #d31212 !important;
}

/* Danh mục nhỏ trên tên sản phẩm */
.title-new .box-text-products .title-wrapper .category {
    color: #d31212 !important; 
    font-size: 11px !important; 
    font-weight: 600 !important;
}

/* Giá tiền */
.box-text-products .price-wrapper .price,
.box-text-products .price-wrapper .woocommerce-Price-amount,
.box-text-products .price-wrapper .woocommerce-Price-amount bdi,
.box-text-products .price-wrapper ins .woocommerce-Price-amount bdi {
    color: #d31212 !important;
    font-weight: 700 !important; 
}

.box-text-products .price-wrapper del .woocommerce-Price-amount bdi {
    color: #999999 !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

.box-text-products .price-wrapper .woocommerce-Price-currencySymbol {
    font-size: 0.8em;
    vertical-align: top;
}

/* ==========================================
   4. THÔNG TIN META (MÃ SKU & THƯƠNG HIỆU)
   ========================================== */
.baoha-top-meta {
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    color: #444444;
    margin-bottom: 12px;
    line-height: 1.6;
}

.baoha-top-meta .meta-line {
    margin-bottom: 5px;
}

.baoha-top-meta .highlight {
    color: #ea580c;
    font-weight: 600;
}

.baoha-top-meta .divider {
    margin: 0 10px;
    color: #333333;
    font-weight: normal;
}

.product_meta .sku_wrapper {
    display: none !important;
}

/* Khung nền chung cho ô Tình trạng */
.baoha-top-meta .stock-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 5px;
    text-transform: uppercase;
}

/* ==========================================
   5. STOCK BADGE
   ========================================== */
/* Thiết kế ô vuông CÒN HÀNG (Nền xanh nhạt, chữ xanh đậm) */
.baoha-top-meta .badge-instock {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Thiết kế ô vuông HẾT HÀNG (Nền đỏ nhạt, chữ đỏ đậm) */
.baoha-top-meta .badge-outofstock {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Thiết kế ô vuông ĐẶT TRƯỚC (Nền cam nhạt, chữ cam đậm) */
.baoha-top-meta .badge-backorder {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

/* ==========================================
   6. ÉP MÀU ĐỎ CHO GIÁ Ở TRANG CHI TIẾT SẢN PHẨM
   ========================================== */
.product-page-price .woocommerce-Price-amount,
.product-page-price .woocommerce-Price-amount bdi,
.product-page-price ins .woocommerce-Price-amount bdi {
    color: #d31212 !important;
    font-weight: 700 !important;
}

/* Thu nhỏ chữ ₫ và đẩy lên cao cho cân đối với số tiền to */
.product-page-price .woocommerce-Price-currencySymbol {
    font-size: 0.7em !important;
    vertical-align: text-top !important;
    color: #d31212 !important;
}

/* Nếu sản phẩm đang SALE, làm mờ giá gốc (bị gạch ngang) thành màu xám */
.product-page-price del .woocommerce-Price-amount,
.product-page-price del .woocommerce-Price-amount bdi {
    color: #999999 !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

/* ==========================================
   7. ĐỊNH DẠNG CHUNG CHO TIÊU ĐỀ SIDEBAR
   ========================================== */
#product-sidebar .widget-title {
    font-family: "Montserrat", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-align: center;
    color: #333333;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* ==========================================
   8. TRANG TRÍ WIDGET DANH MỤC SẢN PHẨM
   ========================================== */
#product-sidebar .widget_product_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#product-sidebar .widget_product_categories ul li {
    border-bottom: 1px solid #f5f5f5;
    padding: 12px 0;
    position: relative;
    display: block;
}

#product-sidebar .widget_product_categories ul li a {
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    color: #444444;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

/* ==========================================
   9. TRANG TRÍ WIDGET SẢN PHẨM ĐÃ XEM
   ========================================== */
#product-sidebar ul.product_list_widget li {
    display: flex !important;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 0;
}

/* Chỉnh ảnh thu nhỏ bên trái */
#product-sidebar ul.product_list_widget li img {
    width: 70px !important; /* Độ rộng ảnh */
    height: auto;
    margin-right: 15px;
    margin-bottom: 0 !important;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

/* Chỉnh tên sản phẩm đã xem */
#product-sidebar ul.product_list_widget li > a {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: #444444;
    line-height: 1.4;
    margin-bottom: 5px;
    display: block;
}

#product-sidebar ul.product_list_widget li > a:hover {
    color: #d31212;
}

/* Ép giá tiền thành màu đỏ #d31212 */
#product-sidebar ul.product_list_widget li .amount,
#product-sidebar ul.product_list_widget li ins .amount {
    color: #d31212 !important;
    font-weight: 700 !important;
    font-size: 15px;
}

/* Làm mờ giá cũ (nếu có giảm giá) */
#product-sidebar ul.product_list_widget li del .amount {
    color: #999999 !important;
    font-size: 13px;
    font-weight: 400 !important;
}

/* Căn chỉnh ký hiệu tiền tệ (₫) */
#product-sidebar ul.product_list_widget li .woocommerce-Price-currencySymbol {
    font-size: 0.8em;
    vertical-align: top;
}

/* ==========================================
   10. MỞ RỘNG ĐỘ RỘNG CỦA SIDEBAR BÊN PHẢI
   ========================================== */
@media (min-width: 850px) {
    /* Ép Sidebar từ 16.6% (large-2) lên 25% để không bị dồn chữ */
    #product-sidebar.large-2 {
        max-width: 25% !important; 
        flex-basis: 25% !important;
        padding-left: 20px; /* Đẩy Sidebar ra xa cột thông tin ở giữa một chút */
    }
}

/* ==========================================
   11. XỬ LÝ CHỐNG DỒN CHỮ CHO DANH MỤC
   ========================================== */
#product-sidebar .widget_product_categories ul li a {
    display: inline-block;
    width: 80%; /* Giới hạn chữ chiếm 80%, chừa 20% còn lại cho cái nút mũi tên xổ xuống */
    line-height: 1.5;
    white-space: normal; /* Cho phép chữ tự động rớt dòng mượt mà nếu quá dài */
}

/* ==========================================
   12. TRANG TRÍ MENU CON (SUB-MENU) 
   ========================================== */
/* Thụt lề cho các danh mục con để phân biệt rõ với mục cha */
#product-sidebar .widget_product_categories ul.children {
    margin-left: 15px !important;
    padding-left: 15px !important;
    border-left: 1px dashed #dddddd; /* Tạo một đường kẻ dọc đứt nét mờ mờ rất tinh tế */
    margin-top: 5px;
}

/* Căn chỉnh lại vị trí nút mũi tên sổ menu của Flatsome cho ngay ngắn */
#product-sidebar .widget_product_categories ul li .toggle {
    position: absolute;
    right: 0;
    top: 8px;
    color: #888888;
}

#product-sidebar .widget_product_categories ul li .toggle:hover {
    color: #d31212;
    background-color: transparent;
}

/* ==========================================
   13. SỬA LỖI WIDGET "SẢN PHẨM ĐÃ XEM" (CSS GRID CHUẨN)
   ========================================== */
#product-sidebar ul.product_list_widget {
    list-style: none !important; 
    padding: 0 !important;
    margin: 0 !important;
}

#product-sidebar ul.product_list_widget li {
    display: grid !important;
    grid-template-columns: 70px 1fr; /* Trái 70px cho ảnh, Phải chứa chữ */
    grid-template-areas:
        "hinhanh ten"
        "hinhanh gia"; /* Bản đồ lưới */
    column-gap: 15px; 
    row-gap: 3px; 
    padding: 15px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
    margin-bottom: 0 !important;
    align-items: center; 
}

/* "Tàng hình" lớp vỏ <a> */
#product-sidebar ul.product_list_widget li > a {
    display: contents !important;
}

/* Ép Hình Ảnh vào vùng "hinhanh" */
#product-sidebar ul.product_list_widget li img {
    grid-area: hinhanh;
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important; 
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    margin: 0 !important;
}

/* Ép Tên Sản Phẩm vào vùng "ten" */
#product-sidebar ul.product_list_widget li .product-title {
    grid-area: ten;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: #444444;
    line-height: 1.4;
    align-self: end; 
    word-break: break-word; 
}

#product-sidebar ul.product_list_widget li > a:hover .product-title {
    color: #d31212 !important;
}

/* Ép Giá Tiền vào vùng "gia" */
#product-sidebar ul.product_list_widget li .amount,
#product-sidebar ul.product_list_widget li ins .amount,
#product-sidebar ul.product_list_widget li .price {
    grid-area: gia;
    color: #d31212 !important;
    font-weight: 700 !important;
    font-size: 15px;
    align-self: start; 
    margin: 0 !important;
    display: block !important;
}

#product-sidebar ul.product_list_widget li del .amount {
    color: #999999 !important;
    font-size: 13px;
    font-weight: 400 !important;
    text-decoration: line-through;
    margin-right: 5px;
    display: inline-block !important;
}

#product-sidebar ul.product_list_widget li .woocommerce-Price-currencySymbol {
    font-size: 0.8em;
    vertical-align: top;
}

/* ==========================================
   14. TÁI CẤU TRÚC LƯỚI TRANG CHI TIẾT SẢN PHẨM (ĐÃ FIX KHOẢNG TRỐNG)
   ========================================== */
@media (min-width: 850px) {
    /* 1. Ảnh Sản Phẩm (Bên trái): Thu gọn còn 35% và dạt sát trái */
    .row.content-row > .product-gallery.large-6 {
        max-width: 35% !important;
        flex-basis: 35% !important;
        padding-right: 20px !important;
    }

    /* 2. Sidebar Danh mục (Bên phải): Cố định ở mức 25% */
    .row.content-row > #product-sidebar.large-2 {
        max-width: 25% !important; 
        flex-basis: 25% !important;
        padding-left: 15px !important;
    }

    /* 3. Thông tin sản phẩm (Ở giữa): Tự động giãn ĐẦY lấp kín 100% khoảng trống */
    .row.content-row > .product-info.col-fit {
        flex: 1 !important; /* Lệnh này báo trình duyệt tự động lấp đầy phần dư */
        max-width: 100% !important; 
        padding-right: 30px !important; /* Khoảng cách an toàn để không dính chữ vào sidebar */
    }
}

/* ==========================================
   15. BỐ CỤC LẠI KHU VỰC ĐẶT HÀNG (FORM CART)
   ========================================== */
form.cart {
    display: block !important; 
}

/* 2. Chỉ tạo Lưới (Grid) chia đôi ở đúng khu vực chứa số lượng và 2 nút mua */
form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart {
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* Chia 2 cột đều nhau */
    gap: 12px;
    margin-top: 15px;
}

/* 3. Ép ô số lượng chiếm trọn dòng đầu tiên */
form.cart .ux-quantity {
    grid-column: 1 / -1; 
    justify-self: start !important;
    margin-bottom: 5px !important;
}

/* 4. Căn chỉnh 2 nút mua hàng lấp đầy 2 cột bên dưới */
form.cart button.single_add_to_cart_button,
form.cart button.ux-buy-now-button {
    width: 100% !important; 
    margin: 0 !important; 
    border-radius: 30px !important; 
    padding: 12px 0 !important;
    font-size: 15px !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

/* ==========================================
   16. TRANG TRÍ Ô CHỌN SỐ LƯỢNG (ĐỎ THỂ THAO)
   ========================================== */
/* Khung bao ngoài */
form.cart .ux-quantity.buttons_added {
    display: inline-flex !important;
    border: 2px solid #d31212 !important; /* Viền đỏ chủ đạo */
    border-radius: 30px !important; /* Bo tròn đồng bộ với nút */
    overflow: hidden;
    height: 45px;
    background-color: #ffffff;
}

/* Nút Trừ (-) và Cộng (+) */
form.cart .ux-quantity.buttons_added input[type="button"] {
    background-color: transparent !important;
    color: #d31212 !important;
    border: none !important;
    width: 45px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    transition: all 0.3s ease;
}

/* Hiệu ứng khi rê chuột vào nút Trừ/Cộng */
form.cart .ux-quantity.buttons_added input[type="button"]:hover {
    background-color: #d31212 !important;
    color: #ffffff !important;
}

/* Ô nhập số lượng ở giữa */
form.cart .ux-quantity.buttons_added input[type="number"] {
    border: none !important;
    background-color: transparent !important;
    color: #333333 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-align: center !important;
    width: 60px !important;
    -moz-appearance: textfield; /* Ẩn mũi tên mặc định của trình duyệt */
}

/* ==========================================
   17. TRANG TRÍ 2 NÚT MUA HÀNG BÊN DƯỚI
   ========================================== */
/* Nút THÊM VÀO GIỎ (Viền đỏ, nền trong suốt) */
form.cart button.single_add_to_cart_button {
    background-color: transparent !important;
    color: #d31212 !important;
    border: 2px solid #d31212 !important;
}

form.cart button.single_add_to_cart_button:hover {
    background-color: #d31212 !important;
    color: #ffffff !important;
}

/* Nút MUA NGAY (Nền đỏ đậm, chữ trắng) */
form.cart button.ux-buy-now-button {
    background-color: #d31212 !important;
    color: #ffffff !important;
    border: 2px solid #d31212 !important;
}

form.cart button.ux-buy-now-button:hover {
    background-color: #a70e0e !important; /* Màu đỏ sẫm hơn khi rê chuột */
    border-color: #a70e0e !important;
}

/* ==========================================
   18. MỞ RỘNG FOOTER
   ========================================== */
/* Chỉ áp dụng cho màn hình máy tính để không lỗi giao diện điện thoại */
@media (min-width: 850px) {
    /* Đặt tổng số chia là 100% */
    #footer .footer-widgets .col:nth-child(1) { max-width: 24%; flex-basis: 24%; } /* Cột 1: About Us */
    #footer .footer-widgets .col:nth-child(2) { max-width: 21%; flex-basis: 21%; } /* Cột 2: Liên hệ */
    #footer .footer-widgets .col:nth-child(3) { max-width: 20%; flex-basis: 20%; } /* Cột 3: Dịch vụ */
    #footer .footer-widgets .col:nth-child(4) { max-width: 35%; flex-basis: 35%; } /* Cột 4: Chính sách */
}

/* ==========================================
   19. GIAO DIỆN VỢT HOT - CSS GRID (Đúng tỷ lệ ảnh)
   ========================================== */
.baoha-hot-products-wrapper {
    display: grid;
    grid-template-columns: 24% 74%; /* Cột trái chứa banner 24%, cột phải 74% */
    grid-template-rows: auto auto;
    gap: 20px 2%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    align-items: start;
    font-family: sans-serif;
}

/* --- HÀNG 1: Tiêu đề (Cột 1) --- */
.hp-header-title {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-self: center; /* Căn giữa theo chiều dọc với Tabs */
}
.hp-header-title h2 {
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    color: #333;
}

/* --- HÀNG 2: Banner (Cột 1) --- */
.hp-banner {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}
.hp-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* --- MAGIC CSS: Mở khóa cấu trúc Tab của Flatsome --- */
.hp-product-tabs-dynamic,
.hp-product-tabs-dynamic .tabbed-content {
    display: contents; /* Biến thẻ cha trở nên vô hình trong layout grid */
}

/* --- HÀNG 1: Menu Tabs Pill (Cột 2) --- */
.hp-product-tabs-dynamic ul.nav-pills {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: center;
    justify-content: flex-end !important; /* Đẩy Tabs sang sát lề phải */
    margin: 0 !important;
    border: none;
}

/* Style cho từng viên Pill */
.hp-product-tabs-dynamic ul.nav-pills li {
    margin: 0 5px;
}
.hp-product-tabs-dynamic ul.nav-pills li a {
    padding: 6px 20px !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 99px !important;
    font-size: 14px;
    color: #666 !important;
    background: #fff !important;
    transition: all 0.3s ease;
    font-weight: normal;
}
.hp-product-tabs-dynamic ul.nav-pills li a:hover {
    border-color: #ff0000 !important;
    color: #ff0000 !important;
}

/* Trạng thái Tab đang chọn -> Màu Đỏ */
.hp-product-tabs-dynamic ul.nav-pills li.active a {
    background-color: #ff0000 !important;
    color: #fff !important;
    border-color: #ff0000 !important;
    font-weight: 500;
}
.hp-product-tabs-dynamic ul.nav-pills li.active a::after {
    display: none !important; /* Tắt gạch chân mặc định của Flatsome */
}

/* --- HÀNG 2: Grid Sản phẩm (Cột 2) --- */
.hp-product-tabs-dynamic .tab-panels {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* ==========================================
   Responsive cho Mobile & Tablet 
   ========================================== */
@media (max-width: 849px) {
    /* Chuyển thành 1 cột dọc xếp chồng lên nhau */
    .baoha-hot-products-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .hp-product-tabs-dynamic,
    .hp-product-tabs-dynamic .tabbed-content {
        display: block; /* Trả lại cấu trúc Flatsome nguyên bản trên Mobile */
    }
    .hp-header-title {
        text-align: center;
    }
    .hp-product-tabs-dynamic ul.nav-pills {
        justify-content: flex-start !important;
        flex-wrap: nowrap;
        overflow-x: auto; /* Vuốt ngang trên điện thoại */
        white-space: nowrap;
        padding-bottom: 5px;
    }
    .hp-banner {
        margin-top: 10px;
    }
}

/* Thiết kế nút Xem thêm */
.view-more-container .button.secondary.is-outline {
    border: 2px solid #ff0000; /* Màu đỏ chủ đạo */
    color: #ff0000;
    border-radius: 50px; /* Bo tròn hoàn toàn dạng pill */
    padding: 10px 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    background: transparent;
    transition: all 0.3s ease; /* Hiệu ứng chuyển động mượt */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ */
}

/* Hiệu ứng khi di chuột vào (Hover) */
.view-more-container .button.secondary.is-outline:hover {
    background-color: #ff0000; /* Đổi sang nền đỏ */
    color: #ffffff; /* Chữ trắng */
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.3); /* Bóng đổ đậm hơn và màu đỏ */
    transform: translateY(-2px); /* Hiệu ứng nhấc nút lên một chút */
}

/* ==========================================
   20. CÂN BẰNG CHIỀU CAO ICON BOX DỊCH VỤ
   ========================================== */

/* Ép tiêu đề luôn có chiều cao cố định (đủ khoảng không cho 2 dòng chữ) */
.icon-box.icon-box-center h5.icon-box-title,
.icon-box.icon-box-center h4.icon-box-title {
    min-height: 48px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14px !important; /* Điều chỉnh lại cỡ chữ cho cân đối */
    line-height: 1.4;
}

/* Đảm bảo toàn bộ hộp giãn đều 100% */
.icon-box.icon-box-center {
    height: 100%;
    padding: 20px 10px;
    border-radius: 8px; /* Thêm bo góc mềm mại cho khung trắng */
}

/* Chỉnh lại dòng mô tả màu đỏ bên dưới */
.icon-box.icon-box-center .icon-box-text p {
    font-size: 13px !important;
    margin-bottom: 0;
}

/* ==========================================
   21. LÀM ĐẸP DROPDOWN MENU
   ========================================== */

/* 1. Khung ngoài của Dropdown: Bo góc và đổ bóng */
.header-nav .nav-dropdown {
    border-radius: 8px !important; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important; 
    border: none !important; 
    padding: 10px 0 !important; /* Tạo không gian thở trên dưới */
}

/* 2. Các mục menu (Vợt Cầu Lông, Giày Cầu Lông...) */
.header-nav .nav-dropdown > li > a {
    white-space: nowrap !important; /* ÉP CHỮ NẰM TRÊN 1 DÒNG, HẾT BỊ RỚT CHỮ */
    min-width: 220px; /* Mở rộng độ rộng tối thiểu của cột */
    padding: 12px 20px !important;
    font-size: 14px;
    font-weight: 500;
    color: #333 !important;
    border-bottom: 1px solid #f5f5f5 !important; /* Đường kẻ phân cách cực mờ, tinh tế */
    transition: all 0.3s ease;
}

/* Ẩn đường kẻ ở mục cuối cùng cho sạch sẽ */
.header-nav .nav-dropdown > li:last-child > a {
    border-bottom: none !important;
}

/* 3. Hiệu ứng khi rê chuột vào (Hover) */
.header-nav .nav-dropdown > li > a:hover,
.header-nav .nav-dropdown > li.active > a {
    background-color: #fafafa !important;
    color: #ff0000 !important; /* Đổi màu chữ sang đỏ đặc trưng của bạn */
    padding-left: 25px !important; /* Hiệu ứng trượt chữ nhẹ nhàng sang phải */
}

/* 4. Tùy biến Font cho Menu Con (Sub-menu bên phải) */
.header-nav .nav-dropdown ul.children > li > a {
    white-space: nowrap !important;
    font-size: 13px;
    color: #555 !important;
    transition: color 0.2s ease;
}
.header-nav .nav-dropdown ul.children > li > a:hover {
    color: #ff0000 !important;
}

/* ==========================================
   22. STYLE TIÊU ĐỀ LIÊN HỆ ĐẸP
   ========================================== */
.baoha-contact-info {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* Đường kẻ phân cách nhẹ nhàng */
}

.info-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #444;
}

/* Style cho Icon */
.info-item i {
    margin-right: 12px;
    color: #f58220; /* Màu cam cam kết */
    font-size: 18px;
}

/* Style cho số điện thoại và email */
.info-item strong {
    color: #333;
    margin-right: 5px;
}
.info-item a {
    color: #f58220 !important; /* Màu cam nổi bật */
    font-weight: 600;
    transition: 0.3s;
}
.info-item a:hover {
    color: #d16e1a !important;
    text-decoration: underline;
}

/* Container chính */
.bh-contact-form {
    padding: 20px 0;
}

/* Chia cột Họ tên và Email */
.bh-contact-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Style chung cho ô nhập liệu */
.bh-contact-form .form-group {
    margin-bottom: 15px;
}

.bh-contact-form input[type="text"],
.bh-contact-form input[type="email"],
.bh-contact-form input[type="tel"],
.bh-contact-form textarea {
    width: 100%;
    padding: 15px !important;
    border: 2px solid #f0f0f0 !important; /* Viền nhạt tạo vẻ hiện đại */
    border-radius: 8px !important; /* Bo tròn các góc */
    background: #f9f9f9 !important;
    transition: all 0.3s ease;
}

/* Hiệu ứng khi nhấn vào ô (Focus) */
.bh-contact-form input:focus,
.bh-contact-form textarea:focus {
    border-color: #ff0000 !important; /* Chuyển thành viền đỏ khi nhập */
    background: #fff !important;
    outline: none;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.1);
}

/* Style cho nút Gửi thông tin */
.bh-contact-form .wpcf7-submit {
    width: 100%;
    padding: 15px !important;
    background-color: #ff0000 !important; /* Màu đỏ thương hiệu */
    color: #fff !important;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
}

.bh-contact-form .wpcf7-submit:hover {
    background-color: #d10000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .bh-contact-form .form-grid {
        grid-template-columns: 1fr;
    }
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
}