﻿:root {
    --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Áp dụng Segoe UI cho toàn bộ văn bản, trừ các icon */
html, body, *:not(i):not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-light):not(.fa-brands) {
    font-family: var(--font-main) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Giữ độ mượt khi hiển thị text */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override cho các input, button, select, textarea */
input, button, select, textarea {
    font-family: var(--font-main) !important;
}

/* Override cho các thành phần bootstrap, nav, badge, alert... */
.btn, .nav-link, .dropdown-item, .badge, .alert, .form-control, label,
h1, h2, h3, h4, h5, h6, p, span, a {
    font-family: var(--font-main) !important;
}

/* Giữ nguyên font cho các icon (Font Awesome, v.v.) */
/*i, .fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-light, .fa-brands {
    font-family: inherit !important;
    font-style: normal;
}*/
.text-color-Xanh, .text-primary {
    color: #243c93 !important;
}
button {
    border-radius: 5px !important;
}
.text-color-Xam {
    color: #273338;
}
.btn-primary {
    background: #243c93 !important;
}
.btn-outline-primary {
    color: #243c93 !important;
    border-color: #243c93 !important;
}
    .btn-outline-primary:hover {
        color: #fff !important;
        background: #243c93 !important;
    }

.woot-widget-bubble.woot-elements--right {
    bottom: 100px;
}
/* Ẩn icon caret mặc định của Bootstrap */
.nav-item > .dropdown-toggle::after {
    display: none !important;
}
/* Xoay icon khi mở dropdown */
.nav-item.dropdown.show .fa-angle-down {
    transform: rotate(180deg);
}
/* Xoay icon khi mở dropdown */
.nav-item.dropdown.show .fa-angle-down {
    transform: rotate(180deg);
}
/* Menu gốc */
.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 220px;
    border: 1px solid #ddd;
    background: #fff;
}

/* Item cấp 1 */
.dropdown-item, .dropdown-subitem {
    display: block;
    padding: 8px 15px;
    color: hsla(0, 0%, 40%, .85);
    text-decoration: none;
    white-space: nowrap;
}

    .dropdown-item:hover,
    .dropdown-subitem:hover {
        background: #243c93;
        color: #fff;
        text-decoration: none;
        white-space: nowrap;
        border-radius: 2px;
    }

/* Submenu cha */
.dropdown-submenu {
    position: relative;
}

    /* Menu con */
    .dropdown-submenu .dropdown-menuSub {
        display: none;
        position: absolute;
        top: 0;
        left: 100%;
        min-width: 220px;
        border: 1px solid #ddd;
        background: #f8f9fa;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        z-index: 2000;
    }

    /* Hover vào cha thì show con */
    .dropdown-submenu:hover > .dropdown-menuSub {
        display: block;
        text-decoration: none;
        white-space: nowrap;
        border-radius: 2px;
    }
/* Menu con nhiều mục */
.dropdown-menu,
.dropdown-menuSub {
    /* display: grid; */
    grid-template-columns: repeat(3, 1fr); /* 3 cột */
    gap: 5px 20px; /* khoảng cách hàng/cột */
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    min-width: 600px; /* đảm bảo đủ rộng cho 3 cột */
    font-size: 15px;
    border-radius: 5px !important;
}

.nav-item1:hover > .dropdown-menu,
.nav-item1 > .dropdown-menu:hover {
    display: grid;
    border-radius: 2px;
}

.nav-item1 > .dropdown-menu.show {
    display: grid !important;
}

.dropdown-menu1 {
    min-width: auto !important; /* đảm bảo đủ rộng cho 3 cột */
}

