/* Nút nổi chính */
.floating{
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9000;
}
.floating-menu-btn {
    width: 60px;
    height: 60px;
    background: #ffff;
    color: #dedede;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.floating-menu-btn:hover {
    transform: scale(1.1);
    color: #000;
}

/* Menu hàng ngang */
.floating-menu-horizontal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-menu-horizontal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-menu-inner {
    display: flex;
    align-items: center;
    gap: 18px; /* Khoảng cách giữa các nút */
}

.floating-menu-item-horizontal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f8f8f8;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.floating-menu-item-horizontal:hover {
    background: #eee;
    transform: translateY(-3px);
}

.floating-menu-item-horizontal .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff9900;
    color: #fff;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #fff;
}

.floating-menu-item-horizontal .label {
    font-size: 11px;
    margin-top: 6px;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}

/* Overlay để đóng menu khi click ngoài */
.floating-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 9997;
    display: none;
}

.floating-overlay.active {
    display: block;
}
@media screen and (max-width: 768px) {
    .floating{
        display: block;
        width: 100%;
        bottom: 0;
        left: 0;
    }
    .floating-menu-btn{
        display: none;
    }
    .floating-menu-horizontal{
        opacity: 1;
        visibility: unset;
        width: 100%;
        transform: unset;
        display: block;
    }
    .floating-menu-inner{
        justify-content: space-between;
    }
}