/* Global Zenith dock navbar — mobile bar + desktop rail */

:root {
  --zv-dock-w: 5.35rem;
  --zv-dock-void: #04151A;
  --zv-dock-pearl: #EEF6F4;
  --zv-dock-chart: #B6D11D;
  --zv-dock-flash: #E85A2E;
  --zv-dock-teal: #14B89F;
  --zv-dock-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --zv-dock-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
}

html:has(body.zv-dock-pad),
body.zv-dock-pad {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

body.zv-dock-pad {
  padding-left: 0;
  padding-bottom: 5.85rem;
  box-sizing: border-box;
}

@media (min-width: 960px) {
  body.zv-dock-pad {
    padding-left: calc(var(--zv-dock-w) + 1.1rem);
    padding-bottom: 0;
  }
}

/* Outer shell */
nav.zv-dock {
  position: fixed;
  z-index: 1200;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--zv-dock-display);
  opacity: 1;
  transform: none;
}

nav.zv-dock.is-up {
  opacity: 1;
  transform: none;
}

/* ——— Mobile bottom bar ——— */
.zv-dock-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1201;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.2rem;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0.4rem 0.35rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  background: rgba(4, 21, 26, 0.97);
  border-top: 1px solid rgba(238, 246, 244, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.zv-dock-rail {
  display: none;
}

@media (min-width: 960px) {
  .zv-dock-bar {
    display: none !important;
  }

  .zv-dock-rail {
    position: fixed;
    left: 0.85rem;
    top: 50%;
    bottom: auto;
    right: auto;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    width: var(--zv-dock-w);
    max-width: var(--zv-dock-w);
    padding: 0.55rem 0.35rem 0.6rem;
    box-sizing: border-box;
    background: rgba(4, 21, 26, 0.94);
    border: 1px solid rgba(238, 246, 244, 0.14);
    border-radius: 0.85rem;
    transform: translateY(-50%);
    box-shadow: 0 18px 40px rgba(4, 21, 26, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

/* Brand (desktop) */
.zv-dock-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 3rem;
  padding: 0.4rem 0.25rem;
  text-decoration: none;
  color: var(--zv-dock-pearl);
  border-radius: 0.45rem;
  margin-bottom: 0.15rem;
  transition: background 0.2s ease;
}

.zv-dock-brand em {
  font-family: var(--zv-dock-display);
  font-style: normal;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--zv-dock-chart);
}

.zv-dock-brand strong {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(238, 246, 244, 0.78);
}

.zv-dock-brand:hover,
.zv-dock-brand.is-on {
  background: rgba(20, 184, 159, 0.2);
}

/* Links */
.zv-dock-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.4rem 0.2rem;
  box-sizing: border-box;
  font-family: var(--zv-dock-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.1;
  color: rgba(238, 246, 244, 0.94);
  border-radius: 0.45rem;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.zv-dock-bar .zv-dock-link {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
  font-size: 0.65rem;
}

.zv-dock-link:hover {
  color: #fff;
  background: rgba(238, 246, 244, 0.12);
}

.zv-dock-link.is-on {
  color: var(--zv-dock-void);
  background: var(--zv-dock-chart);
}

.zv-dock-link.is-on:hover {
  color: var(--zv-dock-void);
  background: #c5e03a;
}

.zv-dock-link:focus-visible {
  outline: 2px solid var(--zv-dock-chart);
  outline-offset: 2px;
}

@media (min-width: 960px) {
  .zv-dock-rail .zv-dock-link {
    width: 100%;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .zv-dock-rail .zv-dock-link:hover,
  .zv-dock-rail .zv-dock-link.is-on:hover {
    transform: translateX(2px);
  }
}

/* Cart badge */
.zv-dock-cart em {
  position: absolute;
  top: 0.2rem;
  right: 0.3rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: var(--zv-dock-flash);
  color: #fff;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1rem;
  text-align: center;
  box-shadow: 0 0 0 1.5px rgba(4, 21, 26, 0.85);
}

.zv-dock-cart em[hidden] {
  display: none !important;
}

/* Seek (desktop) */
.zv-dock-seek {
  width: 100%;
  margin: 0.35rem 0 0;
}

.zv-dock-seek input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(238, 246, 244, 0.32);
  border-radius: 0.35rem;
  background: rgba(238, 246, 244, 0.14);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.2rem;
  text-align: center;
  outline: none;
  font-family: inherit;
  caret-color: #fff;
}

.zv-dock-seek input::placeholder {
  color: rgba(238, 246, 244, 0.82);
  opacity: 1;
  font-weight: 700;
}

.zv-dock-seek input:focus {
  background: rgba(20, 184, 159, 0.32);
  border-color: var(--zv-dock-chart);
}

.zv-dock-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 959px) {
  body.zv-dock-pad .vb-dock {
    bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .zv-dock-link,
  .zv-dock-brand {
    transition: none !important;
  }
}
