/*===============================
  القواعد العامة للعناصر الأساسية في الصفحة
===============================*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 20px;
  text-align: center;
}

/*===============================
  تنسيقات العناوين الرئيسية والفرعية
===============================*/
h1,
h2 {
  color: #222;
  margin-bottom: 15px;
  margin-top: 50px;
}

h1 {
  font-family: "Cambo", serif;
  font-weight: bold;
  font-style: normal;
}

/*===============================
  الحاوية الرئيسية للمحتوى
===============================*/
.container {
  position: relative;
  background: #fff;
  padding: 80px 20px 20px; /* مساحة علوية أكبر للزر */
  max-width: 500px;
  margin: auto;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
}

#orderDetails {
  margin-top: 20px;
}

/*===============================
  تنسيقات المدخلات والنصوص والقوائم المنسدلة
===============================*/
input,
textarea,
select {
  width: 100%;
  padding: 12px;
  margin: 10px auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: 0.3s;
  background-color: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:focus,
textarea:focus,
select:focus {
  border-color: #28a745;
  outline: none;
  background-color: #f1fdf1;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

textarea {
  height: 120px;
  resize: none;
  font-size: 14px;
}

/*===============================
  تنسيقات الأزرار بشكل عام
===============================*/
button {
  padding: 12px 20px;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
  width: 100%;
  margin: 10px auto;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

button:hover {
  background-color: #218838;
  transform: scale(1.03);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* زر إضافة طلب جديد */
  background-color: #0056b3;
}

/*===============================
  مؤثرات الحركة الرئيسية (الأنيميشن)
===============================*/
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container,
#orderDetails {
  animation: fadeIn 0.6s ease-in-out;
}

/*===============================
  تنسيقات الشاشات الصغيرة (الموبايل)
===============================*/
@media (max-width: 600px) {
  .container,
  #orderDetails {
    max-width: 95%;
    padding: 15px;
  }
}

/*===============================
  الرسائل المنبثقة الصغيرة (Popup)
===============================*/
.popup {
  display: none;
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(69, 69, 69, 0.9);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.5s ease-in-out, bottom 0.5s ease-in-out;
  z-index: 3000;
}

.popup.show {
  display: block;
  opacity: 1;
  bottom: 80px;
}

/*===============================
  حاويات بيانات التوصيل والاستلام
===============================*/
.delivery-container,
.schedule-field {
  max-width: 500px;
  margin: 20px auto;
  text-align: left;
}

.delivery-container label,
.schedule-field label {
  display: block;
  font-size: 16px;
  color: #222;
  margin-bottom: 5px;
}

.delivery-fields {
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  text-align: left;
}

.delivery-fields p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

/*===============================
  جدول أوقات العمل
===============================*/
.working-hours {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin: 10px auto;
  max-width: 450px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.working-hours p {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 5px 0;
  color: #333;
}

.working-hours p strong {
  font-weight: 600;
  width: 40px;
}

/*===============================
  نافذة ما قبل تسجيل الدخول (Pre-Login Modal)
===============================*/
#preLoginModal.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  animation: fadeIn 0.6s ease-in-out;
}

#preLoginModal.modal h3 {
    display: flex;
    justify-content: center;
}

#preLoginModal .modal-content {
  position: relative;
  max-width: 550px;
  width: 90%;
  background-color: #f9fafb;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  animation: slideDown 0.5s ease forwards;
  max-height: 90vh;
  overflow-y: auto;
}

#preLoginModal .modal-content h2, #preLoginModal .modal-content h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #fefefe;
    font-weight: 600;
}


#preLoginModal .modal-content p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 20px;
}

#preLoginModal .modal-content button {
 background-color: rgb(0, 84, 55);
  border: none;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  margin-top: 15px;
}

#preLoginModal .modal-content button:hover {
  background-color: #2563eb;
  transform: scale(1.05);
}

#pickupContainer, #deliveryContainer {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.Abholung-und-lieferzeiten-icon {
  display: inline-flex;  /* يجعل الأيقونة بنفس سطر النص */
  align-items: center;   /* توسيط عمودي */
  width: 30px;
  height: 30px;
  fill: #ffffff;
  margin-right: 8px;
}

.highlight-current-day {
  background-color: #fffbcc; /* لون مميز */
  font-weight: bold;
}


#pickupContainer h3 {
    background-color: #005437;
}

#pickupContainer thead {
  background-color: #34d399;
}

#pickupContainer button {
  background-color: #d1fae5;
  color: #065f46;
}

#pickupContainer button:hover {
  background-color: #a7f3d0;
}

#deliveryContainer h3 {
  background-color: #3b82f6;
}

