/* 1. LỚP PHỦ (OVERLAY) – phủ full màn hình khi menu mở */
.bg_overlay_all,
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998 !important;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.bg_overlay_all.active,
.menu-backdrop.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* 2. MOBILE MENU – slide từ trái */
#mobile-menu {
    position: fixed !important;
    top: 0;
    left: -300px !important;
    width: 300px;
    /* height: 100vh; */
    height: calc(100vh - 48px);
    background-color: #ffffff !important;
    z-index: 999999 !important;
    transition: left 0.3s ease-in-out !important;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    padding: 0 0 20px 0;
}
#mobile-menu.active {
    left: 0 !important;
}
/* 3. NÚT CLOSE */
#mobile-menu .close-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}
#mobile-menu .close-menu span {
    display: inline-block;
    padding: 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}
#mobile-menu .close-menu i {
    font-size: 18px;
    color: #333;
    margin-left: 6px;
    margin-right: 0;
}
#mobile-menu .close-menu:hover span,
#mobile-menu .close-menu:hover i {
    color: #d00;
}
/* 4. DỌN SẠCH & TẠO KIỂU CHO MENU */
#mobile-menu ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
#mobile-menu .nav-item {
    border-bottom: 1px solid #eee;
}
#mobile-menu a,
#mobile-menu > ul > li > span {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}
#mobile-menu a:hover,
#mobile-menu > ul > li > span:hover {
    color: #0056b3;
    background-color: #f8f9fa;
}
#mobile-menu i {
    margin-right: 8px;
    color: #0056b3;
}
/* Menu Cấp 2 & Cấp 3 */
#mobile-menu ul ul {
    padding-left: 15px !important;
    background-color: #f9f9f9;
}
#mobile-menu ul ul a {
    font-size: 14px;
    color: #555;
    padding: 8px 10px;
}
/* 5. TỐI ƯU OWL-CUSTOMER VÀ OWL-LINK CHO MOBILE / SAFARI IOS */
.owl-customer,
.owl-link {
    touch-action: pan-y;
}
.owl-customer .owl-stage,
.owl-link .owl-stage {
    touch-action: pan-y;
}
.owl-customer .owl-item,
.owl-link .owl-item {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.customer-home .owl-customer .owl-item .item-wrap .item,
.link-home .owl-link .owl-item .item-wrap .item {
    width: 100%;
}
.owl-customer .owl-nav,
.owl-link .owl-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}
.owl-customer .owl-nav button.owl-prev,
.owl-customer .owl-nav button.owl-next,
.owl-link .owl-nav button.owl-prev,
.owl-link .owl-nav button.owl-next {
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-radius: 50% !important;
    background: #f1f3f5 !important;
    color: #333 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.owl-customer .owl-nav button.owl-prev:hover,
.owl-customer .owl-nav button.owl-next:hover,
.owl-link .owl-nav button.owl-prev:hover,
.owl-link .owl-nav button.owl-next:hover {
    background: #0056b3 !important;
    color: #fff !important;
}
.owl-customer .owl-nav button.disabled,
.owl-link .owl-nav button.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
@media (min-width: 768px) {
    .owl-customer .owl-nav,
    .owl-link .owl-nav {
        display: none !important;
    }
}