/* ============================================================
   ELBAER LLC — Header · Medical Brand
   ============================================================ */

/* ─── Topbar ─────────────────────────────────────────────── */
.topbar {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  font-size: var(--font-size-xs);
  height: var(--topbar-height);
  display: flex; align-items: center;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); width: 100%; }
.topbar a { color: rgba(255,255,255,0.75); transition: color var(--transition-fast); }
.topbar a:hover { color: white; }
.topbar-left  { display: flex; align-items: center; gap: var(--space-5); }
.topbar-right { display: flex; align-items: center; gap: var(--space-4); }
.topbar-cert { display: flex; align-items: center; gap: var(--space-1); }
.topbar-cert-badge {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xs); padding: 1px 6px;
  font-size: 10px; font-weight: var(--font-weight-bold);
  color: #FDE68A; letter-spacing: 0.5px;
}

/* ─── Header ─────────────────────────────────────────────── */
.header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 200;
  transition: box-shadow var(--transition-base);
  border-bottom: 1px solid var(--color-neutral-200);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex; align-items: center;
  height: var(--header-height); gap: var(--space-6);
}

/* ─── Logo ───────────────────────────────────────────────── */
.logo { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; flex-shrink: 0; }

/* Real PNG logo — place file at assets/logo.png */
.logo-img {
  height: 40px; width: auto; display: block;
  object-fit: contain;
}

/* Fallback shown when PNG is missing */
.logo-mark {
  position: relative; width: 44px; height: 44px;
  background: #8DC63F;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(141,198,63,0.35);
  flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; color: white; }

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-size: var(--font-size-xl); font-weight: var(--font-weight-extrabold);
  color: var(--color-primary); letter-spacing: -0.5px;
}
.logo-name .dot { color: var(--color-teal); }
.logo-sub {
  font-size: 10px; color: var(--color-neutral-500);
  letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: var(--font-weight-medium); margin-top: 2px;
}

/* ─── Header Search ──────────────────────────────────────── */
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--color-neutral-200); border-radius: var(--radius-sm);
  background: var(--color-neutral-50);
  transition: all var(--transition-base); overflow: hidden;
}
.header-search-wrap:focus-within {
  border-color: var(--color-primary);
  background: white; box-shadow: 0 0 0 3px rgba(0,95,158,0.1);
}
.header-search-icon { padding: 0 var(--space-3); color: var(--color-neutral-400); flex-shrink: 0; }
.header-search-icon svg { width: 18px; height: 18px; }
.header-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: var(--font-size-sm); color: var(--color-neutral-900);
  padding: var(--space-3) 0;
}
.header-search input::placeholder { color: var(--color-neutral-400); }
.header-search-btn {
  background: var(--color-primary); color: white; border: none;
  padding: var(--space-3) var(--space-4); font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold); cursor: pointer;
  transition: background var(--transition-fast); white-space: nowrap;
}
.header-search-btn:hover { background: var(--color-primary-dark); }

/* ─── Header Actions ─────────────────────────────────────── */
.header-actions { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }

.header-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  color: var(--color-neutral-600); cursor: pointer; position: relative;
  background: none; border: none; text-decoration: none;
  transition: all var(--transition-fast);
}
.header-btn:hover { background: var(--color-primary-light); color: var(--color-primary); }
.header-btn svg { width: 22px; height: 22px; }

.cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--color-danger); color: white;
  font-size: 9px; font-weight: var(--font-weight-bold);
  min-width: 17px; height: 17px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white; line-height: 1;
}

.b2b-btn {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); background: var(--color-teal);
  color: white; border-radius: var(--radius-sm); font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold); text-decoration: none;
  transition: all var(--transition-fast); white-space: nowrap;
}
.b2b-btn:hover { background: var(--color-teal-dark); color: white; transform: translateY(-1px); }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  background: var(--color-white);
  border-top: 1px solid var(--color-neutral-100);
}
.nav-inner {
  display: flex; align-items: center; height: 44px;
  gap: 0; overflow-x: auto; scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex; align-items: center; gap: var(--space-1);
  height: 100%; padding: 0 var(--space-4);
  font-size: var(--font-size-sm); font-weight: var(--font-weight-medium);
  color: var(--color-neutral-600); text-decoration: none;
  transition: color var(--transition-fast); position: relative;
  white-space: nowrap; flex-shrink: 0;
}
.nav-link:hover, .nav-link.active { color: var(--color-primary); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: var(--space-4); right: var(--space-4);
  height: 2px; background: var(--color-primary);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
}
.nav-link-b2b { color: var(--color-teal) !important; font-weight: var(--font-weight-semibold); }
.nav-link-b2b:hover { color: var(--color-teal-dark) !important; }
.nav-link svg { width: 13px; height: 13px; }

/* ─── Hamburger ──────────────────────────────────────────── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--color-neutral-700); border-radius: 2px; transition: all var(--transition-base); }

/* ─── Mobile Nav ─────────────────────────────────────────── */
.mobile-nav { display: none; background: white; border-top: 1px solid var(--color-neutral-100); box-shadow: var(--shadow-lg); }
.mobile-nav.open { display: block; }
.mobile-nav-search { padding: var(--space-3) var(--space-4); }
.mobile-nav-search input {
  width: 100%; padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-neutral-200); border-radius: var(--radius-sm);
  font-size: var(--font-size-base); outline: none;
}
.mobile-nav-link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-6); font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium); color: var(--color-neutral-700);
  border-bottom: 1px solid var(--color-neutral-100); text-decoration: none;
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--color-primary); background: var(--color-primary-light); }
.mobile-nav-link.b2b { color: var(--color-teal); font-weight: var(--font-weight-semibold); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1023px) {
  .header-search { display: none; }
  .b2b-btn { display: none; }
}
@media (max-width: 767px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .topbar .topbar-left span:not(:first-child) { display: none; }
  .header-inner { height: 60px; }
}