/*-------------------------------------------------------------------*/
/* Toàn bộ menu */
.navbar-nav .nav-link {
    font-size: 15px;
    color: hsla(0, 0%, 40%, .85);
    font-weight: 400;
    padding: 0px 13px;
    margin: 2px 30px;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-item.active {
        color: #243c93;
    }

.nav-link:hover {
    background: #243c93;
    color: #ffff !important;
    text-decoration: none;
    white-space: nowrap;
    border-radius:2px;
}

/* Cho dropdown items */
.dropdown-item {
    font-size: 15px;
    color: hsla(0,0%,40%,.85);
}

    .dropdown-item:hover {
        color: #fff;
        border-radius: 2px;
    }


/* Style chung menu -------------------------------------------- */
.navbar {
    font-size: 15px;
    background-color: #fff;
}

.navbar-nav {
    display: flex;
    justify-content: space-between; /* dàn đều trên desktop */
    width: 100%;
}
    /* Item menu */
    .navbar-nav .nav-link {
        flex: 1;
        text-align: center;
        color: #333;
        padding: 12px 10px;
        transition: all 0.2s ease-in-out;
    }


/* Mobile: menu dạng cột */
@media (max-width: 991.98px) {
    .Content-Pm {
        padding-top: 128px;
    }
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

        .navbar-nav .nav-link {
            flex: unset;
            text-align: left;
            width: 100%;
        }
    /* Menu con nhiều mục */
    .dropdown-menu {
        grid-template-columns: repeat(1, 1fr); /* 3 cột */
        gap: 5px 20px; /* khoảng cách hàng/cột */
        padding: 10px;
        border: 1px solid #ddd;
        background: #fff;
        min-width: auto; /* đảm bảo đủ rộng cho 3 cột */
    }

    .dropdown-menuSub {
        display: none !important;
    }
}
/* Offcanvas rộng 2/3 màn hình */
.custom-offcanvas {
    width: 70% !important; /* 2/3 */
    max-width: 400px; /* Giới hạn tối đa */
}

/* Overlay màu xám cho phần 1/3 */
.offcanvas-backdrop.show {
    background-color: rgba(0,0,0,0.4); /* màu xám đậm hơn mặc định */
}

/* Style cho menu link */
.menu-link {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

    .menu-link:hover {
        background: #f9f9f9;
        color: #243c93;
        text-decoration: none;
        white-space: nowrap;
    }

/* Submenu */
.submenu-link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

    .submenu-link:hover {
        background: #f5f5f5;
        color: #243c93;
        text-decoration: none;
        white-space: nowrap;
    }

/* Dropdown arrow */
.dropdown-toggle::after {
    float: right;
    margin-top: 5px;
}
/* Toàn bộ menu */
.nav-link {
    color: hsla(0, 0%, 40%, .85) !important;
}

    .nav-link.active {
        color: #ffff !important;
        text-decoration: none;
        white-space: nowrap;
        background: #243c93 !important;
    }

.cart-offcanvas {
    width: 70% !important; /* 2/3 */
    max-width: 400px; /* Giới hạn tối đa */
}

.footer {
    background-color: #1a3ca1 !important; /* xanh đậm giống hình */
    font-size: 14px;
    line-height: 1.6;
}

    .footer h5 {
        font-size: 16px;
        margin-bottom: 1rem;
    }

    .footer p,
    .footer li {
        margin-bottom: 0.5rem;
    }

    .footer ul {
        padding-left: 0;
    }

    .footer img {
        max-width: 100%;
    }

/* Responsive: chữ nhỏ gọn hơn, căn giữa logo/qr */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

        .footer .col-md-6 {
            margin-bottom: 2rem;
        }
}


/* Overlay toàn màn hình */
.search-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
}

    /* Nút đóng */
    .search-overlay .close-btn {
        position: absolute;
        top: 20px;
        right: 40px;
        font-size: 40px;
        color: #fff;
        cursor: pointer;
    }

/* Hộp tìm kiếm */
.search-box {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 10px 20px;
}

    .search-box input {
        border: none;
        outline: none;
        background: transparent;
        color: #fff;
        font-size: 20px;
        width: 300px;
    }

    .search-box i {
        color: #fff;
        font-size: 22px;
        margin-left: 10px;
        cursor: pointer;
    }

