/* MOBILE */
@media(max-width:900px) {

  .menu-toggle {
    display: block;
  }

  .nav-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    /* limite opcional pra não ficar gigante em telas maiores */
    height: 100%;
    background: #0a0a0a;
    border-left: 1px solid #1f1f1f;
    padding: 20px 16px;
    box-sizing: border-box;
    transform: translateX(100%);
    /* escondido */
    transition: transform 0.3s ease;

  }

  .nav-right.active {
    transform: translateX(0);
    /* aparece */
  }

  .nav-right ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav-right a {
    font-size: 16px;
  }

}

/* DRAWER */
.drawer-header {
  display: none;
}

@media(max-width:900px) {
  .drawer-header {
    display: block;
  }
}

.drawer-header h2 {
  color: #de3902;
  font-size: 20px;
}

.drawer-header p {
  color: #aaa;
  font-size: 13px;
}

/* MENU */
.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;

}

.drawer-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: 0.2s;
}

.drawer-menu li a:hover {
  background: #1a1a1a;
}

.drawer-menu i {
  font-size: 18px;
  color: #de3902;
}

.drawer-menu span {
  font-size: 15px;
}

/* FOOTER */
.drawer-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid #1f1f1f;
}

/* LOGIN */
.drawer-login {
  display: block;
  text-align: center;
  background: #de3902;
  padding: 6px 10px;
  /* ↓ altura menor */
  font-size: 14px;
  /* ↓ texto menor */
  width: 100px;
  height: 100%;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  margin-top: 10px;
  transition: 0.2s;
}

.drawer-login:hover {
  transform: scale(1.03);
}

/* LOGOUT */
.drawer-logout {
  margin-top: 10px;
  margin: 10px 0;
  padding: 6px 10px;
  /* ↓ altura menor */
  font-size: 14px;
  /* ↓ texto menor */
  width: 100px;
  height: 100%;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  box-sizing: border-box;

}

.drawer-logout:hover {
  background: #222;
}

/* NAV MOBILE GRID */
@media(max-width:900px) {

  nav {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
  }

  .nav-left {
    display: flex;
    justify-content: flex-start;
  }

  .logo {
    text-align: center;
    width: 100%;
  }

  .nav-actions {
    display: flex;
    justify-content: flex-end;
  }

  .menu-toggle {
    display: block;
  }

.btn-login,
#userArea {
  display: none !important;
}

/* 👇 deixa o carrinho visível */
.btn-fav {
  display: block !important;
}


  .nav-right {
    display: block;
  }

  nav>.nav-right .menu-desktop {
    display: none;
  }

  .nav-right.active .menu-desktop {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

}

@media(max-width:900px) {

  .logo {
    grid-column: 2;
    justify-self: center;
  }

  .nav-left {
    grid-column: 1;
  }

  .nav-actions {
    grid-column: 3;
  }

}

/* USER */
#drawerUserArea {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.drawer-user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #de3902;
  font-size: 18px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.guest-text {
  font-size: 12px;
  color: #aaa;
}

/* DIVISOR */
.drawer-header {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 15px;
}

/* HOVER FIX */
.drawer-login:hover {
  background: #ff4d1a;
  color: #fff !important;
}

