/* Header + announce bar.
   Built from the nav spec in design_handoff_polymer_and_pine/README.md
   (§Homepage item 2) — Shopify used stock Dawn here, so there was no pp-*
   section to port. Mobile drawer is new; the mocks were desktop-only. */

.pp-announce {
  background: var(--pine-900);
  color: var(--amber);
  padding: 10px 20px;
  font-size: 13px;
  text-align: center;
}
.pp-announce__sep { opacity: 0.6; margin: 0 10px; }

.pp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: var(--bone-50);
  position: relative;
}

.pp-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pine-900);
  flex-shrink: 0;
}
.pp-nav__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--pine-900);
  color: var(--bone-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pp-nav__wordmark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pp-nav__links {
  display: flex;
  gap: 24px;
}
.pp-nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.pp-nav__link:hover { color: var(--pine-900); }
.pp-nav__link.is-current {
  color: var(--pine-900);
  border-bottom-color: var(--pine-900);
}

.pp-nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pp-nav__icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bone-300);
  background: transparent;
  color: var(--pine-900);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s;
}
.pp-nav__icon-btn:hover { background: var(--bone-200); }

.pp-nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pine-900);
  color: var(--bone-50);
  padding: 11px 18px;
  border-radius: var(--pp-r-btn);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.pp-nav__cart-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* Mobile toggle — hidden on desktop */
.pp-nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bone-300);
  background: transparent;
  color: var(--pine-900);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.pp-nav__burger span {
  display: block;
  width: 16px; height: 2px;
  background: currentColor;
  position: relative;
}
.pp-nav__burger span::before,
.pp-nav__burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px; height: 2px;
  background: currentColor;
}
.pp-nav__burger span::before { top: -5px; }
.pp-nav__burger span::after  { top: 5px; }

@media (max-width: 900px) {
  .pp-nav { padding: 14px 20px; }
  .pp-nav__burger { display: inline-flex; }
  .pp-nav__icon-btn--search { display: none; }

  .pp-nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bone-50);
    border-top: 1px solid var(--bone-300);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    padding: 8px 20px 16px;
    z-index: 20;
  }
  /* Collapsed by default so the menu never flashes open before JS runs.
     .is-open is toggled by pp-header.js. */
  .pp-nav__links { display: none; }
  .pp-nav__links.is-open { display: flex; }
  .pp-nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--bone-200);
    font-size: 16px;
  }
  .pp-nav__link.is-current { border-bottom-color: var(--bone-200); }
}
