/* TOP HEADER STYLE */

.top-header {
  /* width: 100%; */
  /* background: #ccc; */
  border-bottom: 1px solid #eee;
  font-size: 14px;
  padding: 10px 40px;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 8px 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left-links a {
  color: #555;
  margin: 0 5px;
  text-decoration: none;
}

.left-links span {
  color: #ccc;
  margin: 0 5px;
}

.right-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.secure-text-content {
  height: 22px; /* so area doesn’t jump */
  overflow: hidden;
}

.secure-text {
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.secure-text.show {
  opacity: 1;
  transform: translateY(0);
}

.help-text strong {
  color: #ac1d17;
}

.divider {
  width: 1px;
  height: 20px;
  background: #ddd;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 768px) {
  .top-header {
    /* font-size: 12px; */
    width: auto;
    padding: 0;
  }
  .container {
    flex-direction: column;
    gap: 10px;
    background: #3bb77e;
    padding: 10px;
  }
  .left-links {
    display: none;
  }
  .right-links {
    display: none;
  }

  .divider {
    display: none;
  }
  .secure-text {
    color: #fff;
  }
}
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 9999;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px 0;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.search-item:hover {
  background: #f8f8f8;
}

.search-item img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f4f4;
}

.search-item .name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.search-item .price {
  font-size: 13px;
  color: #ac1d17;
  margin-top: 4px;
}

/* ---------- NAV ICON BADGE FIX ---------- */

/* make icon container anchor for badge */
.nav-icons .icon-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* badge styling */
.nav-icons .badge-nav,
#cartCount,
#cart-count {
  position: absolute;
  top: -6px;
  right: 10px;

  background: #d32f2f;
  color: #fff;

  font-size: 11px;
  font-weight: 600;

  min-width: 18px;
  height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  padding: 0 5px;

  line-height: 1;
}

/* icon size consistency */
.nav-icons .icon-box i {
  font-size: 22px;
  margin-bottom: 4px;
}
@media (max-width: 600px) {
  .search-wrapper {
    position: static; /* remove relative positioning */
  }
  .search-suggestions {
    position: fixed; /* make it independent */
    top: 175px; /* adjust based on your header height */
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    padding: 10px ;
  }

  .search-item {
    padding: 10px;
  }

  .search-item img {
    width: 40px;
    height: 40px;
  }
}
