/*floating_navigations.css*/
/* ============================================================
   FLOATING ACTION BUTTONS
   ------------------------------------------------------------
   The bottom nav (mobile_bottom_nav.css) is now shown at every
   width and already carries Back / Home / Cart. The old round
   floating group and cart bubble duplicated those actions, and
   on desktop sat at the viewport edge - far outside the card.
   They stay in the DOM (JS updates them) but are hidden.

   If a page ever needs a floating button again, use
   .card-fab: it is anchored to the card column, not the window.
   ============================================================ */

.floating-nav-group,
.cart-floating-btn {
    display: none !important;
}

/* ------------------------------------------------------------
   Optional: FAB anchored to the card column (both directions)
   Usage: <button class="card-fab">…</button>
   ------------------------------------------------------------ */
.card-fab {
    --fab-size: 56px;
    --fab-gap: 16px;
    position: fixed;
    z-index: 1039; /* just under the bottom nav */
    bottom: calc(var(--bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px) + var(--fab-gap));
    /* distance from the window edge to the card edge, never negative */
    inset-inline-end: calc(max(0px, (100vw - var(--vcard-shell-width, 500px)) / 2) + var(--fab-gap));
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: 50%;
    border: none;
    background: var(--primary-color, #ff6b93);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    animation: floatIn .3s ease forwards;
}

.card-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.card-fab .fab-badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #dc3545;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
