.navbar-nav .nav-link {
  color: #222;
  font-size: 15px;
  margin: 0 10px;
}

.search-container {
  position: absolute;
  top: 60%;
  left: 50%;
  bottom: -40px; /* sits half on/half off the parent hero section */
  transform: translateX(-50%);
  width: 93%;
  max-width: 1000px;
  z-index: 20; /* fixed: no unit on z-index */
}

.search-container .search-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.search-container .form-label {
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.search-container .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  background-color: #fff;
}

.search-container .lookSearchBtn {
  background-color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 6px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  height: 42px;
}

.search-container .lookSearchBtn:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

/* Stack on smaller screens */
@media (max-width: 768px) {
  .search-container {
    position: relative;
    bottom: 0;
    top: 0;
    margin-top: 10px !important;
  }
}

@media (min-width: 1000px) and (max-width: 1350px) {
  .search-container {
    top: 40% !important;
    left: 50% !important;
  }

  .navbar-nav .nav-link {
    font-size: 12px;
  }
  .login-btn {
    font-size: 12px;
  }
}
@media (min-width: 1351px) {
  .search-container {
    top: 40% !important;
    left: 50% !important;
  }
}

.vendor-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  border-radius: 12px;
  padding: 4px 0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.vendor-grid::-webkit-scrollbar {
  display: none;
}

/* ── Carousel wrapper ── */
.vendor-card-section {
  position: relative;
  overflow: hidden;
}
.vendor-wrap {
  margin-bottom: 0 !important;
}

.carousel-track-wrapper {
  overflow: hidden;
}

.vendor-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 10px 5px;
  /* scroll-behavior: smooth; */
}

.vendor-card {
  max-width: 250px;
  height: 310px !important;
  flex: 0 0 auto;
}

@media (max-width: 580px) {
  .vendor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .vendor-grid {
    grid-template-columns: 1fr;
  }

  /* .vendor-card {
    width: 170px !important;
    height: 250px !important;
  } */

  .card-img-wrap {
    height: 850px !important;
  }
}

/* ── vendor Card ── */
.vendor-card {
  background: #fff;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
  animation: fadeUp 0.5s ease both;
}

.vendor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vendor-card:nth-child(1) {
  animation-delay: 0s;
}

.vendor-card:nth-child(2) {
  animation-delay: 0.08s;
}

.vendor-card:nth-child(3) {
  animation-delay: 0.16s;
}

.vendor-card:nth-child(4) {
  animation-delay: 0.24s;
}

.vendor-card:nth-child(5) {
  animation-delay: 0.32s;
}

.vendor-card:nth-child(6) {
  animation-delay: 0.4s;
}

/* ── Image area ── */
.card-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  background: var(--warm-100);
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.vendor-card:hover .card-img-wrap img {
  transform: scale(1.06);
}


