/* Top bar perfil */
.perfil-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #000;
  position: sticky;
  top: 0;
  z-index: 100;
}

.perfil-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.perfil-voltar-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.perfil-voltar-btn svg,
.perfil-voltar-btn svg path {
  stroke: #fff !important;
  color: #fff !important;
}

.perfil-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.perfil-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.perfil-avatar i {
  width: 28px;
  height: 28px;
  color: #fff;
}

.perfil-username {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.perfil-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.perfil-top-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  background: none;
  border: none;
}

.header-basket .basket-icon {
  width: 24px;
  height: 24px;
  color: #FFB800;
  stroke-width: 2;
}

.header-basket .basket-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}

.header-notificacoes {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
}

.header-notificacoes i,
.header-notificacoes svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.header-notificacoes .notificacoes-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  background: #ff0000;
  color: #fff !important;
  font-size: 10px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

/* Conteúdo */
.perfil-page {
  padding: 0;
  max-width: none;
  margin: 0;
}

.page-perfil .perfil-page {
  padding-top: 0.25rem;
}

body.page-perfil {
  padding-top: 0;
}

@media screen and (max-width: 1023px) {
  .page-perfil .perfil-page {
    padding-top: 0.25rem;
  }

  body.page-perfil {
    padding-top: 0;
  }

  .perfil-header {
    margin-bottom: 0.75rem;
  }
}

@media screen and (min-width: 1024px) {
  .perfil-top-bar {
    display: none;
  }
}

/* Opções de perfil */
.perfil-opcoes {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
}

.perfil-opcao {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.12s ease;
}

.perfil-opcao:last-child {
  border-bottom: none;
}

.perfil-opcao:active {
  background: #f9f9f9;
}

.perfil-opcao i:first-child {
  width: 22px;
  height: 22px;
  color: #555;
  flex-shrink: 0;
}

.perfil-opcao span {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.perfil-opcao-seta {
  width: 18px;
  height: 18px;
  color: #ccc !important;
  flex-shrink: 0;
}
