/* ══════════════════════════════════════════════════════════════════════
   URSO — header + announcement bar + menu-aside
   ══════════════════════════════════════════════════════════════════════ */

/* ── Announcement bar ─────────────────────────────────────────────── */
.announcement-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: 1.3rem;
  padding: 0.8rem 1rem;
  background-color: #f6c500;
  height: auto;
  min-height: 38px;
  z-index: 100;
}
.announcement-bar__message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  min-height: 1.6rem;
}
.announcement-bar__text {
  font-family: var(--font-body-family);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: #090707;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Announcement bar em slide (marquee infinito) ──────────────────── */
.announcement-bar--slide {
  overflow: hidden;
}
.announcement-bar--slide .announcement-bar__track {
  display: flex;
  width: max-content;
  animation: urso-announce-loop 22s linear infinite;
}
.announcement-bar--slide .announcement-bar__group {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
  white-space: nowrap;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: #090707;
}
.announcement-bar--slide .announcement-bar__cell {
  display: inline-flex;
  align-items: center;
}
.announcement-bar--slide .announcement-bar__dot {
  color: #090707;
  opacity: .55;
  font-weight: 700;
}
@keyframes urso-announce-loop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-bar--slide .announcement-bar__track { animation: none; }
}

/* ── Header sticky ────────────────────────────────────────────────── */
.sticky-header {
  position: relative;
  z-index: 50;
}
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #090707;
  border-bottom: 1px solid #262424;
}
.header {
  font-family: var(--font-header-menu-family);
  font-style: var(--font-header-menu-style);
  color: #ffffff;
}
.header__first-level-wrapper,
.header__second-level.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}
.header__second-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.header__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.header__heading {
  margin: 0;
  line-height: 1;
}
.header__heading-link {
  display: inline-flex;
  align-items: center;
}
.header__heading-logo {
  display: block;
  width: 145px;
  height: auto;
}
/* Header dark: logo claro */
.header-wrapper .header__heading-logo { display: block; }

/* ── Menu principal (desktop) ─────────────────────────────────────── */
.urso-header-main-menu {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.urso-header-main-menu > .list-menu--inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.list-menu { list-style: none; padding: 0; margin: 0; }
.list-menu--inline { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.list-menu__item { display: flex; align-items: center; }

.header__menu-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  font-family: var(--font-body-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #ffffff;
  text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease;
}
.header__menu-item:hover { color: #f6c500; }

/* ── Icons (Entrar + carrinho) ────────────────────────────────────── */
.header__icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.header__icons-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  text-decoration: none;
  position: relative;
}
.header__icon:hover { color: #f6c500; }
.header__icon svg { display: block; }
.header__cart { position: relative; }

/* Badge do carrinho */
.ucart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f6c500;
  color: #090707;
  font: 900 10px/18px var(--font-body-family);
  text-align: center;
  display: none;
}
.ucart-badge.is-show { display: block; }

/* ── Burger / menu-drawer (mobile) ────────────────────────────────── */
header-drawer { flex-shrink: 0; display: none; align-items: center; }
@media screen and (max-width: 989px) {
  header-drawer { display: flex; }
  .urso-header-main-menu { display: none; }
  .header__second-level { min-height: 60px; gap: 8px; }
  .header__heading-logo { width: 118px; }
}

/* Menu drawer mobile */
.menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #090707;
  color: #ffffff;
  visibility: hidden;
}
.menu-drawer.is-open { visibility: visible; }
.menu-drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(5,4,3,.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.menu-drawer__overlay.is-open { opacity: 1; visibility: visible; }
.menu-drawer__panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(360px, 92vw);
  z-index: 2001;
  background: #090707;
  color: #fff;
  transform: translateX(-100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}
.menu-drawer.is-open .menu-drawer__panel { transform: translateX(0); }
.menu-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
}
.menu-drawer__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: none;
  border: 0;
}
.menu-drawer__menu { list-style: none; margin: 0; padding: 0 12px; }
.menu-drawer__menu li { border-bottom: 1px solid #262424; }
.menu-drawer__menu-item {
  display: flex;
  align-items: center;
  padding: 16px 10px;
  color: #ffffff;
  font-family: var(--font-body-family);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.menu-drawer__menu-item:hover { color: #f6c500; }
.menu-drawer__utility-links { padding: 18px 22px; }
.menu-drawer__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 999px;
  background: #f6c500;
  color: #090707;
  font: 900 13px/1 var(--font-body-family);
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── Header sticky ao rolar ───────────────────────────────────────── */
body.urso-scrolled .header-wrapper { box-shadow: 0 6px 24px rgba(0,0,0,.45); }

/* ── Container do topo ────────────────────────────────────────────── */
.ursor-topbar { display: none; }

/* ═══════ Menu centralizado com pill na aba ativa ═══════ */
/* três colunas: logo | menu (centro) | ícones */
.header__second-level > .header__left { flex: 1 1 0; min-width: 0; }
.header__second-level > .header__icons { flex: 1 1 0; display: flex; justify-content: flex-end; }

.header__nav {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.header__nav .list-menu--inline {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__nav .header__menu-item {
  position: relative;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  white-space: nowrap;
}

.header__nav .header__menu-item:hover {
  background: rgba(246, 197, 0, .12);
  color: #f6c500;
}

/* aba aberta = pill amarelo */
.header__nav .header__menu-item.is-active,
.header__nav .header__menu-item[aria-current="page"] {
  background: #f6c500;
  color: #0d0b09;
  font-weight: 800;
}
.header__nav .header__menu-item.is-active:hover { background: #ffd52b; color: #0d0b09; }

/* em telas médias o menu do meio sai (fica o drawer do hambúrguer) */
@media (max-width: 1099px) {
  .header__nav { display: none; }
  .header__second-level > .header__left,
  .header__second-level > .header__icons { flex: 0 0 auto; }
}