.search-box {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 10px 20px;
    width: 400px;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative; /* quan trọng để list con bám vào */
}

    .search-box input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        color: #fff;
        font-size: 20px;
    }

/* Danh sách kết quả */
.search-results {
    position: absolute;
    top: 100%; /* Ngay dưới input */
    left: 0;
    width: 100%;
    margin-top: 5px;
    list-style: none;
    background: rgba(0,0,0,0.8);
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
    z-index: 10000;
}

    .search-results li {
        padding: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: #fff;
        cursor: pointer;
    }

        .search-results li:hover {
            background: rgba(255,255,255,0.2);
        }

        .search-results li.active {
            background: rgba(255, 255, 255, 0.3);
        }

#mainNavbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050; /* đảm bảo luôn nổi lên trên */
    transition: all 0.3s ease; /* hiệu ứng mượt */
}
    /* Khi cuộn xuống: thu nhỏ + thêm bóng */
    #mainNavbar.scrolled {
        top: -5px; /* di chuyển nhẹ lên */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* đổ bóng nhẹ */
        transform: translateY(-5px);
        transition: all 0.3s ease-in-out;
    }

    /* Khi quay lại đầu trang */
    #mainNavbar:not(.scrolled) {
        box-shadow: none;
        transform: translateY(0);
    }
    /* Khi navbar bị làm mờ nhẹ */
    #mainNavbar.fading {
        top: -55px; /* di chuyển nhẹ lên */
        opacity: 0.1;
        transform: translateY(-5px);
    }

    /* Khi quay lại bình thường */
    #mainNavbar.visible {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
.submenu-link,
.toggle-icon {
    /* display: inline-flex; */
    align-items: center;
}

.toggle-icon {
    margin-left: 6px;
    margin-right: 12px;
    cursor: pointer;
}

.submenu-link {
    flex: 1; /* để chữ chiếm hết khoảng trống bên trái */
}

.menu-link {
    flex: 1; /* để chữ chiếm hết khoảng trống bên trái */
}
.Content-Pm {
    padding-top: 80px;
}
/* Responsive: chữ nhỏ gọn hơn, căn giữa logo/qr */
@media (max-width: 768px) {
    .Content-Pm {
        padding-top: 128px;
    }
}
@media (max-width: 991.9px) {
    .Content-Pm {
        padding-top: 128px;
    }
    .topbar-mobile{
        margin-bottom:10px;
    }
}

.nav-link.active {
    border-radius: 2px;
}

.nav-item.active {
    border-radius: 2px;
}
.fw-bold{
    color:#fff;
}
.list-unstyled a {
    /*color: #fff;*/
}

