@media (max-width: 768px) {
  /* Seções */
  section {
    padding: 20px 10px;
  }

  /* Container principal */
  .container {
    padding-top: 5.5rem;
    flex-direction: column;
    margin: 12px;
  }
  .container h1 {
    font-size: 3rem;
  }
  .container p {
    width: 100%;
    margin-top: 1rem; 
  }

  /* Imagem */
  .imgCoffee {
    width: 100%;
    margin-top: 20px;
  }

  /* Botão explorar */
  .explorarBtn {
    margin: 1.5rem auto;
    font-size: 1rem;
    width: 100%;
    max-width: 222px;
  }

  /* Faixa */
  .faixa {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  /* Títulos de seção */
  .prodCoffees h1 {
    font-size: 1.9rem;
    margin: 2rem 20px;
  }
  .acessorios h1 {
    font-size: 1.5rem;
  }

  /* Container de cards */
  .card-conteiner {
    margin: 16px;
    flex-direction: column;
    align-items: center;
  }

  /* Cards */
  .card {
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
    padding: 16px;
  }
  .card h2 {
    font-size: 1.2em;
  }
  .valorReal {
    font-size: 1.5rem;
  }

  .explorarPro {
    background-image: url('../assets/img112.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 45vh;
    margin: -2rem  auto  30px auto;
  }

  /* Explorar coleção */
  .explorarPro #colecao {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    position: relative;
    text-align: center;
    top: 20rem;
    left: 25%;
  }
}


.burger.toggle div:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.burger.toggle div:nth-child(2) {
  opacity: 0;
}
.burger.toggle div:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}


/* Responsividade e Animação do Menu Mobile */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 0 2rem;
    position: fixed;
    top: -1px;
  }

  .logo img {
    width: 10rem;
  }

  .burger {
    display: block;
  }

  .menu {
    display: block;
    position: absolute;
    top: 6rem;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    pointer-events: none;
  }

  .menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto; 
  }

  /* Ajuste dos itens do menu no mobile (empilhados) */
  .menu li {
    border: none;
    text-align: center;
    padding: 1rem 0;
  }

  .menu li:hover {
    background-color: var(--main-color);
    border: none;
    color: #ffffff;

  }
}


@media (max-width: 768px) {
  .sobre h1 {
    font-size: 2rem;
  }

  .contentSobre {
    flex-direction: column;
    text-align: center;
  }

  .contentSobre p {
    font-size: 0.9rem;
    line-height: 1.8rem;
    width: 100%;
    margin-right: 0;
  }

  .contentSobre img {
    max-width: 20rem;
  }
}

@media (max-width: 480px) {
  .sobre h1 {
    font-size: 2rem;
    text-align: center;
  }

  .contentSobre p {
    font-size: 0.9rem;
    line-height: 1.8rem; 
    width: 96%;
    text-align: left;
  }

  .contentSobre img {
    margin-top: 3rem;
    max-width: 80%;
    height: auto;
  }

}

/* ============== Media Queries para Responsividade ============== */
@media (max-width: 768px) {
  /* Ajusta a posição e tamanho do ícone do carrinho */
  .carrinho-icon {
    bottom: 15px;
    right: 10px;
    margin-right: 10px;
  }
  .carrinho-icon img {
    width: 60px;
    height: 60px;
  }

  /* Ajusta o modal e seu conteúdo */
  .modal-conteudo {
    width: 90%;
    margin: 20% auto;
    padding: 15px;
  }

  .modal h2 {
    font-size: 1.2rem;
  }

  /* Ajusta o botão fechar */
  .fechar {
    right: 1.6rem; /* Valor mais adequado para telas menores */
    font-size: 24px;
  }

  .modal li img {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Reduz ainda mais o tamanho do ícone em dispositivos muito pequenos */
  .carrinho-icon img {
    width: 35px;
    height: 35px;
  }

  /* Ajusta a notificação Toast */
  .toast {
    min-width: 200px;
    font-size: 0.9rem;
    top: 5rem;
  }

  /* Ajusta o botão de finalizar compra */
  .finalizarCompra button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}