/**
 * navbar.css
 * Styles ONLY for the new Search, Wishlist, Cart, and Profile elements.
 * The main header layout is controlled by the theme CSS.
 */

/* Styles for the main navigation layout to support added elements */
@media (min-width: 992px) {
  .header-area .main-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .header-area .nav {
    flex-grow: 1;
    justify-content: flex-end; /* Push links to right */
    display: flex !important;
    float: none !important; /* Override theme float */
    margin-left: auto;
    align-items: center;
  }
}

/* Right Side Actions Container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

/* Search Bar */
.search-wrapper {
  position: relative;
  background-color: #e6f8ff;
  border-radius: 50px;
  padding: 6px 15px;
  display: flex;
  align-items: center;
  width: 180px; /* Smaller width to fit */
}

.search-wrapper input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #7a7a7a;
  width: 100%;
  font-family: "Poppins", sans-serif;
}

.search-wrapper input::placeholder {
  color: #b0bfca;
}

.search-wrapper .search-icon {
  color: #303030;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Icons (Heart, Bag) */
.action-icon-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #e6f8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #303030;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  padding: 0;
}

.action-icon-btn:hover {
  background-color: #d0e8f7;
  color: #00a5f1;
}

/* Profile Avatar */
.profile-avatar-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #00a5f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  border: none;
  padding: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .header-actions {
    display: none; /* Hide on mobile for now or handle via menu */
  }
}

/* Prevent desktop header flash on pages that explicitly use mobile cart navbar */
@media (max-width: 767px) {
  body.mobile-cart-nav-page .header-area {
    display: none !important;
  }
}