.footer-custom {
    background: linear-gradient(to bottom, #2f4fc1 0%, #1a318f 100%); /* xanh nhạt -> xanh đậm */
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px; /* tăng cỡ chữ nhẹ cho dễ đọc */
    line-height: 1.8;
}

    .footer-custom h5 {
        font-size: 18px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-left: 4px solid #fff;
        padding-left: 10px;
        margin-bottom: 20px;
    }

    .footer-custom p,
    .footer-custom a,
    .footer-custom li {
        color: #e5e9ff;
        margin-bottom: 6px;
        text-decoration: none;
    }

        .footer-custom a:hover {
            color: #fff;
            text-decoration: underline;
            font-weight:700;
        }

    .footer-custom ul {
        padding-left: 0;
    }

    .footer-custom img {
        border-radius: 4px;
        padding: 4px;
    }

@media (max-width: 768px) {
    .footer-custom {
        text-align: center;
    }

        .footer-custom h5 {
            border-left: none;
            border-bottom: 2px solid #fff;
            display: inline-block;
            padding-left: 0;
            padding-bottom: 5px;
        }
}
.contactnow:hover {
    background-color: #e9ecef;
    text-decoration: none !important;
    font-weight: 800;
}
.contactnow {
    background: #ddd;
    color: #2f4fc1 !important;
    width:100%;
    height:40px;
    align-content:center;
    text-align:center;
    border-radius:8px;
    font-size:17px;
    font-weight: 700;
}
/* Phần bản quyền */
.footer-bottom {
    background-color: #101b6a; /* xanh đậm hơn */
    font-size: 15px;
    color: #cdd4ff;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

    .footer-bottom p {
        margin: 0;
    }

.newsClass:hover p {
    font-weight: 600;
}

.footer-custom .newsletter input {
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
}

.footer-custom .newsletter button {
    font-weight: 600;
    background-color: #ddd;
    color: #243fa1;
    border-radius: 8px !important;
    transition: 0.3s;
}

    .footer-custom .newsletter button:hover {
        background-color: #e9ecef;
        font-weight: 700;
    }
.payment-icons {
    align-items: center;
    justify-content: start; /* hoặc center nếu muốn căn giữa */
    gap: 16px;
    flex-wrap: nowrap; /* bắt buộc 1 dòng */
    display: inline-block;
}

.payment-icon {
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    border-radius: 5px;
    display: inline-block;
    margin: 3px 3px 0;
    opacity: .6;
    padding: 3px 5px 5px;
    transition: opacity .3s;
}

    .payment-icon svg {
        filter: grayscale(70%);
        transition: all 0.3s ease;
        height: 40px;
        vertical-align: middle;
        width: auto !important;
        fill: #fff;
    }

    .payment-icon:hover {
        transform: translateY(-3px) scale(1.05);
    }

        .payment-icon:hover img {
            filter: grayscale(0%);
        }

/* --- Vị trí & layout chung cho nhóm nút --- */
.social-fixed-left {
    position: fixed;
    top: 75%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    /* --- Các item (nút) --- */
    .social-fixed-left .item {
        width: 60px;
        height: 60px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        animation: bubblePulse 2.5s infinite ease-in-out;
        margin-top: 20px;
    }

        /* Icon */
        .social-fixed-left .item img {
            width: 32px;
            height: 32px;
            z-index: 2;
            transform-origin: center;
            animation: wobbleRotate 2s infinite ease-in-out;
        }

/* --- Màu từng nút --- */
.item.fb {
    background: #0a53c1;
}

.item.zalo {
    background: #1d9bf0;
}

.item.whatsapp {
    background: #25d366;
}

.item.call {
    background: #d93025;
}

/* --- Hiệu ứng phồng --- */
@keyframes bubblePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Sóng lan --- */
.social-fixed-left .item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    animation: bubbleRipple 2.5s infinite ease-out;
}

@keyframes bubbleRipple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.9);
        opacity: 0;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

/* --- Icon xoay nhẹ kiểu rung --- */
@keyframes wobbleRotate {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(-12deg);
    }

    30% {
        transform: rotate(12deg);
    }

    45% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* --- Nút đóng / thu nhỏ --- */
.toggle-btn {
    position: absolute;
    top: -50px;
    right: -10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: red;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

/* --- Nút mở lại khi thu nhỏ --- */
.floating-open-btn {
    display: none;
    position: fixed;
    bottom: 45px;
    left: 20px;
    z-index: 9999;
    background: #007bff;
    color: #fff;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- Mobile: đổi nút X thành nút thu nhỏ --- */
@media (max-width: 768px) {
    #toggleBtn {
        font-size: 20px;
        background: #333;
        color: rgba(0,0,0,0.6);
    }
}
/* Nút toggle trong suốt */
#toggleBtn {
    background: transparent !important;
    border: none;
    box-shadow: none;
    font-size: 22px;
    color: rgba(0,0,0,0.6);
    opacity: 0; /* Ẩn trên PC */
    transition: opacity 0.3s ease;
    cursor: pointer;
}

/* Chỉ hiển thị nút khi hover vào social-fixed-left (PC) */
.social-fixed-left:hover #toggleBtn {
    opacity: 1;
}

