
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css');

  /* Estilos principais */
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 350;
    padding: 0;
     

  }

  .unbounded-font {
    font-family: 'Unbounded', sans-serif;
}
 
#product-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding: 20px;
  margin-left: 30px;
  margin-right: 30px;

 }

/* Transformar em carrossel no mobile */
@media (max-width: 900px) {
  #product-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 10px;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .product {
    flex: 0 0 80%;
    scroll-snap-align: start;
    min-width: 220px;
    max-width: 280px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  #product-container::-webkit-scrollbar {
    display: none; /* Esconder a barra de rolagem */
  }
}

  .product {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.131);
    transition: box-shadow 0.2s;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .product:hover {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.307);
  }
 
  .product img 
    {
      width: 227px; /* Define a largura fixa */
      height: 227px; /* Define a altura fixa */
      object-fit: cover; /* Garante que a imagem cubra toda a área sem distorcer */
      object-position: center; /* Centraliza a imagem */
      border-radius: 8px; /* Ajuste opcional para bordas arredondadas */
      padding-right: auto;

  }

  .product h2 {
    font-size: 1em;
    margin: 10px 0;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;


  }

  .product .price {
    font-weight: 700;
    color: #645f56;
    font-size: 1.4em;
    margin-bottom: 15%;    
    margin-top: 2%;
    padding-top: 10px;
    padding-bottom: 20px;

  }

  .modal-price {
    font-weight: 700;
    color: #645f56;
    font-size: 1.7em;
    margin-bottom: 5%;    
    margin-top: 1%;
    
  
  }

  .modal-code{
    margin-top: -9%;
  }
  

  .product .add-to-cart {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    background-color: #89703e;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 300;
    cursor: pointer;
    font-size: 1.1em;
  }

  .add-to-cart {
    display: block;
    width: 80%;
    padding: 10px;
    margin: 10px auto; /* Centraliza verticalmente e horizontalmente */
    text-align: center;
    background-color: #89703e;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 300;
    cursor: pointer;
    font-size: 1.4em;
    border: 1px solid #fff; /* Adiciona a borda amarela */
}


/* Modal */
#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #452f1dce;
  justify-content: center;
  align-items: left; /* Centraliza o modal na tela */
  z-index: 999999997;
}

#modal.show {
  display: flex;
  opacity: 1;
}

/* Conteúdo do Modal */
 
#modal-content {
  background: #fefefe;
  padding: 20px;
  border-radius: 10px;
  max-width: 95%;
  height: 100%; /* Altura ajustável conforme o conteúdo */
   overflow-y: auto; /* Adiciona scroll vertical se necessário */
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  width: 400px; /* Largura do modal */
  display: flex;
  flex-direction: column;
}

/* Parte de Cima (Título, X e Carrossel) */
.modal-top {
  height: 400px; /* Altura fixa de 400px */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e1e1e1; /* Linha divisória */
  padding-bottom: 10px; /* Espaçamento inferior */
}



/* ajuste para reduizir 10% no browser*/
@media screen and (min-width:  550px) { 
  #modal-content {
    transform: scale(0.9); /* Reduz o tamanho em 10% */
  }
}

/* Contêiner da Imagem e Título */
.modal-header {
  width: 100%;
  height: 90vw; /* Ocupa 80% do modal */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Contêiner da Imagem */
.modal-image-container {
  width: 340px; /* Largura fixa */
  height: 340px; /* Altura fixa */
  display: flex;
  justify-content: center;
  object-fit: cover; 
  align-items: center;
  overflow: hidden;
  border-radius: 8px; /* Bordas arredondadas */
  background-color: #f0f0f0; /* Cor de fundo caso a imagem não carregue */
  
}

 

/* Imagem do Produto */
.modal-image-container img {
  width: 100%; /* Ocupa 100% da largura do contêiner */
  height: 100%; /* Ocupa 100% da altura do contêiner */
  object-fit: cover; /* Ajusta a imagem para cobrir o contêiner sem distorcer */
  object-position: center; /* Centraliza a imagem */
}
  


/* Contêiner dos Textos e Botão de Compra */
.modal-text-container {
  width: 100%;
  height: 15%; /* Ocupa 20% do modal */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 5px;
  text-align: left;
  
}

/* Botão de Fechar */
#modal-close {
  position: absolute;
  top: 6px;
  right: 25px;
  font-size: 2.1em;
  cursor: pointer;
  color: #f11414a4;
  font-weight: 500;
}

/* Estilos dos textos */
#modal-title {
  font-size: 1.1em;
  color: #272227;
  font-weight: 500;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 1px;
}


