/*
 Theme Name:   Hello elementor child
 Description:  child theme of hello elementor
 Author:       NQC
 Template:     hello-elementor
 Version:      1.0.0
*/
.elementor-kit-9 {
--e-global-color-primary: #515151;
    --e-global-color-secondary: #515151;
    --e-global-color-text: #515151;
    --e-global-color-accent: #3B833D;
    --e-global-color-d2284e8: #004A1D;
    --e-global-color-bda6480: #006127;
    --e-global-color-7f8ec85: #007D32;
    --e-global-color-25999ad: #3B833D;
    --e-global-color-c553860: #00A040;
    --e-global-color-22b442b: #33C06B;
    --e-global-color-c5a9c26: #00B046;
    --e-global-color-63c11b2: #53B956;
    --e-global-color-b4129bf: #B0DFB1;
    --e-global-typography-primary-font-family: "VanSans";
    --e-global-typography-primary-font-weight: 400;
    --e-global-typography-secondary-font-weight: 400;
    --e-global-typography-text-font-weight: 400;
    --e-global-typography-accent-font-weight: 400;
    font-family: "Be Vietnam Pro", Sans-serif;
}
/* ====================================================
   1. CẤU TRÚC HEADER CHÍNH (CHUẨN SEO)
======================================================= */
.mk-header {
    position: relative;
    z-index: 999;
    background-color: #FFFFFF;
    border-bottom: 1px solid #DAE8E1;
}

.mk-header__inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 5.625rem;
    padding: 0 6.38rem;
    max-width: 100%;
}

.mk-header__logo {
    text-align: center;
}

.mk-header__logo img {
    width: 9.1rem;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ====================================================
   2. MENU DESKTOP (NAVIGATION)
======================================================= */
.mk-nav__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mk-nav__item {
    position: relative;
    display: block;
}

.mk-nav__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.75rem 1rem;
    color: #0D440E;
    font-family: "Helvetica Neue", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mk-nav__icon svg {
    width: 0.7rem;
    height: 0.7rem;
    fill: currentColor;
}

/* ====================================================
   3. MEGA MENU & SUBMENU ĐỘNG
======================================================= */
/* Ẩn submenu mặc định của WP sinh ra nếu dùng Mega Menu */
.mk-nav__item > .sub-menu {
    display: none !important; 
}

.mk-mega-panel {
    position: fixed;
    z-index: 24;
    top: 5.39rem;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 0 0 1rem 1rem;
    padding-bottom: 5rem;
    transform: translateY(0.5rem);
    opacity: 0;
    visibility: hidden;
    transition: all 400ms ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: none; /* JS sẽ lo việc đổi thành block */
    pointer-events: none;
}

.mk-mega-panel.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mk-mega__title {
    text-align: center;
    font-family: "VanSans", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(180deg, #5ED202 30.27%, rgba(0, 125, 50, 0.00) 68.88%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mk-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: all 400ms;
    z-index: 20;
}
.mk-overlay.is-active {
    opacity: 0.1;
    visibility: visible;
}

/* ====================================================
   4. MENU MOBILE & ĐIỀU HƯỚNG BÊN
======================================================= */
.mk-mobile-toggle {
    display: none;
    cursor: pointer;
    text-align: center;
}

.mk-mobile-sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 100vw;
    background: #FFF;
    z-index: 1000;
    transform: translateX(-100%);
    overflow-x: hidden;
    transition: transform 400ms ease;
    background-image: url("https://revofood.vn/wp-content/uploads/2024/01/MENU-2.png");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
}

.mk-mobile-sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.mk-mobile-sidebar__logo img {
    width: 53.6rem;
    max-width: 60%;
    height: auto;
}

.mk-mobile-sidebar__close {
    cursor: pointer;
    padding: 10px;
}

.mk-mobile-sidebar__nav {
    max-height: 80vh;
    overflow-y: auto;
    padding: 0 3.47rem;
}

.mk-mobile-sidebar__nav .mk-nav__link {
    font-size: 2rem;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 125, 50, 0.1);
    color: #007D32;
    font-weight: 600;
}

