/* =======================================================
   HEADER GLOBAL
======================================================= */

.topbar {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container-topbar {
  width: 100%;
  max-width: 1300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  margin: 0 auto;
}


/* =======================================================
   LOGO
======================================================= */

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 55px;
  width: auto;
}


/* =======================================================
   MENU (DESKTOP)
======================================================= */

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-size: 16px;
  font-weight: 500;
}


/* =======================================================
   ÍCONES DIREITA
======================================================= */

.right-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-btn {
  font-size: 22px;
  color: #222;
  text-decoration: none;
  padding: 6px;
  transition: transform .2s ease, color .2s ease;
  position: relative; /* necessário p/ badge */
}

.icon-btn:hover {
  transform: scale(1.12);
  color: #7b2cbf;
}

/* 🔥 Badge do Carrinho */
.carrinho-btn {
  position: relative;
}

.carrinho-count {
  position: absolute;
  top: -6px;
  right: -8px;

  background: #e63946; /* Vermelho flat */
  color: #fff;

  font-size: 0.70rem;
  font-weight: 700;

  padding: 2px 6px;
  border-radius: 50%;

  min-width: 18px;
  display: flex;
  justify-content: center;
  align-items: center;

  line-height: 1;
}


/* =======================================================
   HAMBURGUER (MOBILE)
======================================================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 3px;
}


/* =======================================================
   OVERLAY
======================================================= */

.overlay {
  display: none;
}

.close-menu {
  display: none;
}


/* =======================================================
   MOBILE MENU STYLE (ESTILO WOOK)
======================================================= */

@media (max-width: 900px) {

  .close-menu {
    display: block;
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 34px;
    font-weight: 300;
    color: #333;
    cursor: pointer;
  }

  .hamburger {
    display: flex;
  }

  .logo-img {
    height: 42px;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .right-icons {
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    width: 280px;
    background: #fff;
    padding: 20px;
    padding-top: 70px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: left .3s ease;
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  }

  .nav-links a {
    width: 100%;
    padding: 18px 0;
    font-size: 20px;
    font-weight: 500;
    color: #222;
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
    letter-spacing: .5px;
  }

  .nav-links.open {
    left: 0;
  }

  .close-menu {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 34px;
    font-weight: 300;
    color: #333;
    cursor: pointer;
  }

  .overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
  }
}
