/* ================================================================
   B360 Navigation Bar — [b360_nav] shortcode
   Uses design tokens from b360-bridge.css (tokens.css)
   ================================================================ */

.b360-nav {
  margin: 0;
  padding: var(--b360-space-xs, 0.5rem) 0;
}

.b360-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--b360-space-xs, 0.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.b360-nav__item {
  margin: 0;
}

.b360-nav__link {
  display: inline-block;
  padding: var(--b360-space-xs, 0.5rem) var(--b360-space-sm, 0.75rem);
  font-family: var(--b360-font-body, sans-serif);
  font-size: var(--b360-text-sm, 0.875rem);
  font-weight: 500;
  color: var(--b360-color-text, #1a1a1a);
  text-decoration: none;
  border-radius: var(--b360-radius-sm, 4px);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.b360-nav__link:hover,
.b360-nav__link:focus-visible {
  background-color: var(--b360-color-surface-hover, #f5f5f5);
  color: var(--b360-color-primary, #8b1a2b);
  text-decoration: none;
}

.b360-nav__item--active .b360-nav__link {
  color: var(--b360-color-primary, #8b1a2b);
  font-weight: 600;
}

/* Cart item count badge */
.b360-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin-left: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background-color: var(--b360-color-primary, #8b1a2b);
  border-radius: 999px;
  vertical-align: middle;
}

/* ----------------------------------------------------------------
   Responsive breakpoints
   Tablet: tighten spacing and font-size; the nav still fits on one
   row at ~768px, but the theme title ("Bottle360 Bridge") on the
   left can push items off-edge without these adjustments.
   Phone: collapse gap to zero, shrink link padding, allow wrap to
   two rows instead of overlapping the WordPress header/status bar.
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .b360-nav__list {
    gap: 0.25rem;
    justify-content: flex-start;
  }
  .b360-nav__link {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .b360-nav {
    padding: 0.25rem 0;
  }
  .b360-nav__list {
    gap: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }
  .b360-nav__link {
    padding: 0.375rem 0.375rem;
    font-size: 0.75rem;
  }
  .b360-nav__badge {
    min-width: 1rem;
    height: 1rem;
    font-size: 0.625rem;
    margin-left: 0.25rem;
  }
}
