body {
  background-color: #4b4b4b;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: #ff4757;
}
.nav {
  max-width: 900px;
  margin: auto;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  color: #ffffff;
}
.box {
  color: white;
  width: 30px;
  height: 30px;
  text-align: center;
  position: relative;
}
.cart-count {
  position: absolute;
  background-color: #2f3542;
  top: -9px;
  right: 0;
  padding: px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  z-index: 99;
}

#count-icon {
  font-size: 1.5rem;
  cursor: pointer;
  padding-top: 10px;
}
img {
  width: 100%;
  height: 100%;
}
.container {
  max-width: 900px;
  /*16px*4 */
  padding-top: 4rem;
  width: 100%;
  margin: auto;
}
h2.title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: #ffffff;
}
.shop-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));

  gap: 20px;
  justify-content: center;
  align-content: center;
}
.food-box {
  position: relative;
  background-color: #ffffff;
  padding: 10px;
  box-shadow: 0 1px 4px rgba(40, 37, 37, 0.1);
  border-radius: 3px;
}
.pics {
  overflow: hidden;
}
.pics img:hover {
  transform: scale(1.5);
}
.food-img {
  transition: 0.4s;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.food-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ff6348;
}
.food-price {
  font-weight: 1000;
}
.add-cart {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #2ed573;
  color: white;
  padding: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.4s;
}
.add-cart:hover {
  background-color: red;
  opacity: 0.6;
}
.cart {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  background-color: white;
  box-shadow: 0 1px 4px rgbq(40, 37, 37, 0.1);
  z-index: 100;
  transition: 0.5s;
}
.cart-active {
  right: 0;
  transition: 0.5s;
}
.cart-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.cart-box {
  display: grid;
  grid-template-columns: 33% 50% 18%;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
}
.cart-img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 5px;
}
.detail-box {
  display: grid;
  row-gap: 0.5rem;
}
.price-box {
  display: flex;
  justify-content: space-between;
  padding: 2px;
}
.cart-food-title {
  font-size: 1rem;
  text-transform: uppercase;
  color: #f5611c;
  font-weight: 500;
}

.cart-price {
  font-weight: 500;
}
.cart-quantity {
  border: 1px solid rgba(0, 0, 0, 0.1);
  outline: none;
  width: 2.5rem;
  text-align: center;
  font-size: 1rem;
}
.cart-remove {
  font-size: 20px;
  color: red;
  cursor: pointer;
}

.total {
  display: flex;
  justify-content: end;
  margin-top: 1.5rem;
}
.total-title {
  font-size: 1rem;
  font-weight: 600;
}
.total-price {
  margin-left: 0.5rem;
}
.btn-buy {
  padding: 12px 20px;
  background-color: #2f3542;
  color: #ffffff;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
#close-btn {
  position: absolute;
  top: 1rem;
  right: 0.8rem;
}
#close-btn:hover {
  background-color: red;
  border-radius: 5px;
  opacity: 0.7;
  color: white;
}
