* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background: #f8f8f8;
  overflow-x: hidden;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.page-header h1 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.page-header img {
  width: 30px;
  height: 30px;
  color: #f44600;
  border-radius: 50%;
}

.page-header .header-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-header a {
  text-decoration: none;
  color: #ff5722;
}

.highlight-box {
  background: linear-gradient(to right, #ff6a00, #ff3c00);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.highlight-box h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.highlight-box p {
  font-size: 0.9rem;
}

/* ===== Menu Container ===== */
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  box-sizing: border-box;
}

/* ===== Menu Item Card ===== */
.menu-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex: 1 1 calc(33.333% - 1rem); /* 3 items per row on large screens */
  max-width: calc(33.333% - 1rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  transition: transform 0.2s ease;
}

.menu-item:hover {
  transform: translateY(-4px);
}

/* ===== Image Section ===== */
.item-img {
  position: relative;
  width: 100%;
  padding-top: 60%; /* Aspect ratio */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.item-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Discount Badge ===== */
.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff5722;
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* ===== Text & Button ===== */
.menu-item h2 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.1rem;
}

.menu-item p {
  margin: 0 0 0.5rem;
  color: #555;
  font-size: 0.95rem;
}

.prep-time {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
}

.customize-btn {
  margin-top: auto;
  padding: 0.6rem 1rem;
  background: #ff7a00;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.customize-btn:hover {
  background: #e56900;
}

/* ===== Responsive Breakpoints ===== */
@media (max-width: 1024px) {
  .menu-item {
    flex: 1 1 calc(50% - 1rem); /* 2 items per row */
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .menu-item {
    flex: 1 1 100%;
    max-width: 100%; /* Full width */
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  padding: 1rem;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Modal Content */
.modal-content {
  background: white;
  padding: 25px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  height: auto;
  padding-bottom: 50px;
}

.option-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
}

.spice-group {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.spice-btn {
  border: 1px solid #ccc;
  padding: 5px 10px;
  background: white;
  border-radius: 5px;
  cursor: pointer;
}

.spice-btn.selected {
  background: orange;
  color: white;
  border-color: orange;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity button {
  width: 30px;
  height: 30px;
}

.quantity input {
  width: 50px;
  text-align: center;
  font-size: 16px;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.total-price {
  font-weight: bold;
  font-size: 18px;
}

.add-to-cart {
  background: orange;
  border: none;
  padding: 10px 15px;
  color: white;
  border-radius: 5px;
}

.cancel-btn {
  background: #eee;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
}

/* @media screen and (max-width: 600px) {
  .modal-content {
    max-width: 100%;
  }
    
} */

/* 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);
  }
}
