/* تنسيق الأزرار وجعل الخلفية أسود فاحم */
a.product_type_variable,
a.product_type_grouped,
a.button.product_type_variable {
    display: block !important;
    width: 225px !important;
    max-width: 90% !important;
    margin: 10px auto !important;
    padding: 13px 16px !important;
    font-size: 14px !important;
    text-align: center !important;
    
    /* الحل الجذري للسواد الكامل */
    background: #000000 !important;   /* لضمان حذف أي تدرج لوني */
    background-color: #000000 !important;
    opacity: 1 !important;            /* لضمان عدم وجود شفافية */
    
    color: #fff !important;
    border-radius: 7px !important;
    border: none !important;          /* إزالة أي إطارات قد تفتّح اللون */
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Zain', sans-serif !important;
    font-weight: 520 !important;
    text-decoration: none !important; /* إزالة الخط السفلي */
}

/* تأثير الـ Hover */
a.product_type_variable:hover,
a.product_type_grouped:hover,
a.button.product_type_variable:hover {
     background-color: #333333 !important; /* رمادي غامق للخلفية ليتناسب مع الأسود */
    transition: all 0.3s ease !important;   /* نعومة في الانتقال */
}
/* ===== الصور في الكمبيوتر ===== */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion img,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    object-fit: cover;
}

.dgwt-wcas-suggestion {
    align-items: center !important;
}

/* ===== الصور في الموبايل ===== */
@media (max-width: 768px) {
    .dgwt-wcas-suggestions-wrapp img,
    .dgwt-wcas-si {
        width: 100px !important;
        height: 100px !important;
    }
}

/* ================= زر عرض كل المنتجات ================= */



/* الكمبيوتر */
@media (min-width: 1025px) {
    .dgwt-wcas-more-results, 
    .dgwt-wcas-suggestion-more,
    .dgwt-wcas-details-more-products { /* إضافة الكلاس الجديد هنا */
        display: block !important;
        width: 250px !important;
        margin: 10px auto !important;
        padding: 13px 16px !important;
        background: #000 !important;
        color: #fff !important; /* اللون الأبيض للنص */
        border-radius: 7px !important;
        text-align: center !important;
        line-height: 15px !important;
        font-size: 14px !important;
        cursor: pointer;
        text-decoration: none !important;
    }
}

/* التابلت */
@media (min-width: 768px) and (max-width: 1024px) {
    .dgwt-wcas-more-results,
    .dgwt-wcas-suggestion-more,
    .dgwt-wcas-details-more-products { /* إضافة الكلاس الجديد هنا */
        display: block !important;
        width: 225px !important;
        max-width: 90% !important;
        margin: 10px auto !important;
        padding: 13px 16px !important;
        font-size: 14px !important;
        background: #000 !important;
        color: #fff !important;
        border-radius: 7px !important;
        text-align: center !important;
        text-decoration: none !important;
    }
}

/* الموبايل */
@media (max-width: 767px) {
    .dgwt-wcas-more-results,
    .dgwt-wcas-suggestion-more,
    .dgwt-wcas-details-more-products { /* إضافة الكلاس الجديد هنا */
        display: block !important;
        width: auto !important;
        max-width: 55% !important;
        margin: 10px auto !important;
        margin-top: 25px !important;
        padding: 10px 13px !important;
        background: #000 !important;
        color: #fff !important;
        border-radius: 7px !important;
        text-align: center !important;
        text-decoration: none !important;
    }
}



/* حل مشكلة لون نص "عرض كل المنتجات" */

/* 1. استهداف النص داخل الزر في القائمة المنسدلة */
.dgwt-wcas-suggestion-more .dgwt-wcas-st-more,
.dgwt-wcas-suggestion-more .dgwt-wcas-st-more-total,
.dgwt-wcas-suggestion-more * {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* 2. إضافة التنسيق لجميع الحالات (كمبيوتر، تابلت، موبايل) */
.dgwt-wcas-more-results, 
.dgwt-wcas-suggestion-more, 
.dgwt-wcas-details-more-products {
    background-color: #000000 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* 3. التأكد من بقاء اللون أبيض عند تمرير الماوس */
.dgwt-wcas-suggestion-more:hover .dgwt-wcas-st-more {
    color: #ffffff !important;
}

/* 3. تأثير تمرير الماوس (Hover) باللون الرمادي الخفيف */
.dgwt-wcas-suggestion-more:hover, 
.dgwt-wcas-suggestion-more:hover * {
    background-color: #333333 !important; /* رمادي غامق للخلفية ليتناسب مع الأسود */
    transition: all 0.3s ease !important;   /* نعومة في الانتقال */
}



/* تغيير خط الإدخال في شريط البحث إلى Zain */
.dgwt-wcas-search-input {
    font-family: 'Zain', sans-serif !important;
}