/* ====================================================
   5. RESPONSIVE (ĐIỆN THOẠI)
======================================================= */
@media (max-width: 767px) {
    .mk-header__inner {
        padding: 10px;
        border-width: 0 0 1px 0;
    }
    
    .mk-nav-desktop {
        display: none; /* Ẩn menu ngang trên đt */
    }

    .mk-mobile-toggle {
        display: block; /* Hiện nút hamburger */
    }

    .mk-header__logo img {
        width: 65px;
    }
}
/* ====================================================
   CSS DROPDOWN MENU CHUẨN (Thay thế Unlimited Elements)
======================================================= */
/* Đảm bảo menu nằm ngang và linh hoạt */
.mk-nav__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.mk-nav__menu > li {
    position: relative;
    display: block;
}

/* Kiểu dáng cho các đường link trong Menu */
.mk-nav__menu a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Đẩy icon mũi tên ra góc phải */
    text-decoration: none;
    padding: 1.75rem 1rem;
    color: #0D440E;
    font-family: "Helvetica Neue", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

/* ================= CẤU TRÚC SUBMENU (CẤP 2, 3) ================= */
.mk-nav__menu .sub-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #FFFFFF;
    min-width: 220px;
    z-index: 99;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(15px); /* Hiệu ứng trượt từ dưới lên */
    transition: all 0.3s ease-in-out;
}

