/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #0a0f1c, #0d1326);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.nav-container {
  width: 94%;
  margin: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

/* ================= BRAND ================= */
.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.brand-main {
  font-size: 28px;
  font-weight: 700;
  color: #22c55e;
}

.brand-sub {
  font-size: 16px;
  color: #cbd5f5;
  letter-spacing: 2px;
}

/* ================= SEARCH ================= */
.nav-search-wrapper {
  position: relative;
  max-width: 550px;
  width: 100%;
  margin: auto;
}

.nav-search {
  display: flex;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.nav-search input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  outline: none;
  font-size: 14px;
}

.nav-search button {
  padding: 12px 20px;
  border: none;
  background: #22c55e;
  color: #022c22;
  font-weight: 600;
  cursor: pointer;
}

.nav-search button:hover {
  background: #16a34a;
}

/* ================= SEARCH SUGGESTIONS ================= */
.suggestions-box {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  z-index: 9999;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

.suggestion-item:hover {
  background-color: #f3f3f3;
}

/* ================= MENU ================= */
.nav-links-wrapper {
  position: relative;
  overflow: hidden;
}

.nav-links {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-right: 48px; /* 👉 right white gap fix */
  scroll-behavior: smooth;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
}

.nav-links a:hover {
  color: #22c55e;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #22c55e;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {
  .nav-container {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    justify-content: flex-end;
    overflow: visible;
    padding-right: 0;
  }

  .menu-scroll-hint {
    display: none !important;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .nav-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand {
    text-align: center;
  }

  .nav-search-wrapper {
    max-width: 100%;
  }

  .nav-links {
    padding-top: 6px;
  }

  .brand-main {
    font-size: 22px;
  }

  .brand-sub {
    font-size: 12px;
    letter-spacing: 1px;
  }

  /* 👉 Scroll Hint Arrow */
  .menu-scroll-hint {
    display: flex;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #22c55e;
    animation: hintBounce 1.2s infinite;
    pointer-events: none;
  }
}

/* ================= WISHLIST HEART ================= */
.wishlist-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}

.wishlist-icon .heart {
  font-size: 20px;
  color: #ef4444;
  transition: transform 0.25s ease;
}

.wishlist-icon:hover {
  background: #fee2e2;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
}

.wishlist-icon:hover .heart {
  transform: scale(1.2);
}

/* 🔥 Pulse */
.wishlist-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239,68,68,.5);
  animation: wishlistPulse 2s infinite;
}

@keyframes wishlistPulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.45); }
  70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* ================= SCROLL ARROW ANIMATION ================= */
@keyframes hintBounce {
  0% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(6px); }
  100% { transform: translateY(-50%) translateX(0); }
}
