@media (max-width: 480px) {
  /* Adicione um espaçamento no body para compensar o header fixo */
  body {
    padding-top: 165px; /* Deve corresponder à altura do header */
  }

  /* ===== Cabeçalho ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  background-color: #121e2b;
  color: white;
  height: 100px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-left {
  max-height: none;
  width: 25%;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  align-items: center;
}

.header-left img {
  max-height: 70px;
  height: auto;
  object-fit: contain;
}

.header-center {
  max-height: none;
  width: 50%;
  flex: 2;
  display: flex;
  align-items: flex-start; /* para empurrar o conteúdo pra baixo */
  justify-content: center;
  text-align: center;
  word-break: break-word;
  font-size: 14px;
  padding-top: 15px; /* ~5% da altura padrão do header (100px) */
  padding-left: 0px;
  padding-right: 0px;
  height: 100%; /* garante que padding-top funcione bem */
}

.header-center p {
  margin: 0;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.3;
}


.header-right {
  max-height: none;
  width: 25%;
  margin-right: 1%;
  display: flex;
  align-items: center;
}

  #cumprimentoBemvindos {
    font-size: 14px;
    text-align: justify;
    margin: 0; /* Remove qualquer margem padrão */
    line-height: 1.2; /* Controla o espaçamento interno do texto */
  }

  .header-right {
    padding-top: 0;
  }

  #subtitulo-1 {
    font-size: 12px;
    text-align: right;
    line-height: 1.2;
    margin: 0; /* Remove margens */
  }

  #cumprimentoBemvindos {
    font-size: 14px;
    text-align: center;
  }

#subtitulo-2 {
  margin-top: -65px;
  padding: 8px 5px;
  font-size: 10px;
  min-height: auto;
  text-align: center;
}

  /* ===== Rodapé ===== */
  .footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--cor-footer);
    color: var(--cor-footer-fonte);
    padding: 1px 0; /* Aumentei o padding vertical para dar mais espaço */
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px; /* Reduzi o gap entre elementos */
  }

  .footer-left {
    line-height: 1; /* Ajustei para um valor mais próximo do padrão */
  }

  /* Opcional: Para textos dentro de left e center */
  .footer-left p,
  .footer-center p {
    margin: 2px 0; /* Reduz o espaço entre parágrafos */
  }

  /* ===== Encarte / Produtos ===== */
  #encarte {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px;
  }

  /* Imagem do Produto */
  .produto img {
    width: auto; /* Mantém a proporção */
    height: 40%; /* Faz com que a imagem ocupe toda a altura do contêiner */
    max-width: 100%; /* Impede que a imagem ultrapasse a largura do contêiner */
    object-fit: contain; /* Mantém a imagem ajustada sem cortar */
  }

  .produto-info h3 {
    font-size: 13px;
  }

  .produto-info p {
    font-size: 12px;
  }

  .produto-preco {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Alinha verticalmente */
    gap: 10px; /* Espaço entre os dois preços */
    margin-bottom: 5px;
  }

  .produto-preco-valor-de {
    font-size: 14px;
    text-decoration: line-through;
    color: var(--cor-preco-desconto);
  }

  .produto-preco-valor-por {
    font-size: 16px;
    font-weight: bold;
    color: var(--cor-preco-normal);
  }

  /* ===== Carrinho ===== */
  #carrinho {
    width: 95%;
    padding: 15px;
    margin: 20px auto;
  }

#contador-carrinho {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}


  #titulo-carrinho {
    font-size: 18px;
  }

  #finalizar-pedido {
    width: 100%;
    font-size: 14px;
    padding: 10px;
    max-width: none;
  }

  .ticket-item {
    font-size: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .remover-item {
    align-self: flex-end;
  }

  .btn-carrinho {
    height: 65px;
  }

  /* ===== Botão voltar ao topo ===== */
  #btn-voltar-topo {
    position: fixed;
    bottom: 50px; /* ou 60px se o rodapé tiver ~60px de altura */
    left: 90%;
    transform: translateX(-50%);
    z-index: 999;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  /* ================== PRODUCT CARD STYLING ================== */
  /* Cada coluna individual (De / Por) */
  .coluna-preco {
    min-width: 25%;
  }
  /* ===== Navegação entre páginas de produtos ===== */
  .navegacao-container {
    flex-direction: column;
    gap: 8px;
  }

  #numero-pagina {
    font-size: 16px;
  }

  /* ===== Botões de quantidade ===== */
  .btn-menos,
  .btn-mais {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .input-qtd {
    width: 48px;
    font-size: 18px;
  }
}

