/* Footer Fixed Menu - Hiển thị trên Mobile/Tablet (ẩn trên PC) */

.footer-fixed-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.footer-fixed-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.footer-fixed-menu.show.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.footer-fixed-menu.show.fade-out {
    opacity: 0;
    transform: translateY(100%);
}

.footer-fixed-menu .menu-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.footer-fixed-menu .menu-item:hover,
.footer-fixed-menu .menu-item:active {
    background: rgba(0, 0, 0, 0.05);
    color: #007bff;
}

.footer-fixed-menu .menu-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.footer-fixed-menu .menu-item:hover i,
.footer-fixed-menu .menu-item:active i {
    transform: scale(1.1);
}

.footer-fixed-menu .menu-item span {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.footer-fixed-submenu {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    z-index: 10000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-fixed-submenu.show {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.footer-fixed-submenu .submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-fixed-submenu .submenu-item:hover,
.footer-fixed-submenu .submenu-item:active {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.footer-fixed-submenu .submenu-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-fixed-submenu .submenu-item span {
    font-size: 14px;
    font-weight: 500;
}

.footer-fixed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-fixed-overlay.show {
    display: block;
    opacity: 1;
}

/* Desktop - Ẩn footer-fixed trên PC (min-width: 992px) */
@media screen and (min-width: 992px) {
    .footer-fixed-menu,
    .footer-fixed-submenu,
    .footer-fixed-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Tablet (601px - 991px) */
@media screen and (min-width: 601px) and (max-width: 991px) {
    .footer-fixed-menu {
        justify-content: center !important;
        padding: 8px 0;
        max-width: 600px !important;
        left: 50% !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translateX(-50%) translateY(100%) !important;
        border-radius: 12px 12px 0 0;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    }
    .footer-fixed-menu.show {
        transform: translateX(-50%) translateY(0) !important;
    }
    .footer-fixed-menu.show.fade-in {
        transform: translateX(-50%) translateY(0) !important;
    }
    .footer-fixed-menu.show.fade-out {
        transform: translateX(-50%) translateY(100%) !important;
    }
    .footer-fixed-menu .menu-item {
        flex: 0 1 auto;
        min-width: 80px;
        max-width: 120px;
        padding: 8px 12px;
        min-height: 55px;
        border-radius: 8px;
        margin: 0 3px;
    }
    .footer-fixed-menu .menu-item:hover {
        background: rgba(0, 123, 255, 0.1);
        color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
    }
    .footer-fixed-submenu {
        bottom: 75px;
    }
}

/* Mobile (max-width: 600px) */
@media screen and (max-width: 600px) {
    .footer-fixed-menu {
        padding: 8px 0;
        left: 0;
        right: 0;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        transform: translateY(100%);
    }
    .footer-fixed-menu.show {
        transform: translateY(0);
    }
    .footer-fixed-menu.show.fade-in {
        transform: translateY(0);
    }
    .footer-fixed-menu.show.fade-out {
        transform: translateY(100%);
    }
    .footer-fixed-submenu {
        bottom: 70px;
    }
    body {
        padding-bottom: 70px;
    }
}
