@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;
  font-family: "Mulish", sans-serif;
}

body,
html {
  height: 0%;
  width: 100%;
}

button {
  border: none;
  cursor: pointer;
}

.main-container {
  margin-top: 80px;
  width: 100%;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  max-width: 1200px;
}

.main-slider {
  padding: 10px;
}

.card-slider-main {
  display: flex;
  white-space: nowrap;
  overflow-x: auto;
  margin-top: 0;
  gap: 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.card-slider-main::-webkit-scrollbar,
.card-slider::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.label-container {
  display: flex;
  align-items: center;
}

.label-container h2 {
  margin-right: auto;
}

.label-container i {
  font-size: 18px;
}

.label-container button {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  color: #111;
  cursor: pointer;
  padding: 10px;
  width: fit-content;
  margin-left: 5px;
}

.label-container button:disabled {
  background-color: whitesmoke;
  cursor: not-allowed;
  border: none;
}

.card-wrapper {
  transition: transform 0.3s ease-in-out;
  display: flex;
  background: transparent;
  justify-content: space-between;
  gap: 10px;
  scroll-snap-align: center;
  width: fit-content;
  animation: scroll-images 10s linear infinite;
}

.card-wrapper img {
  height: 200px;
  width: 160px;
  cursor: pointer;
}

.card-wrapper {
    display: inline-block;
    width: 160px;            /* slightly bigger than image */
    margin: 0 20px;          /* balanced spacing */
    text-align: center;      /* ensures content inside is centered */
    vertical-align: top;
}

.product-link {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.food-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 6px;      /* auto centers the image */
}

.food-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;      /* ensures name is centered */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-decoration: none;         /* keeps name within wrapper */
}
.food-name:hover {
    text-decoration: none;        /* Still no underline on hover */
}


@keyframes scroll-images {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-calc(100% + 10px));
  }
}

.card-slider {
  display: flex;
  white-space: nowrap;
  overflow-x: auto;
  margin-top: 10px;
  gap: 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.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-container {
  position: relative;
  display: inline-block;
}

.image-container img {
  width: 350px;
  height: 240px;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  image-rendering: pixelated;
}

.image-container::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%
  );
}

.discount-badge {
  position: absolute;
  color: #fff;
  bottom: 0;
  left: 60px;
  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: 24px;
  margin: 0;
  display: flex;
  justify-content: center;
  right: 15px;
  position: relative;
}

.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 (max-width: 767px) {
  .main-container {
    margin-top: 60px;
  }

  .navbar .nav {
    height: 60px;
    padding: 0 10px;
  }

  .navbar .left .logo {
    height: 40px;
    margin-right: 10px;
  }

  .navbar .location-div {
    font-size: 12px;
    max-width: 150px;
    margin-left: 5px;
  }

  .navbar .location-div .other {
    font-size: 12px;
  }

  .navbar .location-div .location {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar .location-div .arrow-down {
    font-size: 12px;
  }

  .hamburger {
    display: block;
  }

  .right .items {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #e6d8d8;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .right .items.active {
    display: flex;
  }

  .right .items li {
    margin: 10px 0;
    width: 100%;
  }

  .right .items .nav-item {
    height: auto;
    padding-left: 0;
  }

  .right .items .nav-item a {
    font-size: 14px;
    padding: 10px;
    width: 100%;
  }

  .container {
    max-width: 350px;
    margin: auto;
    padding: 0;
  }

  .card-wrapper img {
    height: 100px;
    width: 80px;
    cursor: pointer;
  }

  .label-container h2 {
    color: #111;
    margin-right: auto;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
  }

  .label-container i {
    font-size: 14px;
  }

  .image-container img {
    width: 180px;
    height: 140px;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    image-rendering: pixelated;
  }

  .image-container::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;
  }
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .hamburger {
    display: none;
  }

  .right .items {
    display: flex;
    position: static;
    box-shadow: none;
    flex-direction: row;
  }

  .right .items li {
    margin-right: 36px;
  }

  .right .items .nav-item {
    height: 80px;
    padding-left: 28px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1540px;
  }
}

.img-container {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  top: 30px;
  margin-top: 130px;
  margin-bottom: 100px;
  width: 100%;
  height: 50%;
}
.offer-image {
  max-width: 100%;
  height: auto;
  display: block;
  /*filter: brightness(0.7);*/
}
.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  font-family: "Mulish", sans-serif;
}
.text-overlay h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.text-overlay p {
  font-size: 1.5em;
  font-weight: 400;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.search-page {
  min-height: 80vh;
  background: #fff;
  padding: 60px 0;
  text-align: center;
}

.search-box {
  width: 40%;
  margin: 0 auto 20px auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.search-box .clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  color: #555;
  cursor: pointer;
}

.search-results {
  width: 40%;
  margin: 0 auto;
  text-align: left;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8faff;
  border-radius: 4px;
  border: 1px solid #eee;
  margin-top: 10px;
  text-decoration: none; /* remove underline */
  color: inherit; /* use normal text color */
  transition: background 0.2s;
  text-decoration:none;
}

.search-item img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
}

.search-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.search-item span {
  font-size: 14px;
  color: #666;
}

.search-item:hover {
  background: #eef3ff;
  text-decoration: none !important;
}


