/* Reset básico */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* HEADER ESTILIZADO */
.header-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.logo-center {
  flex-shrink: 0;
  z-index: 1002;
}

.header-logo {
  height: 70px;
  width: auto;
  transition: transform 0.3s ease;
  display: block;
  cursor: auto;
}

a.ativo .header-logo {
  transform: scale(1.05);
}

.header-logo:hover {
  transform: scale(1.05);
}

.nav-group {
  display: flex;
}

.nav-group ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.left-nav {
  margin-right: auto;
}

.right-nav {
  margin-left: auto;
}

/* Menu hamburger - escondido no desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1003;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.menu-toggle.ativo span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.ativo span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.ativo span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Menu mobile */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;            /* <-- Corrigir aqui */
  width: 100vw;        /* Usa largura total da viewport */
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.98);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  padding-top: 100px;
  overflow-x: hidden;   /* Evita barra horizontal */
}


.mobile-menu.ativo {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.mobile-menu li {
  border-bottom: 1px solid rgba(255, 117, 0, 0.2);
  width: 100%;
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 20px 30px;
  transition: 
    color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  user-select: none;
  display: block;
  width: 100%;
  font-size: 1.2rem;
  text-align: center;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  color: #fbb258;
  background-color: rgba(255, 173, 0, 0.15);
  outline: none;
}

.mobile-menu a.ativo {
  color: #ffad00;
  background-color: rgba(255, 173, 0, 0.3);
  box-shadow: inset 0 0 8px #ffad00;
}

/* Cabeçalho */
header {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 10px 0;
  text-align: center;
  border-bottom: 3px solid #ff7500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Navegação desktop */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 6px;
  transition: 
    color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  user-select: none;
  display: inline-block;
  white-space: nowrap;
}

nav a:hover,
nav a:focus {
  color: #fbb258;
  background-color: rgba(255, 173, 0, 0.15);
  outline: none;
}

nav a.ativo {
  color: #ffad00;
  background-color: rgba(255, 173, 0, 0.3);
  box-shadow: 0 0 8px #ffad00;
  cursor: default;
  pointer-events: none;
}
.destaque {
  color: #fe8a01;
  text-transform: uppercase;
  font-size: 1.2em; /* Ajuste o tamanho conforme necessário */
  font-weight: bold;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.hero-image {
  max-width: 750px;
  width: 100%;
  text-align: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.hero-content {
  text-align: center;
  width: 100%;
  margin-bottom: 50px;
  margin-top: 80px;
}

.hero-content p {
  font-size: 1.4rem;
  color: #fff;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  font-weight: 600;
  margin: 0;
}

/* Conteúdo principal */
main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
}

/* Seções gerais */
section {
  margin-bottom: 2.5rem;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
}

/* Títulos */
h2 {
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  color: #fe8a01;
  text-align: center;
  font-weight: 700;
  user-select: none;
  font-size: 0.5 rem;
}

/* Sobre section */
#sobre {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#sobre p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

/* Loja - Produtos */
.produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
  margin-top: 30px;
}

.produto {
  background-color: rgba(26, 26, 26, 0.9);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(255, 173, 0, 0.2);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  width: 100%;
  box-sizing: border-box;
}

.produto:hover,
.produto:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(255, 173, 0, 0.4);
  outline: none;
}

.produto img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  height: 200px;
  margin-bottom: 15px;
}

.produto h3 {
  margin: 15px 0 10px;
  color: #ffad00;
  font-weight: 700;
  font-size: 1.3rem;
}

.produto p {
  font-size: 1.2rem;
  margin: 15px 0 25px;
  color: #eee;
  font-weight: 700;
}

