.product-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-column: 1 / -1;
  grid-row: auto;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--ink, #171b22);
  background: rgba(250, 251, 248, 0.97);
}

.product-brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
  color: var(--ink, #171b22);
  gap: 9px;
  text-decoration: none;
  grid-column: auto;
  grid-row: auto;
  margin: 0;
}

.product-brand img {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.product-brand .brand-name,
.product-brand .wordmark-name,
.product-brand > span:first-of-type {
  display: inline-block;
  font-family: "Unbounded", "Segoe UI Variable", Aptos, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1;
}

.product-brand .brand-section,
.product-brand .wordmark-section { display: none; }

.product-nav {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  border: 0;
  grid-column: auto;
  grid-row: auto;
  width: auto;
  margin: 0;
}

.product-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--rule-dark, #727b83);
  color: var(--ink, #171b22);
  background: var(--paper-bright, #fafbf8);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 760;
  text-decoration: none;
  text-transform: uppercase;
}

.product-nav a:last-child { border-right: 1px solid var(--rule-dark, #727b83); }

.product-nav a:hover,
.product-nav a:focus-visible {
  color: var(--paper-bright, #fafbf8);
  background: var(--ink, #171b22);
}

.product-nav a[aria-current="page"] {
  color: var(--cobalt-dark, #103a94);
  border-color: var(--cobalt, #174fc9);
  background: var(--cobalt-wash, #dbe5ff);
  box-shadow: inset 0 -3px 0 var(--cobalt, #174fc9);
}

.product-nav a[aria-current="page"]:focus-visible {
  color: var(--paper-bright, #fafbf8);
  background: var(--cobalt-dark, #103a94);
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 8px;
  grid-column: auto;
  grid-row: auto;
  margin: 0;
}

@media (max-width: 900px) {
  .product-header {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 10px 12px 0;
  }

  .product-nav {
    display: grid;
    grid-row: 2;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto;
    min-height: 44px;
    margin: 10px 0 0;
    gap: 0;
    border-top: 1px solid var(--rule, #aeb5b8);
  }

  .product-nav a {
    min-width: 0;
    padding-inline: 4px;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 1px solid var(--rule, #aeb5b8);
    font-size: 10px;
  }

  .product-nav a:first-child { border-left: 0; }
  .product-nav a:last-child { border-right: 0; }
}

@media (max-width: 430px) {
  .product-header { padding-inline: 10px; }
  .product-brand { gap: 7px; }
  .product-brand img { width: 25px; height: 25px; }
  .product-nav { margin-inline: 0; }
  .product-nav a { font-size: 10px; letter-spacing: -0.02em; }
  .product-brand > span:first-of-type { display: inline; }
}
