
header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 150px; 
    background-color: #457830; 
    z-index: 1000; 
    box-shadow: 0 2px 5px rgba(16, 16, 16, 0.1); 
    position: sticky; 
    top: 0; 
}

.logo img {
    width: 120px; 
    margin-left: 0;  
    margin-right: 0;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 40px; 
}

nav ul li a {
    text-decoration: none;
    color: #ffffff; 
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #e51c23; 
}


@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.8;
    direction: rtl; 
    text-align: right; 
}


.product-header {
    text-align: center;
    padding: 20px;
    background-color: #457830;
    color: #ffffff;
}
.product-header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}
.product-header p {
    font-size: 1.2em;
    color: #457830;
}

/*
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #457830;
}
/*.gallery img {
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    cursor: pointer;
} 
.gallery img {
    width: 300px; / حجم مناسب /
    max-width: 100%; 
    height: auto; /* للحفاظ على الأبعاد الأصلية 
    display: block;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    cursor: pointer;

}

.gallery img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

*/
/* إعدادات المعرض */
.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;  /* مسافة بين الصور */
    flex-wrap: wrap;
    padding: 20px;
}

/* تنسيق الصور داخل المعرض */
.gallery img {
    width: 300px;  /* عرض ثابت مناسب للصور */
    height: auto;  /* الحفاظ على الأبعاد الأصلية */
    border-radius: 10px;  /* إضافة زوايا دائرية */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* إضافة ظل خفيف */
    transition: transform 0.3s ease, box-shadow 0.3s ease;  /* تأثير عند المرور على الصورة */
    background-color: #457830;
    object-fit: contain;


}

/* تأثير عند المرور على الصورة */
.gallery img:hover {
    transform: scale(1.05);  /* تكبير الصورة قليلاً */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);  /* زيادة الظل عند المرور */
}

/* استجابة التصميم على الشاشات الصغيرة */
@media (max-width: 768px) {
    .gallery img {
        width: 90%;  /* عرض الصورة على الشاشات الصغيرة */
        max-width: 300px;  /* الحد الأقصى للعرض */
    }
}

.product-details {
    text-align: center;
    padding: 20px;
    background-color: #457830;
}
.product-details h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #ffffff;
}
.product-details p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #ffffff;
}


.ingredients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.ingredient-item {
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}


.comments {
    padding: 20px;
    background-color: #457830;
    text-align: center;
}
.comments h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffffff;
}
.comments form {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#comment-input {
    width: 90%;
    max-width: 600px;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 10px;
}
.comments button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #e51c23;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}
.comments button:hover {
    background-color: #d66c0f;
}
#comment-list {
    text-align: right;
    margin-top: 20px;
}
.comment-item {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.comment-item span {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}




footer {
    background-color: #457830;
    color: #ffffff;
    font-family: 'Tajawal', sans-serif;
    padding: 60px 20px;
    direction: rtl;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}


.footer-text {
    font-size: 16px;
    align-items: center;
    color: #ffffff;
}

.footer-text p {
    margin: 50px 50px;
}




.comment-item {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative; 
}
.comment-item p {
    margin: 0;
    font-size: 1em;
    color: #333;
}
.comment-item span {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}
.delete-button {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    background-color: #e87c11;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.delete-button:hover {
    background-color: #d66c0f;
}




/* لأجهزة الهواتف */
@media (max-width: 600px) {
    body {
        font-size: 14px;
        background-color: #f8f9fa;
    }
    .container {
        padding: 10px;
    }
    .menu {
        display: none; /* إخفاء القائمة في الهواتف */
    }
}

/* لأجهزة التابلت */
@media (min-width: 601px) and (max-width: 1024px) {
    body {
        font-size: 16px;
        background-color: #e9ecef;
    }
    .container {
        padding: 20px;
    }
    .menu {
        display: block;
    }
}

/* لأجهزة الكمبيوتر */
@media (min-width: 1025px) {
    body {
        font-size: 18px;
        background-color: #ffffff;
    }
    .container {
        width: 80%;
        margin: auto;
    }
    .menu {
        display: flex;
        justify-content: space-around;
    }
}