@media (min-width: 481px) and (max-width: 960px) {
  /* ================== GRID DE PRODUTOS ================== */
  #encarte {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px;
  }

  .header-left {
    width: 25%;
  }

  .header-center {
    width: 50%;
  }
  .header-right {
    width: 25%;
  }
  #subtitulo-2 {
    z-index: 999; /* Ensure the subtitle is above other elements */
    margin-top: 80px; /* Distance from the top so it doesn't get hidden behind the header */
    padding-top: 25px; /* Or any other value needed to adjust */
    padding-bottom: 0px; /* Or any other value needed to adjust */
  }
  /* ===== Rodapé ===== */
  .footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--cor-footer);
    color: var(--cor-footer-fonte);
    padding: 1px 0; /* Aumentei o padding vertical para dar mais espaço */
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px; /* Reduzi o gap entre elementos */
  }

  .footer-left {
    line-height: 1; /* Ajustei para um valor mais próximo do padrão */
  }

  /* Opcional: Para textos dentro de left e center */
  .footer-left p,
  .footer-center p {
    margin: 2px 0; /* Reduz o espaço entre parágrafos */
  }
  /* ===== Botão voltar ao topo ===== */
  #btn-voltar-topo {
    position: fixed;
    bottom: 50px; /* ou 60px se o rodapé tiver ~60px de altura */
    left: 90%;
    transform: translateX(-50%);
    z-index: 999;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}
