/* Estilização geral */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    margin-top: 60px;
  }
  
  /* Estilização do cabeçalho */ 
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #6db44e;
    padding: 10px;
    display: flex;
    align-items: center;
  }
  
  .logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
  }
  
  .search-bar {
    flex-grow: 1;
    padding: 5px;
    border-radius: 5px;
    border: none;
  }
  
  .category-select {
    margin-left: 10px;
    padding: 5px;
    border-radius: 5px;
    border: none;
    background-color: #fff;
    color: #000;
  }
  
  /* Estilização da seção de produtos */
  section {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
  }
  
  .product {
    flex-basis: calc(50% - 20px);
    margin: 10px;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
  }
  
  /* Estilização do contêiner da imagem do produto */
.product-image-container {
    position: relative;
    display: inline-block;
}

/* Estilização da imagem da oferta */
   .discount {
    background-color: red;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    position: absolute;
    top: 10px; /* Ajuste a distância do topo conforme necessário */
    right: -35px; /* Ajuste a distância da direita conforme necessário */
    max-width: 60px; /* Aumente o valor conforme necessário para exibir mais caracteres */
    text-align: center;
    z-index: 1;
  }
  
  .product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
  }
  
  .product-name {
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .product-category {
    margin-bottom: 5px;
  }
  
 .product-price {
  font-size: 18px;
  color: #333333;
}

.product-price del {
  color: #999999;
  text-decoration: line-through;
}

.product-price.offer {
  color: #ff0000;
}

.product-price.offer::after {
  content: "Em oferta!";
  display: inline-block;
  font-size: 12px;
  color: #ff0000;
  margin-left: 8px;
}

.product-price::before {
  content: "R$";
  font-weight: bold;
  margin-right: 4px;
}

.product-price::after {
  content: attr(data-unit);
  font-size: 14px;
  margin-left: 4px;
}

.product-price::before,
.product-price::after {
  vertical-align: middle;
}
  
  .add-to-cart-button {
    background-color: #6db44e;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .popup {
    background-color: #ffffff;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .popup h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .quantity-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.quantity-container input[type="number"] {
  width: 80px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 5px;
}

.radio-button {
  display: inline-block;
  margin-right: 10px;
  cursor: pointer;
  font-size: 16px;
}

.radio-button label {
  display: inline-block;
  padding: 8px 12px;
  border: 2px solid #333;
  border-radius: 20px;
  transition: background-color 0.3s, color 0.3s;
}

.radio-button input {
  display: none;
}

.radio-button input:checked + label {
  background-color: #333;
  color: #fff;
}
  
  #observacoes {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 15px;
  }
  
  .add-to-cart {
    background-color: #4caf50;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    transition: background-color 0.3s;
  }
  
  .add-to-cart:hover {
    background-color: #45a049;
  }
  
  .close-button {
    background-color: #f44336;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
  }
  
  .close-button:hover {
    background-color: #e53935;
  }  

  .floating-cart-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .floating-cart-button:hover {
    background-color: #45A049;
  }  
  
  /* Estilização responsiva para dispositivos móveis */
  @media only screen and (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
  
    .logo {
        margin-bottom: 10px;
    }
  
    .search-bar,
    .category-select {
        width: 100%;
        margin-bottom: 10px;
    }
  
    section {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
  
    .product {
        flex-basis: calc(100% - 20px);
    }
  }