/* Mobile luôn hiển thị */
@media (max-width: 768px) {
    #toggleBtn {
        opacity: 1 !important;
        color: rgba(0,0,0,0.6);
        border-radius: 50%;
        padding: 4px;
    }
}

.floating-open-btn {
    animation: pulseBtn 1.8s infinite ease-in-out;
}
.back-to-top {
    animation: pulseBtn 1.8s infinite ease-in-out;
}

@keyframes pulseBtn {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0,123,255,0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(0,123,255,1);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0,123,255,0.7);
    }
}

/* Animation mở */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation đóng */
@keyframes slideDownFade {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(40px);
    }
}

/* Lớp animation */
.items.show {
    animation: slideUpFade 0.45s ease forwards;
}

.items.hide {
    animation: slideDownFade 0.45s ease forwards;
}
/* MOBILE: animation cho nút toggle */
@media (max-width: 768px) {

    .toggle-btn svg {
        transition: transform 0.35s ease;
    }

    /* Khi thu nhỏ (ẩn danh sách) → mũi tên xoay xuống */
    .toggle-btn.collapsed svg {
        transform: rotate(180deg);
    }

    /* Khi mở → mũi tên chỉ lên */
    .toggle-btn.expanded svg {
        transform: rotate(0deg);
    }
}

















/* ===========================
    HEADER – STYLE A
=========================== */

/* Tổng thể header */
#mainNavbar {
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}

/* Logo căn trái */
.navbar-brand img {
    max-height: 64px;
    object-fit: contain;
}

/* Menu items */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 12px 20px;
    font-size: 16px;
    color: #4a4a4a;
    transition: all 0.25s ease;
}

/* Hover */
.navbar-nav .nav-link:hover {
    color: #2F4FC1;
}

/* Active item */
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-item1.active .nav-link,
    .navbar-nav .active .nav-link,
    .navbar-nav .active,
    .navbar-nav .active,
    .navbar-nav .active {
        background: #243c93 !important;
        color: #fff !important;
        border-radius: 4px;
    }

/* Icon search */
.btn-search i {
    color: #444;
    transition: 0.25s;
}

.btn-search:hover i {
    color: #2F4FC1;
}

/* Dropdown style */
.dropdown-menu {
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    padding: 1px 0;
    border: none;
}

.dropdown-subitem, .dropdown-item, .dropdown-subitem {
    padding: 10px 20px;
    font-size: 14px;
    color: #444;
}

    .dropdown-item:hover {
        background: #eef2ff;
        color: #243c93;
    }
.dropdown-subitem:hover {
    background: #eef2ff;
    color: #243c93;
}
/* Submenu (3 cấp) */
.dropdown-menuSub {
    margin-left: 0px;
    border-left: 2px solid #2F4FC1;
    padding-left: 10px;
}

/* MOBILE HEADER */
@media(max-width: 991px){
    .navbar-nav .nav-link {
        padding: 14px 10px;
    }
}





/* Navbar chính */
#mainNavbar {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    z-index: 1050;
}

.navbar-nav .nav-link {
    font-size: 15px;
    color: #333;
    transition: 0.25s;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        border-radius: 4px;
    }

/* Dropdown menu */
.nav-item1 .dropdown-menu,
.nav-item.dropdown .dropdown-menu {
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Mobile */
@media (max-width: 991px) {
    .top-header {
        justify-content: space-between;
        padding: 5px 12px;
        font-size: 14px;
    }

        .top-header .btn-cart {
            font-size: 16px;
        }

    .navbar-nav .nav-link {
        padding: 12px 10px;
    }
}
.navbar-nav {
    display: flex;
    flex-wrap: nowrap; /* không cho menu xuống dòng */
}

    .navbar-nav .nav-link {
        white-space: nowrap; /* giữ chữ trên 1 dòng */
        font-size: 14px; /* giảm font-size trên mobile */
    }
.logo-mobile {
    margin-right: 0px;
    margin-left: 4rem;
}
