
 *{
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body{
    font-family: "Cairo", "Beiruti",serif;
    text-align: center; /* محاذاة النص في المنتصف */
    background-color: #4d4c4c;
    padding: 5px;
    margin: 0; /* إزالة الهوامش الافتراضية */
    height: 100vh; /* جعل ارتفاع الصفحة يملأ نافذة العرض */
    
    background-size: cover; /* جعل الصورة تغطي كامل الصفحة */
    background-repeat: no-repeat; /* منع تكرار الصورة */
    background-position: center; /* محاذاة الصورة في المركز */
    background-attachment: fixed; /* تثبيت الصورة */
    
    
}



html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden; /* منع التمرير الأفقي */
    overflow-y: auto;   /* السماح بالتمرير العمودي */
    height: 100%;       /* تأكد أن الصفحة تغطي كامل الطول */
    -webkit-overflow-scrolling: touch; /* دعم التمرير السلس على أجهزة Android */
    touch-action: pan-y; /* السماح بالتمرير العمودي فقط */
}

.navbar {
    position: fixed; /* تثبيت العنصر في أعلى الصفحة */
    top: 0; /* تحديد المسافة من أعلى الصفحة */
    left: 0; /* تحديد المسافة من اليسار */
    right: 0; /* تحديد المسافة من اليمين */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 1px;
    border-radius: 0px; /* إضافة زوايا دائرية في الأسفل فقط */
    width: 100%; /* عرض الشريط كامل */
    box-sizing: border-box; /* التأكد من احتساب الحواف في العرض */
    z-index: 1000; /* ضمان أن الشريط يظهر فوق باقي المحتويات */
    height: 50PX;
    margin-bottom: 300px;
    
}


.navbar .form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    

}

.navbar input[type="text"] {
    position: absolute;
    padding: 12px;
    border: 2px solid #413f3f80;
    border-radius: 15px;
    width: 40px;
    height: 10px;
    font-size: 18px;
    background-color: #0e0d0a93;
    color: #b1b7b2;
    text-align: center;
    transition: all 0.3s ease;
    appearance: none;
    justify-content: center;
    text-align: center;
    left: 7px;
    bottom: 7px;
}

.navbar input[type="text"]:focus {
    border-color: #000000;
    outline: none;
    background-color: #2d3333;
}

.navbar button {
    display: flex;
    font-family: "Cairo", "Beiruti",serif;
    padding: 0px;
    background-color: #6e806f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    right: 1px;
    box-sizing: border-box;
    height: 35px;
    margin: 10px;
    text-align: center;
    justify-content: center;
    width: 60px;
}
.navbar button:active {
    display: flex;
    font-family: "Cairo", "Beiruti",serif;
    padding: 0px;
    background-color: #2629267d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    right: 1px;
    box-sizing: border-box;
    height: 35px;
    margin: 10px;
    text-align: center;
    justify-content: center;
    width: 60px;
    transform: scale(1.2);
}


.total-price {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center; /* توسيط المحتوى أفقيًا */
    align-items: center; /* توسيط المحتوى عموديًا */
    gap: 10px; /* إضافة مسافة بين الحقل والنص */
    margin: 2px;
    
    width: 150px; /* يمكن تعديل العرض حسب الحاجة */
    height: 55px; /* تحديد ارتفاع العنصر */
    
}


.total-price input {
    position: relative;
    gap: 2px;
    width: 35px; /* عرض الحقل */
    padding: 5px;
    font-size: 16px;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #3c3c3c45;
    background-color: #0000004d;
    color: #027b16;
    height: 15px; /* تأكد من أن الحقل يملأ العنصر عموديًا */
    pointer-events: none; /* منع التفاعل مع الحقل */
    transition: all 1s;

    
    
}
.total-price input:not(:placeholder-shown) {
    border-color: #c33700; /* تغيير اللون عند الكتابة */
    background-color: #0000004d; /* تغيير اللون الخلفي */
    box-shadow: 0 0 20px 2px #c33700 ;
    width: 40px;
    transition: all 1s;
}


