/* Material Design Color Variables */
:root {
  --primary-color: #1976d2; /* Material Blue */
  --primary-hover: #1565c0;
  --secondary-color: #dc004e; /* Material Pink */
  --secondary-hover: #c2185b;
  --accent-color: #ff9800; /* Material Orange */
  --surface: #ffffff;
  --success: #77b255;
  --waiting: #007cba;
  --background: #fafafa;
  --background-white: #ffffff;
  --background-light: #f5f5f5;
  --error: #d32f2f;
  --on-primary: #ffffff;
  --on-secondary: #ffffff;
  --on-surface: #000000;
  --on-background: #000000;
  --text-primary: rgba(0, 0, 0, 0.87);
  --text-secondary: rgba(0, 0, 0, 0.6);
  --text-disabled: rgba(0, 0, 0, 0.38);
  --divider: rgba(0, 0, 0, 0.12);
  --border-color: rgba(0, 0, 0, 0.23);
  --border-light: rgba(0, 0, 0, 0.12);
  --shadow-key-penumbra: rgba(0, 0, 0, 0.2);
  --shadow-key-umbra: rgba(0, 0, 0, 0.14);
  --shadow-ambient-shadow: rgba(0, 0, 0, 0.12);
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.16);
  --elevation-01: 0px 2px 1px -1px var(--shadow-key-umbra),
    0px 1px 1px 0px var(--shadow-key-penumbra),
    0px 1px 3px 0px var(--shadow-ambient-shadow);
  --elevation-02: 0px 3px 1px -2px var(--shadow-key-umbra),
    0px 2px 2px 0px var(--shadow-key-penumbra),
    0px 1px 5px 0px var(--shadow-ambient-shadow);
  --elevation-04: 0px 2px 4px -1px var(--shadow-key-umbra),
    0px 4px 5px 0px var(--shadow-key-penumbra),
    0px 1px 10px 0px var(--shadow-ambient-shadow);
  --elevation-06: 0px 3px 5px -1px var(--shadow-key-umbra),
    0px 6px 10px 0px var(--shadow-key-penumbra),
    0px 1px 18px 0px var(--shadow-ambient-shadow);
  --elevation-08: 0px 5px 5px -3px var(--shadow-key-umbra),
    0px 8px 10px 1px var(--shadow-key-penumbra),
    0px 3px 14px 2px var(--shadow-ambient-shadow);
  --elevation-16: 0px 8px 10px -5px var(--shadow-key-umbra),
    0px 16px 24px 2px var(--shadow-key-penumbra),
    0px 6px 30px 5px var(--shadow-ambient-shadow);
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-hover)
  );
}

input,
h1,
p,
.order-details,
.order-items,
.order-total,
.order-status,
.restaurant-info .cart-count,
.add-to-cart-btn {
  font-family: "laz";
}

.restaurant-menu-container {
  font-family: "laz", "laz-bold", sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  direction: rtl;
  color: var(--text-primary);
}

.restaurant-menu-container h2 {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 600;
  text-shadow: 0 2px 4px var(--shadow-light);
}

/* Fixed Navigation */
.menu-nav {
  position: sticky;
  top: 0;
  background: var(--surface);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--divider);
  z-index: 1000;
  padding: 16px 0;
  margin-bottom: 24px;
  box-shadow: var(--elevation-04);
}

.nav-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.nav-container::-webkit-scrollbar {
  display: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  border: 1px solid var(--divider);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  box-shadow: var(--elevation-01);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
  left: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--on-primary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--elevation-04);
}

/* Menu Content */
.menu-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.menu-section {
  scroll-margin-top: 120px; /* Account for fixed nav */
}

.section-title {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  position: relative;
  font-family: "laz", "laz-bold", sans-serif;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-item-card {
  background: var(--background-white);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow-key-umbra);
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--shadow-ambient-shadow);
  position: relative;
  display: grid;
  grid-template-columns: 25% 45% 30%;
  gap: 15px;
  padding: 15px;
  align-items: start;
}

.menu-item-card .card-image {
  grid-column: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.menu-item-card .card-body {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  width: 100%;
}

.menu-item-card .card-details {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  height: 100%;
  padding: 0;
}

.menu-item-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-item-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px var(--shadow-medium);
}

.menu-item-card:hover::before {
  opacity: 1;
}

.item-header {
  display: flex;
  gap: 15px;
  padding: 15px;
}

.menu-item-image {
  width: 100%;
  height: fit-content;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
}

.item-info h4 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.menu-item-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  text-align: justify;
}

.accordion-toggle {
  display: none;
}

.item-details {
  padding: 0 15px 15px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
}

.menu-item-price {
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
  font-size: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "laz", "laz-bold", sans-serif;
}

