﻿.whatsapp-hover {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    direction: rtl;
}

/* أيقونة واتس */
.whatsapp-icon {
    width: 55px;
    height: 55px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,.3);
    cursor: pointer;
    text-decoration: none;
}
    .whatsapp-icon:hover {
        animation: none;
    }
/* صندوق الواتس */
.whatsapp-box {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 15px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
    text-align: center;
}

    /* سهم */
    .whatsapp-box::after {
        content: "";
        position: absolute;
        bottom: -10px;
        right: 20px;
        border-width: 10px 10px 0 10px;
        border-style: solid;
        border-color: #fff transparent transparent transparent;
    }

    .whatsapp-box h6 {
        margin: 0 0 5px;
        font-size: 15px;
    }

    .whatsapp-box p {
        font-size: 13px;
        color: #555;
        margin-bottom: 10px;
    }
    .whatsapp-box img {
        display: block;
        margin: 0 auto;
        width: 160px;
        max-width: 100%;
    }
.qr-wrapper {
    overflow: hidden;
}

    .qr-wrapper img {
        width: 180px;
        transition: transform .3s ease;
    }

/* تكبير عند المرور */
.whatsapp-box:hover .qr-wrapper img {
    transform: scale(1.15);
}
.qr-download {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    font-size: 13px;
    background: #25D366;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    transition: background .3s ease;
}

    .qr-download:hover {
        background: #1ebe5d;
    }
/* كمبيوتر */
@media (hover: hover) {
    .whatsapp-hover:hover .whatsapp-box {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* موبايل */
.whatsapp-hover.active .whatsapp-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-icon {
    animation: whatsapp-pulse 2.5s infinite;
}
@media (max-width: 576px) {

    .whatsapp-icon {
        width: 48px;
        height: 48px;
        font-size: 26px;
    }

    .whatsapp-box {
        width: 200px;
        bottom: 60px;
        padding: 10px;
    }

        .whatsapp-box img {
            width: 140px;
        }
}

/* إخفاء QR وزر التحميل على الموبايل */
@media (max-width: 768px) {
    .qr-wrapper,
    .qr-download {
        display: none;
    }
}