/* ========================= */
/* RESET */
/* ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
/* ========================= */
/* LOGOTIPO */
/* ========================= */
/* Container do header */
.headerPrincipal {
  display: flex; /* Coloca logo e título na mesma linha */
  align-items: center; /* Alinha verticalmente */
  gap: 15px; /* Espaço entre logo e título */
  padding: 10px 20px; /* Espaçamento interno */
  background-color: #ffffff; /* Cor de fundo do header */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra leve */
}

/* Logo */
.logoImagem {
  height: 100px; /* Tamanho fixo da logo */
  width: auto;
  object-fit: contain;
}

/* Título do site */
.tituloSite {
  font-size: 1.5rem;
  color: #333;
  margin: 0;
  font-family: "Arial", sans-serif;
}

/* Responsividade */
@media (max-width: 600px) {
  .headerPrincipal {
    flex-direction: column; /* Logo em cima do título em telas pequenas */
    gap: 10px;
  }

  .logoImagem {
    height: 50px;
  }

  .tituloSite {
    font-size: 1.2rem;
  }
}

/* ========================= */
/* BODY */
/* ========================= */

body {
  background: #eef1f4;
  color: #2d3748;
}

/* ========================= */
/* TOPO */
/* ========================= */

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px 40px;

  background: white;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.logo h2 {
  color: #0f172a;
}

.menuCategorias {
  display: flex;
  gap: 15px;
}

.menuCategorias button {
  background: none;
  border: none;

  padding: 8px 14px;

  cursor: pointer;

  font-weight: 600;

  color: #334155;

  border-radius: 6px;

  transition: 0.2s;
}

.menuCategorias button:hover {
  background: #e2e8f0;
}

.botaoLogin{
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* efeito quando passa o mouse */
.botaoLogin:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* efeito ao clicar */
.botaoLogin:active{
  transform: translateY(0);
  box-shadow: none;
}


/* ========================= */
/* BUSCA */
/* ========================= */

.areaBusca {
  display: flex;
  justify-content: center;

  margin: 30px;
}

.areaBusca input {
  width: 50%;

  padding: 14px;

  border-radius: 30px;

  border: 1px solid #cbd5e1;

  font-size: 16px;

  outline: none;
}

/* ========================= */
/* CONTEÚDO */
/* ========================= */

.conteudo {
  display: flex;

  padding: 20px 40px;

  gap: 40px;
}

/* ========================= */
/* GRID PRODUTOS */
/* ========================= */

.gridProdutos {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));

  gap: 20px;

  flex: 1;
}

/* ========================= */
/* CARD PRODUTO */
/* ========================= */

.cardProduto {
  background: white;

  border-radius: 14px;

  padding: 20px;

  text-align: center;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

  transition: 0.2s;
}

.cardProduto:hover {
  transform: translateY(-3px);
}

.cardProduto img {
  width: 100px;

  height: 100px;

  object-fit: contain;

  margin-bottom: 10px;
}

.cardProduto h3 {
  margin-bottom: 10px;

  font-size: 16px;
}

.cardProduto button {
  background: #1f3b4d;

  color: white;

  border: none;

  padding: 8px 14px;

  border-radius: 8px;

  cursor: pointer;
}

/* ========================= */
/* CESTA */
/* ========================= */

.cesta {
  width: 260px;

  background: white;

  padding: 20px;

  border-radius: 14px;

  height: fit-content;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cesta h3 {
  margin-bottom: 15px;
}

#listaCesta div {
  display: flex;

  justify-content: space-between;

  margin-bottom: 10px;

  font-size: 14px;
}

#listaCesta button {
  background: none;

  border: none;

  cursor: pointer;

  font-size: 16px;
}

.total {
  margin-top: 20px;

  padding-top: 10px;

  border-top: 1px solid #e2e8f0;

  font-size: 18px;
}

/* ========================= */
/* CALCULADORA */
/* ========================= */

.painelCalculadora {
  position: fixed;

  right: -340px; /* começa fora da tela */
  top: 0;

  height: 100%;
  width: 320px;

  background: white;

  padding: 25px;

  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);

  overflow-y: auto;

  z-index: 1000;

  transition: right 0.3s ease; /* animação */
}

/* calculadora aberta */
.painelCalculadora.ativa {
  right: 0;
}

.painelCalculadora h2 {
  margin-bottom: 20px;
  padding-right: 30px;
}

.painelCalculadora label {
  display: block;
  margin-top: 15px;
  font-size: 14px;
}

.painelCalculadora input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;

  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.painelCalculadora small {
  display: block;
  margin-top: 6px;

  color: #64748b;
  font-size: 12px;
}

.painelCalculadora button:not(.fecharCalculadora) {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #1f3b4d;
  color: white;
  cursor: pointer;
}


#resultado {
  margin-top: 15px;
  font-size: 22px;
  color: #0f172a;
}

/* BOTÃO FECHAR */

.fecharCalculadora {
  position: absolute;

  top: 10px;
  right: 10px;

  width: 26px;
  height: 26px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f1f5f9;

  border-radius: 50%;

  cursor: pointer;

  font-size: 14px;
  font-weight: bold;

  color: #475569;
}

.fecharCalculadora:hover {
  background: #e2e8f0;
  color: #334155;
}

/* LOGIN */

.modalLogin{

position: fixed;
top:0;
left:0;

width:100%;
height:100%;

background: rgba(0,0,0,0.5);

display:none;

align-items:center;
justify-content:center;

z-index:999;

}

.modalConteudo{

background:white;

padding:30px;

border-radius:10px;

display:flex;
flex-direction:column;

gap:10px;

width:300px;

}

.modalConteudo input{

padding:10px;
font-size:16px;

}

.modalConteudo button{

padding:10px;
cursor:pointer;

}

.loginArea {
  position: relative;
}

.menuUsuario {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: none;
  z-index: 1000;
}

.menuUsuario button {
  display: block;
  width: 100%;
  padding: 5px 10px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
}

.menuUsuario button:hover {
  background-color: #f0f0f0;
}
