/* Site header: the frosted bar over every shop page — the shop's name or
   logo on the left, the page's one call to action on the right. */
.site-header {
  align-items: center;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  background: color-mix(in oklch, var(--color-surface-0) 78%, transparent);
  border-block-end: var(--border-width) solid color-mix(in oklch, var(--color-subtle) 60%, transparent);
  color: var(--color-text);
  display: flex;
  gap: var(--space-s);
  inline-size: 100%;
  justify-content: space-between;
  min-block-size: 4rem;
  padding-inline: var(--gutter);
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-nav);
}

.site-header__brand {
  align-items: center;
  color: var(--color-text);
  display: flex;
  font-size: var(--step-0);
  font-weight: var(--weight-semibold);
  gap: var(--space-xs);
  min-inline-size: 0;
  text-decoration: none;
}

.site-header__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header__logo {
  block-size: 2.5rem;
  border-radius: var(--radius-s);
  inline-size: auto;
  max-inline-size: 10rem;
  object-fit: contain;
}

/* Once the checkout dock is up it carries the purchase, so the header's
   button steps back and the page asks for one thing at a time */
body:has(.checkout-bar--visible) .site-header .button[data-variant="primary"] {
  --button-bg: var(--color-surface-2);
  --button-bg-hover: var(--color-surface-3);
  --button-fg: var(--color-text);

  filter: none;
}