.total-price .price-text {
    font-size: 16px; /* حجم النص */
    color: #717171; /* لون النص */
    font-weight: bold; /* جعل النص غامقًا */
    
}





/*----------------------------------------------------------------------------------------------------*/





 /*-------------------------------------------------------------------------------------------------*/
.price {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}



.confirmation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    
}

.confirmation-window {
    background-color: rgb(164, 155, 155);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.confirmation-overlay.show {
    display: flex;
}

/*------------------------------------*/





/*-----------رسالة------------*/
.alert {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    display: none;
    position: fixed; /* يضمن أن العنصر يبقى في مكانه حتى عند التمرير */
    top: 80px; /* يمكنك تعديل هذه القيمة حسب المكان الذي تريده */
    left: 50%;
    transform: translateX(-50%); /* لضمان أن العنصر في المنتصف */
    z-index: 2000; /* التأكد من أن العنصر يظهر فوق العناصر الأخرى */
    width: 100%;
}
.alert.success {
    background-color: #4caf4f44;
    color: white;
    z-index: 2000;
}

.alert.error {
    background-color: #1f84133c;
    color: white;
    
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: white;
    cursor: pointer;
}






/* نافذة الرسالة */
.alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    
}

.alert-window {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.alert-overlay.show {
    display: flex;
}

.alert-overlay button {
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.alert-overlay button:hover {
    background-color: #45a049;
}
/*---------رسالة-------*/






.form-group {
    margin-top: 5px;
}





.menu-options {
    position: absolute; 
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    width: 100%; /* العرض الثابت */
    background-color: rgb(125, 119, 119);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 30px 60px 6px rgba(208, 3, 3, 0.597);
    opacity: 0;
    visibility: hidden;
    transition: height 0.3s ease, opacity 0.2s ease, visibility 2s ease;
    box-sizing: border-box; /* يجعل الحواف الداخلية ضمن العرض */
    justify-items: flex-end;
    z-index: 15; /* قيمة أصغر */
    height: 1px;
    

} 



.menu-options.visible {
    opacity: 1;
    visibility: visible;
    height: 250px;
    transition: height 0.7s , opacity 0.1s ease, visibility 0.5s ease;
    z-index: 15;
}

.menu-options > * {
    transform: scale(0.0); /* العناصر تبدأ صغيرة */
    transition: transform 0.2s ease; /* التأثير التدريجي للتحجيم */
}

.menu-options.visible > * {
    transform: scale(1); /* العناصر تكبر إلى الحجم الطبيعي */
}

.menu-options:not(.visible) > * {
    transform: scale(0); /* تصغير العناصر عند الخروج */
    transition: transform 0s ease; /* التأثير التدريجي للتحجيم */
}







.menu-options label input[type="checkbox"] {
    box-sizing: border-box; /* يجعل الحواف الداخلية ضمن العرض */
    width: 120px; /* العرض الثابت */
    display: none;
    

}



.menu-options label:nth-child(2) {

    transition-delay: 0.2s ; /* تأخير العنصر الثاني */
}


.menu-options label:nth-child(3) {
    transition-delay: 0.3s; /* تأخير العنصر الثاني */
}

.menu-options label:nth-child(4) {
    transition-delay: 0.4s; /* تأخير العنصر الثالث */
}



.menu-options label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 15px;
    cursor: pointer;
    justify-content: flex-start; /* محاذاة العناصر إلى اليسار */
    direction: rtl; /* ضبط اتجاه النص من اليمين لليسار */
    font-size: small;

    
    
}


.menu-options label .custom-checkbox {
    width: 15px;
    height: 15px;
    border: 2px solid #999d9d;
    border-radius: 5px;
    background-color: #e4e3e3;
    display: flex;
    align-items: center;
    justify-content: center; /* لضمان محاذاة الـ "checkmark" في المنتصف */
    margin-left: 4px; /* إضافة مسافة بين النص والـ checkbox */
    justify-items: flex-end;
    
}


.menu-options label input[type="checkbox"] {
    display: none;
}

.menu-options label input[type="checkbox"]:checked + .custom-checkbox {
    border-color: #4caf50;
    background-color: #4caf50;
   
    
}

.menu-options label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "\2714";
    color: white;
    font-size: 16px;
    text-align: center;
    line-height: 18px; /* لضمان محاذاة الـ checkmark بشكل جيد داخل الـ checkbox */
    
    
}

