/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.4.4.1752215712
Updated: 2025-07-11 06:35:12

*/

/* --- كود تطبيق خط Cairo على اللغة العربية --- */

body.lang-ar,
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4,
body.lang-ar h5,
body.lang-ar h6 {
    font-family: 'Cairo', sans-serif !important;
}


/* --- كود قوي لتحديد الخط العربي لعناصر Elementor --- */

/* للنصوص والفقرات العادية */
body.lang-ar .elementor-widget-text-editor {
    font-family: 'Cairo', sans-serif !important;
}

/* للعناوين الرئيسية */
body.lang-ar .elementor-widget-heading .elementor-heading-title {
    font-family: 'Cairo', sans-serif !important;
}

/* للأزرار */
body.lang-ar .elementor-button {
    font-family: 'Cairo', sans-serif !important;
}


////////////////////working need some edit///////////////////////////////////////


/* ================== Main Filter Container ================== */
#de-drug-filter {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: sans-serif;
}

/* ================== Filter Tabs (تم التعديل) ================== */
.de-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.de-tab {
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 500;
    color: #0073aa; /* ✅ لون النص أزرق عشان يظهر البوردر */
    background-color: transparent; /* ✅ خلفية شفافة */
    border: 1px solid #0073aa; /* ✅ بوردر أزرق ظاهر دايماً */
    border-radius: 5px; /* ✅ تعديل الـ border-radius */
    cursor: pointer;
    transition: all 0.3s ease;
}

.de-tab:hover {
    background-color: #0073aa; /* لون أزرق عند الهوفر */
    color: #ffffff;
}

/* Active Tab Style (تم التعديل) */
.de-tab.active {
    background-color: #0073aa; /* ✅ خلفية زرقاء عند الاختيار */
    color: #ffffff; /* ✅ لون النص أبيض */
    border-color: #0073aa;
}


/* ================== Posts Container & Animation ================== */
#de-posts-container {
    transition: opacity 0.4s ease-in-out;
}

#de-posts-container.is-loading {
    opacity: 0;
    min-height: 300px;
}

/* ================== Products Grid (تم التعديل) ================== */
.de-grid {
    display: grid;
    /* ✅ السطر ده هيخلي فيه 3 منتجات في الصف على الشاشات الكبيرة */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
	padding-left:20px;
	padding-right:20px;
    
}

/* ✅ Media Query عشان يبقى ريسبونسف على الشاشات الأصغر */
@media (max-width: 992px) {
    .de-grid {
        grid-template-columns: repeat(2, 1fr); /* منتجين في الصف للتابلت */
    }
}

@media (max-width: 576px) {
    .de-grid {
        grid-template-columns: 1fr; /* منتج واحد في الصف للموبايل */
    }
}


/* ================== Single Product Card ================== */
.de-post {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.de-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.de-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 25px;
}

.de-post-thumb {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.de-post-thumb img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
}

.de-post-title {
    font-size: 20px;
    font-weight: 600;
    color: #E8CC63;
    text-transform: uppercase;
    margin: 0;
}

/* ================== Pagination (تم التعديل) ================== */
#de-pagination {
    margin-top: 40px;
}

.de-pagination-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.de-page-btn {
    width: 40px;
    height: 40px;
    background-color: transparent; /* ✅ خلفية شفافة */
    color: #0073aa; /* ✅ لون النص أزرق */
    border: 1px solid #0073aa; /* ✅ بوردر أزرق ظاهر دايماً */
    border-radius: 5px; /* ✅ تعديل الـ border-radius */
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.de-page-btn:hover {
    background-color: #0073aa;
    color: #fff;
}

.de-page-btn.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}


/*zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz*/

/* 🔹 الأساسيات: نخلي الأب relative */
.menu-item-has-children {
  position: relative !important;
}

/* 🔹 ظبط الدروب داون الافتراضي */
ul.sub-menu.elementor-nav-menu--dropdown {
  position: absolute !important;
  top: 100% !important;   /* ينزل تحت الزر مباشرة */
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  z-index: 9999 !important; /* يظهر فوق أي عناصر تانية */
}

/* 🔹 إلغاء أي inline style محطوط */
ul.sub-menu.elementor-nav-menu--dropdown[style] {
  top: 100% !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
}

/* 🔹 وضع اللغة الإنجليزية (LTR) */
html[lang="en-US"] ul.sub-menu.elementor-nav-menu--dropdown {
  left: 0 !important;
  right: auto !important;
}

/* 🔹 وضع اللغة العربية (RTL) */
html[lang="ar"] ul.sub-menu.elementor-nav-menu--dropdown {
  right: 0 !important;
  left: auto !important;
}



