/* Barra de navegación de la tienda para el personal.
   Se coloca bajo el encabezado del panel, con un tono claro que la separa de
   él: deja ver que a partir de ahí empieza la tienda. */
.store-staff-bar {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 75, 206, .18);
  background: linear-gradient(180deg, #fff6fc, #fffdfe);
}

.store-staff-bar__inner {
  width: min(100% - 2rem, 1400px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  padding: .7rem 0;
}

.store-staff-bar__hint {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  color: #a3187f;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.store-staff-bar__nav {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.store-staff-bar__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .45rem .85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #54384c;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.store-staff-bar__link i { color: #ff4bce; font-size: .85rem; }

.store-staff-bar__link:hover,
.store-staff-bar__link:focus-visible {
  background: #fff;
  border-color: rgba(255, 75, 206, .35);
  color: #a3187f;
  outline: none;
}

.store-staff-bar__link:focus-visible {
  outline: 3px solid rgba(255, 75, 206, .32);
  outline-offset: 2px;
}

.store-staff-bar__link.is-active {
  background: #ff4bce;
  border-color: #ff4bce;
  color: #fff;
}

.store-staff-bar__link.is-active i { color: #fff; }

/* En pantallas estrechas la barra se desplaza de lado en vez de amontonarse,
   y el aviso ocupa su propia línea para no comerse el espacio de los enlaces. */
@media (max-width: 900px) {
  .store-staff-bar__inner { flex-direction: column; align-items: stretch; gap: .5rem; }
  .store-staff-bar__hint { justify-content: center; }
  .store-staff-bar__nav {
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .15rem;
    /* Sin esto un elemento flexible no baja de lo que mide su contenido: los
       siete enlaces en una fila ensanchaban la página entera en vez de
       desplazarse dentro de la barra. */
    min-width: 0;
    max-width: 100%;
  }
  .store-staff-bar__nav::-webkit-scrollbar { display: none; }
  .store-staff-bar__link { min-height: 44px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .store-staff-bar__link { transition: none; }
}