.item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.qty-btn:hover {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--shadow-medium);
}

.qty-input {
  width: 50px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 32px;
  font-size: 14px;
  font-weight: 500;
  background: var(--background-white);
  transition: border-color 0.3s ease;
}

.qty-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.add-to-cart-btn {
  background: var(--gradient-secondary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  width: 90%;
}

.add-to-cart-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.add-to-cart-btn:hover::before {
  left: 100%;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

.cart-summary {
  background: var(--surface);
  padding: 25px;
  border-radius: 16px;
  box-shadow: var(--elevation-04);
  border: 1px solid var(--divider);
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 1000;
  transition: all 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
  display: none;
  font-family: "laz", "laz-bold", sans-serif;
}

.cart-summary.show {
  display: block;
}

.cart-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  box-shadow: 0 4px 12px var(--shadow-medium);
  z-index: 1001;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.cart-toggle-btn .cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  font-family: "laz", "laz-bold", sans-serif;
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cart-close-btn:hover {
  background: var(--background-light);
  color: var(--text-primary);
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
  position: relative;
}

.cart-item:hover {
  background: var(--background-light);
  border-radius: 8px;
  padding: 12px 8px;
  margin: 0 -8px;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  font-family: "laz", "laz-bold", sans-serif;
}

.cart-quantity-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-quantity-controls .qty-btn {
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 600;
}

.cart-quantity-controls .qty-input {
  width: 40px;
  height: 24px;
  font-size: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
  font-family: "laz", "laz-bold", sans-serif;
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remove-item-btn {
  background: #dc3545;
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.remove-item-btn:hover {
  background: #c82333;
  transform: scale(1.1);
}

.total-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  margin: 20px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "laz", "laz-bold", sans-serif;
}

#submit-order-btn {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  font-family: "laz", "laz-bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#submit-order-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

#submit-order-btn:hover::before {
  left: 100%;
}

#submit-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

#submit-order-btn:active {
  transform: translateY(0);
}

/* Size options styles */
.size-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
  width: 90%;
}

.size-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 16px;
  background: var(--background);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px var(--shadow-key-umbra);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.size-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.size-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
  border-color: var(--primary-color);
}

.size-option:hover::before {
  opacity: 1;
}

.size-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.size-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.size-price {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "laz", "laz-bold", sans-serif;
}

.size-option .quantity-controls {
  margin: 0;
}

/* Single price styles */
.single-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  width: 90%;
  border-radius: 12px;
  padding: 12px 2px;
  background: var(--background);
  box-shadow: 0 2px 8px var(--shadow-key-umbra);
}

/* Status classes for order status indicator */
.status-pending {
  background-color: var(--accent-color); /* Yellow for pending */
}

.status-processing {
  background-color: var(--waiting); /* Blue for processing */
}

.status-completed {
  background-color: var(--success); /* Green for completed */
}

.status-rejected {
  background-color: var(--error); /* Red for rejected */
}

.status-indicator span {
  font-weight: bold;
  color: var(--text-primary);
}

/* Order Confirmation Styles */
.order-confirmation-container {
  font-family: "laz", "laz-bold", sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  direction: rtl;
  color: var(--text-primary);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--elevation-04);
  border: 1px solid var(--divider);
}

.confirmation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  direction: rtl;
}

.confirmation-text h1 {
  color: var(--success);
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 600;
  text-shadow: 0 2px 4px var(--shadow-key-penumbra);
}

.confirmation-text p {
  font-size: 18px;
  color: var(--text-secondary);
}

.qr-code img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  box-shadow: var(--elevation-02);
}

.order-status {
  background: var(--accent-color);
  border: 1px solid var(--divider);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: var(--elevation-01);
  text-align: center;
}

.order-status h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-weight: 600;
}

.status-indicator {
  display: flex;
  align-items: center;
}

.status-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: 10px;
}

.status-indicator span {
  font-weight: bold;
  color: var(--text-primary);
}

.order-status p {
  margin: 10px 0 0 0;
  color: var(--text-secondary);
}

.payment-section {
  background: var(--background);
  border: 1px solid var(--divider);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: var(--elevation-01);
}

.payment-section h3 {
  margin-top: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.payment-section p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.payment-info {
  background: aliceblue;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: var(--elevation-01);
  border: 1px solid var(--divider);
}

.payment-info p {
  margin: 0;
  font-weight: bold;
  color: var(--primary-color);
}

.pay-now-btn {
  background: var(--gradient-primary);
  color: var(--on-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--elevation-02);
  width: 100%;
}

.pay-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-04);
}

#payment-loading {
  display: none;
  margin-top: 10px;
}

#payment-loading p {
  color: var(--primary-color);
}