/* Cấp 3 trở đi sẽ xổ ra bên cạnh thay vì xổ xuống */
.mk-nav__menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Trạng thái Hover: Hiển thị Submenu */
.mk-nav__menu li:hover > .sub-menu,
.mk-nav__menu li.current-menu-item > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tinh chỉnh link bên trong thẻ Submenu */
.mk-nav__menu .sub-menu a {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.mk-nav__menu .sub-menu a:hover {
    background-color: #f9f9f9;
    color: #00A040;
}

/* Icon mũi tên (Nếu có) */
.mk-nav__menu .ue-nav-menu-icon {
    display: inline-flex;
    margin-left: 5px;
}

.mk-nav__menu .ue-nav-menu-icon svg {
    width: 0.7rem;
    height: 0.7rem;
    transition: transform 0.3s ease;
}

/* Xoay mũi tên khi có menu xổ xuống */
.mk-nav__menu li:hover > a .ue-nav-menu-icon svg {
    transform: rotate(180deg);
}
/* TẠO CẦU NỐI TÀNG HÌNH CHỐNG RỚT CHUỘT */
.mk-mega-panel::before {
    content: '';
    position: absolute;
    top: -2rem; /* Độ cao phủ lên khoảng trống (Có thể tăng lên -3rem nếu khoảng cách lớn) */
    left: 0;
    width: 100%;
    height: 2rem; 
    background: transparent;
    z-index: -1;
}

/* Đảm bảo thẻ <li> của WP chứa toàn bộ diện tích hover */
.mk-nav__menu > li.menu-san-pham,
.mk-nav__menu > li.menu-ve-chung-toi {
    position: static !important;
    padding-bottom: 20px; /* Tăng diện tích nhận diện chuột ở dưới chữ Sản phẩm */
    margin-bottom: -20px;
}

/* ====================================================
   FOOTER CHUẨN SEO (BEM METHODOLOGY)
======================================================= */
.mk-footer {
    position: relative;
    padding: 9.44rem 6.25rem 1.22rem;
    background-image: url("/wp-content/uploads/2026/06/footer-mobile.jpg");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Background riêng cho trang chủ */
body.home .mk-footer {
    background-image: url("/wp-content/uploads/2026/06/footer.jpg") !important;
}

.mk-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* --- TOP: LOGO & SLOGAN --- */
.mk-footer__top {
    text-align: center;
    margin-bottom: 3.44rem;
}

.mk-footer__logo-main {
    width: 22.315rem;
    max-width: 100%;
    margin-bottom: 1.23rem;
}

.mk-footer__slogan {
    color: #246c44;
    font-family: "VanSans", sans-serif;
    font-size: 3.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

/* --- MAIN: CÁC CỘT NỘI DUNG --- */
.mk-footer__main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 7.5rem;
}

.mk-footer__col {
    display: flex;
    flex-direction: column;
}

.mk-footer__col--info { width: 31%; padding-right: 1.335rem; }
.mk-footer__col--social { width: 100%; margin-top: 2rem; }
.mk-footer__col--about { width: 22%; padding-left: 1.335rem; }
.mk-footer__col--products { width: 18%; }
.mk-footer__col--newsletter { width: 29%; padding-left: 2.78rem; }

.mk-footer__title {
    color: #007D32; /* Từ biến toàn cục */
    font-family: "VanSans", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.12rem;
}

/* --- DANH SÁCH LIÊN KẾT & THÔNG TIN LIÊN HỆ --- */
.mk-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* Khoảng cách giữa các dòng */
}

/* Ép CẢ thẻ <li> (Mục Địa chỉ) VÀ thẻ <a> (Mục SĐT, Email) thành khung Flex nằm ngang */
.mk-footer__list li,
.mk-footer__list a {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem; /* Khoảng cách cố định giữa icon và chữ */
    margin: 0;
    text-decoration: none;
}

/* Định dạng chữ đồng nhất cho cả 3 mục */
.mk-footer__list a, 
.mk-footer__list li > span:last-child {
    color: #115c32;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s ease;
}

/* KHÓA CHẶT KÍCH THƯỚC ICON (Chống bóp méo, lệch hàng) */
.mk-footer__icon {
    flex-shrink: 0; /* Cấm trình duyệt bóp nhỏ icon khi chữ bị rớt dòng */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem; /* Cố định chiều rộng icon */
    margin-top: 0.15rem; /* Cân chỉnh cho icon ngang tâm với dòng text đầu tiên */
}

.mk-footer__icon svg { 
    width: 100%; 
    height: auto; 
    transition: transform 0.3s ease;
}

/* Hiệu ứng Hover mượt mà (Chỉ áp dụng cho mục có Link) */
.mk-footer__list a:hover {
    color: #00A040;
    transform: translateX(6px);
}
.mk-footer__list a:hover .mk-footer__icon svg {
    transform: scale(1.15);
}

/* ====================================================
   TINH CHỈNH CHO MOBILE
======================================================= */
@media (max-width: 767px) {
    .mk-footer__list {
        gap: 1rem; 
    }
    
    .mk-footer__list a, 
    .mk-footer__list li > span:last-child {
        font-size: 0.9375rem; 
    }

    .mk-footer__icon { 
        width: 1.25rem; 
    }
}
/* --- MẠNG XÃ HỘI --- */
.mk-footer__social-title {
    color: #007D32;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.mk-footer__social-links {
    display: flex;
    gap: 0.75rem;
}

.mk-footer__social-links a svg {
    width: 1.75rem; height: 1.75rem;
}

/* --- ĐĂNG KÝ NHẬN TIN (NEWSLETTER) --- */
.mk-footer__form {
    position: relative;
    display: flex;
    width: 100%;
}

.mk-footer__form input {
    width: 100%;
    padding: 0.5rem 4rem 0.5rem 1rem;
    height: 2.3rem;
    background: transparent;
    border: 1px solid #124734;
    border-radius: 2.2rem;
    color: #007D32;
    font-family: "Be Vietnam Pro", sans-serif;
    outline: none;
}

.mk-footer__form button {
    position: absolute;
    right: 0;
    top: 0;
    width: 3.5rem;
    height: 2.3rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mk-footer__form button svg {
    width: 100%;
    height: 100%;
}

/* --- BOTTOM: LOGO DƯỚI & COPYRIGHT --- */
.mk-footer__bottom-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.mk-footer__bottom-logo img {
    width: 10rem;
    max-width: 73%;
    height: auto;
}

.mk-footer__copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.mk-footer__copyright span {
    color: rgba(0, 125, 50, 0.5);
    font-size: 0.8rem;
    font-family: "Be Vietnam Pro", sans-serif;
}

.mk-footer__copyright span:first-child::after {
    content: "";
    display: inline-block;
    height: 0.8rem;
    border-right: 1px solid #B0DFB1;
    margin-left: 1rem;
    vertical-align: middle;
}

/* --- NÚT NỔI (FLOATING BUTTONS) --- */
.mk-floating-mess {
    position: fixed;
    bottom: 13.88rem;
    right: 2.19rem;
    z-index: 99;
}
.mk-floating-mess svg { width: 3.5rem; height: 3.5rem; }

.mk-progress-wrap {
    position: fixed;
    right: 2.19rem;
    bottom: 8.94rem;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mk-progress-wrap.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ====================================================
   ĐIỆN THOẠI (RESPONSIVE) - CHUẨN MẪU THIẾT KẾ
======================================================= */
@media (max-width: 767px) {
    .mk-footer {
        padding: 0 1.5rem 0; /* Bỏ padding bottom để dải màu xanh dưới cùng chạm mép */
        background-image: url("https://vungtauadventure.com/wp-content/uploads/2026/06/footer-mobile.jpg");
    }
    
    body.home .mk-footer {
        background-image: url("/wp-content/uploads/2026/06/footer-mobile.jpg") !important;
    }

    .mk-footer__logo-main {
        width: 12rem; 
        margin-bottom: 1.5rem;
        margin-top: 2rem;
    }

    .mk-footer__slogan {
        font-size: 1.25rem; 
        line-height: 1.4;
        margin-bottom: 3rem;
    }

    /* --- Ép 2 cột Sản phẩm và Về Revo nằm ngang hàng (Chia đôi 50%) --- */
    .mk-footer__main {
        flex-direction: row; /* Đổi thành xếp ngang */
        flex-wrap: wrap;
        padding-bottom: 4rem; /* Tránh vướng nút cuộn */
    }

    .mk-footer__col--products { 
        order: 1; 
        width: 50%; 
        padding-right: 0.5rem; 
        margin-bottom: 2.5rem;
    }
    .mk-footer__col--about { 
        order: 2; 
        width: 50%; 
        padding-left: 0.5rem; 
        margin-bottom: 2.5rem; 
    }
    .mk-footer__col--info { 
        order: 3; 
        width: 100%; /* Cột thông tin vẫn chiếm 100% ở hàng dưới */
        padding: 0; 
    }
    .mk-footer__col--newsletter { display: none; }

    /* --- Ẩn logo tròn nhỏ dưới cùng trên Mobile --- */
    .mk-footer__bottom-logo {
        display: none;
    }

    /* --- Thanh bản quyền màu xanh tràn lề --- */
    .mk-footer__copyright {
        background-color: #00A040; /* Nền xanh lá */
        margin: 0 -1.5rem; /* Kéo giãn tràn lề 2 bên (âm padding của mk-footer) */
        padding: 1.2rem .5rem; /* Thêm padding để chữ không sát mép */
    }
    .mk-footer__copyright span { 
        font-size: 0.85rem; 
        color: #FFFFFF; /* Chữ màu trắng */
    }
    .mk-footer__copyright span:first-child::after { 
        height: 1rem; 
        border-right: 1px solid #FFFFFF; /* Dấu gạch đứng màu trắng */
    }

    /* --- Kích thước Text & Icon --- */
    .mk-footer__title {
        font-size: 1.125rem; 
        margin-bottom: 1.25rem;
    }

    .mk-footer__list a, .mk-footer__list span {
        font-size: 0.9375rem; 
        margin-bottom: 0.5rem;
    }

    .mk-footer__icon svg { width: 1.25rem; padding-right: 0.5rem; }
    
    .mk-footer__social-links { gap: 1rem; margin-top: 1.5rem;}
    .mk-footer__social-links a svg { width: 2rem; height: 2rem; }

    /* --- Các nút nổi --- */
    .mk-floating-mess { bottom: 5.5rem; right: 1rem; }
    .mk-floating-mess svg { width: 3.5rem; height: 3.5rem; }

    .mk-progress-wrap { bottom: 10rem; right: 1rem; width: 3.5rem; height: 3.5rem; }
}