/* Menu Container */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  
  /* Day Menu Header */
  .day-menu-header {
    margin-bottom: 25px;
    text-align: center;
  }
  
  .day-menu-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
  }
  
  /* Day Menu Content - Layout 2 cột */
  .day-menu-content {
    display: flex;
    gap: 30px;
  }
  
  /* Phần hiển thị món ăn bên trái */
  .dishes-display {
    flex: 1;
    max-width: 55%;
  }
  
  .dish-container {
    position: relative;
  }
  
  /* Hiệu ứng xếp chồng món ăn */
  .dish-row {
    margin-bottom: 20px;
  }
  
  .dish-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
  }
  
  .dish-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  }
  
  .dish-image-container {
    position: relative;
    overflow: hidden;
    height: 220px;
  }
  
  .dish-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .dish-item:hover .dish-image-container img {
    transform: scale(1.05);
  }
  
  .dish-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: #ff6b6b;
    color: white;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 600;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .dish-info {
    padding: 18px;
  }
  
  .dish-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
  }
  
  .dish-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
  }
  
  /* Phần tùy chọn đặt món bên phải */
  .order-options {
    flex: 1;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    position: sticky;
    top: 20px;

    border: 1px solid #f0f0f0;
  }
  
  .order-options h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  /* Phần chọn kích thước */
  .portion-size-selector {
    margin-bottom: 25px;
  }
  
  .portion-size-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
  }
  
  .portion-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .portion-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
  }
  
  .portion-option:hover {
    background-color: #f5f5f5;
  }
  
  .portion-option input[type="radio"] {
    margin-right: 10px;
    accent-color: #ff6b6b;
    width: 18px;
    height: 18px;
  }
  
  .portion-option input[type="radio"]:checked + .portion-name {
    font-weight: 600;
    color: #ff6b6b;
  }
  
  .portion-name {
    flex: 1;
    font-size: 16px;
  }
  
  .portion-price-diff {
    font-size: 14px;
    color: #ff6b6b;
    font-weight: 500;
  }
  
  /* Phần chọn món */
  .dish-selection-options {
    margin-bottom: 25px;
  }
  
  .dish-selection-options h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #555;
  }
  
  .dish-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .dish-checkboxes label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
  }
  
  .dish-checkboxes label:hover {
    background-color: #f5f5f5;
  }
  
  .dish-checkboxes input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #ff6b6b;
    width: 18px;
    height: 18px;
  }
  
  .dish-checkboxes input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #ff6b6b;
  }
  
  /* Phần số lượng */
  .quantity-selector {
    margin-bottom: 25px;
  }
  
  .quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
  }
  
  .quantity-control {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
  }
  
  .quantity-btn {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .quantity-btn:hover {
    background-color: #e0e0e0;
  }
  
  .quantity-btn:active {
    background-color: #d0d0d0;
  }
  
  #menu-quantity {
    flex: 1;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    width: 60px;
  }
  
  /* Phần hiển thị giá */
  .price-display {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
  }
  
  .price-display p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 16px;
    color: #555;
  }
  
  .price-display p:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
    font-weight: 600;
    font-size: 18px;
    color: #333;
  }
  
  #menu-price, #menu-total-price {
    font-weight: 600;
    color: #ff6b6b;
  }
  
  /* Phần ghi chú */
  .notes-input {
    margin-bottom: 25px;
  }
  
  .notes-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
  }
  
  #menu-notes {
    width: 100%;
    height: 80px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
  }
  
  #menu-notes:focus {
    outline: none;
    border-color: #ff6b6b;
  }
  
  /* Nút thêm vào giỏ hàng */
  .add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 3px 5px rgba(255, 107, 107, 0.2);
  }

  .add-to-cart-btn:hover {
    background-color: #ff5252;
  }
  
  .add-to-cart-btn:active {
    background-color: #e64a4a;
    transform: translateY(1px);
  }
  /* Nút Chuyển đến giỏ hàng */
