.nav > .nav-links,
.nav > .privacy-header-links { margin-left: auto; }
.nav > .header-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--sky);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.header-cart:hover { border-color: var(--primary-dark); }
.header-cart:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; }
.header-cart svg { width: 20px; height: 20px; flex: 0 0 auto; }
.header-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.header-cart-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#cart { scroll-margin-top: 6rem; }

@media (max-width: 1040px) {
  .nav { gap: 0.75rem; }
  .nav > .header-cart { margin-left: auto; }
  .nav > .menu-toggle { display: grid; order: 1; flex: 0 0 auto; }
  .nav > .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 4%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(19, 33, 61, 0.08);
  }
  .nav > .nav-links.open { display: flex; }
  .nav-links a, .nav-button { text-align: left; }
}
@media (max-width: 600px) {
  .privacy-page .nav > .privacy-header-links { order: 1; width: 100%; margin-left: 0; }
}
@media (max-width: 420px) {
  .nav { gap: 0.5rem; }
  .header-cart-label { display: none; }
}
