/* ================================================
   NAVBAR FINAL
================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: black;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);

  display: flex;
  align-items: center;
  justify-content: flex-start;

  height: 64px;
  padding: 0 2rem;

  position: relative;
  flex-wrap: nowrap; /* ðŸ”¥ garante base correta */
}

.navbar .nav-cart {
  margin-left: auto;
}

/* âŒ REMOVIDO: quebrava o layout */
/* .navbar .nav-cart { margin-left: auto; } */

/* CENTRO (DESKTOP) */
.navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 3rem;
}

/* LOGO */
.nav-brand {
  position: relative;
}

.nav-brand img {
  height: 40px;
}

/* MENU */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size:1.25rem;
}

/* LINKS */
.nav-links a {
  position: relative;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

/* HOVER */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgb(34,255,0);
  transition: .25s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* CARRINHO */
.nav-cart {
  position: relative;
  background: #006437;
  color: white;
  font-weight: bold;
  padding: .5rem 1.1rem;
  border-radius: 2px;
  text-decoration: none;
  transition: .2s;
  white-space: nowrap;
}

.nav-cart:hover {
  background: rgb(34,255,0);
  color: #006437;
}

/* BADGE */
.badge {
	position: absolute;
	top: -6px;
	right: -6px;
	background: red;
	color: white;
  font-size: 1.0rem;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #c40000;
  font-weight: bold;
}

/* BOTÃƒO MOBILE */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

/* ================================================
   MOBILE
================================================ */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    order: 1; /* esquerda */
  }

  .navbar {
    flex-wrap: nowrap !important; /* ðŸ”¥ nunca quebra */
    position: relative;
  }

  /* ðŸ”¥ LOGO CENTRAL REAL */
  .nav-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* ðŸ”¥ CARRINHO DIREITA */
  .nav-cart {
    order: 3;
  }

  /* âŒ REMOVE CENTRAL ANTIGO QUE QUEBRAVA */
  .navbar-center {
    display: contents;
  }

  /* MENU MOBILE */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: black;
    position: absolute;
    top: 45px;
    left: 0;
	line-height:normal 1px solid color:#FFF;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 0 10px; 
  }
}
