.menu_container {
  min-height: calc(100dvh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  color: white;
  padding: 3rem 2rem;
  background: linear-gradient(to bottom right, #1f2937, #111827);
}

.menu-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.menu-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.menu-header-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.menu-header-text p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

.menu_filter {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.menu_filter button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.menu_filter button:hover {
  background-color: #f59e0b;
  color: black;
}

.menu_filter-all.active {
  background-color: #f59e0b;
  color: black;
}

.menu_filter-food.active {
  background-color: #f59e0b;
  color: black;
}

.menu_filter-drink.active {
  background-color: #f59e0b;
  color: black;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

.menu_card {
  text-align: left;
  background-color: #1f2937;
  border-color: #374151;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

.menu_card:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.menu_card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.95;
}

.menu_card:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.menu_card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.menu_card p {
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: lighter;
  /* color: rgba(255, 255, 255, 0.8); */
}

.menu_card h4 {
  /* display: block; */
  font-weight: 700;
  color: #f59e0b;
  font-size: 1.5rem;
  margin-top: 0.6rem;
}

.menu_card h5 {
  margin-top: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.1);
  width: fit-content;
  padding: 0.3rem;
  border-radius: 10px;
}

.menu_card button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background-color: #f59e0b;
  color: black;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* === CART BUTTON === */
.cart-btn {
  position: fixed;
  top: 15px;
  right: 25px;
  background-color: #f59e0b;
  color: black;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

@media ((max-width: 900px)) {
  .cart-btn {
    top: 70px;
    right: 55px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

.cart-count {
  background-color: black;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* === SIDEBAR === */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: #1f2937;
  color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease;
  z-index: 200;
  padding: 1.5rem;
}

@media (max-width: 600px) {
  .cart-sidebar {
    width: 80%;
  }
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-cart {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin-top: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  background-color: #374151;
  padding: 0.7rem;
  border-radius: 6px;
}

.cart-item img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  margin-left: 0.8rem;
}

.cart-item-details h4 {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.cart-item-details p {
  font-size: 0.8rem;
  opacity: 0.8;
}

.cart-quantity {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-quantity button {
  background-color: #f59e0b;
  border: none;
  color: black;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.cart-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.checkout-btn {
  width: 100%;
  background-color: #f59e0b;
  border: none;
  color: black;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
}

/* === OVERLAY === */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 150;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 100;
}

.checkout-modal.show {
  visibility: visible;
  opacity: 1;
}

.modal-box {
  background: #1f2937;
  color: white;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
}

.checkout-total-box {
  margin-top: 1rem;
  text-align: right;
}

.confirm-order {
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem;
  background: #f59e0b;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* === LIGHT MODE === */
body.light-mode {
  background-color: #fffdf1;
  color: #0e0e0e;
}

/* Light mode nav */
body.light-mode #mainNav,
body.light-mode #mainNav * {
  background: #ffffff !important; /* force white */
  color: #101828 !important; /* force text color */
}

/* Links and buttons specifically */
body.light-mode #mainNav .menu a,
body.light-mode #mainNav .logo-text a,
body.light-mode #mainNav .mobile-toggle,
body.light-mode #mainNav .theme-btn {
  color: #101828 !important;
}

body.light-mode .theme-btn,
body.light-mode .mobile-toggle {
  color: #101828; /* toggle and hamburger color */
}

/* Menu container */
body.light-mode .menu_container {
  background: #ffffff !important; /* page background */
  color: #101828;
}

body.light-mode .menu_container .menu-header-text h1 {
  font-size: 3rem;
}

body.light-mode .menu_container .menu-header-text p {
  color: #101828;
  /* font-size: 3rem; */
}

/* Menu cards */
body.light-mode .menu_card {
  background-color: #ffffff; /* card background */
  color: #101828;
  border: 1px solid #ddd;
}
body.light-mode .menu_card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.light-mode .menu_card h4,
body.light-mode .menu_card h5 {
  color: #4b352a; /* brand accent */
}

/* Menu filter buttons */
body.light-mode .menu_filter button.active {
  background-color: #4b352a;
  color: white;
}
body.light-mode .menu_filter button {
  background-color: #ddd;
  color: black;
}

/* Cart button */
body.light-mode .cart-btn {
  background-color: #4b352a;
  color: black;
}

/* Cart sidebar */

body.light-mode .add-to-cart {
  background-color: #4b352a;
  color: white;
}

body.light-mode .cart-sidebar {
  background-color: #ffffff;
  color: #101828;
  border-left: 1px solid #ddd;
}

/* Checkout modal */
body.light-mode .checkout-modal .modal-box {
  background-color: #ffffff;
  color: #101828;
}

body.light-mode .cart-sidebar .close-cart {
  color: black;
}
