@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
@import url("https://fonts.cdnfonts.com/css/proxima-nova-condensed");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



button {
  border: none;
  cursor: pointer;
}

.section{
  max-width: 1200px;
  margin: auto;
  /* padding: 10px; */
}

.card-slider {
  display: flex;
  white-space: nowrap;
  overflow-x: auto;
  margin-top: 10px;
  gap: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.card-slider::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.label-section {
  display: flex;
  align-items: center;
}


.label-section {
  display: flex;
  align-items: center;
}

.label-section h2 {
  color: #111;
  font-family: Poppins, serif;
  margin-right: auto;
  font-weight: 600;
}

.label-section .bi {
  font-size: 18px;
}

.label-section button {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  color: #111;
  cursor: pointer;
  padding: 10px;
  width: fit-content;
  margin-left: 5px;
}

.label-section button:disabled {
  background-color: whitesmoke;
  cursor: not-allowed;
  border: none;
}

.restaurant-card {
  transition: transform 0.3s ease-in-out;
  font-family: "Arial", sans-serif;
  background: transparent;
}

.restaurant-card:hover {
  cursor: pointer;
  transform: scale(0.95);
}

.image-section {
  position: relative;
  display: inline-block;
}

.image-section img {
  width: 291px;
  height: 500px;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  image-rendering: pixelated;
}

.image-section::after {
    content: "";
    position: absolute;
    top: 80%;
    left: 0;
    right: 0;
    border: none;
    border-radius: 0 0 20px 20px;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1)100%);
}
.image-section button{
  background-color: #670000 ;
  font-size: 20px;
  padding: 10px;
  border-radius: 10px;
}
.image-section button:hover{
  background-color: #ffffff;
  font-size: 20px;
  color: #670000;
  padding: 10px;
  border-radius: 10px;
}
.discount-badge {
  position: absolute;
  color: #fff;
  bottom: 0;
  left: 10px;
  padding: 5px;
  z-index: 2;
  font-weight: bold;
  font-size: 24px;
  font-family: "Proxima Nova Condensed", sans-serif;
}

.restaurant-name {
  font-weight: bold;
  font-size: 17px;
  margin: 0;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}

.rating {
  display: flex;
  align-items: start;
  margin-top: 5px;
  font-weight: semi-bold;
}

.review-count {
  margin-left: 5px;
  font-weight: semi-bold;
}

.delivery-info {
  display: flex;
  font-size: 16px;
  align-items: center;
}

.bi-star-fill {
  color: green;
}

.bi-dot {
  font-size: 26px;
}


@media only screen and (min-width: 320px) and (max-width: 767px) {

    .section {
        max-width: 350px;
        margin: auto;
        padding: 10px;
      }
      
      /* Card Slider */
      
      .label-section h2 {
        color: #111;
        font-family: Poppins, serif;
        margin-right: auto;
        font-size: 18px;
        font-weight: bold;
      }
      
      .label-section i {
        font-size: 14px;
      }
      
      /* Card Slider */
      
      /* Restaurant Card */
      .card-section {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        height: fit-content;
        gap: 10px;
        margin-top: 10px;
      }
      
       .image-section img {
        width: 180px;
        height: 140px;
        display: block;
        border-radius: 20px;
        object-fit: cover;
        image-rendering: pixelated;
      }
      
      .image-section::after {
        content: "";
        position: absolute;
        top: 80%;
        left: 0;
        right: 0;
        border: none;
        border-radius: 0 0 20px 20px;
        bottom: 0;
        background: linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0) 0%,
          rgba(0, 0, 0, 0.8) 100%
        );
      }
      
      .discount-badge {
        position: absolute;
        color: #fff;
        bottom: 0;
        left: 10px;
        padding: 5px;
        z-index: 2;
        font-weight: bold;
        font-size: 12px;
        font-family: "Proxima Nova Condensed", sans-serif;
      }
      
      .restaurant-name {
        font-weight: bold;
        font-size: 16px;
        margin: 0;
      }
      
      .info-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 10px;
      }
      
      .rating {
        display: flex;
        align-items: start;
        margin-top: 3px;
        font-weight: semi-bold;
      }
      
      .review-count {
        margin-left: 3px;
        font-weight: semi-bold;
      }
      
      /* p{
        font-size: 10px;
      } */
  
      .delivery-info {
        display: flex;
        font-size: 10px;
        align-items: center;
      }
      
      .bi-dot {
        font-size: 16px;
      }
      /* Restaurant Card */
}


@media (min-width: 576px) {
  .section {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .section {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .section {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .section {
      max-width: 1224px;
  }
}

@media (min-width: 1400px) {
  .section {
    max-width: 1320px;
  }
}
