@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  min-height: 100vh;
  background-color: #333;
  background-image: url('https://www.chennaispice.com/wp-content/uploads/2021/04/Untitled-design-16.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  background-size: cover;
  color: #fff;
}


.container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.3);
  /* light enough to see image through */
  border-radius: 10px;
}




h1 {
  text-align: center;
  margin-bottom: 20px;
}

.category {
  margin-bottom: 20px;
}

.dropdown-toggle {
  width: 100%;
  background-color: #ff9800;
  border: none;
  color: white;
  padding: 12px;
  font-size: 18px;
  cursor: pointer;
  text-align: left;
  border-radius: 5px;
}

.menu-list {
  display: none;
  margin-top: 10px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 5px;
}

.controls button {
  margin: 0 5px;
  background-color: #fff;
  color: #333;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.controls button:hover {
  background-color: #f1c40f;
  color: #000;
}

.controls span {
  font-size: 16px;
  margin: 0 5px;
}

#orderButton {
  display: block;
  margin: 20px auto;
  background-color: #4CAF50;
  color: white;
  font-size: 18px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/*.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: white;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  z-index: 1000;
  white-space: nowrap;
  overflow-x: auto;
}*/
#floatingCartBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff9800;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  z-index: 1001;
  display: none;
}


@media (max-width: 600px) {
  .menu-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .controls {
    margin-top: 8px;
  }

  .cart-bar {
    font-size: 14px;
    padding: 8px;
  }

  .dropdown-toggle {
    font-size: 16px;
  }

  .menu-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffd700;
  }

  #scrollTopBtn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 18px;
    background-color: #ff9800;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1002;
    display: none;
  }

}
/* Add this to your style.css */

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.cart-item span:first-child { /* For item name and price */
  flex-basis: 60%; /* Take up more space */
  font-weight: bold;
  color: #ffd700; /* Match menu item headings */
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 5px; /* Space between buttons and quantity */
  margin-top: 5px; /* Space from item name on small screens */
  flex-basis: 40%; /* Take remaining space */
  justify-content: flex-end; /* Align controls to the right */
}

.cart-controls button, .remove-item-btn {
  background-color: #fff;
  color: #333;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  min-width: 30px; /* Ensure buttons have a minimum width */
}

.cart-controls button:hover, .remove-item-btn:hover {
  background-color: #f1c40f;
  color: #000;
}

.remove-item-btn {
  background-color: #e74c3c; /* Red color for remove button */
  color: white;
  margin-left: 10px; /* Space between quantity controls and remove button */
}

.remove-item-btn:hover {
  background-color: #c0392b;
}


#orderButton {
  margin-top: 30px; /* Add some space above the order button */
}

/* Adjust for smaller screens */
@media (max-width: 600px) {
  .cart-item span:first-child {
    flex-basis: 100%; /* Item name takes full width */
    text-align: left;
  }

  .cart-controls {
    flex-basis: 100%; /* Controls take full width */
    justify-content: flex-start; /* Align controls to left */
  }

  .item-total-price {
      text-align: left;
  }
}