.menu-options textarea {
    box-sizing: border-box; /* يجعل الحواف الداخلية ضمن العرض */
    width: 100%;
    height: 60px;
    padding: 10px;
    border-color: #3f3f3f;
    background-color: #919090;
    border-radius: 3px;
    margin-top: 10px;
    font-family: "Cairo", "Beiruti",serif;
    text-align: end;
    justify-content: flex-start;
    transition-delay: 0.5s;
    box-shadow:0 0 10px 1px #000000;
    

}





.menu-options textarea:focus {
    box-sizing: border-box; /* يجعل الحواف الداخلية ضمن العرض */
    width: 100%;
    height: 60px;
    padding: 10px;
    border-color: #000000;
    background-color: #4d4c4c;
    border-radius: 3px;
    margin-top: 10px;
    font-family: "Cairo", "Beiruti",serif;
    justify-content: flex-start;
    transition: 1s;
    outline: none; /* إزالة الإطار الافتراضي */
    transform: scale(1.1);
    transition-delay: 0s; /* تأخير خاص بحالة التركيز */
    box-shadow:0 0 20px 2px #000000;
    
    
}

.menu-options textarea:not(:placeholder-shown) {
    border-color: #c33700; /* تغيير اللون عند الكتابة */
    background-color: #e4f0a4; /* تغيير اللون الخلفي */
    box-shadow: 0 0 20px 2px #c33700 ;
}


/* حالة العنصر بعد فقدان التركيز (blur) */


.quantity-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    transition-delay: 0.1s; /* تأخير العنصر الثاني */
    box-sizing: border-box; /* يجعل الحواف الداخلية ضمن العرض */
    justify-content: center; /* تحريك المحتوى إلى اليسار */
    margin-bottom: 7px;
    justify-items: flex-end;
}

.quantity-group label {
    font-size: 18px;
    color: #333;
}

.quantity {
   
    width: 20px;
    height: 10px;
    padding: 5px;
    font-size: 15px;
    border: 2px solid #499612;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 5px 2px #45a049;
    font-family: "Cairo", "Beiruti",serif

    
}

.quantity:focus {
    border-color: #4caf50;
    background-color: #e8f5e9;
    outline: none;
}

.quantity::-webkit-outer-spin-button,
.quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-buttons {
    
    display: flex;
    gap: 5px;
    flex-direction: row; /* ترتيب الأزرار بشكل عمودي */
    
    align-items: center; /* محاذاة الأزرار عموديًا في المنتصف */
    }


.quantity-buttons button {
    font-size: 18px;
    padding: 10px 10px 10px 10px; /* زيادة الحشو لتسهيل الضغط على الأزرار */
    border: none;
    background-color: #ed501c;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex; /* استخدام flexbox */
    justify-content: center; /* توسيط النص أفقيًا */
    align-items: center; /* توسيط النص عموديًا */
    text-align: center; /* التأكد من محاذاة النص داخل الزر */
}
    



.quantity-buttons button:active {
    background-color: #027b16;
}


/*----------------------------------------------------------------------------*/


.menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0px;
    
    
    
} 
/*----------------------------------------------------------------------------*/
.menu-item {
    position: relative;
    display: flex;
    justify-content: center; /* توسيط المحتوى عموديًا */
    align-items: center; /* توسيط المحتوى أفقيًا */
    flex-direction: column; /* لتحديد ترتيب العناصر داخل كل صنف */
    padding: 15px; /* فراغ داخلي */
    background-color:rgb(125, 119, 119);
    border-radius: 10px;
    transition: transform 0.2s ease-in-out, box-shadow 0.3s ease, height 1s ease  ;  /* تأثير التحجيم والظل */
    box-shadow: 0 0 50px 2px  #000000;
    cursor: pointer;        
    height: 140px; /* ضبط الارتفاع تلقائيًا */
    width: 170px; /* العرض الثابت */
    z-index: 5;
    top: 120px;
    
    
    
   

}
/* بالنسبة للشاشات الصغيرة (الهواتف) */
@media (max-width: 768px) {
.menu-item {
    width: calc(50% - 10px); /* عرض العنصر 50% مع خصم المسافة بين العناصر */
    margin-bottom: 9px; /* إضافة مسافة بين العناصر */
    margin-left: auto; 
    margin-right: auto; 
    box-sizing: border-box; /* تأكد من أن البُعد يشمل الحواف */
    transition: transform 0.7s ease-in-out, box-shadow 0.8s ease-in-out;

}
}

.menu-item .price{
    position: absolute;
    right: 2px;
    top: 2px;
    text-align: center;
    color: #000000;
    margin: 5px;
    font-size: 15px;
    background-color: #00000048;
    border-radius: 20px;
    width: 50px;
    



}


.menu-item .info{
    position: absolute;
    top: 100px;
    text-align: center,top;
    color: #000000;
    margin: 5px;
    font-size: 10px;
    background-color: #00000048;
    width: 100%;
    height:35px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0px -20px 25px 0px #000000a8;



}






.menu-item.right.focused {
    z-index: 10;
    box-shadow: 0 0 100px 50px rgba(163, 11, 11, 0.642);
    transform: scale(1.4) translateX(-37%) translateY(20%); /* تحريك العنصر إلى منتصف اليمين */ /* تحريك العنصر إلى منتصف العنصر الأب */
    transition: transform 0.5s ease, height 1s ease; /* تأثير التحجيم والظل */
}

.menu-item.left.focused {
    z-index: 10;
    box-shadow: 0 0 100px 50px rgba(163, 11, 11, 0.642);
    transform: scale(1.4) translateX(38%) translateY(20%); /* تحريك العنصر إلى منتصف اليسار */ /* تحريك العنصر إلى منتصف العنصر الأب */
    transition: transform 0.5s ease, height 1s ease; /* تأثير التحجيم والظل */
}

.menu-item .image-wrapper {
    position: relative; /* لضبط الصورة داخل حاوية مرنة */
    width: 100%;
    height: 100%;
}

.menu-item img {
    margin-bottom: 5px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    object-fit: cover; /* لضبط الصورة بشكل مناسب داخل العنصر */

    
}  

.menu-item img:hover {
    transform: scale(1);
    opacity: 100%;
}    





.menu-item.selected {
    background-color: yellow;
}

.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 5; /* Make sure it's above other content */
    transition:  opacity 0.9s ease;
    opacity: 0;
}





.overlay.visible {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 7; /* Make sure it's above other content */
    transition:  opacity 1.3s ease;
    opacity: 1;
}








.navbars {
    top: 50px;
    position: fixed;
    display: flex;
    justify-content: space-between;
    background-color: #33333322;
    left: 0;
    right: 0;
    top: 50px;
    color: white;
    z-index: 1000;
    margin-bottom: 50px;
    line-height: 20px;
    flex-direction: row; /* ترتيب الأزرار بشكل عمودي */
    align-items: center;
    

}

.navs-button {
    cursor: pointer;
    padding: 10px 20px;
    background-color: #44444487;
    color: white;
    border: none;
    border-radius: 0px;
    text-align: center;
    width: 100%;

}

.navs-button:hover {
    background-color: #555555a3;
}

.cars {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0px;
    margin-top: 50px;

}
    

