* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  margin-bottom: 20px;
}

.header h1 {
  font-size: 24px;
  margin: 0;
}

.tabs {
  display: flex;
  justify-content: flex-start;
  background-color: #fff;
  padding: 10px 0;
  border-radius: 5px;
  margin-bottom: 20px;
  width: 100%;
}

.tabs a {
  text-decoration: none;
  color: #666;
  padding: 10px 20px;
  width: 100%;
  font-size: 12px;
  font-weight: bold;
}

.tabs a.active {
  color: #000;
  border-bottom: 2px solid #ffa500;
}

/* @media screen {
} */

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.order {
  background-color: #fff;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-header h3 {
  font-size: 16px;
  margin: 0;
}

.order-header .status {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
}

.order-header .status.preparing {
  background-color: #e6f0fa;
  color: #1e88e5;
}

.order-header .status.ready {
  background-color: #e6f7e6;
  color: #4caf50;
}

.order-header .method {
  font-size: 14px;
  color: #666;
}

.order-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.order-items {
  margin-bottom: 10px;
}

.order-items p {
  margin: 5px 0;
  display: flex;
  justify-content: space-between;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 10px;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-footer .time {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.order-footer .time i {
  margin-right: 5px;
  color: #f44600;
}

.order-footer .time::before {
  margin-right: 5px;
}

.track-btn {
  background-color: #f44600;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.track-btn::after {
  content: "➔";
  margin-left: 5px;
}

/* ========================PAST ORDERS TAB ========================*/
.past-orders-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.past-order-card {
  background-color: #fff;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.past-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.past-order-header h3 {
  font-size: 16px;
  margin: 0;
}

.past-order-header .status {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  background-color: #e6f0fa;
  color: #1e88e5;
}

.past-order-header .method {
  font-size: 14px;
  color: #666;
}

.past-order-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.past-order-items {
  margin-bottom: 10px;
}

.past-order-items p {
  margin: 5px 0;
  display: flex;
  justify-content: space-between;
}

.past-order-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 10px;
}

.past-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.past-order-footer .delivered-date {
  font-size: 14px;
  color: #666;
}

.past-order-footer .delivered-date i {
  margin-right: 5px;
  color: #f44600;
}

.view-details-btn {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.view-details-btn:hover {
  background-color: #f44600;
  color: #fff;
}

/* ========================BOOKMARK TAB ======================== */
/* Menu Grid Card Section */
/* General Grid Styling */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  padding: 1rem;
  padding-bottom: 70px;
}

@media (min-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Menu Card Styling */
.menu-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* .dish-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
} */

.img-wrapper {
  position: relative;
}

.img-wrapper img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.top-left-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #e74c3c;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.top-right-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
}

.top-right-icons i {
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem;
  border-radius: 50%;
  font-size: 0.8rem;
}

.menu-info {
  padding: 0.75rem;
}

/* Info Section */
/* .menu-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
} */

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.75rem;
  color: #666;
}

.size-label {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #888;
}

.description {
  font-size: 0.85rem;
  color: #555;
  margin: 0.5rem 0;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.price {
  font-weight: bold;
  color: #222;
}

.discount {
  text-decoration: line-through;
  color: #999;
}

/* .strike {
  text-decoration: line-through;
  color: #999;
} */

.promo-badge {
  background: #e63946;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
}

.add-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.add-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
}

.customizable-text {
  font-size: 0.7rem;
  color: #555;
  margin-top: 0.2rem;
}

