/* Layout order */

/* Default desktop layout (lg: ≥992px) */
.logo-col {
  order: 1;
}

.menu-col {
  order: 2;
}

.icons-col {
  order: 3;
}

/* Tablet (md: 768px–991.98px) and Mobile (sm: <768px) */
@media (max-width: 991.98px) {
  /* Menu first, Logo second, Icons third */
  .menu-col {
    order: 1;
  }

  .logo-col {
    order: 2;
  }

  .icons-col {
    order: 3;
  }
}

/* Search dropdown */
.header-search {
  position: relative;
}

.search-toggle {
  background: none;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  color: #000;
}

.search-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  width: 280px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  display: none;
  z-index: 9999;
}

.search-dropdown.active {
  display: block;
}

.search-dropdown input[type="search"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Cart count badge */
.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #0066ff;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* Login button */
.login-btn {
  background: #0066ff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.login-btn:hover {
  background: #004ecc;
  color: #fff;
}

/* Center navigation links */
.site-nav ul {
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Header row fixes */
.row.align-items-center.justify-content-between {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

/* Adjust columns flex basis and alignment */
.logo-col, .menu-col, .icons-col {
  display: flex;
  align-items: center;
}

.logo-col {
  flex: 0 0 auto;
}

.menu-col {
  flex: 0 0 auto;
  justify-content: left;
}

.icons-col {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 12px;
}

/* Hamburger menu fixed on mobile */
@media (max-width: 767.98px) {
  .menu-toggle {
    position: fixed;
    top: 15px;
    left: 1px;
    z-index: 10000;
    cursor: pointer;
    background: #0066ff;
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
  }

  /* Reduce icon spacing for small screens */
  .icons-col {
    gap: 8px;
  }

  .login-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .search-toggle, .header-icon {
    font-size: 16px;
  }
}
.justify-content-center {
    justify-content: left !important; 
    display: flex;
}