/* ── Hero Search Bar ─────────────────────────────── */
.hero-search-wrap {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 720px;
  padding: 0 20px;
  z-index: 100;
  animation: heroSearchFadeIn 0.8s ease-out 0.6s both;
}

@keyframes heroSearchFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -20%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.hero-search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: none;
  border-radius: 80px;
  padding: 6px 6px 6px 30px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-search-form:focus-within {
  box-shadow: 0 30px 60px -10px rgba(246, 130, 31, 0.25);
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  color: #222;
  height: auto;
  line-height: 1.4;
  padding: 12px 0;
  width: 100%;
  min-width: 0;
}

.hero-search-input::placeholder {
  color: #999;
  font-weight: 400;
}

.hero-search-input:focus {
  outline: none;
  box-shadow: none;
  border: none;
}

.hero-search-btn {
  flex-shrink: 0;
  background: linear-gradient(250deg, rgba(204, 98, 7, 1) 0%, rgba(246, 130, 31, 1) 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  box-shadow: 0 4px 18px rgba(246, 130, 31, 0.35);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(246, 130, 31, 0.45);
  filter: brightness(1.06);
  color: #fff;
}

/* ── Dropdown ────────────────────────────────────── */
.hero-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), 0 4px 14px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 9999;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-search-dropdown.open {
  display: block;
  animation: dropFadeIn 0.22s ease;
}

@keyframes dropFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-search-dropdown::-webkit-scrollbar {
  width: 5px;
}

.hero-search-dropdown::-webkit-scrollbar-track {
  background: #f8f8f8;
}

.hero-search-dropdown::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 4px;
}

.hero-dd-header {
  padding: 11px 18px 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  border-bottom: 1px solid #f0f0f0;
}

.hero-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: #222;
  border-bottom: 1px solid #f7f7f7;
}

.hero-dd-item:last-child {
  border-bottom: none;
}

.hero-dd-item:hover,
.hero-dd-item.active {
  background: #fff5ee;
  color: #f07201;
}

.hero-dd-item .dd-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  color: #f07201;
}

.hero-dd-item.active .dd-icon {
  background: #f07201;
  color: #fff;
}

.hero-dd-item .dd-text {
  flex: 1;
}

.hero-dd-item .dd-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.hero-dd-item .dd-cat {
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
}

.hero-dd-item.active .dd-cat {
  color: #f0a060;
}

.hero-dd-empty {
  padding: 24px 18px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 575px) {
  .hero-search-wrap {
    top: 38%;
    max-width: 100%;
    padding: 0 10px;
  }

  .hero-search-form {
    padding: 4px 4px 4px 20px;
  }

  .hero-search-input {
    font-size: 14px;
    padding: 8px 0;
  }

  .hero-search-btn span {
    display: none;
  }

  .hero-search-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    justify-content: center;
    border-radius: 50%;
  }
  
  .hero-search-btn i {
    font-size: 14px;
    margin-right: 0 !important;
  }

  .hero-search-dropdown {
    max-height: 280px;
  }

  .hero-dd-header {
    padding: 8px 14px 6px;
    font-size: 10px;
  }

  .hero-dd-item {
    gap: 10px;
    padding: 10px 14px;
  }

  .hero-dd-item .dd-icon {
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 6px;
  }

  .hero-dd-item .dd-name {
    font-size: 13px;
  }
}
