body {
   font-family: 'Cairo', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    padding-bottom: 70px; /* للحفاظ على المسافة للقائمة السفلية */
}
.navbar {
    background-color: #4caf50;
    color: #fff;
}
.navbar a {
    color: #fff;
}
.menu-bar {
    background-color: #fff;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.menu-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}
.menu-bar ul li {
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}
.menu-bar ul li a {
    text-decoration: none;
    color: #4caf50;
    padding: 5px 15px;
    border-radius: 5px;
    transition: 0.3s;
}
.menu-bar ul li a:hover {
    background-color: #4caf50;
    color: #fff;
}
.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4caf50;
    margin: 20px 0;
    border-bottom: 3px solid #4caf50;
    display: inline-block;
    padding-bottom: 5px;
}

/* أيقونات الأقسام */
.section-icons a {
height: 100px;
width:160;
text-decoration: none;
border: 1px solid #e0e0e0;
border-radius: 10px;
padding: 15px;
text-align: center;
background-color: #fff;
transition: transform 0.3s, box-shadow 0.3s;
margin-bottom: 5px;
}

.section-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.section-icons img {
    /*max-width: 80px;  يمنع تضخم الصور */
    /*height: 80px;*/
     width: 100%; /* يمنع تضخم الصور */
     height: 60px;
}

/* السلايدر */
.slider img {
    width: 100%;
    height: 300px;
    border-radius: 10px;
}

/* السلايدر */
.slider img {
    width: 100%;
    height: 300px;
    border-radius: 10px;
}

/* تنسيق البطاقة */
.product-card {
    flex: 0 0 auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 170px;  /* العرض الافتراضي في الشاشات الكبيرة */
    text-align: center;
    margin-bottom: 5px;
    position: relative;
    min-height: 280px; /* الارتفاع الافتراضي في الشاشات الكبيرة */
}

/* محتوى البطاقة (العنوان/السعر) */
.product-card .card-body {
    margin-bottom: 45px; /* فصل السعر عن زر الإضافة */
}

/* الصورة داخل البطاقة */
.product-card img {
    object-fit: contain;
    width: 100%;
    height: 180px;
    border-bottom: 1px solid #ddd;
}

/* زر الإضافة إلى السلة */
.add-to-cart {
    position: absolute;
    bottom: 10px;  /* مسافة من أسفل البطاقة */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.img_sec{
    width: 400px;
    height:350px;
}
.product-card .price {
    font-size: 0.9rem;
    font-weight: bold;
    color: #4caf50;
  
}
.product-card .add-to-cart {
    margin: 0 auto;
    width: 40px;
    height: 40px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
/* تنسيق الحاوية الأفقية */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;            
    gap: 10px;                   
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}
 /* إظهار شريط التمرير الأفقي مع تنسيقه */
.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}
.horizontal-scroll::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 3px;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 3px;
}
.view-more {
    text-align: center;
    margin-top: 10px;
}
.view-more button {
    background-color: #4caf50;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}
.view-more button:hover {
    background-color: #45a049;
}
.support-section {
    text-align: center;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}
.support-section h4 {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}
.support-section p {
    font-size: 1rem;
    margin-bottom: 10px;
}
.support-section .contact-btn {
    color: #6c63ff;
    border: 2px solid #6c63ff;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.support-section .contact-btn:hover {
    background-color: #6c63ff;
    color: #fff;
}

/* القائمة السفلية للشاشات الصغيرة */
.main-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}
.main-menu a {
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: 0.3s;
}
.main-menu a:hover {
    color: #6c63ff;
}
.main-menu i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

/* إخفاء القائمة السفلية في الشاشات الكبيرة */
@media (min-width: 768px) {
    .main-menu {
        display: none;
    }
}

/* الفوتر التقليدي للشاشات الكبيرة */
.footer {
    max-width: 100%;
    display: none;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1); /* لتحديد الظل في الأعلى للفوتر */

}
@media (min-width: 768px) {
    .footer {
        display: block;
        background-color: #f1f1f1;
        padding: 20px;
        text-align: center;
        position: relative;
    }
    .footer .footer-links {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 10px;
    }
    .footer .footer-links a {
        text-decoration: none;
        color: #333;
        font-size: 1rem;
        transition: color 0.3s;
    }
    .footer .footer-links a:hover {
        color: #6c63ff;
    }
}

@media (max-width: 768px) {
    .row {
        flex-wrap: nowrap;
        display: flex;
    }
    .section-icons {
        flex: 0 0 auto;
    }
    .slider {
        flex-grow: 1;
    }
}
    /* تخصيص على الشاشات الصغيرة (أقل من 767px) */
@media (max-width: 767px) {
    .product-card {
    /* جعل العرض حوالي 45% لظهور بطاقتين كاملتين وجزء من الثالثة */
    width: 40%;
    /* تقليل الارتفاع */
    min-height: 200px;
    }
    .product-card img {
    height: 140px; /* تقليل ارتفاع الصورة بما يناسب تقليل ارتفاع البطاقة */
    }
    .add-to-cart {
    transform: translateX(-50%) scale(0.8); /* تصغير زر الإضافة قليلاً */
    }
}
