
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* body {
  margin: 0;
  font-family: "Roboto", sans-serif;
} */


.popular-section {
  width: 100%;
  padding: 30px 0;
  font-family: "Roboto", sans-serif;
}

.dark .restaurant-card{
  background: #0f1626!important;
}

.dark .card-head h2{
  color: #fff!important;
}

.dark .card-body p{
  color: #ccc!important;
}

.dark .restaurant-card{
  border: none!important;
}

.popular-wrapper {
  max-width: 80%;
  margin: 0 auto;
}

.popular-title {
  margin: 0;
  text-align: center;
  font-size: 27px;
  line-height: 1.12;
  font-weight: 500;
}

.popular-title strong {
  font-weight: 700;
}

.cards-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.restaurant-card {
  display: block;
  background: #ffffff;
  border: 1px solid #f1f1f1;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(27, 34, 52, 0.08);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.card-media {
  padding: 10px 10px 0;
}

.card-media img {
  display: block;
  width: 100%;
  height: 218px;
  border-radius: 14px;
  object-fit: cover;
}

.card-media img.hero-food {
  object-fit: contain;
}

.card-body {
  padding: 14px 18px 18px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 500;
  color: #202020;
}

.rating-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 52px;
  height: 24px;
  border-radius: 6px;
  padding: 0 9px;
  background: #ff8a1d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.card-body p {
  margin: 10px 0 16px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  color: #4e4e4e;
}

.shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 114px;
  height: 36px;
  border-radius: 9px;
  text-decoration: none;
	background: var(--bg-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}


@media (max-width: 1100px) {
  .popular-title {
    font-size: 24px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-head h2 {
    font-size: 18px;
  }

  .card-body p {
    font-size: 11px;
  }

  .shop-button {
    font-size: 13px;
    height: 34px;
  }
}

@media (max-width: 760px) {
  .popular-section {
    padding: 30px 0;
  }

  .popular-wrapper {
      max-width: 100%;
      margin: 0 auto;
  }

  .popular-title {
    font-size: 22px;
  }

  .cards-grid {
    margin-top: 24px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-media img {
    height: 215px;
  }

  .card-head h2 {
    font-size: 17px;
  }

  .card-body p {
    font-size: 11px;
  }

  .shop-button {
    min-width: 104px;
    height: 33px;
    font-size: 12px;
  }
}
