/* ─── O'nigiri chrome: ONE source for the site AND the shop ────────────────
   The navbar and footer are the shared BrandNavbar / BrandFooter on both
   onigiri.ordexa.rs and the marketplace shop. This file styles them, and both
   load it: the site through _document.tsx, the shop through
   marketplace.branding.chromeCssUrls (provision-onigiri.ts). Change it here and
   the two headers stay identical. Literal colours on purpose: the shop has
   the theme map, not this site's palette tokens. */

/* Bar height = the site's tall bar (64px phone / 80px desktop); the shop's
   sticky category slider reads these to sit flush under it. */
:root {
  --shop-nav-h: 64px;
  --shop-nav-h-lg: 80px;
}
nav[data-scroll-offset] .h-12 {
  height: 64px;
}
nav[data-scroll-offset] .h-14 {
  height: 80px;
}
/* No SR/EN utility strip: the site has none. */
div:has(+ nav[data-scroll-offset]) {
  display: none;
}
nav[data-scroll-offset] {
  background: #0e0e0e;
  border-bottom: 1px solid #2a2a2a !important;
}

/* Logo: their real glyphs + wordmark as a white horizontal lockup. */
nav[data-scroll-offset] a[aria-label="O'nigiri"] {
  width: 170px;
}
@media (min-width: 1024px) {
  nav[data-scroll-offset] a[aria-label="O'nigiri"] {
    width: 230px;
  }
}

/* Links: Tenor Sans spaced caps (the logo's lettering), white, the red
   underline when active. */
nav[data-scroll-offset] .ow-nav-link {
  /* The site defines --font-label; the shop does not, it loads 'Tenor Sans'
     itself (apps/shop/public/fonts/onigiri.css). */
  font-family: var(--font-label, 'Tenor Sans', sans-serif);
  font-size: 14px;
  color: #ffffff;
  position: relative;
  padding-block: 6px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
nav[data-scroll-offset] .ow-nav-link:hover {
  color: #e0262b;
}
nav[data-scroll-offset] .ow-nav-link.text-foreground,
nav[data-scroll-offset] .ow-nav-link[aria-current='page'] {
  color: #ffffff;
  font-weight: 400;
}
nav[data-scroll-offset] .ow-nav-link.text-foreground::after,
nav[data-scroll-offset] .ow-nav-link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: #e0262b;
}
@media (min-width: 1024px) {
  nav[data-scroll-offset] > div:first-child > div:last-child {
    gap: 40px;
  }
}

/* "Prijavi se": a quiet outline, secondary to ordering; the filled wine-red
   button is kept for "Poruči online" only. */
nav[data-scroll-offset] .ow-auth-entry {
  border-color: #3a3a3a;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
}
nav[data-scroll-offset] .ow-auth-entry:hover {
  background: transparent;
  border-color: #e0262b;
  color: #e0262b;
}
/* "Prijavi se" as a plain text link at every width, so it never competes
   with the red "Poruči online" next to it. */
nav[data-scroll-offset] .ow-auth-entry {
  border-color: transparent;
  padding-inline: 8px;
  color: #c5c5c5;
  font-weight: 500;
}
/* Mobile menu toggle and sheet on the dark bar. */
nav[data-scroll-offset] button {
  color: #ffffff;
}

/* Footer: dark, one step up from the page (BrandFooter paints night + milk). */
footer {
  --color-night: #0e0e0e;
  --color-milk: #ffffff;
  --primary: #e0262b;
  border-top: 1px solid #2a2a2a;
}
footer a[aria-label="O'nigiri"] {
  width: auto;
}
footer a[aria-label="O'nigiri"] img {
  width: 200px;
  height: auto;
}