.view-cart-btn {
  display: block;
  padding: 15px;
  background-color: #0c9b45;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
}



.view-cart-btn:hover {
  background-color: #ff5252;
  transform: translateY(-5px);
}

/* Thêm khoảng cách giữa các nút */
.order-actions {
  margin-top: 100px;
}

  
  /* Thông báo thời gian đặt hàng */
  .ordering-restricted {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  }
  
  .ordering-restricted h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 20px;
  }
  
  .ordering-restricted p {
    margin-bottom: 10px;
    color: #856404;
    font-size: 16px;
  }
  
  .next-day-note {
    font-style: italic;
    margin-top: 15px;
    font-size: 14px;
  }
  
  /* Thông báo lỗi */
  .error-message {
    text-align: center;
    padding: 30px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
  }
  
  .error-message p {
    margin-bottom: 10px;
    color: #721c24;
    font-size: 16px;
  }
  
  .error-message button {
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  /* Thông báo */
  .menu-announcements {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
  }
  
  .announcement-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .announcement-container h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
  }
  

  
  /* Toast notification */
  .toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: fadeInUp 0.3s, fadeOut 0.3s 2.7s;
  }
  
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }
  
  /* Responsive */
  @media (max-width: 992px) {
    .day-menu-content {
      flex-direction: column;
    }
    
    .dishes-display {
      flex: 1;
      max-width: 100%;
    }
    
    .order-summary {
      max-width: 100%;
      margin-top: 20px;
    }
    
    .fixed-summary {
      position: relative;
      top: 0;
      width: 100%;
    }
  }
  
  