@media (min-width: 961) and (max-width: 1280px) {
  /* ================== GRID DE PRODUTOS ================== */
  #encarte {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px;
  }

  .header-left {
    width: 25%;
  }

  .header-center {
    width: 50%;
  }
  .header-right {
    width: 25%;
  }
  #subtitulo-2 {
    z-index: 999; /* Ensure the subtitle is above other elements */
    margin-top: 70px; /* Distance from the top so it doesn't get hidden behind the header */
    padding-top: 25px; /* Or any other value needed to adjust */
    padding-bottom: 0px; /* Or any other value needed to adjust */
  }
  /* ===== Rodapé ===== */
  .footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--cor-footer);
    color: var(--cor-footer-fonte);
    padding: 1px 0; /* Aumentei o padding vertical para dar mais espaço */
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px; /* Reduzi o gap entre elementos */
  }

  .footer-left {
    line-height: 1; /* Ajustei para um valor mais próximo do padrão */
  }

  /* Opcional: Para textos dentro de left e center */
  .footer-left p,
  .footer-center p {
    margin: 2px 0; /* Reduz o espaço entre parágrafos */
  }
  /* ===== Botão voltar ao topo ===== */
  #btn-voltar-topo {
    position: fixed;
    bottom: 50px; /* ou 60px se o rodapé tiver ~60px de altura */
    left: 90%;
    transform: translateX(-50%);
    z-index: 999;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  #contador-carrinho {
    position: absolute;
    top: 2px;
    right: -20px;
  }
}
@media (min-width: 1281) and (max-width: 1920px) {
  /* ================== GRID DE PRODUTOS ================== */
  #encarte {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px;
  }

  .header-left {
    width: 25%;
  }

  .header-center {
    width: 50%;
  }
  .header-right {
    width: 25%;
    margin-right: 5%;
  }
  #subtitulo-2 {
    z-index: 999; /* Ensure the subtitle is above other elements */
    margin-top: 70px; /* Distance from the top so it doesn't get hidden behind the header */
    padding-top: 25px; /* Or any other value needed to adjust */
    padding-bottom: 0px; /* Or any other value needed to adjust */
  }
  /* ===== Rodapé ===== */
  .footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--cor-footer);
    color: var(--cor-footer-fonte);
    padding: 1px 0; /* Aumentei o padding vertical para dar mais espaço */
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px; /* Reduzi o gap entre elementos */
  }

  .footer-left {
    line-height: 1; /* Ajustei para um valor mais próximo do padrão */
  }

  /* Opcional: Para textos dentro de left e center */
  .footer-left p,
  .footer-center p {
    margin: 2px 0; /* Reduz o espaço entre parágrafos */
  }
  /* ===== Botão voltar ao topo ===== */
  #btn-voltar-topo {
    position: fixed;
    bottom: 50px; /* ou 60px se o rodapé tiver ~60px de altura */
    left: 90%;
    transform: translateX(-50%);
    z-index: 999;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  #contador-carrinho {
    position: absolute;
    top: 2px;
    right: -20px;
  }
}
@media (min-width: 1921) and (max-width: 2560px) {
  /* ================== GRID DE PRODUTOS ================== */
  #encarte {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px;
  }

  .header-left {
    width: 25%;
  }

  .header-center {
    width: 50%;
  }
  .header-right {
    width: 25%;
  }
  #subtitulo-2 {
    z-index: 999; /* Ensure the subtitle is above other elements */
    margin-top: 70px; /* Distance from the top so it doesn't get hidden behind the header */
    padding-top: 25px; /* Or any other value needed to adjust */
    padding-bottom: 0px; /* Or any other value needed to adjust */
  }
  /* ===== Rodapé ===== */
  .footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--cor-footer);
    color: var(--cor-footer-fonte);
    padding: 1px 0; /* Aumentei o padding vertical para dar mais espaço */
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px; /* Reduzi o gap entre elementos */
  }

  .footer-left {
    line-height: 1; /* Ajustei para um valor mais próximo do padrão */
  }

  /* Opcional: Para textos dentro de left e center */
  .footer-left p,
  .footer-center p {
    margin: 2px 0; /* Reduz o espaço entre parágrafos */
  }
  /* ===== Botão voltar ao topo ===== */
  #btn-voltar-topo {
    position: fixed;
    bottom: 50px; /* ou 60px se o rodapé tiver ~60px de altura */
    left: 90%;
    transform: translateX(-50%);
    z-index: 999;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  #contador-carrinho {
    position: absolute;
    top: 2px;
    right: -20px;
  }
}
@media (min-width: 2561px) and (max-width: 3850px) {
  /* ================== GRID DE PRODUTOS ================== */
  #encarte {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px;
  }

  .header-left {
    width: 25%;
  }

  .header-center {
    width: 50%;
  }
  .header-right {
    width: 25%;
  }
  #subtitulo-2 {
    z-index: 999; /* Ensure the subtitle is above other elements */
    margin-top: 70px; /* Distance from the top so it doesn't get hidden behind the header */
    padding-top: 25px; /* Or any other value needed to adjust */
    padding-bottom: 0px; /* Or any other value needed to adjust */
  }
  /* ===== Rodapé ===== */
  .footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--cor-footer);
    color: var(--cor-footer-fonte);
    padding: 1px 0; /* Aumentei o padding vertical para dar mais espaço */
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px; /* Reduzi o gap entre elementos */
  }

  .footer-left {
    line-height: 1; /* Ajustei para um valor mais próximo do padrão */
  }

  /* Opcional: Para textos dentro de left e center */
  .footer-left p,
  .footer-center p {
    margin: 2px 0; /* Reduz o espaço entre parágrafos */
  }
  /* ===== Botão voltar ao topo ===== */
  #btn-voltar-topo {
    position: fixed;
    bottom: 50px; /* ou 60px se o rodapé tiver ~60px de altura */
    left: 90%;
    transform: translateX(-50%);
    z-index: 999;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  #contador-carrinho {
    position: absolute;
    top: 2px;
    right: -20px;
  }
}
