/*===============================
  القواعد العامة للعناصر الأساسية في الصفحة
===============================*/
*,
*::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);
}

/* زر إضافة طلب جديد */
#addOrderBtn {
  background-color: #007bff;
  transition: background-color 0.3s ease;
  width: auto;
}

#addOrderBtn:hover {
  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; }
}



/*===============================
  سلة الشراء العائمة (Floating Cart Overlay)
===============================*/
.floating-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(92, 92, 92, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.floating-cart {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  text-align: left;
  font-family: Arial, sans-serif;
  max-height: 90vh;
  overflow-y: auto;
}

.floating-cart h3 {
  font-size: 22px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: #28a745;
}

.floating-cart h3 svg {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  fill: #28a745;
}

.floating-cart ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* عناصر سلة الشراء */
/* .cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
} */

/* .cart-item:last-child {
  border-bottom: none;
} */

/* .item-info {
  flex-grow: 1;
  font-size: 16px;
} */

/* .quantity-dropdown {
  margin: 0 30px;
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f8f9fa;
  width: 100px;
} */

/* .delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  margin-left: 30px;
} */

/* .delete-btn svg {
  fill: #000;
  width: 20px;
  height: 20px;
  transition: fill 0.3s ease;
}

.delete-btn:hover svg {
  fill: #fff;
} */

/* زر إضافة طلب جديد في سلة الشراء */
#addOrderBtn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

#addOrderBtn:hover {
  background-color: #0056b3;
}

/*===============================
  بطاقة الصنف داخل القائمة (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)
===============================*/
.back-to-cart-btn {
  background-color: #ff5722;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  margin-bottom: 20px;
}

.back-to-cart-btn:hover {
  background-color: #e64a19;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-cart-btn i {
  margin-right: 4px;
  font-size: 14px;
}

/*===============================
  مؤثر إبراز القسم (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;
}

/* =========== Payment Modal as Floating Cart =========== */
/* 1. Overlay */
#paymentInfoModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(92, 92, 92, 0.5); /* نفس لون overlay */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#paymentInfoModal.show {
  display: flex;
}

/* 2. Content box */
#paymentInfoModal .modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: auto !important;
  max-width: 90vw !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  text-align: left;
  font-family: Arial, sans-serif;
  max-height: 90vh; /* ارتفاع السلة */
  overflow-y: auto;
}

/* 3. Header styling (مثلاً h3) */
#paymentInfoModal .modal-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: #28a745;
}
#paymentInfoModal .modal-content h3 svg {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  fill: #28a745;
}

/* === Moderner Bestellnummer-Container === */
.order-id-container {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-left: 5px solid #ff5722; /* Akzentfarbe */
  border-radius: 0.5em;
  padding: 1em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-family: "Montserrat", sans-serif;
  margin-bottom: 1em;
}

.order-id-icon {
  width: 2.5em;
  height: 2.5em;
  margin-right: 0.75em;
  fill: #ff5722;
}

.order-id-texts {
  display: flex;
  flex-direction: column;
}

.order-id-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
  margin-bottom: 0.25em;
}

.order-id-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ff5722;
  line-height: 1;
}

.order-id-hint {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.5em;
}

/* === Container Kunde und Adresse === */
.customer-info-container {
  background: #fafafa;
  border-left: 5px solid #4caf50;
  border-radius: 0.5em;
  padding: 1em;
  margin-bottom: 1em;
  font-family: "Montserrat", sans-serif;
}
.customer-field {
  margin-bottom: 0.75em;
}
.customer-label {
  font-size: 0.75rem;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 0.25em;
}
.customer-value {
  font-size: 1rem;
  color: #333;
  min-height: 1.2em;
}

/* === Truck-Icon vor Adresse nur bei Lieferung === */
#customerAddressText:not(:empty)::before {
  font-family: "Font Awesome 5 Free";
  content: "\f0d1"; /* Unicode für truck */
  font-weight: 900;
  margin-right: 0.5em;
  color: #4caf50;
}

/* ===== Zahlungsoptionen ===== */
.payment-options-container {
  background: #ffffff;
  border-left: 5px solid #ffc107;
  border-radius: 0.5em;
  padding: 1em;
  margin-bottom: 1em;
  font-family: "Montserrat", sans-serif;
}
.payment-options-container legend {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  margin-bottom: 0.75em;
}
.payment-methods-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}
.payment-method-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75em 1em;
  border: 1px solid #ffecb3;
  border-radius: 0.5em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.payment-method-option:hover {
  background: #fff8e1;
  border-color: #ffe082;
}
/* verstecke default Radio */
.payment-method-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
/* eigener kreisförmiger Check-Indikator */
.payment-method-option .radio-custom {
  width: 1.25em;
  height: 1.25em;
  border: 2px solid #ffc107;
  border-radius: 50%;
  margin-right: 0.75em;
  position: relative;
  flex-shrink: 0;
}
.payment-method-option .radio-custom::after {
  content: "";
  width: 0.6em;
  height: 0.6em;
  background: #ffc107;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s;
}
/* aktivierter Kreis */
.payment-method-option input[type="radio"]:checked + .radio-custom::after {
  transform: translate(-50%, -50%) scale(1);
}
.payment-method-option i {
  font-size: 1.2em;
  color: #ffc107;
  margin-right: 0.75em;
}
.payment-method-option span:last-child {
  font-size: 1rem;
  color: #333;
}