#deliveryContainer thead {
  background-color: #60a5fa;
}

#deliveryContainer button {
  background-color: #dbeafe;
  color: #1e40af;
}

#deliveryContainer button:hover {
  background-color: #bfdbfe;
}

@keyframes slideDown {
  0% { transform: translateY(-20%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}


  بطاقة الصنف داخل القائمة (Item Card)
===============================*/
.item-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin: 20px auto;
  max-width: 400px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.6s ease-in-out;
}

.item-title {
  font-size: 0.8em;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}

.item-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}

.item-availability {
  margin: 8px 0;
}

.item-card.available {
  border-left: 6px solid #28a745;
}

.item-card.not-available {
  border-left: 6px solid #dc3545;
}

.item-price,
.item-ingredients {
  margin: 8px 0;
  color: #555;
}

.item-card.available .item-availability strong {
  color: #28a745;
}
.item-card.not-available .item-availability strong {
  color: #dc3545;
}

/*===============================
  زر الرجوع لسلة الشراء (Back to Cart)
===============================*/

/*===============================
  مؤثر إبراز القسم (Highlight Section)
===============================*/
.highlight-section {
  animation: highlightPulse 0.8s ease-in-out 0s 3 alternate;
  border: 2px solid #ff5722;
  border-radius: 10px;
}

@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.5);
  }
  100% {
    box-shadow: 0 0 50px rgba(255, 87, 34, 1);
  }
}

/*===============================
  جدول أوقات الدوام (Opening Hours Table)
===============================*/
/* .opening-hours-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.opening-hours-table th {
  background-color: #28a745;
  color: #fff;
  padding: 12px 15px;
  font-size: 16px;
  text-align: left;
}

.opening-hours-table td {
  padding: 10px 15px;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  color: #555;
  font-size: 14px;
}

.opening-hours-table tbody tr:nth-child(even) td {
  background-color: #f8f9fa;
}

.opening-hours-table tr.closed td {
  color: #dc3545;
  font-weight: bold;
}

.opening-hours-table tbody tr:last-child td {
  border-bottom: none;
} */

/*===============================
  أيقونة FontAwesome خاصة (fas)
===============================*/
#fas {
  margin-right: 0px 5px;
  font-size: 20px;
  color: #fff;
}

/*===============================
  زر إغلاق النافذة المنبثقة (X)
===============================*/

/*===============================
  زر العودة للسلة بأسلوب مختلف (BackToCartBtn)
===============================*/
.backToCartBtn {
  background-color: #007bff !important;
  color: #fff !important;
  border: none !important;
  padding: 10px !important;
  border-radius: 5px !important;
  font-size: 16px !important;
  cursor: pointer !important;
  width: auto !important;
  margin-top: 15px !important;
  transition: background-color 0.3s ease !important;
  display: none !important;
}

/*===============================
  قائمة منسدلة لأحجام الأصناف (Variant Dropdown)
===============================*/
.variant-dropdown {
  display: inline-block;
  width: auto !important;
  min-width: max-content;
}

/*===============================
  صور مصغرة قابلة للنقر (Thumbnails)
===============================*/
.thumbnail {
  max-width: 80px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* الحاوية حول الصورة المصغرة */
.item-image {
  position: relative;
  display: inline-block;
}

/* أيقونة التكبير تظهر عند المرور */
.magnifier-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  display: none;
}
.item-image:hover .magnifier-icon {
  display: block;
}

/*===============================
  نافذة عرض الصورة كاملة (Modal Image)
===============================*/
.modal-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-image img {
  max-width: 90%;
  max-height: 90%;
}
.modal-image .close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/*===============================
  اسم القسم (Category Name)
===============================*/
.category-name {
  margin-bottom: 30px;
  display: inline-block; /* أو display: block حسب التصميم */
}

.cart-total {
  font-weight: bold;
  margin-top: 10px;
  font-size: 16px;
}



/* Opening Hours widget minimal extras (Lovable) */
.opening-hours-widget {
  max-width: 400px;
  margin: 0 auto;
  font-family: inherit;
}
.today-hours {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}
.toggle-btn {
  width: 100%;
  background: none;
  border: none;
  color: #222;
  font-size: 1rem;
  padding: 0.6rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  transition: color .2s;
}
.toggle-btn:hover {
  color: #0074d9;
}
.chevron {
  display: inline-block;
  transition: transform 0.25s;
}
.toggle-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}
.days-accordion {
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
  max-height: 0;
  opacity: 0;
  animation: none;
}
.days-accordion.active {
  animation: fadeIn .38s;
  max-height: 600px;
  opacity: 1;
}

/* Animation fadeIn موجود بالفعل
