.site-header {
  position: absolute;
  z-index: 10;

  top: 0;
  left: 0;

  width: 100%;

  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;

  padding: 20px 32px;
}

.logo {
  width: 64px;
  display: block;
}

.logo img {
  width: 100%;
  display: block;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 42px;

  font-size: 13px;
  letter-spacing: .04em;
}

.header-actions {
  display: flex;
  gap: 20px;
}

.header-actions button,
.header-actions a {
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  line-height: 0;
}

.header-actions svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.header-actions form {
  display: contents;
}

.nav-toggle {
  display: none;
}

.mobile-nav {
  display: none;
}

.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;

  min-width: 16px;
  padding: 1px 5px;
  border-radius: 999px;

  background: var(--oxblood);
  color: var(--white);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 768px) {

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;

    background: var(--black);
    border-top: 1px solid var(--line);

    transition: max-height .25s ease;
  }

  .mobile-nav.open {
    max-height: 300px;
  }

  .mobile-nav a {
    padding: 16px 24px;

    border-bottom: 1px solid var(--line);

    font-family: monospace;
    font-size: 13px;
    letter-spacing: .04em;
  }
}
