html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* HEADER */
header {
    background-color: #4a6b7c;
    color: white;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

#img_logo {
    width: 150px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.5s;
}

nav a:hover {
    color: #f4662c;
}

#selecionado {
    color: #f4662c;
}

.search-bar input {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
}

/* PRODUTOS */
.titulo-produtos {
    font-size: 24px;
    font-weight: bold;
    margin: 30px 60px 20px;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 0 60px 40px;
}

.produto {
    text-align: center;
    background-color: #e0e0e0; /* cinza claro */
    padding: 15px;
    border-radius: 8px; /* cantos levemente arredondados */
    transition: background-color 0.3s ease;
}

.produto:hover {
    background-color: #d5d5d5; /* um cinza um pouco mais escuro no hover */
}

.produto img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produto img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 2px;
    transition: 0.5s;
}

.nome-produto {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0 5px;
}

.preco-produto {
    font-size: 14px;
    color: #444;
}

/* FOOTER */
.footer {
    background-color: #e5e8ea;
    color: black;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 12px;
    padding: 20px 50px;
    line-height: 1
}

#produto_2{
    height: 300px;
}


#produto_3{
    height: 300px;
}
/* ===== Dropdown simples (sem JS) ===== */
.main-nav { display: flex; gap: 30px; align-items: center; position: relative; }

/* container do dropdown */
.dropdown { position: relative; }

/* painel escondido por padrão */
.dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -6px;
  width: 260px;
  background: #fff;
  color: #111;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  padding: 10px;
  z-index: 1000;

  /* estado fechado */
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

/* abre no hover e quando o link recebe foco (click/tab) */
.dropdown:hover .dropdown__panel,
.dropdown:focus-within .dropdown__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* setinha no topo do painel */
.dropdown__panel::before {
  content: "";
  position: absolute;
  top: -8px; left: 20px;
  width: 16px; height: 16px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -3px -3px 6px rgba(0,0,0,.04);
}

/* links dentro do painel (os "quadrados") */
.panel-link {
  display: block;
  background: #f7f9fb;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 8px 4px;
  text-decoration: none;
  color: #111;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
  transition: background .15s, border-color .15s, transform .05s;
}
.panel-link:hover {
  background: #eef3f7;
  border-color: #d7dde1;
  transform: translateY(-1px);
}

/* deixa o "PRODUTOS" com cara de link/btn */
.dropdown__toggle { cursor: pointer; }

/* opcional: destaca o item quando painel aberto */
.dropdown:hover > .dropdown__toggle,
.dropdown:focus-within > .dropdown__toggle {
  color: #f4662c;
}

/* mobile: painel ocupa a largura do header */
@media (max-width: 780px) {
  .dropdown__panel {
    left: -40px; right: -40px; width: auto;
    border-radius: 0 0 12px 12px;
  }
  .dropdown__panel::before { left: 54px; }
}
