/* ══════════════════════════════════════════════════════════════
   Vanguard — Floating side menu (Cart + WhatsApp)
   Ported from the WPCode snippet "Side Bar" (#943).
   ══════════════════════════════════════════════════════════════ */

.float-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.float-sidebar-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    padding: 18px 6px;
    gap: 10px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, .18);
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s ease;
}

.float-sidebar-btn:hover { opacity: .88; }

.float-sidebar-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.float-sidebar-btn span.btn-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: 'Segoe UI', system-ui, sans-serif;
    white-space: nowrap;
    color: #fff;
}

.float-cart-btn { background: #111; }

.float-wa-btn { background: #25D366; }
.float-wa-btn:hover { background: #128C7E; opacity: 1; }

.float-cart-badge {
    position: absolute;
    top: -5px;
    left: auto !important;
    background: #F15B29;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.float-cart-badge.hidden { display: none; }

@media (max-width: 768px) {
    .float-sidebar { top: 70%; }
}
