/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
/* == CUSTOM == */
body {font-family: Roboto, sans-serif; color:#333;font-size:16px;line-height:26px;}
a {color: #EA8F2E;}
p {margin-bottom: 0;}
p img {margin-bottom:10px;}
ul {margin-bottom: 15px;}
h2 { font-family: Roboto, sans-serif;font-size: 22px;line-height: 42px;font-weight: 700;}
h3 {font-family: Roboto, sans-serif;font-weight: 700;font-size: 20px;line-height: 32px;}
ul.checked-icon {list-style: none;padding-left: 5px;}
ul.checked-icon li:before {content: url(https://khomayviet.com/wp-content/uploads/2019/03/1180px-Checkmark_green.svg_.png);line-height: 32px;margin-right: 5px;}
table {background: #efefef;border-color: #fff;font-size:1em !important}
table tbody tr:first-child {font-weight: bold;text-transform: uppercase;border-bottom-color: #999;background: #bbb;}
table tbody tr:nth-child(2n) {background: #f5f5f5;}

/* Add your custom styles here */
/* == HEADER == */
.topnav p {margin-bottom: 0 !important;}
.topnav .e-con-inner {padding: 4px 8px;}
.topnav span b {color:#EA8F2E;}
.topnav li.menu-item {border-left:1px solid #ddd;}
.topnav li.menu-item:first-child {border-left:0;}
.topnav li.menu-item:last-child a {padding-right:0 !important;}
.header-main {padding:10px 0 !important;}
.navbar .wpr-nav-menu .wpr-sub-menu {width:292px;margin-left: -10px;}
.navbar .wpr-nav-menu .wpr-sub-menu a.wpr-sub-menu-item {padding-left: 20px;}
.categories-nav .wpr-sub-icon {display:none;}
/* Mặc định ẩn sub-menu trên toàn site */
.main-navigation ul ul {display: none;}
/* Chỉ hiển thị sub-menu khi di chuột qua mục cha */
.main-navigation ul li:hover > ul {display: block;}
/* Nếu bạn muốn menu LUÔN MỞ chỉ riêng tại Trang Chủ */
.home .categories-nav ul ul {display: block !important;}
.rightnavbar li.menu-item {border-left:1px solid #fff;}
.rightnavbar li.menu-item:first-child {border-left:0;}
.rightnavbar li.menu-item:last-child a {padding-right:0 !important;}
.search-mobi {margin-bottom:0 !important;}

button:focus, button:hover {background-color: #EA8F2E !important;}

/* == FOOTER == */
/* Tạo khối tiêu đề ribbon */
#ribbon-footer {position: relative;display: inline-block;background: #EA8F2E; /* Màu cam logo */color: #fff;z-index: 1;text-decoration: underline;}
/* Tạo hình tam giác gập góc */
#ribbon-footer::before {content: ""; position: absolute; top: 0; /* left: 0; */ right: 100%; width: 7px; border-style: solid; border-width: 0 0 16px 10px; border-color: transparent transparent #b96913 transparent;}
#footer-menu .elementor-nav-menu--dropdown {
	background: none !important;
}
/* 1. Xóa định dạng danh sách mặc định */
#footer-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Định dạng từng dòng (List Item) */
#footer-menu ul li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15) !important; /* Đường kẻ ngang mờ dạng nét đứt */
    padding: 10px 0 !important; /* Khoảng cách trên dưới */
    position: relative !important;
}

/* Xóa đường kẻ ở dòng cuối cùng cho đẹp */
#footer-menu ul li:last-child {
    border-bottom: none !important;
}

/* 3. Định dạng thẻ Link (Chữ) */
#footer-menu ul li a {
    color: #ffffff !important; /* Màu chữ trắng (hoặc xám nhạt #dddddd) */
    text-decoration: none !important;
    font-size: 14px !important; /* Kích thước chữ */
    display: block !important;
    transition: all 0.3s ease !important; /* Hiệu ứng mượt mà */
    padding-left: 5px !important;
	padding:2px;
}

/* 4. Tạo icon mũi tên (>) bằng CSS trước mỗi dòng */
#footer-menu ul li a::before {
    content: "›" !important;
    font-size: 16px !important;
    line-height: 14px !important;
    /* margin-right: 20px !important; */
    color: #fff !important;
    font-weight: bold !important;
    display: inline-block;
    opacity: 1;
    background: none;
    position: relative;
    right: 5px;
}

/* 5. HIỆU ỨNG HOVER (Khi di chuột vào) */
#footer-menu ul li a:hover {
    color: #f39c12 !important; /* Chuyển sang màu Cam thương hiệu */
    padding-left: 8px !important; /* Trượt nhẹ sang phải */
}

/* Đổi màu mũi tên khi hover luôn cho đồng bộ */
#footer-menu ul li a:hover::before {
    color: #f39c12 !important;
}

/* == SINGLE PRODUCT ==*/
p.price {
	margin-bottom: 0;
}
.product_meta {
	display: grid !important;
}
/* =======================================================
   STYLE CHO SHORTCODE TAB DỌC (UPDATE: THẺ DIV)
   ======================================================= */

.devvn-stacked-tabs-wrapper {
    width: 100%;
    margin-top: 20px;
}

.devvn-tab-block {
    margin-bottom: 20px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 20px;
}

.devvn-tab-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* STYLE CHO THẺ DIV TIÊU ĐỀ */
.devvn-tab-heading {
    font-size: 20px !important;    /* Đảm bảo chữ to */
    font-weight: 700 !important;   /* Đảm bảo chữ đậm */
    text-transform: uppercase;
    color: #333;
    margin-bottom: 20px;
    padding-left: 15px;
    position: relative;
    line-height: 1.4;
    display: block; /* Đảm bảo nó chiếm cả dòng */
}

/* Vạch màu cam bên trái */
.devvn-tab-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background-color: #EA8F2E; /* Màu cam chủ đạo */
    border-radius: 2px;
}

.devvn-tab-body {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.devvn-tab-body #reviews #comments {
    padding: 0;
    margin: 0;
}
/* =======================================================
   STYLE NÚT GỌI MUA HÀNG (CUSTOM CALL BUTTON)
   ======================================================= */

.devvn-call-btn-wrapper {
    width: 100%;
}

.devvn-call-btn {
    display: block;
    width: 100%;
    background-color: #EA8F2E; /* Màu cam theo mẫu */
    color: #ffffff !important; /* Chữ trắng */
    text-align: center;
    padding: 15px 10px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    line-height: 1.4;
	font-family: 'Roboto';
}

/* Style cho số điện thoại (In đậm) */
.devvn-call-btn strong {
    font-weight: 700;
    font-size: 17px;
    margin-left: 3px;
}

/* Style cho icon túi xách */
.devvn-call-btn i {
    margin-right: 8px;
    font-size: 18px;
    position: relative;
    top: 1px;
}

/* Hiệu ứng khi di chuột vào */
.devvn-call-btn:hover {
    background-color: #d67a12; /* Màu cam đậm hơn khi hover */
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* =======================================================
   CUSTOM SALE BADGE V10.0: MÀU CAM THƯƠNG HIỆU (#EA8F2E)
   ======================================================= */

/* 1. Cấu hình chung cho nhãn (Style Tem Bo Góc) */
.woocommerce span.onsale {
    /* Reset kích thước để chữ không bị méo */
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
    
    /* Căn chỉnh vị trí */
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    
    /* GIAO DIỆN TEM MÀU CAM */
    background-color: #EA8F2E !important; /* Màu cam chủ đạo */
    color: #ffffff !important; /* Chữ trắng */
    padding: 4px 8px !important; /* Khoảng cách chữ và viền */
    border-radius: 4px !important; /* Bo góc hiện đại */
    
    /* Font chữ */
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    
    /* Hiển thị */
    display: inline-block !important;
    z-index: 9;
    box-shadow: none !important;
    position: absolute;
}

/* 2. Tinh chỉnh cho TRANG CHI TIẾT SẢN PHẨM (To hơn một chút) */
.single-product .product-images span.onsale,
.single-product .woocommerce-product-gallery span.onsale {
    font-size: 14px !important;
    padding: 6px 12px !important;
    top: 15px !important;
    left: 15px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 6px rgba(234, 143, 46, 0.3) !important; /* Bóng đổ màu cam nhẹ */
}

/* 3. Tinh chỉnh cho MENU SẢN PHẨM & MOBILE (Nhỏ gọn) */
ul.products li.product span.onsale,
.elementor-widget-woocommerce-products span.onsale,
.related.products span.onsale {
    font-size: 11px !important;
    padding: 3px 6px !important;
    top: 8px !important;
    left: 8px !important;
}

/* Xử lý lỗi hình ảnh bị đè (nếu có) */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    position: relative; 
    display: block;
}

/* =======================================================
   STYLE WIDGET: DẤU CỘNG/TRỪ (TEXT THUẦN)
   ======================================================= */

/* 2. STYLE CHO DẤU CỘNG/TRỪ CỦA BẠN */
.widget-toggle-icon {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;        /* Chiều rộng vùng bấm */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;    /* Kích thước dấu cộng/trừ (To rõ) */
    font-weight: 300;   /* Độ mảnh của nét chữ */
    color: #999;        /* Màu xám mặc định */
    line-height: 1;
    font-family: Arial, sans-serif; /* Dùng font cơ bản để dấu + - hiển thị đẹp nhất */
}

/* Khi hover vào tiêu đề -> Đổi màu cam */
.widget-title:hover .widget-toggle-icon {
    color: #EA8F2E;
}

/* Khi đóng lại (thành dấu cộng) thì cho đậm hơn 1 chút nếu muốn */
.widget-toggle-icon.is-plus {
    font-weight: 400;
}
/* 1. Khung Widget & Tiêu đề */
h2.widget-title {
    color: #313131 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 28px;
    text-transform: uppercase !important;
    margin-top: 0 !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
	margin-bottom: 20px !important;
}
section.widget {
    border-bottom: 1px solid #efefef;
    margin-bottom: 0;
    margin-top: 0;
    padding: 20px;
	font-family: 'Roboto';
}
section.widget ul.checked-icon li {
	font-size: 15px;
}

/* === CATEGORIES WIDGET === */

/* 2. Cấu trúc Danh sách (Fix lỗi vỡ layout & Cho phép thu gọn) */
.widget_product_categories > ul { display: block; padding:0 !important; margin: 0 !important; width: 100%; }
.widget_product_categories li { display: block !important; float: none !important; width: 100% !important; position: relative !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }

/* 3. Style Danh mục CHA (Cấp 1) */
.widget_product_categories > ul > li > a {display: block !important;
    padding: 4px 0px !important;
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 26px;
    text-decoration: none !important;
    transition: all 0.2s;}

/* 4. Style Danh mục CON (Cấp 2) & Dấu vuông */
.widget_product_categories ul.children { 
	display:none;
	list-style: square;
    text-transform: none;
    padding-bottom: 10px;
    font-weight: 400; padding-left: 15px;}
.widget_product_categories ul.children li a { font-size: 16px !important;
    line-height: 26px;
    color: #333 !important;
    position: relative !important;
    text-decoration: none;
    display: block;
    padding: 4px 0;}
.widget_product_categories ul.children li a::before { content: "▪";
    font-size: 15px;
    color: #ccc !important;
    position: absolute;
    left: -15px;
    top: 10px;
    line-height: 1; }

/* 5. Nút Mũi tên (Toggle) */
.cat-toggle { position: absolute !important; top: -5px !important; right: -7px !important; width: 45px !important; height: 45px !important; display: flex !important; align-items: center; justify-content: center; cursor: pointer !important; z-index: 10 !important; }
.cat-toggle i { color: #aaa; font-size: 12px !important; transition: transform 0.3s; }
.cat-toggle.open i { transform: rotate(180deg); color: #d71a21 !important; }

/* 6. Màu sắc Active & Hover (Màu đỏ thương hiệu) */
.widget_product_categories a:hover,
.widget_product_categories li.current-cat > a,
.widget_product_categories li.current-cat-parent > a { color: #d71a21 !important; }
/* Danh mục CON đang Active: Đậm + Đỏ */
.widget_product_categories ul.children li.current-cat > a { font-weight: 700 !important; }
.widget_product_categories ul.children li a:hover::before,
.widget_product_categories ul.children li.current-cat > a::before { color: #d71a21 !important; }


/* Tạo đường kẻ ngang cho tiêu đề sản phẩm */
#heading-product-box {
    display: flex;
    align-items: center; /* Căn giữa đường kẻ theo chiều dọc của chữ */
    width: 100%;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}
#heading-product-box::after {
    content: "";
    flex: 1; /* Để đường kẻ chiếm hết khoảng không gian còn lại bên phải */
    height: 1px; /* Độ dày của đường kẻ mảnh */
    background: #ccc; /* Màu xám nhạt cho đường kẻ */
    margin-left: 15px; /* Khoảng cách giữa chữ và đường kẻ */
}
#heading-content-box {
	display:flex;
    align-items: center; /* Căn giữa đường kẻ theo chiều dọc của chữ */
    width: 100%;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}
#heading-content-box::after {
    content: "";
    flex: 1; /* Để đường kẻ chiếm hết khoảng không gian còn lại bên phải */
    height: 1px; /* Độ dày của đường kẻ mảnh */
    background: #ccc; /* Màu xám nhạt cho đường kẻ */
    margin-left: 15px; /* Khoảng cách giữa chữ và đường kẻ */
}
#heading-content-box::before {
    content: "";
    flex: 1; /* Để đường kẻ chiếm hết khoảng không gian còn lại bên phải */
    height: 1px; /* Độ dày của đường kẻ mảnh */
    background: #ccc; /* Màu xám nhạt cho đường kẻ */
    margin-right: 15px; /* Khoảng cách giữa chữ và đường kẻ */
}

/* Chống nhấp nháy và ép menu hiện ngay lập tức */
.wpr-nav-menu-horizontal .sub-menu.wpr-sub-menu {
    transition: none !important; /* Tắt mọi hiệu ứng chuyển động gây nháy */
    opacity: 1 !important; /* Ép độ hiển thị rõ nét 100% */
    visibility: visible !important;
    display: none; /* Mặc định ẩn */
}
/* Chỉ hiện khi hover và không nhấp nháy */
.wpr-nav-menu-horizontal .menu-item:hover > .sub-menu.wpr-sub-menu {
    display: block !important;
    animation: none !important; /* Tắt các hiệu ứng animation của Royal Addons */
}

/* Tạo lớp đệm tàng hình để không bị mất menu khi rê chuột */
.wpr-nav-menu-horizontal .menu-item-has-children {
    position: relative;
    padding-bottom: 15px !important; /* Tạo vùng đệm 15px phía dưới menu cha */
    margin-bottom: -15px !important; /* Bù trừ lại để không làm lệch giao diện */
}

/* Đảm bảo sub-menu hiển thị mượt mà và không nhấp nháy */
.wpr-sub-menu {
    top: 100% !important; 
    margin-top: 0px !important; /* Khoảng cách hiển thị đẹp mắt */
    opacity: 1 !important;
    transition: all 0.3s ease-in-out !important;
}

/* Hiệu ứng hiển thị khi hover */
.wpr-nav-menu-horizontal .menu-item-has-children:hover > .wpr-sub-menu {
    display: block !important;
    visibility: visible !important;
}

/* == TRANG CHỦ == */



/* == TABLET AND MOBILE ==*/
@media screen and (max-width: 1024px) {
	
}
/* == MOBILE ==*/
@media screen and (max-width: 767px) {
	.header-main {padding:0 !important;}
	.header-mobile {box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);}

/* Ẩn khung tìm kiếm lúc ban đầu */
.an-luc-dau {
    display: none !important;
}

/* Hiệu ứng hiện ra mượt mà */
.hien-ra {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}
.an-luc-dau.hien-ra {background:#f4f4f4;}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
}

/* == DANH MỤC SẢN PHẨM == */

/* --- ĐỒNG BỘ STYLE TRANG DANH MỤC WOOCOMMERCE --- */
/* 1. Ẩn nút Thêm vào giỏ hàng trên toàn trang */
.woocommerce ul.products li.product .button.add_to_cart_button {
    display: none !important;
}
/* Ẩn nút Đọc tiếp cho các sản phẩm không có giá */
.woocommerce ul.products li.product .button.product_type_simple,
.woocommerce ul.products li.product .button.read_more {
    display: none !important;
}
/* Ẩn tất cả các loại nút mua hàng/đọc tiếp ở trang chủ và các trang danh mục */
.woocommerce ul.products li.product .button, 
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .product_type_external,
.woocommerce ul.products li.product .product_type_simple {
    display: none !important; /* Xóa bỏ hoàn toàn nút */
}

/* Đảm bảo khoảng cách dưới giá tiền/liên hệ trông cân đối sau khi ẩn nút */
.woocommerce ul.products li.product .price {
    margin-bottom: 15px !important;
}
/* Style cho chữ Liên hệ mới tạo */
.price-contact-red {
    color: #d71a21 !important; /* Màu đỏ giá tiền đặc trưng */
    font-weight: 700 !important; /* Đậm giống style giá hiện tại */
    font-size: 18px !important;
    display: block;
    margin-bottom: 10px;
}
/* 2. Fix chiều cao tiêu đề sản phẩm để 5 cột thẳng hàng */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    height: 48px !important; /* Độ cao cố định cho 2 dòng chữ */
    display: block !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

/* 3. Hiệu ứng Hover đẩy Box lên và viền cam */
.woocommerce ul.products li.product {
    transition: all 0.3s ease-in-out !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px) !important; /* Đẩy box lên */
    border-color: #f39c12 !important; /* Viền cam */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* 1. Chia 4 cột đồng nhất trên Desktop */
.archive.woocommerce ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -5px !important; /* Tạo khoảng trừ lề cho padding bên trong */
    padding: 0 !important;
    list-style: none !important;
}

.archive.woocommerce ul.products li.product {
    width: 25% !important; /* 4 cột = 25% */
    flex: 0 0 24% !important;
    max-width: 25% !important;
    padding: 10px !important; /* Khoảng cách giữa các ô */
    box-sizing: border-box !important;
    float: none !important; /* Loại bỏ thuộc tính float cũ của Woo */
}

/* 2. Tạo khung Inner Box giống trang chủ */
.archive.woocommerce ul.products li.product {
    border: 1px solid #eee !important;
    background: #fff !important;
    transition: all 0.3s ease-in-out !important;
    position: relative;
}

/* 4. Định dạng chữ và giá tiền */
.archive.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    color: #333 !important;
    font-weight: 500 !important;
    overflow: hidden;
    margin: 10px 0 !important;
}

.archive.woocommerce ul.products li.product .price {
    color: #d71a21 !important; /* Màu đỏ giá tiền */
    font-weight: 700 !important;
}

/* 5. Loại bỏ hiệu ứng làm tối ảnh nếu có */
.archive.woocommerce ul.products li.product:hover img {
    filter: none !important;
    opacity: 1 !important;
}



/* --- RESPONSIVE CHO TRANG DANH MỤC --- */

/* Mobile: 2 cột */
@media (max-width: 767px) {
    .archive.woocommerce ul.products li.product {
        width: 50% !important;
        flex: 0 0 48% !important;
        max-width: 50% !important;
    }
}



/* --- CHÍNH SÁCH BÁN HÀNG (Icon tích xanh) --- */
.chinh-sach-ban-hang ul {
    padding: 15px 20px !important;
    list-style: none !important;
}

.chinh-sach-ban-hang ul li {
    position: relative;
    padding-left: 30px !important;
    margin-bottom: 12px !important;
    font-size: 14px;
    line-height: 1.4;
}

/* Tạo icon tích xanh giả lập Porto */
.chinh-sach-ban-hang ul li::before {
    content: '✔'; 
    position: absolute;
    left: 0;
    color: #43ad43; /* Màu xanh lá đặc trưng */
    font-weight: bold;
    font-size: 18px;
}

/* --- LIÊN HỆ ĐẶT MUA (Hotline) --- */
.sidebar-hotline {
    padding: 15px 20px !important;
}

.sidebar-hotline span {
    display: block;
    margin-bottom: 5px;
}

.sidebar-hotline .phone-number {
    color: #d71a21 !important; /* Màu đỏ hotline */
    font-weight: 800 !important;
    font-size: 18px !important;
}

/* =======================================================
   STICKY SIDEBAR: THANH BÊN TRƯỢT THEO
   ======================================================= */
/* Chỉ áp dụng trên máy tính (Màn hình > 992px) */
@media (min-width: 992px) {
    
    /* Danh sách các Class/ID phổ biến của Sidebar trong WordPress */
    /* (Code sẽ tự nhận diện đúng cái mà theme bạn đang dùng) */
    #secondary, 
    #sidebar, 
    .widget-area, 
    .sidebar-main,
    .sidebar-container,
    div[role="complementary"] {
        position: -webkit-sticky; /* Hỗ trợ trình duyệt Safari cũ */
        position: sticky;
        top: 20px; /* Khoảng cách cách mép trên cùng khi trượt (để hở 1 chút cho thoáng) */
        z-index: 90; /* Đảm bảo nó nổi lên trên các thành phần nền */
        height: fit-content; /* Quan trọng: Giúp sidebar không bị kéo giãn */
        align-self: flex-start; /* Quan trọng nếu theme dùng Flexbox */
    }
}

/* == TRANG ==*/
.page div.page-header {opacity: 0.001; height: 0px; margin-top: -10px;}
.about-title span {font-size: 24px; color: #333;}