/* === NAVBAR === */

.navbar {
  position: sticky;
  top: 0;
  background-color: white;
  /* background-color: #fcf2df; Used to be white */
  /* border: 2px solid #7b3d1b; Didnt exist before */
  box-sizing: border-box;
  padding: 10px 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 10px 10px;
}

.logo-container {
  aspect-ratio: 1 / 1;
  width: 100px;
}



@media (max-width: 600px) {
  .navbar {
    padding: 10px 10px;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  #categorySelect,
  #searchInput {
    width: 100%;
    max-width: 100%;
  }
  .input-field-container {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* === VIEW ORDER BUTTON === */
#viewOrderBtn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#viewOrderBtn:hover {
  background-color: #27ae60;
  transform: translateY(-1px);
}

/* === CART COUNT BADGE === */
#cartCount {
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.75rem;
  position: absolute;
  top: -6px;
  right: -8px;
}

/* === ORDER DRAWER === */
#orderDrawer {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: -350px;
  height: 100%;
  width: 320px;
  background-color: #fff;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  padding: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

#orderDrawer.open {
  right: 0;
}

#orderDrawer h2 {
  margin-top: 0;
}

#orderDrawer ul {
  list-style: none;
  padding-left: 0;
}

#orderDrawer li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

#closeDrawer {
  margin-bottom: 20px;
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

#closeDrawer:hover {
  background-color: #c0392b;
}

.order_drawer_top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#cartTotalContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}

.orderListContainer {
  flex-grow: 1;
  overflow-y: auto;
  position: relative;
  margin-bottom: 15px;
}

#orderListWrapper {
  max-height: 100%;
  overflow-y: auto;
}

#orderList {
  margin: 0;
  padding: 0 10px;
  list-style: none;
}

.top-shadow,
.bottom-shadow {
  position: absolute;
  left: 0;
  width: 100%;
  height: 20px;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.2s ease;
  opacity: 0;
}

.top-shadow {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent);
}

.bottom-shadow {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
}

.cart_item {
  width: 100%;
  display: flex;
  flex-direction: row;
}

#orderList li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.item_name {
  display: flex;
  align-items: center;
  width: 100%;
}

.delete-item {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 10px;
  transition: transform 0.1s ease;
  padding: 3px;
  background-color: transparent;
  transition: background-color 0.2s;
}

.delete-item:hover {
  background-color: #e74c3c63;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.item_price {
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart_bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.item_toppings_list {
  width: 95%;
  margin-left: 5%;
}

.item_toppings_list p {
  width: 100%;
  margin: 10px 0 0 0;
  color: gray;
  display: flex;
  justify-content: left;
  align-items: left;
}

/* .client-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.client-info input {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.client-info input:focus {
  border-color: #34495e;
}

.client-info input::placeholder {
  color: #999;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.3px;
} */

.total_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 10px;
}
.total_wrapper p {
  display: flex;
  justify-content: space-between;
  font-weight: 0;
  margin: 5px;
}
.total_wrapper strong {
  margin-top: 10px;
}

#cartAlert {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2ecc71;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2000;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

#cartAlert.show {
  opacity: 1;
}