/* Ajuste para descrições longas */
#modal-description {
  font-size: 1em;
  color: #333;
  max-height: 130px; /* Altura máxima para a descrição */
  overflow-y: auto; /* Barra de scroll se o conteúdo for muito longo */
  width: 100%; /* Garante que ocupe a largura total */
  margin-top: 5px;
  padding-right: 10px; /* Espaço para a barra de scroll */
}

.modal-category a {
  color: #545454;
  text-decoration: none;
  font-weight: bold;
}



/*imagem vazia*/
.modal img {
  display: none;
}

.modal img[src]:not([src=""]) {
  display: block;
}


/* Remover qualquer ajuste para telas maiores */
 


  .carousel {
    display: flex;
    overflow: hidden;
    width: 80%;
    margin-left: 10%;
  }

  .carousel img {
    min-width: 100%;
    transition: transform 0.5s ease;
  }

  .carousel-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }

  .carousel-button {
    cursor: pointer;
    padding: 8px 9px;
    background-color: #382f22e7; /* verde ff8800*/
    border-radius: 5px;
      color: #f5fae9;
    font-weight: 500;
  }


  /* Estilos do carrinho fixo */
  #cart-icon {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #e8e8e8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #5b4234;
    font-size: 24px;
    cursor: pointer;
    z-index: 999999999;
    border: 2px solid #9f9f9f39;
  }

  /* Contador de itens no carrinho */
  #cart-count {
    position: absolute;
    top: -7px;
    right: -11px;
    background-color: #785d3d;
    color: #f0ddc8;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 23px;
    height: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

/* Estilos do minicart */
#minicart {
  display: none; /* Oculto inicialmente */
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  background: white;
  box-shadow: -2px 0 55px rgba(0, 0, 0, 0.222);
  z-index: 999999998;
  padding: 7px;
  width: 30%; /* Largura padrão para desktops */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 100% da largura para dispositivos móveis */
@media (max-width: 600px) {
  #minicart {
      width: 95%;
      padding-left: 2%;
      padding-right: 2% ;

  }
}

/* 40% da largura para tablets */
@media (min-width: 601px) and (max-width: 1024px) {
  #minicart {
      width: 70%;
      padding-left: 2%;
      padding-right: 2% ;
  }
}

/* 30% da largura para desktops */
@media (min-width: 1025px) {
  #minicart {
      width: 500px;
      padding-left: 2%;
      padding-right: 2% ;

  }
}

  #minicart-close {
    font-size: 2.5em;
    cursor: pointer;
    color: #e52828a4;
    font-weight: bold;
    margin-top: 15px;
    margin-right: 25px;
    display: flex;
    justify-content: flex-end;
  }

  #minicart-items {
    max-height: 70vh;
    overflow-y: auto;
    margin-bottom: 35px;
  }

  .minicart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  }

  .minicart-item h4 {
    margin: 0;
    font-size: 0.9em;
    flex-grow: 1;
    font-weight: 400;
    color: #1c1c1c;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  }

  .minicart-item span {
    font-weight: 600;
    color: #141414;
    font-size: 0.8em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;


  }

  .quantity-controls {
    display: flex;
    align-items: right;
  }

  .quantity-button {
    cursor: pointer;
    padding: 5px;
    margin-left: 13px;
    margin-right: 13px; 
    background-color: #e3c49036;
    border-radius: 2px;
    margin: 0 4px;
  }

  .finalize-button {
width: 90%;
padding: 15px;
background-color: #1e8226;
color: #fff;
border-radius: 9px;
border: none;
font-weight: 400;
cursor: pointer;
margin-left: 5%;


}


  /* ******************* */
  .remove-button {
cursor: pointer;
margin-left: 10px; /* Um pequeno espaçamento */
}

.iva{
  color: #777777c4; margin-top: 0px; font-size: 0em; font-weight: 500;
}



#destaque{

  background-color: #f3c613; 
  color: #272727;
  padding: 13px 25px 13px 25px;
  line-height: 40px;
}

#destaque-texto{

  color: #272727;
  padding: 13px 25px 13px 25px;
  line-height: 40px;
  color: #ffffff;
  font-weight: 500;
}

/*tooltip*/
.cart-tooltip {
  position: fixed;
    top: 2%;
    right: 13%;
    background: #ffb617ea;
    width: 290px;
    color: #242017;
    padding: 12px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 1;
    transition: opacity 1.5s ease;
    z-index: 9999999990;
    text-align: center;
  }