/* Anahata v2 — header. Figma: Home header (search + cart) / Navbar (wordmark). */

.a-header {
  background: rgb(var(--color-background));
  padding-block: var(--a-space-3);
}

.a-header--sticky {
  position: sticky;
  top: 0;
  z-index: 20;
}

.a-header__inner {
  display: flex;
  align-items: center;
  gap: var(--a-space-3);
}

.a-header__cart {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--a-icon-btn-size);
  height: var(--a-icon-btn-size);
  border-radius: var(--a-radius);
  background: var(--a-tan);
  color: var(--a-surface);
  text-decoration: none;
}

.a-header__cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--a-radius-round);
  background: var(--a-danger);
  color: var(--a-surface);
  font-family: var(--a-font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

/* wordmark variant (Navbar): centered wordmark, search on its own row below */
.a-header__wordmark {
  flex: 1 1 auto;
  font-family: var(--a-font-display);
  font-size: var(--a-fs-display-l);
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--a-ink);
  text-decoration: none;
}

.a-header__search {
  margin-top: var(--a-space-3);
}

/* From 990px the desktop header (sections/site-header) replaces the phone
   search bar; its search icon opens /search. */
@media screen and (min-width: 990px) {
  .a-header {
    display: none;
  }
}
