
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css');

  /* Estilos principais */
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 350;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    

  }

  .unbounded-font {
    font-family: 'Unbounded', sans-serif;
}
 
  #product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    padding: 20px;
    margin-left: 20px;
    margin-right: 30px;
  }




  .product {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.131);
    transition: box-shadow 0.2s;
    cursor: pointer;
  }

  .product:hover {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.307);
  }
 
  .product img {
    width: 100%;
    height: auto;
    border-radius: 7px;
  }

  .product h2 {
    font-size: 1em;
    margin: 10px 0;
    font-weight: 400;


  }

  .product .price {
    font-weight: 600;
    color: #479f5a; /* preço */
    font-size: 1.7em;
    margin-bottom: 5%;    
    margin-top: 5%;

  }

  @media (max-width: 480px) {
    .product .price {
      font-size: 1.4em; /* Define o tamanho da fonte para telas pequenas */
    }
  }

  .product .add-to-cart {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    background-color: #594d3e; /* botao vitrine */
    color: #e5d6b2;
    border-radius: 22px;
    text-decoration: none;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.9em;
   }

  .add-to-cart {
    display: block;
    width: 80%;
    padding: 10px;
    margin: 10px auto; /* Centraliza verticalmente e horizontalmente */
    text-align: center;
    background-color: #594d3e; /* botao vitrine */
    color: #e5d6b2;
    border-radius: 22px;
    text-decoration: none;
    font-weight: 400;
    cursor: pointer;
  }
  


  /* Estilos para o modal */
  #modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #30281dd0;
    justify-content: center;
    align-items: center;
    z-index: 1000;

  }


  .product-code {
    font-size: 0.9em;
    color: #888;
    margin-left: 10px;
  }
  
  .modal-code {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 30px;
  }
  

  #modal.show { display: flex; opacity: 1; }

  #modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin: 53% auto; /* Centraliza horizontalmente e dá margem superior */
    max-width: 90%; /* Garante largura máxima de 90% para melhor responsividade */
    max-height: 95vh; /* Limita a altura a 95% da viewport */
    overflow-y: auto; /* Adiciona barra de rolagem para o conteúdo */
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 33vw; /* Padrão para desktop */
  }
  
  @media (max-width: 1024px) {
    #modal-content {
      width: 60vw; /* Para tablets */
    }
  }
  
  @media (max-width: 768px) {
    #modal-content {
      width: 55vw; /* Para celulares */
    }
  }


  #modal-content img {
    width: 100%;
    border-radius: 20px;
    margin: -19% 0%;
  }

  #modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2.2em;
    cursor: pointer;
    color: #aa2b2ba4; /* fechar coisas */
    font-weight: bold;

  }

  .carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
  }

  .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: 5px 10px;
    background-color: #2d2d2de7; /* setinhas modal*/
    border-radius: 5px;
    color: #ffffff;
    font-weight: 500;
  }

  .modal-price {
    font-size: 1.9em;
    color: #479f5a; /* preço modal*/
    font-weight: bold;
    padding-bottom: 7%;
    padding-top: 5%;
  }


  
  #modal-title {
    font-size: 1.4em;
    color: #504b3bb8;
    font-weight: 500;
    padding-bottom: 7%;
    padding-top: 4%;
  }



  .modal-category a {
    color: #54545476;
    text-decoration: none;
    font-weight: bold;
  }




  /* Estilos do carrinho fixo */
  #cart-icon {
    position: fixed;
    bottom: 20px;
    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: 1001;
    border: 2px solid #9f9f9f39;
  }

  /* Contador de itens no carrinho */
  #cart-count {
    position: absolute;
    top: -7px;
    right: -11px;
    background-color: #000;
    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: 99002;
  padding: 7px;
  width: 30%; /* Largura padrão para desktops */
}

/* 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: #aa2b2ba4; /* fechar coisas */
    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;
  }

  .minicart-item h4 {
    margin: 0;
    font-size: 0.9em;
    flex-grow: 1;
    font-weight: 400;
    color: #1c1c1c;
  }

  .minicart-item span {
    font-weight: 600;
    color: #141414;
    font-size: 0.8em;

  }

  .quantity-controls {
    display: flex;
    align-items: right;
  }

  .quantity-button {
    cursor: pointer;
    padding: 5px;
    margin-left: 13px;
    margin-right: 13px; 
    background-color: #cfcfcf5f;
    border-radius: 2px;
    margin: 0 4px;
  }

  .finalize-button {
width: 90%;
padding: 10px;
background-color: #479f5a; /* botao final wp no minicart*/
color: #fff;
border-radius: 99px;
border: none;
font-weight: 400;
cursor: pointer;
margin-left: 5%;


}

  @media (max-width: 768px) {
    #modal-content {
      width: 100%;
      max-width: 90%;
    }
  }

  /* ******************* */
  .remove-button {
cursor: pointer;
margin-left: 10px; /* Um pequeno espaçamento */
}

.iva{
  color: #aeaeae; margin-top: -18px; font-size: 0.9em; font-weight: 500;
}

