/*
Theme Name: Woodmart Child
Theme URI: https://example.com/
Description: Child theme for Woodmart
Author: qwek
Template: woodmart
Version: 1.0
Text Domain: woodmart-child
*/


/* تأكد أن كل منتج position: relative */
.products .product {
    position: relative;
}

/* overlay واتساب مخفي افتراضياً */
.whatsapp-overlay {
    position: absolute;
    top: 10px;      /* التحكم بالمسافة من أعلى الصورة */
    right: 10px;    /* التحكم بالمسافة من اليمين */
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10;
}

.whatsapp-overlay img {
    width: 32px;
    height: 32px;
}

/* يظهر عند hover على المنتج */
.products .product:hover .whatsapp-overlay {
    opacity: 1;
    transform: scale(1.1); /* تأثير لطيف عند الهور */
}
.rtl .whatsapp-overlay {
    WIDTH: 30px;
    display: inline-block;
    float: right;
    position: relative;
    margin: -50px 10px 0 10px;
    z-index: 24;
    opacity: 0;
}
.whatsapp-overlay {
    WIDTH: 30px;
    display: inline-block;
    float: LEFT;
    position: relative;
    margin: -50px 10px 0 10px;
    z-index: 24;
    opacity: 0;
}
/* حاوية أيقونة واتساب */
.whatsapp-tooltip {
    position: relative;
    display: inline-block;
}

/* مربع النص (مخفي افتراضياً) */
.rtl .whatsapp-tooltip .tooltip-text {
    position: absolute;
    bottom: 110%;              /* يظهر فوق الأيقونة */
    right: 50%;
    transform: translateX(25%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.whatsapp-tooltip .tooltip-text {
    position: absolute;
    bottom: 110%;              /* يظهر فوق الأيقونة */
    right: -200%;
    transform: translateX(25%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}
/* السهم الصغير تحت المربع */
.rtl .whatsapp-tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 23%;
    transform: translateX(25%);
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.whatsapp-tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 90%;
    transform: translateX(25%);
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}
/* عند المرور بالماوس */
.rtl .whatsapp-tooltip:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* =========================
   Tooltip واتساب ظاهر دائمًا على الموبايل
   ========================= */

@media (max-width: 768px) {
   .rtl .whatsapp-overlay {
    WIDTH: 30px;
    display: inline-block;
    float: right;
    position: relative;
    margin: -50px 10px 0 28px;
    z-index: 24;
    opacity: 1;
    background-color: #fff;
    border-radius: 50%;
    padding: 3px;
}
}

@media (max-width: 768px) {
   .whatsapp-overlay {
    WIDTH: 30px;
    display: inline-block;
    float: LEFT;
    position: relative;
    margin: -50px 10px 0 28px;
    z-index: 24;
    opacity: 1;
    background-color: #fff;
    border-radius: 50%;
    padding: 3px;
}
}
/* تعديل موضع أيقونة Elfsight على الموبايل */
@media (max-width: 768px) {

    /* زر فتح الشات */
    .rtl .FloatingButton_FloatingButtonContainer-sc-78e7a0be-0 {
        bottom: 5% !important;   /* ارفعها للأعلى */
    }

    /* نافذة الشات نفسها */
    .rtl .es-window-container {
        bottom: 5% !important;  /* تتناسق مع مكان الأيقونة */
    }
}
@media (max-width: 768px) {

    [class*="FloatingButton"] {
        bottom: 5% !important;
    }

    [class*="window-container"] {
        bottom: 5% !important;
    }
}

.es-window-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #e8f2fc; /* نفس لون الشات */
    z-index: 999999;
}
.es-window-container::before {
	content:"أطلب مساعدة من (dorsch.ps) دورش فلسطين";
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 15px;
	font-weight:600;
    color: #333;
    z-index: 9999999;
    pointer-events: none;
    font-family: inherit;
}
.FloatingButton__FloatingButtonContainer-sc-51a1f737-0.fOhhWd {
    margin: 0 12px 85px 0 !important;
}




