@media (max-width: 768px) {
  .container-header header {
    height: 3.5rem;
    padding: 8px 16px;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
  }

  #icone-menu-mobile {
    font-size: 1.6rem;
    cursor: pointer;
  }

  header > a{
    display: flex;
    align-items: center;
    min-width: 80px;
    gap: 1rem;
  }

  .logoHeader {
    width: 80px;
  }

  .container-header header ul {
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    position: absolute;
    left: 0;
    top: 3.5rem;
    background-color: var(--white);
    padding: 2rem;
    box-shadow: 0px 10px 15px 5px rgba(0, 0, 0, 0.1);
    translate: -100vw;
    transition: all 0.5s ease-in-out;
    z-index: 200000;
  }
  .exibirMenuMobile {
    translate: 0 !important;
  }

  .container-header header ul li a {
    font-weight: 700;
    color: var(--azul-500);
    font-size: 1rem;
    cursor: pointer;
  }

  .container-header header ul li:hover a {
    color: var(--azul-400);
  }

  .box-caixa-pesquisa {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  /* .dropdown-adm{
    position: absolute;
    background-color: transparent;
    display: none;
  }

  .exibir-dropdown-adm{
    display: block;
  }

  .dropdown-adm ul{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
      rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;

  }

  .dropdown-adm ul li{
    width: 100%;
  }

  .dropdown-mais{
    display: none;
    position: absolute;
    background-color: transparent;
  }

  .dropdown-mais ul{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
      rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
  }

  .dropdown-mais ul li{
    width: 100%;
  }

  .dropdown-mais ul li a{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
  } */

  .box-caixa-pesquisa input {
    padding: 6px;
    width: 200px;
    border-radius: 4px;
    border: none;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
      rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  }

  .box-caixa-pesquisa input:focus {
    outline: 2px solid var(--azul-500);
  }

  .box-caixa-pesquisa button {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    cursor: pointer;
    color: var(--azul-500);
    font-size: 20px;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .container-header header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  #iconeSacola {
    position: relative;
  }

  #itensSacola {
    position: absolute;
    font-size: 0.8rem;
    color: var(--white);
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 18px;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card-produto-carrinho {
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
      rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-radius: 10px;
    padding: 1rem;
    width: 100%;
    gap: 0.5rem;
  }

  .img-produto {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
  }

  .img-produto img {
    height: 100%;
  }

  .img-produto img:hover {
    transform: rotate(10deg) scale(1.2);
  }
  .dados-produto {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1;
    padding: 4px;
    overflow: hidden;
    position: relative;
    padding-left: 1rem;
  }

  .dados-produto .codigo-produto {
    color: var(--azul-500);
    font-size: 0.8rem;
  }

  .detalhes-produto {
    display: grid;
    grid-template-columns: 40px 1fr 60px 1fr;
    font-size: 0.6rem;
    min-width: 50%;
  }

  .detalhes-produto input:disabled {
    border: none;
    font-family: "Poppins", sans-serif;
    background-color: var(--white);
    width: 40px;
    font-size: 0.7rem;
  }

  #removerProdutoCarrinho {
    color: red;
    font-size: 1rem;
    position: absolute;
    right: 0;
    bottom: 0;
    cursor: pointer;
  }

  hr {
    background-color: gray;
    width: 100%;
    margin-top: 1rem;
  }

  #FinalizarCompra {
    padding: 0.5rem;
    background-color: var(--verde-500);
    border: none;
    border-radius: 10px;
    font-family: "poppins";
    font-weight: 600;
    color: var(--white);
    margin-top: 1rem;
  }

  /*CSS CONTAINER-SLIDER*/

  .container-slider {
    width: 100%;
    height: 50vh;
    background-color: var(--azul-500);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .switchBackground {
    background-color: var(--azul-800);
  }

  .nextSlider {
    position: absolute;
    right: 0.5rem;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10000;
    color: var(--white);
    opacity: 0.6;
  }

  .backSlider {
    position: absolute;
    left: 0.5rem;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1000;
    color: var(--white);
    opacity: 0.6;
  }

  .box-info-produto {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .box-imagem-produto {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .produto-info {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    min-width: 300px;
    padding-left: 40%;
    animation: surgirDaEsquerda 1.5s ease-in-out forwards;
  }

  .sumirParaEsquerda {
    animation: sumirParaEsquerda 1s ease-in-out forwards;
  }

  .detalhe {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
    color: white;
    color: var(--white);
  }

  .codigoProduto {
    font-size: 1.4rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: var(--white);
    max-width: 80%;
  }

  .adicionarCompra {
    width: 110px;
    height: 40px;
    border-radius: 10px;
    border: none;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    gap: 4px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    cursor: pointer;
    color: var(--azul-500);
  }

  .adicionarCompra:hover {
    background-color: var(--verde-500);
    color: var(--white) !important;
  }

  .degradeBanner {
    width: 150px;
    height: 40%;
    background: linear-gradient(var(--azul-500), rgba(0, 0, 0, 0.4));
    display: block;
    transform: skew(-20deg);
    position: absolute;
    bottom: 0;
  }

  .switchDegrade {
    background: linear-gradient(var(--azul-800), rgba(0, 0, 0, 0.4));
  }

  .imagens-produto-slider {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 55%;
    margin-right: 20%;
    margin-top: 10%;
    animation: surgirDaDireita 1.5s ease-in-out;
  }

  .sumirParaDireita {
    animation: sumirParaDireita 1s ease-in-out forwards;
  }

  .img-produto-slider {
    height: 100%;
    position: relative;
  }

  .subi-img-produto {
    height: 300px;
    position: relative;
    display: none;
  }

  /*CATEGORIAS MOBILE*/

  .container-categorias {
    width: 100%;
    max-width: 90vw;
    height: fit-content;
    margin: 0 auto;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .titleCategorias {
    color: var(--white);
    font-size: 10px;
    margin-top: 10px;
    font-weight: 500;
  }

  .filtrarCategoriaTitulo {
    font-size: 18px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
  }

  .cardsBox {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
  }

  .categoriaContainer {
    border-radius: 8px;
    width: 80px;
    height: 70px;
    background-color: var(--azul-800);
    overflow: hidden;
    transition-duration: 0.3s;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .categoriaContainer:hover {
    background-color: var(--azul-400);
    transition-duration: 0.3s;
  }

  .cardsBox i {
    font-size: 1.8rem;
    color: var(--white);
  }

  .categoriaContainer:hover i {
    animation: slide-in-top 0.3s both;
    color: rgb(255, 255, 255);
  }

  .container-banner {
    width: 90%;
    margin: 2rem auto;
    translate: 0px 50px;
    transition: all 0.5s ease;
    position: relative;
    opacity: 0;
  }

  .backgroundBanner {
    width: 100%;
    height: 240px;
    background: var(--white);
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
  }



  .LogoBanner {
    width: 100%;
    max-width: 70%;
    min-width: 70%;
  }
  .exibirBanner {
    opacity: 1;
    translate: 0;
  }

  /*GRID PRODUTOS COMPONENTE CSS MOBILE*/

  .titleGridProdutos {
    margin: 0.5rem 0;
    font-size: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .containerProdutosGrid {
    width: 100%;
    margin: 0 auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
  }

  .gradeDeProdutos {
    width: 100%;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 10px;
  }

  .cardProduto {
    width: 180px;
    min-height: 250px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 11px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    position: relative;
  }

  .containerCard3d {
    width: 100%;
    position: relative;
    perspective: 1000px;
  }

  .frontCard,
  .backCard {
    width: 160px;
    position: absolute;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: all 1s ease;
  }

  .frontCard {
    transform: rotateY(0deg);
  }

  .backCard {
    transform: rotateY(180deg);
  }

  .cardProduto:hover .frontCard {
    transform: rotateY(-180deg);
  }

  .cardProduto:hover .backCard {
    transform: rotateY(0deg);
  }

  .imgFrontCard,
  .imgBackCard {
    width: 100%;
  }

  .codigoProdutoCard {
    font-weight: 600;
    color: var(--azul-500);
    font-size: 0.8rem;
    line-height: 1;
    max-height: 30px;
    width: 160px;
    min-height: 25px;
    margin: 165px auto 5px auto;
    text-align: center;
    overflow: hidden;
  }

  .PrecoProdutoCard {
    font-weight: 400;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1;
  }
  .nota {
    font-size: 12px;
    margin-bottom: 5px;
    line-height: 1;
    /* display: none; */
  }

  .vejaMaisBtn {
    width: 90px;
    margin: auto;
    height: 30px;
    min-height: 25px;
    bottom: 5px;
    border-radius: 5px;
    border: none;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    cursor: pointer;
    color: var(--white);
    background-color: var(--azul-500);
    cursor: pointer;
  }

  .vejaMaisBtn:hover {
    background-color: var(--verde-500);
  }

  /*FOOTER COMPONENTE CSS MOBILE*/

  footer .media-social li a {
    font-size: 2rem;
  }

  footer .menuFooter li a {
    font-size: 0.8rem;
    text-wrap: nowrap;
  }

  .direitos {
    text-wrap: nowrap;
    font-size: 0.6rem;
  }

  .band {
    bottom: 70px;
  }

  .overlay {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    left: 0;
    top: 0;
    transition: all 0.3s;
    opacity: 0;
    transition: all 0.5s;
    pointer-events: none;
    z-index: 10000;
  }

  .modal-adicionar-produto {
    background-color: var(--cinza-200);
    position: relative;
    height: 80vh;
    width: 96%;
    left: 50%;
    top: 51%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.6rem;
    overflow: auto;
  }

  .produto-imagens {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .card-produto {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .card-imagem {
    width: 200px;
    height: 200px;
    object-fit: cover;
    overflow: hidden;
  }

  .card-imagem img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }

  .slider-imagens-produto {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 170px;
    overflow: auto;
    padding: 10px;
    gap: 1rem;
  }

  .slider-imagens-produto img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    background-color: var(--white);
    object-fit: cover;
  }

  .slider-imagens-produto img:hover {
    border-radius: 10px;
    transform: scale(1.1);
    border: 1px solid var(--azul-500);
  }

  .itemSliderAtivo {
    border: 1px solid var(--azul-500);
    transform: scale(1.1);
  }

  #back {
    left: -1rem;
    position: absolute;
    font-size: 1.2rem;
    cursor: pointer;
  }

  #next {
    right: -1rem;
    position: absolute;
    font-size: 1.2rem;
    cursor: pointer;
  }

  .slider-imagens-produto::-webkit-scrollbar {
    height: 8px;
    width: 8px;
  }

  .slider-imagens-produto::-webkit-scrollbar-thumb {
    background-color: var(--azul-500);
    border-radius: 20px;
  }

  .produto-detalhes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
  }

  .produto-detalhes .title-produto {
    font-size: 1rem;
    color: var(--azul-800);
  }

  .produto-detalhes .descri-produto {
    font-size: 0.7rem;
    color: var(--azul-800);
    margin-bottom: 0.5rem;
  }
  .produto-detalhes label {
    font-family: "Poppins", sans-serif;
  }

  .produto-detalhes select,
  .produto-detalhes input {
    font-family: "Poppins", sans-serif;
    font-size: 0.8rem;
    border: 1px solid #d3d3d3;
    width: 200px;
    height: 20px;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    padding-left: 4px;
  }

  .selecionar-tamanho {
    font-size: 0.8rem !important;
  }

  #qtd-pro {
    margin-bottom: 0;
  }

  .qtd-minima {
    margin-bottom: 0.5rem;
  }

  .qtd-minima {
    font-size: 0.5rem;
    margin-top: 5px;
  }

  .inputs-valores {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .produto-detalhes label {
    font-family: "Poppins", sans-serif;
    font-size: 0.8rem;
  }

  .produto-detalhes select,
  .produto-detalhes input {
    font-family: "Poppins", sans-serif;
    font-size: 0.8rem;
    border: 1px solid #d3d3d3;
    width: 150px;
    height: 30px;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    padding-left: 4px;
    background-color: var(--white);
  }

  #qtd-pro {
    margin-bottom: 0;
  }

  .qtd-minima {
    margin-bottom: 0.5rem;
  }

  .qtd-minima {
    font-size: 0.8rem;
    margin-top: 5px;
  }

  .inputs-valores {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  /* Estilo básico para checkboxes estilizados como botões */
  .size-pro {
    display: none; /* Esconde os checkboxes padrão */
  }

  /* Estiliza o rótulo (label) para parecer um botão */
  .size-pro + label {
    display: inline-block;
    padding: 5px;
    width: 40px;
    border-radius: 5px;
    text-align: center;
    background-color: var(--white);
    border: 1px solid #d3d3d3;
    cursor: pointer;
  }

  .size-pro:checked + label {
    background-color: #007bff;
    color: #fff;
  }

  .inputs-valores {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .block {
    display: flex;
    flex-direction: column;
    margin-right: 1rem;
  }

  .itemSliderAtivo {
    border: 1px solid var(--azul-500);
    transform: scale(1.1);
  }

  #close-modal-produto {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    color: red;
    cursor: pointer;
  }

  .exibirModalProduto {
    width: 100vw;
    height: 100vh;
    opacity: 1;
    pointer-events: all;
  }

  .comprarBtn {
    padding: 0.5rem;
    border: none;
    background-color: var(--azul-500);
    border-radius: 5px;
    color: var(--white);
    font-size: 0.8rem;
    cursor: pointer;
  }

  .comprarBtn:hover {
    background-color: var(--verde-500);
  }

  .overlay-carrinho {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    left: 0;
    top: 0;
    transition: all 0.3s;
    opacity: 0;
    transition: all 0.5s;
    pointer-events: none;
    z-index: 10001;
    overflow: hidden;
  }

  .overlay-carrinho-ativo {
    pointer-events: all;
    opacity: 1;
  }

  #close-carrinho {
    position: absolute;
    color: red;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
  }
  .modal-carrinho {
    width: 95vw;
    height: 85%;
    position: absolute;
    left: 50%;
    top: 4rem;
    background-color: var(--cinza-200);
    border-radius: 10px;
    padding: 0.5rem;
    translate: 50vw;
    transition: all 0.3s;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .modal-carrinho-exibir {
    translate: -50%;
  }
  .produtos-adicionados {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    flex: 1;
    padding: 0.2rem;
  }

  .produto_adicionado {
    width: 100%;
    height: fit-content;
    background-color: white;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.2rem;
    gap: 0.5rem;
    overflow: hidden;
  }

  .imagem-pro {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 10px;
    overflow: hidden;
  }

  .imagem-pro img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  .imagem-pro img:hover {
    transform: rotate(10deg);
    scale: 1.2;
  }
  .detalhes-pro {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
  }

  .produto_adicionado strong,
  .produto_adicionado span,
  .produto_adicionado p {
    font-size: 0.7rem;
    text-wrap: nowrap;
  }

  .descri-pro {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--azul-500);
  }

  .qtd-produto > input {
    width: 4rem;
    border: none;
    font-size: 0.8rem;
  }

  .valores-produto {
    display: flex;
    gap: 2px;
  }

  .subtotal_produto {
    margin-left: 0.5rem;
  }

  .remover_pro {
    color: red;
    position: absolute;
    right: 0.2rem;
    bottom: 0;
    font-size: 1rem;
    cursor: pointer;
  }

  #close-carrinho {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
  }

  .total-pedido {
    margin-top: 1rem;
    border-radius: 10px;
    padding: 1rem;
    background-color: var(--cinza-200);
    width: 100%;
  }

  .maisProdutos {
    padding: 0.3rem 0.8rem;
    background-color: var(--azul-500);
    border: 2px solid var(--azul-500);
    color: white;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    margin: 0.5rem auto;
  }

  .maisProdutos:hover {
    background-color: var(--azul-800);
  }

  .fecharPedido {
    padding: 0.3rem 0.8rem;
    border: 2px solid var(--azul-500);
    background-color: var(--white);
    color: var(--azul-500);
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    margin: 0.5rem auto;
  }
  .maisProdutos > a {
    color: var(--white);
  }

  .fecharPedido:hover,
  .fecharPedido:hover > a {
    background-color: var(--azul-500);
    border: 2px solid var(--azul-500);
    color: white;
  }
  .title-carrinho {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    gap: 10px;
    color: var(--azul-500);
  }

  .total-pedido strong,
  .total-pedido span {
    font-size: 0.8rem;
  }
}

@media (min-width: 586px) and (max-width: 768px) {
  .gradeDeProdutos {
    grid-template-columns: repeat(3, 1fr);
  }

  .produto-info {
    min-width: 350px;
  }
}

@media (min-width: 1px) and (max-width: 410px) {
  .gradeDeProdutos {
    grid-template-columns: 1fr;
  } 
  .codigoProduto{
    font-size: 1rem;
  }

  .detalhe{
    font-size: .8rem;
  }

  .adicionarCompra{
    width: fit-content;
    height: fit-content;
    padding: 0.2rem;
    border-radius: 6px;
  }
}
