/* ============================================================
   Appily Ninetythree — Clean Corporate chrome (Direction 6)
   Solid white bar + subtle shadow + far-right CTA (in-flow, not fixed)
   ============================================================ */

.a93-top {
  position: relative;
  z-index: 600;
  height: var(--nav-h, 4.25rem);
  background: #FFFFFF;
  box-shadow: var(--shadow-nav);
  font-family: var(--font-display);
}
.a93-top-inner {
  width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.a93-top a { text-decoration: none !important; }

.a93-top-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  flex-shrink: 0;
}
.a93-top-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
.a93-top-word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.a93-top-word em {
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
}
.a93-top-word strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.a93-top-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}
.a93-top-nav a {
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.a93-top-nav a:hover,
.a93-top-nav a.is-active {
  color: var(--color-primary);
  background: rgba(11, 95, 255, 0.08);
}
.a93-top-nav a:focus-visible,
.a93-top-brand:focus-visible,
.a93-top-cart:focus-visible,
.a93-top-cta:focus-visible,
.a93-top-toggle:focus-visible,
.a93-top-drawer a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.a93-top-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}
.a93-top-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--color-border);
}
.a93-top-cart:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.a93-top-cart-count {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #1E1E2F;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.a93-top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(11, 95, 255, 0.28);
}
.a93-top-cta:hover {
  background: var(--color-primary-hover);
  color: #fff !important;
}

.a93-top-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.a93-top-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--color-text);
  position: relative;
}
.a93-top-toggle span::before,
.a93-top-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
}
.a93-top-toggle span::before { top: -5px; }
.a93-top-toggle span::after { top: 5px; }

/* Mobile drawer — drops below in-flow header */
.a93-top-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 599;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-nav);
  padding: 0.75rem 1.25rem 1.1rem;
}
.a93-top.is-open .a93-top-drawer { display: block; }
.a93-top-drawer a {
  display: block;
  padding: 0.7rem 0.35rem;
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none !important;
}
.a93-top-drawer a:last-child { border-bottom: 0; }
.a93-top-drawer a.is-active { color: var(--color-primary); }

@media (max-width: 960px) {
  .a93-top-nav { display: none; }
  .a93-top-toggle { display: inline-flex; }
  .a93-top-word em { display: none; }
}
@media (max-width: 520px) {
  .a93-top-cta { display: none; }
}

/* Legacy sawtooth selectors — hide if any leftover markup */
.a93-saw,
.a93-arc-fan,
.a93-fold,
.a93-pennant-rail,
.a93-axis-corner { display: none !important; }
