/* Reset simples */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* TOPO COM LOGO + BUSCA + SINO */
.container-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container-topo .logo img {
  height: 40px;
}

.busca-topo {
  flex: 1;
  margin: 0 15px;
  display: flex;
  max-width: 600px;
}

.busca-topo input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  outline: none;
  font-size: 14px;
}

.busca-topo button {
  padding: 8px 14px;
  background-color: #ff6600;
  border: none;
  color: white;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-weight: bold;
}

#avatar {
  position: relative;
}

#avatar img {
  height: 26px;
}
.avatar-letra {
  display: inline-block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  border-radius: 50%;
  background-color: #007BFF;
  color: white;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
  margin-left: 10px;
}
.avatar-letra:hover {
  background-color: #0056b3;
}

#numerador_carrinho {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* NAVEGAÇÃO */
.navegacao_para_computadores,
.navegacao_para_dispositivos {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 8px 10px;
}

.navegacao_para_computadores ul,
.navegacao_para_dispositivos ul {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.navegacao_para_computadores a,
.navegacao_para_dispositivos a {
  color: #444;
  font-weight: bold;
  text-decoration: none;
  padding: 6px 10px;
}

.navegacao_para_computadores a:hover,
.navegacao_para_dispositivos a:hover {
  color: #ff6600;
}

/* AVISO */
#aviso {
  background: #fff8dc;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: #a05f00;
  border-top: 1px solid #e3c66d;
  border-bottom: 1px solid #e3c66d;
}

/* CATEGORIAS */
#categorias_painel {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 20px 10px;
  background: #fff;
}
#tema {
text-align:center;
}
.painel_categoria {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  background-color: #f4f4f4;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.painel_categoria:hover {
  transform: translateY(-4px);
  background: #eaeaea;
}

.painel_categoria img {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
  object-fit: contain;
}

.painel_categoria span {
  font-size: 14px;
  text-align: center;
  color: #333;
}



/* FORM PADRÃO */
form {
  display: none; /* ocultado pois o campo de busca está no topo */
}

/* MODAL DE CATEGORIAS */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-conteudo {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
}

.modal-conteudo h2 {
  margin-bottom: 15px;
  color: #ff6600;
}

.modal-conteudo ul {
  list-style: none;
  padding-left: 0;
}

.modal-conteudo li {
  margin: 8px 0;
}

.modal-conteudo a {
  color: #333;
  text-decoration: none;
}

/* ADMIN ÍCONE */
.icone-admin {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: white;
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1001;
}

/* PRODUTOS */
#loja.produtos {
  padding: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Exemplo simples de produto */
.produto {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  width: 200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

/* CARRINHO DESKTOP */
#carrinho_computador {

  right: 10px;
  background-color: white;
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
}

#carrinho_computador img {
  width: 32px;
}

/* MENU MOBILE INFERIOR */
#menu_mobile_bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #ddd;
  padding: 6px 0;
  z-index: 999;
}

#menu_mobile_bottom a {
  flex: 1;
  text-align: center;
  font-size: 12px;
  text-decoration: none;
  color: #333;
}

#menu_mobile_bottom a:hover {
  color: #ff6600;
}

#menu_mobile_bottom figure {
  margin: 0 auto 4px;
  width: 24px;
  height: 24px;
}

#menu_mobile_bottom img {
  max-width: 100%;
}

/* RODAPÉ */
footer {
  background: #f1f1f1;
  padding: 15px;
  text-align: center;
  font-size: 13px;
  margin-bottom: 60px; /* espaço para menu mobile */
  color: #666;
}


/* GERAL DA VITRINE */
#loja {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 20px;
  background-color: #f8f8f8;
}

/* CARD DE PRODUTO */
.produto-box {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 230px;
  flex: 1 1 150px;
}

.produto-box:hover {
  transform: scale(1.02);
}

/* IMAGEM PRINCIPAL */
.album {
  position: relative;
}

.foto_principal img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* MINIATURAS */
.miniaturas {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 5px;
}

.miniaturas img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* INFORMAÇÕES DO PRODUTO */
.info_produto {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info_produto h3 {
  font-size: 15px;
  color: #333;
  min-height: 36px;
}

/* VENDEDOR */
.vendedor {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar_vendedor {
  background-color: #ff6600;
  color: white;
  width: 30px;
  height: 30px;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.nome_vendedor {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}
.nome_vendedor:hover {
  text-decoration: underline;
  color: #007bff;
}

/* PREÇOS */
.preco {
  font-size: 16px;
  font-weight: bold;
  color: #2d8a39;
}

.preco_antigo {
  font-size: 13px;
  color: #888;
}

.preco_oferta {
  font-size: 16px;
  font-weight: bold;
  color: #d22222;
}

/* ENTREGA */
.info_produto p {
  margin: 0;
  font-size: 13px;
}

/* BOTÕES */
.btn_detalhes, .btn_carrinho {
  display: inline-block;
  margin: 10px 5px 0 0;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  text-align: center;
}

.btn_detalhes {
  background: linear-gradient(to right, #007bff, #0056b3);
  color: white;
}
.btn_detalhes:hover {
  background: #004494;
}

.btn_carrinho {
  background: linear-gradient(to right, #28a745, #1e7e34);
  color: white;
}
.btn_carrinho:hover {
  background: #19692c;
}

/* PAGINAÇÃO */
.paginacao {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  font-size: 15px;
  color: #333;
}

.paginacao a {
  margin: 0 10px;
  text-decoration: none;
  color: #ff6600;
  font-weight: bold;
}

.paginacao a:hover {
  text-decoration: underline;
}
