/* ═════════════════════════════════════════════════════════════
   Smart Floating Dock — Unified Cart + Communication Menu
   ═════════════════════════════════════════════════════════════ */

.lanzaa-floating-dock {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

/* Main trigger button — always visible */
.lanzaa-dock-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6d00, #ff8f00);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 109, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    border: none;
    padding: 0;
    font-size: 0;
    position: relative;
}

.lanzaa-dock-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(255, 109, 0, 0.5);
}

.lanzaa-dock-trigger svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* Cart count badge on trigger */
.lanzaa-dock-trigger .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid white;
    animation: badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badge-pop {
    0% { transform: scale(0.3); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Menu container — hidden by default */
.lanzaa-dock-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    transform: translateY(10px);
    pointer-events: none;
}

.lanzaa-dock-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Individual menu items */
.lanzaa-dock-item {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    font-size: 0;
    border: none;
    padding: 0;
}

.lanzaa-dock-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.lanzaa-dock-item svg {
    width: 24px;
    height: 24px;
}

/* Cart item */
.lanzaa-dock-item--cart {
    background: linear-gradient(135deg, #1a73e8, #1565c0);
    color: white;
}

.lanzaa-dock-item--cart svg {
    fill: white;
}

.lanzaa-dock-item--cart:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}

/* WhatsApp item */
.lanzaa-dock-item--whatsapp {
    background: linear-gradient(135deg, #25d366, #1da851);
    color: white;
}

.lanzaa-dock-item--whatsapp svg {
    fill: white;
}

.lanzaa-dock-item--whatsapp:hover {
    background: linear-gradient(135deg, #1da851, #128c3e);
}

/* Help/Support item */
.lanzaa-dock-item--help {
    background: linear-gradient(135deg, #aa00ff, #6a1b9a);
    color: white;
}

.lanzaa-dock-item--help svg {
    fill: white;
}

.lanzaa-dock-item--help:hover {
    background: linear-gradient(135deg, #6a1b9a, #4a148c);
}

/* Label tooltips (appear on hover) */
.lanzaa-dock-item-label {
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.lanzaa-dock-item:hover .lanzaa-dock-item-label {
    opacity: 1;
}

/* Legacy WhatsApp float — hidden */
.lanzaa-whatsapp-float {
    display: none !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .lanzaa-floating-dock {
        bottom: 12px;
        right: 12px;
        gap: 10px;
    }

    .lanzaa-dock-trigger {
        width: 52px;
        height: 52px;
    }

    .lanzaa-dock-trigger svg {
        width: 24px;
        height: 24px;
    }

    .lanzaa-dock-item {
        width: 50px;
        height: 50px;
    }

    .lanzaa-dock-item svg {
        width: 22px;
        height: 22px;
    }

    .lanzaa-dock-trigger .cart-count {
        width: 22px;
        height: 22px;
        font-size: 10px;
        top: -5px;
        right: -5px;
    }

    /* Hide labels on mobile */
    .lanzaa-dock-item-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .lanzaa-floating-dock {
        bottom: 8px;
        right: 8px;
    }

    .lanzaa-dock-trigger {
        width: 48px;
        height: 48px;
    }

    .lanzaa-dock-item {
        width: 46px;
        height: 46px;
    }
}