#payment-error {
  margin-top: 10px;
  color: var(--error);
}

.order-details {
  background: var(--background);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: var(--elevation-01);
  border: 1px solid var(--divider);
}

.order-details h2 {
  margin-top: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.queue-number-display {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--gradient-primary);
  color: var(--on-primary);
  border-radius: 10px;
  font-size: 24px;
  font-weight: bold;
  box-shadow: var(--elevation-04);
}

.table-number-display {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--gradient-secondary);
  color: var(--on-secondary);
  border-radius: 10px;
  font-size: 24px;
  font-weight: bold;
  box-shadow: var(--elevation-04);
}

.order-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.order-items {
  margin-bottom: 20px;
}

.order-items h3 {
  color: var(--text-primary);
  font-weight: 600;
}

.order-items table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--elevation-01);
}

.order-items th {
  padding: 10px;
  text-align: right;
  border: 1px solid var(--divider);
  background: var(--background);
  color: var(--text-primary);
  font-weight: 600;
}

.order-items td {
  padding: 10px;
  border: 1px solid var(--divider);
  color: var(--text-secondary);
}

.order-total {
  border-top: 2px solid var(--primary-color);
  padding-top: 15px;
  background: var(--background);
  margin-top: 15px;
  border-radius: 8px;
  padding: 15px;
  box-shadow: var(--elevation-01);
}

.order-total div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total p {
  margin: 5px 0;
  font-weight: 600;
  color: var(--text-primary);
}

.restaurant-info {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.restaurant-info p {
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .restaurant-menu-container {
    padding: 15px;
  }

  .nav-container {
    gap: 10px;
    padding: 0 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    justify-content: flex-start;
  }

  .nav-container::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
  }

  .menu-content {
    gap: 30px;
  }

  .section-title {
    font-size: 20px;
    font-weight: 600;
  }

  .menu-item-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .card-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
  }

  .card-body h4 {
    margin: 0 0 -5px 0;
    font-size: 16px;
    font-weight: 600;
  }

  .menu-item-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
  }

  .accordion-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
  }

  .chevron-icon {
    font-size: 18px;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .menu-item-card.expanded .card-details {
    max-height: fit-content; /* Adjust based on content */
    width: 100%;
  }

  .menu-item-card.expanded .chevron-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
  }

  .quantity-controls {
    justify-content: center;
  }

  .qty-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .qty-input {
    width: 45px;
    height: 30px;
    font-size: 14px;
  }

  .add-to-cart-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
  }

  .cart-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: translateX(0);
    border-radius: 16px 16px 0 0;
    padding: 20px;
    z-index: 1002;
    display: none;
    background: var(--surface);
    box-sizing: border-box;
  }

  .cart-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cart-summary.show {
    display: block;
  }

  .cart-summary h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .cart-item {
    padding: 10px 0;
  }

  .total-price {
    font-size: 18px;
    margin: 15px 0;
  }

  #submit-order-btn {
    padding: 14px;
    font-size: 16px;
  }

  .size-options {
    gap: 8px;
    width: 100%;
  }

  .size-option {
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-radius: 10px;
  }

  .size-info {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  .size-name {
    font-size: 13px;
    font-weight: 600;
  }

  .size-price {
    font-size: 13px;
    font-weight: 600;
  }

  .single-price {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Order Confirmation Mobile */
  .order-confirmation-container {
    padding: 15px;
  }

  .confirmation-header h1 {
    font-size: 24px;
  }

  .confirmation-header p {
    font-size: 16px;
  }

  .order-details {
    padding: 20px;
  }

  .order-details h2 {
    font-size: 20px;
  }

  .queue-number-display,
  .table-number-display {
    padding: 15px;
    font-size: 20px;
  }

  .order-info {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .order-items th,
  .order-items td {
    padding: 10px;
    font-size: 14px;
  }

  .order-total {
    padding: 15px;
  }

  .order-status {
    padding: 15px;
  }

  .order-actions a,
  .order-actions button {
    padding: 10px 20px;
    font-size: 14px;
    margin: 5px;
  }

  .restaurant-info {
    padding-top: 15px;
  }
}

/* Delivery Modal Styles */
.delivery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.delivery-modal-content {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--elevation-16);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.delivery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--divider);
}

.delivery-modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.delivery-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.delivery-modal-close:hover {
  background: var(--background-light);
  color: var(--text-primary);
}

.delivery-modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: var(--background-white);
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  font-family: "laz", "laz-bold", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--on-primary);
  box-shadow: var(--elevation-02);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-04);
}

.btn-secondary {
  background: var(--background-light);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--background);
  color: var(--text-primary);
}

