/* ============================================
   Floating WhatsApp & Messenger Buttons
   ============================================ */
.bhcod-floating-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bhcod-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: bhcod-float-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.bhcod-float-wa {
    background: #25D366;
    animation-delay: 0.1s;
}

.bhcod-float-msg {
    background: #0084FF;
    animation-delay: 0.2s;
}

.bhcod-float-phone {
    background: #199f4b;
    animation-delay: 0s;
}

/* ============================================
   Floating Cart Button — independent wrapper
   ============================================ */
.bhcod-floating-cart-wrap {
    position: fixed;
    z-index: 99989; /* just below the contact-button stack so they don't visually collide */
}
.bhcod-floating-cart-wrap .bhcod-float-btn { animation-delay: 0.3s; }

.bhcod-float-cart {
    position: relative;
    background: #f5a623;
}
.bhcod-float-cart-empty { display: none !important; }

.bhcod-float-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    border: 2px solid #fff;
    box-sizing: content-box;
}
.bhcod-float-cart-count[data-count="0"] { display: none; }
@media (max-width: 600px) {
    .bhcod-float-cart-count {
        top: -2px;
        right: -2px;
        min-width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 10px;
    }
}

/* Pulse animation on Phone */
.bhcod-float-phone::after {
    content: '';
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(25, 159, 75, 0.3);
    animation: bhcod-pulse-phone 2s ease-out infinite;
    z-index: -1;
}

@keyframes bhcod-pulse-phone {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

.bhcod-float-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

@keyframes bhcod-float-in {
    0% {
        transform: scale(0) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Pulse animation on WhatsApp */
.bhcod-float-wa::after {
    content: '';
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: bhcod-pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes bhcod-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .bhcod-floating-wrap {
        bottom: 14px;
        right: 14px;
    }

    .bhcod-float-btn {
        width: 48px;
        height: 48px;
    }

    .bhcod-float-wa::after {
        width: 48px;
        height: 48px;
    }

    .bhcod-float-btn svg {
        width: 24px;
        height: 24px;
    }
}