/* === Tabelle Bestellübersicht === */
.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5em 0;
  font-family: "Montserrat", sans-serif;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 0.5em;
  overflow: hidden;
}
.cart-table th,
.cart-table td {
  padding: 0.75em 1em;
  text-align: left;
}
.cart-table thead {
  background: #f5f5f5;
}
.cart-table thead th {
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  border-bottom: 2px solid #e0e0e0;
}
.cart-table tbody tr:nth-child(odd) {
  background: #fafafa;
}
.cart-table tbody tr:hover {
  background: #f0f0f0;
}
.cart-table td {
  font-size: 0.95rem;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
}
.cart-table tfoot td {
  padding: 1em;
  font-size: 1rem;
  font-weight: 700;
  border-top: 2px solid #e0e0e0;
  background: #f5f5f5;
}

/* === Header-Buttons (Drucken & PDF) === */
.modal-header-buttons {
  position: absolute;
  top: 1em;
  right: 1em;
  display: flex;
  gap: 0.5em;
  z-index: 10;
}
.modal-header-buttons button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3em;
  border-radius: 50%;
  transition: background 0.2s;
  color: #555;
}
.modal-header-buttons button:hover {
  background: rgba(0, 0, 0, 0.05);
}
.modal-header-buttons button i {
  pointer-events: none;
}
/* ===== Modal-Content dynamische Breite ===== */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  width: auto !important;
  max-width: 90vw !important;
  display: inline-block;
  padding: 1.5em;
  box-sizing: border-box;
  position: relative;
}

/* ===== Responsive Anpassungen ===== */
@media (max-width: 768px) {
  .modal-content {
    width: 95vw !important;
    padding: 1em !important;
    max-height: 90vh;
    overflow-y: auto;
  }
}
@media (max-width: 480px) {
  .modal-content {
    width: 100vw !important;
    margin: 0;
    border-radius: 0;
  }
}

/* === Abschicken-Button === */
.button--primary {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 0.75em 1.5em;
  border-radius: 0.5em;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.button--primary i {
  font-size: 1.2em;
}
.button--primary:hover {
  background-color: #45a049;
  transform: translateY(-1px);
}

/* === Responsive Table Wrapper === */
.table-responsive {
  width: 100%;
  overflow-x: auto; /* تمكين التمرير أفقي */
  -webkit-overflow-scrolling: touch; /* سلاسة التمرير في iOS */
}

/* حد أدنى للعرض حتى لا يضمحل الجدول جداً */
.table-responsive .cart-table {
  min-width: 600px; /* عدّل القيمة حسب العدد الأعمدة */
}

/* اختياري: إزالة الظلال والهوامش على الهواتف الصغيرة */
@media (max-width: 480px) {
  .cart-table {
    box-shadow: none;
    border-radius: 0;
    margin: 0;
  }
}

/* === Swipe-Overlay für Tabelle auf Mobilgeräten === */
.table-responsive {
  position: relative;
}
#swipeOverlay {
  display: none;
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}
#swipeOverlay .swipe-hand {
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.3);
  animation: swipeAnim 1s ease-in-out infinite alternate;
}
@keyframes swipeAnim {
  0% {
    transform: translateX(0) translateY(-50%);
  }
  100% {
    transform: translateX(-30px) translateY(-50%);
  }
}

/* Nur auf kleinen Bildschirmen anzeigen */
@media (max-width: 480px) {
  #swipeOverlay {
    display: block;
    animation: fadeIn 0.5s ease-out;
  }
}

/* ===== Print-Only Container Off-Screen ===== */

.print-container {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  display: block !important;
}
/* ===== شريط الأزرار دائمًا بـ flex ===== */
.buttons-container {
  display: flex;
  justify-content: space-around; /* يوزّع المساحة بالتساوي */
  align-items: center;
  padding: 0.5rem;
  gap: 1rem;
}

/* كل زر ضمن حاوية مركزية */
.button-item {
  flex: 1; /* يملأ المساحة المتاحة بالتساوي */
  text-align: center;
  position: relative; /* ضروري لاحتساب فقاعة العداد */
}

/* ضبط حجم الأيقونات والأزرار */
.custom-menu-btn,
.custom-cart-btn {
  background: none;
  border: none;
  color: inherit; /* تأكد من استخدام اللون الافتراضي للموقع */
  font-size: 1.5rem; /* حجم الأيقونة */
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1; /* اجعلها مرئية دائمًا */
  transition: transform 0.1s ease, opacity 0.1s ease;
  position: relative;
}
.custom-menu-btn:hover,
.custom-cart-btn:hover {
  transform: scale(1.05);
  opacity: 1;
  color: #ffffff; /* لا تغيّر الشفافية عند hover فقط */
}

/* نعيد ضبط فقاعة العد لتكون نسبة لأيقونة السلة */
.item-count {
  position: absolute;
  top: -0.2rem; /* رفع بسيط فوق زاوية الأيقونة */
  right: -0.2rem; /* تحريك بسيط نحو الخارج عن زاوية الأيقونة */
  transform: none; /* نلغي أي نقل سابق */
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  width: 1.25rem;
  height: 1.25rem;
  line-height: 1.25rem;
  text-align: center;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ===== عند الشاشات الصغيرة ===== */
@media only screen and (max-width: 600px) {
  /* نصّ التسمية أسفل الأزرار قد يضيق المساحة: نخفيه */
  .button-label {
    display: none;
  }
  /* نصغّر حجم الأيقونات والأزرار قليلًا */
  .custom-menu-btn,
  .custom-cart-btn {
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
  }
  /* نزيد المسافة الأفقية قليلاً */
  .buttons-container {
    gap: 1.5rem;
  }
}

.quantity-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center; /* اختياري، لمحاذاة العناصر بالوسط */
}

#confirmPaymentBtn, .button--primary {
  opacity: 1 !important;
  visibility: visible !important;
  background-color: #4caf50 !important;
  color: #fff !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}


/* 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 موجود بالفعل
