body {
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #243141 #ecf0f1;
}

.swiper_bg img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.title {
  margin-block: 35px;
  text-align: center;
}

.category-filter {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.category-cards {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.category-card {
  text-decoration: none;
  color: #333;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1%;
  width: 180px;
  text-align: center;
  transition: all 0.3s ease;
}

.category-card:hover {
  background-color: #eaeaea;
  transform: scale(1.05);
}

.card-content h3 {
  margin: 0;
}

.category-card.active {
  background-color: #cd1827;
  color: #fff;
  border-color: #cd1827;
}
.menu-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
  margin-top: 35px;
}

.card_box {
  border: 2px solid #ddd;
  background-color: #fff;
  /* border-radius: 25px; */
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

.card_image {
  width: 100%;
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  /* border-radius: 30px; */
}

/* .card h4 {
  margin: 5px 0;
  font-size: 1.0em;
} */

.category-name {
 text-align: center;
 font-size: 8px;
}

.card p {
  margin: 5px 0;
  font-size: 1em;
  font-weight: 600;
}

.card_two p{
  font-size: 12px;
}

.card_details {
  padding: 0 5%;
  padding-block: 3%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.box_details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-block: 10px;

}
.card button {
  color: #243141;
  background-color: transparent;
  border: 2px solid #243141;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 5px;
}

.add_to_cart {
  display: flex;
  gap: 10px;
}

.card_button {
  height: auto;
}

.index_all {
  padding: 0 3%;
}

/* For Chrome, Edge, and Safari */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #ecf0f1;
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
  background-color: #000;
  border-radius: 10px;
  border: 2px solid #ecf0f1;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #000;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;

  position: relative;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
}


@media only screen and (max-width: 1310px) {
  .menu-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .card_price {
    width: 100%;
  }

  .swiper_bg img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media only screen and (max-width: 910px) {
  .menu-container {
    display: grid;
    grid-template-columns:  1fr 1fr;
  }
  .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 80% !important;
  
    position: relative;
  }
}
@media only screen and (max-width: 450px) {
  .menu-container {
    display: grid;
    grid-template-columns: 1fr;
  }
  .card_price {
    width: 100%;
  }
}
