* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  background-color: oklch(12.9% 0.042 264.695);
}

.head {
  width: 100%;
  height: 2.5rem;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  padding-inline: 10px;
  background-color: #080d3c;
  overflow-x: scroll;
  cursor: grab; /* نشان دادن قابلیت کشیدن */
  user-select: none; /* جلوگیری از انتخاب متن موقع درگ */
  touch-action: pan-y; /* مرورگر فقط اسکرول عمودی رو انجام بده، افقی رو به من بسپار */
}

.head:active {
  cursor: grabbing; /* وقتی کلیک نگه داشته شد */
}

::-webkit-scrollbar {
  appearance: none;
  display: none;
}

.menu {
  color: aliceblue;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.menu_item {
  list-style-type: none;
  background-color: oklch(27.9% 0.041 260.031);
  padding: 6px 16px;
  width: 8rem;
  display: inline-block;
  word-break: break-word;
  white-space: nowrap;
  overflow-wrap: anywhere;
  height: 2rem;
  text-align: center;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  @media (width <= 320px) {
    width: 7rem;
  }
}

.all_items {
  margin-top: 3.5rem;
  padding-inline: 10px;
  display: grid;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  grid-template-columns: repeat(4, minmax(7rem, 1fr));
  @media (width <= 992px) {
    grid-template-columns: repeat(3, minmax(7rem, 1fr));
  }
  @media (width <= 660px) {
    grid-template-columns: repeat(2, minmax(7rem, 1fr));
  }
}
.all_items > * {
  height: 100%;
}

.food_wrapper {
  background-color: #172131;
  width: 100%;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  border-radius: 12px;
}
.food_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  border-radius: 12px;
  padding-bottom: 5px;
}
.image_name {
  color: aliceblue;
  margin-bottom: 4px;
  text-align: center;
  @media (width <= 340px) {
    font-size: 14px;
  }
}
.image_price {
  color: #22b527;
}

.item_active {
  background-color: #1c1fa9;
  color: #38e3f9;
}