/* Botões de compra */
.produto button,
.btn-comprar {
  background: linear-gradient(45deg, #ff7500, #ffad00);
  border: none;
  padding: 15px 30px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  user-select: none;
  font-size: 1rem;
  width: auto;
  min-width: 120px;
}

.produto button:hover,
.produto button:focus,
.btn-comprar:hover,
.btn-comprar:focus {
  background: linear-gradient(45deg, #ffad00, #ffc107);
  color: #000;
  outline: none;
  box-shadow: 0 5px 15px rgba(255, 173, 0, 0.5);
  transform: translateY(-2px);
}

/* Rodapé */
footer {
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
  padding: 30px 20px;
  border-top: 3px solid #ff7500;
  margin-top: 50px;
  color: #fff;
  font-size: 0.9rem;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
}

footer p {
  margin-bottom: 10px;
}

footer a {
  color: #ffad00;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
  color: #ffc107;
  text-decoration: underline;
  outline: none;
}

    .user-container {
      position: fixed;
      top: 10px;
      right: 20px;
      display: flex;
      flex-direction: column;
      align-items: flex-end; /* alinhado à direita no desktop */
      gap: 6px;
      z-index: 1000;
    }

 /* Estilos para o botão de login/logout */
    .btn-login-topo {
      position: fixed;
      top: 20px;
      right: 20px;
      background: #ff7500;
      color: white;
      padding: 8px 16px;
      border-radius: 6px;
      text-decoration: none;
      font-weight: bold;
      z-index: 1000;
      border: none;
      cursor: pointer;
      font-size: 14px;
      transition: background-color 0.3s;
    }
    
    .btn-login-topo:hover {
      background: #ffad00;
    }
    
    .user-info {
      position: fixed;
      top: 55px;              /* abaixo do botão */
      right: 20px;            /* canto direito no desktop */
      color: white;
      padding: 2px 2px;
      border-radius: 6px;
      font-size: 14px;
      z-index: 1000;
      display: none;
      text-align: right;
      min-width: 160px;
    }

     /* Responsivo */
    @media (max-width: 900px) {
          .btn-login-topo {
            top: 20px;
            left: 20px;
            right: auto;
          }
          
          .user-info {
            top: 50px;
            left: 20px;
            right: auto;
            width: calc(100% - 40px);
            max-width: 200px;
            text-align: left;
          }
      }

/* Responsividade - Tablet */
@media (max-width: 900px) {
  .header-wrapper {
    padding: 10px 15px;
    gap: 20px;
  }
  
  /* Esconder navegação desktop no mobile */
  .nav-group {
    display: none;
  }
  
  /* Mostrar menu hamburger no mobile */
  .menu-toggle {
    display: block;
  }
  
  /* Mostrar menu mobile */
  .mobile-menu {
    display: block;
  }
  
  .hero {
    gap: 25px;
    margin: 15px;
    padding: 20px;
  }
  
  .hero-image {
    max-width: 100%;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .produtos {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

/* Responsividade - Mobile */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .user-container {
    right: auto;
    left: 20px;
    align-items: flex-start; /* alinhar à esquerda */
  }
  
  .user-info {
    left: 20px;      /* no mobile vai pro canto esquerdo */
    right: auto;
    top: 55px;
    font-size: 12px;
    width: auto;
    max-width: 200px;
  }
  
  .header-wrapper {
    padding: 8px 10px;
    gap: 15px;
  }

  .header-logo {
    height: 50px;
  }
  
  .menu-toggle {
    right: 25px;
    padding: 8px;
  }
  
  main {
    padding: 15px 10px;
  }

  .hero {
    margin: 10px;
    padding: 15px;
    gap: 20px;
  }

  .hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  
  #sobre {
    padding: 20px 15px;
    margin: 20px 0;
  }
  
  #sobre p {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 15px;
  }

  .produtos {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
  }

  .produto {
    padding: 20px 15px;
    margin: 0 auto;
    max-width: 350px;
    width: 100%;
  }

  .produto img {
    height: 180px;
  }
  
  .produto h3 {
    font-size: 1.2rem;
  }
  
  .produto p {
    font-size: 1.1rem;
    margin: 12px 0 20px;
  }
  
  .btn-comprar {
    padding: 12px 25px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 200px;
  }

  footer {
    padding: 25px 15px;
    font-size: 0.85rem;
  }
}

/* Responsividade - Mobile pequeno */
@media (max-width: 480px) {
  .header-logo {
    height: 45px;
  }
  
  .menu-toggle {
    right: 25px;   /* ainda afastado mas proporcional */
    padding: 10px;
  }
  
  main {
    padding: 10px 8px;
  }
  
  .hero {
    margin: 8px;
    padding: 12px;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  #sobre {
    padding: 15px 12px;
  }
  
  .produto {
    padding: 15px 12px;
  }
  
  .mobile-menu {
    padding-top: 80px;
  }
  
  .mobile-menu a {
    padding: 18px 25px;
    font-size: 1.1rem;
  }
}

/* Correções adicionais */
.logo-center a {
  display: block;
  text-decoration: none;
  border: none;
  outline: none;
  cursor: pointer;
}

/* Suaviza a rolagem para o topo */
html {
  scroll-behavior: smooth;
}

/* Esconde a âncora visualmente mas mantém acessível */
#topo {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* Efeito de hover na logo */
.logo-center a:hover .header-logo,
.logo-center a:focus .header-logo {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Estilo para a nova seção Sobre */
.sobre-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.sobre-texto {
  flex: 1;
  color: #fff;
}

.sobre-texto h2 {
  color: #fe8a01;
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: left;
}

.sobre-texto p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

.sobre-imagem {
  flex: 1;
  display: flex;
  justify-content: center;
}

.sobre-imagem img {
  max-width: 90%;
  border-radius: 10px;
  object-fit: cover;
  height: auto;
}

/* Responsivo */
@media (max-width: 900px) {
  .sobre-container {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .sobre-texto h2 {
    text-align: center;
  }

  .sobre-texto p {
    text-align: left;
  }

  .sobre-imagem img {
    margin-top: 20px;
  }
}
