/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #8c52ff; /* تغيير لون الخلفية */
    color: #fff; /* تغيير لون الخط إلى الأبيض */
}

/* تنسيق الهيدر */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f8f8;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu i {
    font-size: 18px;
    color: #333;
    cursor: pointer;
}
.menu span {
    color: black; /* تغيير اللون للنص */
}

.search-bar {
    flex: 1;
    margin: 0 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.logo {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.logo img {
    width: 40px;
    height: 40px;
}

/* تنسيق لصور البانر */
.banner {
    width: 100%;
    height: 25vh;
    object-fit: cover;
    min-height: 200px;
}

.second-banner {
    width: 100%;
    height: 25vh;
    object-fit: cover;
    min-height: 200px;
}

/* تنسيق أصناف الخدمات */
.category-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px;
}

.category-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-section h2 {
    text-align: right;
    font-size: 20px;
    margin-bottom: 15px;
}

/* تنسيق الأيقونات في المربعات */
.sub-category-container {
    display: flex;
    flex-wrap: wrap;  /* يسمح بترتيب العناصر بشكل أفقي */
    gap: 10px;  /* تقليص المسافة بين العناصر */
    justify-content: space-between;  /* توزيع العناصر بشكل متساوي */
}

/* تصغير المربعات 
.sub-category {
    width: calc(50% - 5px); 
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}*/

/* تعديل تنسيق sub-category */
.sub-category {
    width: calc(50% - 10px);
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex; /* إضافة */
    flex-direction: column; /* إضافة */
    justify-content: space-between; /* إضافة */
}

.sub-category img {
    width: 100%;
    height: 145px;
   /*object-fit: cover;*/
}


.sub-category h3 {
    font-size: 18px;
    margin-top: 10px;
    color: #333;
}

.sub-category p {
    font-size: 16px;
    margin: 5px 0;
    color: #333;
}
/*
.add-to-cart {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4CAF50;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin: 10px;
}
*/
.add-to-cart {
    position: relative;
    top: -3px; /* ارفع الزر بمقدار 5px */
    background-color: #8c52ff;/*#4CAF50;*/
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin: 0 auto;

    display: flex; /* اجعل العنصر flexbox */
    justify-content: center; /* محاذاة العناصر أفقيا */
    align-items: center; /* محاذاة العناصر عموديا */
    flex-direction: row-reverse; /* ترتيب العناصر بحيث تكون الأيقونة على اليمين */
}

/* تعديل تنسيق زر الإضافة */
/*.add-to-cart {
    background-color: #4CAF50;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin: 10px auto 0 auto; /* تعديل لضبط المحاذاة 
}
*/

.add-to-cart:hover {
    background-color: #45a049;
}
/* تنسيق القائمة الجانبية */
.menu i:hover {
    color: #8c52ff; /* تغيير اللون عند المرور على الأيقونات */
}
.add-to-cart i {
    margin-left: 10px; /* إضافة مسافة بين النص والأيقونة */
}