/* كود CSS لإضافة زر الواتساب العائم */
/* يمكن إضافة هذا الكود في قسم Custom CSS في إعدادات المتجر */

/* زر الواتساب العائم */
.whatsapp-button {
    position: fixed !important;
    width: 60px !important;
    height: 60px !important;
    bottom: 40px !important;
    right: 40px !important;
    background-color: #25d366 !important;
    border-radius: 50px !important;
    text-align: center !important;
    font-size: 30px !important;
    box-shadow: 2px 2px 3px #999 !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: whatsapp-pulse 2s infinite !important;
    border: none !important;
}

.whatsapp-button:hover {
    background-color: #128c7e !important;
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
    text-decoration: none !important;
}

.whatsapp-button:active {
    transform: scale(0.95) !important;
}

.whatsapp-button svg {
    width: 35px !important;
    height: 35px !important;
    fill: white !important;
}

/* تأثير النبضة */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* تصميم متجاوب للهواتف */
@media (max-width: 768px) {
    .whatsapp-button {
        width: 55px !important;
        height: 55px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 25px !important;
    }
    
    .whatsapp-button svg {
        width: 30px !important;
        height: 30px !important;
    }
}

/* رسالة ترحيبية */
.whatsapp-message {
    position: fixed !important;
    bottom: 110px !important;
    right: 40px !important;
    background: white !important;
    padding: 15px 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    max-width: 250px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    z-index: 9998 !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e0e0e0 !important;
    display: none !important;
}

.whatsapp-message.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
}

.whatsapp-message::after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    right: 20px !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 10px solid transparent !important;
    border-right: 10px solid transparent !important;
    border-top: 10px solid white !important;
}

.whatsapp-message h4 {
    margin: 0 0 8px 0 !important;
    color: #25d366 !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.whatsapp-message p {
    margin: 0 !important;
    line-height: 1.4 !important;
}

@media (max-width: 768px) {
    .whatsapp-message {
        bottom: 85px !important;
        right: 20px !important;
        max-width: 200px !important;
        font-size: 13px !important;
        padding: 12px 15px !important;
    }
}