/* Cập nhật responsive cho màn hình điện thoại */
@media (max-width: 768px) {
    .day-menu-content {
      flex-direction: column;
    }
    
    .dishes-display {
      max-width: 100%;
    }
    
    .order-options {
      position: static;
      padding: 15px;
    }
    
    .dish-row {
      flex-direction: column;
    }
    
    .dish-item {
      margin-bottom: 15px;
    }
    
    .portion-options {
      flex-direction: column;
    }
    
    .dish-checkboxes {
      display: flex;
      flex-direction: column;
      width: 100%;
    }
    
    .dish-checkboxes label {
      width: 100%;
      box-sizing: border-box;
    }
    
    /* Cải thiện kích thước font và padding cho dễ nhấn trên điện thoại */
    .portion-option, .dish-checkboxes label {
      padding: 15px;
    }
    
    .portion-option input[type="radio"],
    .dish-checkboxes input[type="checkbox"] {
      width: 22px;
      height: 22px;
      margin-right: 12px;
    }
    
    /* Cải thiện nút số lượng */
    .quantity-control {
      width: 100%;
    }
    
    .quantity-btn {
      width: 50px;
      height: 50px;
      font-size: 24px;
    }
    
    #menu-quantity {
      height: 50px;
      font-size: 18px;
    }
    

  }
  @media (max-width: 576px) {
    .menu-container {
      padding: 12px;
      border-radius: 8px;
    }
    
    .day-menu-header h2 {
      font-size: 22px;
      padding-bottom: 8px;
    }
    
    .dish-item {
      flex-direction: column;
      padding: 12px;
    }
    
    .dish-image {
      width: 100%;
      height: 180px;
      margin-bottom: 10px;
    }
    
    .dish-info {
      width: 100%;
      padding-left: 0;
    }
    
    .dish-info h3 {
      font-size: 18px;
      margin-bottom: 8px;
    }
    
    .dish-description {
      font-size: 14px;

    }
    
    .dish-price {
      font-size: 16px;
    }
    
    .dish-actions {
      flex-direction: column;
      gap: 10px;
    }
    
    .quantity-control {
      width: 100%;
      justify-content: center;
    }
    
    .add-to-cart {
      width: 100%;
    }
    
    /* Điều chỉnh giỏ hàng */
    .cart-items {
      max-height: 200px;
    }
    
    .cart-item {
      padding: 8px;
    }
  }
  /* Thêm media query cho màn hình cực nhỏ */
  @media (max-width: 480px) {
    .menu-container {
      padding: 10px;
    }
    
    .day-menu-header h2 {
      font-size: 24px;
    }
    
    .dish-image-container {
      height: 180px;
    }
    
    .dish-info h3 {
      font-size: 16px;
    }
    
    .dish-description {
      font-size: 13px;
    }
    
    .order-options h3 {
      font-size: 20px;
    }
    
    .portion-name, .dish-checkboxes span {
      font-size: 15px;
    }
    
    /* Đảm bảo các phần tử form có đủ không gian */
    .portion-size-selector,
    .dish-selection-options,
    .quantity-selector,
    .price-display,
    .notes-input {
      margin-bottom: 20px;
    }
}
  
  
  /* Animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .dish-item {
    animation: fadeIn 0.5s ease forwards;
  }
  
  /* Loading */
  .loading {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
  }
  .day-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .day-nav-button {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  
  .day-nav-button:hover:not(:disabled) {
    background-color: #e6e6e6;
    border-color: #adadad;
  }
  
  .day-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .past-day {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
  }
  
  .past-day h3, .past-day p {
    color: #721c24;
  }
  
  .day-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .day-nav-button {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  
  .day-nav-button:hover:not(:disabled) {
    background-color: #e6e6e6;
    border-color: #adadad;
  }
  
  .day-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .past-day {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
  }
  
  .past-day h3, .past-day p {
    color: #721c24;
  }
  /* styles/components/toast.css */
.custom-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 400px;
  background-color: white;
  color: #333;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
}

.custom-toast.show {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icon {
  font-size: 24px;
}

.toast-message {
  font-size: 16px;
  flex: 1;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: #ff6b6b;
}

.custom-toast.success {
  border-left: 5px solid #4CAF50;
}

.custom-toast.error {
  border-left: 5px solid #f44336;
}

.custom-toast.info {
  border-left: 5px solid #2196F3;
}
.sunday-message {
  background-color: #f5f8ff;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sunday-message h2 {
  color: #4a6bdf;
  margin-bottom: 15px;
}

.sunday-message p {
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
}

.sunday-image {
  margin-top: 20px;
  max-width: 400px;
  margin: 20px auto;
}

.sunday-image img {
  width: 100%;
  border-radius: 8px;
}

.order-notice {
  background-color: #fff3cd;
  color: #856404;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 5px solid #ffeeba;
}

.past-day {
  background-color: #f8d7da;
  border-left-color: #f5c6cb;
  color: #721c24;
}
    


.not-orderable-message {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  text-align: center;
}

.disabled-options {
  opacity: 0.5;
  pointer-events: none;
}

.warning-text {
  font-weight: bold;
  font-size: 1.1em;
}
/* Fix lỗi hiển thị radio button trên iOS */
.radio-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  width: 100%;
  overflow: hidden;
}

/* Custom radio button cho iOS */
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-option label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  display: inline-block;
  line-height: 20px;
}

.radio-option label:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #4CAF50;
  border-radius: 50%;
  background: #fff;
}

.radio-option input[type="radio"]:checked + label:after {
  content: '';
  position: absolute;
  left: 5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
}


/* Fix đặc biệt cho iOS */
@supports (-webkit-touch-callout: none) {
  .radio-option {
    padding: 10px 8px;
  }
  
  .radio-option input[type="radio"] {
    min-width: 20px;
    margin-right: 0;
  }
}

/* Responsive cho điện thoại nhỏ */
@media (max-width: 375px) {
  .address-content {
    padding: 10px;
  }
  
  .radio-option {
    padding: 8px 5px;
  }
  
  .radio-option label {
    font-size: 13px;
    line-height: 1.3;
  }
}