/* Delivery Option Styles */
.delivery-option {
  margin-bottom: 15px;
  padding: 15px;
  background: var(--background-light);
  border-radius: 8px;
  border: 1px solid var(--divider);
}

.delivery-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-primary);
}

.delivery-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.delivery-description {
  margin: 5px 0 0 28px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Order Confirmation Page Styles */
.order-confirmation-container {
  font-family: "laz", "laz-bold", sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  direction: rtl;
  color: var(--text-primary);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--elevation-04);
  border: 1px solid var(--divider);
}

.confirmation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.confirmation-header h2 {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.order-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--background-light);
  border-radius: 8px;
  border: 1px solid var(--divider);
}

.order-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.order-status {
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: var(--accent-color);
  color: var(--on-primary);
}

.status-processing {
  background: var(--waiting);
  color: var(--on-primary);
}

.status-ready {
  background: var(--success);
  color: var(--on-primary);
}

.status-delivered {
  background: var(--primary-color);
  color: var(--on-primary);
}

.status-cancelled {
  background: var(--error);
  color: var(--on-primary);
}

.order-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.order-summary,
.customer-info {
  background: var(--background);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  box-shadow: var(--elevation-01);
}

.order-summary h3,
.customer-info h3 {
  margin-top: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.order-items {
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.order-item:last-child {
  border-bottom: none;
}

.item-info {
  flex: 1;
}

.item-name {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.item-size,
.item-notes {
  font-size: 12px;
  color: var(--text-secondary);
}

.item-quantity-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.quantity {
  font-size: 14px;
  color: var(--text-secondary);
}

.unit-price,
.total-price {
  font-weight: 600;
  color: var(--primary-color);
}

.order-totals {
  background: var(--background-light);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--divider);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.total-row.final-total {
  border-top: 2px solid var(--primary-color);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span:first-child {
  font-weight: 500;
  color: var(--text-primary);
}

.info-row span:last-child {
  color: var(--text-secondary);
}

.payment-section {
  background: var(--background);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  box-shadow: var(--elevation-01);
  margin-bottom: 20px;
}

.payment-error {
  background: #ffebee;
  color: var(--error);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ffcdd2;
  margin-bottom: 15px;
  display: none;
}

.payment-btn {
  background: var(--gradient-primary);
  color: var(--on-primary);
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--elevation-02);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.payment-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.payment-btn:hover::before {
  left: 100%;
}

.payment-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-04);
}

.payment-amount {
  font-weight: 700;
  margin-right: 10px;
}

.payment-completed {
  background: var(--success);
  color: var(--on-primary);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

/* Responsive for Order Confirmation */
@media (max-width: 768px) {
  .order-confirmation-container {
    padding: 15px;
  }

  .confirmation-header h2 {
    font-size: 24px;
  }

  .order-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .order-details {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .order-summary,
  .customer-info {
    padding: 15px;
  }

  .total-row.final-total {
    font-size: 16px;
  }

  .payment-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Delivery Page Styles */
.delivery-container {
  font-family: "laz", "laz-bold", sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  direction: rtl;
  color: var(--text-primary);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--elevation-04);
  border: 1px solid var(--divider);
}

.delivery-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
}

.delivery-header h1 {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px var(--shadow-light);
}

.delivery-header p {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
}

.delivery-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.delivery-section {
  background: var(--background);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--elevation-02);
  border: 1px solid var(--divider);
}

.delivery-section h2 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
}

.delivery-cart-items {
  margin-bottom: 15px;
}

.delivery-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.delivery-cart-item:last-child {
  border-bottom: none;
}

.item-name {
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.item-quantity {
  color: var(--text-secondary);
  font-size: 14px;
}

.item-price {
  font-weight: 600;
  color: var(--primary-color);
  font-family: "laz", "laz-bold", sans-serif;
}

.delivery-cart-total {
  background: var(--background-light);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  text-align: center;
}

.delivery-cart-total strong {
  font-size: 18px;
  color: var(--primary-color);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "laz", "laz-bold", sans-serif;
}

.error-message {
  background: #ffebee;
  color: var(--error);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ffcdd2;
  margin-bottom: 15px;
  display: none;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: var(--background-white);
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  font-family: "laz", "laz-bold", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Responsive for Delivery */
@media (max-width: 768px) {
  .delivery-container {
    padding: 15px;
    margin: 10px;
  }

  .delivery-header h1 {
    font-size: 24px;
  }

  .delivery-header p {
    font-size: 14px;
  }

  .delivery-section {
    padding: 15px;
  }

  .delivery-section h2 {
    font-size: 18px;
  }

  .delivery-cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .item-name,
  .item-quantity,
  .item-price {
    font-size: 14px;
  }

  .delivery-cart-total strong {
    font-size: 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
  }
}