/* Popup Modal for Menu Card */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  overflow-y: scroll; /* or auto */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.modal::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.modal.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal.hidden {
  display: none;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  padding: 1rem;
  border-radius: 12px;
  z-index: 1000;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.modal-content::-webkit-scrollbar {
  display: none;
}

.close-btn {
  position: absolute;
  top: 0.1rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555;
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

#modal-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.modal-description h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-description p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #555;
}

/* .modal-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
} */

.option-group {
  margin-bottom: 1rem;
  border-radius: 8px;
  background-color: white; /* Mini card feel */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.option-group label {
  display: block;
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin: 2px 0;
  border-radius: 8px;
  cursor: pointer;
  flex-wrap: nowrap;
}

.option-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.option-label {
  width: 50%;
  font-size: 0.95rem;
  color: #333;
  text-align: left;
}

.option-amount {
  font-size: 0.85rem;
  color: #444;
  white-space: nowrap;
  min-width: 60px; /* Consistent width for amounts */
  text-align: right; /* Align amounts to the right within their space */
}

/* .option-item label,
.option-label {
  flex: 1;
  display: flex;
  align-items: center;
} */

.custom-check,
.custom-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  display: inline-block;
  border-radius: 4px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.custom-radio {
  border-radius: 50%;
}

/* Hide the default input */
.option-item input[type="checkbox"],
.option-item input[type="radio"] {
  display: none;
}

/* Checked styles */
.option-item input[type="checkbox"]:checked + .custom-check {
  border-color: #f44336;
  background-color: #f44336;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M20.285 2.725a1 1 0 00-1.41 0L9 12.6 5.125 8.725a1 1 0 10-1.41 1.41l4.95 4.95a1 1 0 001.41 0l10.21-10.21a1 1 0 000-1.41z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.option-item input[type="radio"]:checked + .custom-radio {
  border-color: #f44336;
  background-color: #f44336;
  box-shadow: inset 0 0 0 4px #fff;
}

.option-item:has(input[type="checkbox"]:checked) {
  background-color: #fff8f6;
  border: 1px solid #f44336;
}

.option-item:has(input[type="radio"]:checked) {
  background-color: #fff8f6;
  border: 1px solid #f44336;
}

.option-price {
  font-size: 0.85rem;
  color: #666;
}

.tag {
  background-color: #e0e0e0;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 0.3rem;
  color: #444;
}

.cooking-instructions textarea {
  width: 100%;
  padding: 8px;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #f44336;
  resize: vertical;
}

.word-count {
  font-size: 0.8rem;
  color: #777;
  margin-top: 4px;
  text-align: right;
}

/* Add to Cart Button in Modal */
.action-row {
  display: flex;
  /* justify-content: space-between; */
  padding: 1rem 0;
  gap: 1rem;
  /* align-items: center; */
  flex-wrap: wrap;
}

.quantity-selector {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 120px;
  background: #f7af83;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  background-color: #ff5722;
  color: white;
  border: none;
  cursor: pointer;
}

.qty-count {
  padding: 0 0.75rem;
  font-size: 1rem;
  min-width: 30px;
  text-align: center;
}

.cta-btn {
  flex: 2 1 200px;
  width: 100%;
  min-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ff5722;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cta-btn:hover,
.qty-btn:hover {
  background-color: #d63909;
}

.cta-btn .actual-price {
  font-weight: bold;
  margin-left: 4px;
}

.cta-btn .discount-price {
  text-decoration: line-through;
  color: white;
  margin-left: 6px;
  font-size: 0.9rem;
}

/*==================== Bottom Navigation Bar ====================*/
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-align: center;
  color: #777;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item.active,
.nav-item:hover {
  color: #ff5722; /* active or primary color */
}

/* Bottom Navigation Bar Cart Icon Badge */
.icon-wrapper {
  position: relative;
  display: inline-block;
}

.cart-badge {
  position: absolute;
  top: -9px;
  right: -11px;
  background-color: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
  line-height: 1;
}

/* Snackbar styling */
.snackbar {
  visibility: hidden;
  min-width: 180px;
  background-color: #f44336;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 10px 16px;
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  font-size: 14px;
}

.snackbar.show {
  visibility: visible;
  opacity: 1;
  bottom: 100px;
}

/* Bump animation */
/* Bump animation for cart badge */
.bump {
  animation: bump 0.3s ease;
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* Bump animation for snackbar */
.snackbar.bump {
  animation: bump 0.3s ease;
}

@keyframes bump {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
