/* public/css/estilo.css */

body {
    margin: 0;
    font-family: "Montserrat", Sans-serif;
    background: #f6f6f6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Faz o corpo ocupar 100% da altura da tela */
    margin: 0;
}
main{
    flex: 1;
}
.banner{
  width: 100%;
  height: auto;
}
.banner-img{
  min-width: -webkit-fill-available;
  height: 20em;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

.nav-container {
    width: 90%;
    margin: auto;
    padding: 20px 0;
}


header {
    color: #eee;
    background: #2980b9;
    padding: 10px 0;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

header .logo img{
    width: 15em;
    height: 5em;
}

header nav a {
    margin-left: 20px;
    color: #fff;
    text-decoration: none;
}

footer {
    color: #eee;
    background: #2980b9;
    padding: 10px 0;
    margin-top: 40px;
}

footer .logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

footer nav a {
    margin-left: 20px;
    color: #fff;
    text-decoration: none;
}

.footer-container {
    width: 90%;
    margin: auto;
    padding: 20px 0;
}

.produtos, .produto-detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.produto {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    width: 260px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.produto img {
    max-width: 100%;
    height: auto;
}

.produto h2 {
    font-size: 18px;
    margin: 10px 0;
}

.produto p {
    font-size: 16px;
    color: #000;
    margin-bottom: 10px;
}

.alerta {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: fadein 0.5s;
}

@keyframes fadein {
    from {opacity: 0;}
    to {opacity: 1;}
}
.carrinho table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carrinho th, .carrinho td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.carrinho th {
    background: #f1f1f1;
    font-weight: bold;
}
.menu-icons {
    display: flex;
        align-items: flex-end;
        gap: 30px;
        flex-direction: row;
        align-content: stretch;
        flex-wrap: nowrap;
        justify-content: flex-end;
        margin-top: -100px;
        
}

.menu-item {
    position: relative;
    text-align: center;
    cursor: pointer;
}

.menu-item i {
    font-size: 24px;
    color: white;
    display: block;
    margin: 0 auto 5px;
}

.menu-item span {
    font-size: 16px;
    color: #fff;
}

.submenu {
    display: none;
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: #0077c8;
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
    width: 200px;
    text-align: center;
}

.menu-item.atendimento:hover .submenu {
    display: block;
}

.badge {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 15px;
    position: absolute;
    top: 8px;
    right: 8px;
}

.card-produto {
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    font-family: Arial, sans-serif;
    position: relative;
    margin: 20px;
  }
  
  .desconto {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0077c8;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
  }
  
  .imagem-produto {
    width: 80%;
    margin: 50px auto 10px auto;
    display: block;
  }
  .card-produto:hover{
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    transition: all 0.3s ease;
  }
  .info-produto {
    padding: 10px 20px 20px 20px;
  }
  
  .titulo-produto {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    margin-bottom: 10px;
  }
  
  .precos {
    margin-bottom: 15px;
  }
  
  .preco-antigo {
    text-decoration: line-through;
    color: #888;
    margin: 5px 0;
  }
  
  .preco-atual {
    font-size: 22px;
    font-weight: bold;
    color: #0077c8;
    margin: 5px 0;
  }
  
  .preco-boleto {
    color: #0077c8;
    font-weight: bold;
    margin: 5px 0;
  }
  
  .parcelamento {
    font-size: 14px;
    color: #333;
  }
  
  .botoes {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
  }
  
  .botao-comprar, .botao-espiar {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #0077c8;
  }
  
  .botao-comprar {
    background: #0077c8;
    color: white;
  }
  
  .botao-espiar {
    background: white;
    color: #0077c8;
  }
  
  .botao-comprar:hover {
    background: #005fa3;
    transition: background 0.3s ease;
  }

  .botao-espiar:hover {
    background: #0077c8;
    color: white;
    transition: background 0.3s ease;
  }

  .item-link {
    text-decoration: none;
    color: inherit;
  }

  .galeria {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.imagem-principal {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.thumbnails img:hover {
    border-color: #0077c8;
}
/* Estilo geral da página de detalhes */
.pagina-produto {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 30px;
}

.galeria {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imagem-principal {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.thumbnails img:hover {
  border-color: #007bff;
}

.detalhes {
  flex: 1 1 400px;
  margin-left: 50px;
  margin-right: 200px;
}

.titulo-produto-detalhes {
  font-size: 30px;
  margin-bottom: 20px;
  color: #333;
}

.precos-detalhes {
  margin-bottom: 20px;
}

.preco-antigo-detalhes {
  text-decoration: line-through;
  color: #888;
  font-size: 16px;
}

.preco-atual-detalhes {
  font-size: 28px;
  color: #007bff;
  margin-top: 5px;
}

.preco-boleto-detalhes {
  color: #28a745;
  font-size: 18px;
  margin-top: 5px;
}

.parcelamento-detalhes {
  font-size: 16px;
  color: #333;
  margin-top: 10px;
}

.botao-comprar-detalhes {
  background-color: #36c6f0;
  color: white;
  border: none;
  padding: 15px;
  width: 80%;
  font-size: 18px;
  margin-top: 20px;
  border-radius: 5px;
  cursor: pointer;
}

.botao-comprar:hover {
  background-color: #1da7d3;
}

.calculo-frete {
  margin-top: 30px;
}

.calculo-frete input[type="text"] {
  width: 30vh;
  padding: 10px;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  float: left;
  margin-left: 2em;
}

.calculo-frete button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  width: auto;
}

.calculo-frete button:hover {
  background-color: #2563eb;
}

#resultado-frete {
  margin-top: 15px;
  font-size: 16px;
  color: #333;
}


 /*Tela carrinho*/

 .container_carrinho {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px;
}
.checkout-form, .checkout-resumo {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
}
fieldset {
  border: 1px solid #ccc;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}
fieldset legend {
  font-weight: bold;
}
input {
  display: block;
  margin-bottom: 10px;
  width: 95%;
  padding: 8px;
  font-size: 14px;
}
button {
  background: #36c6f0;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}
button:disabled {
  background: #ccc;
}
.resumo-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

.resumo-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.resumo-dados {
  flex: 1;
}

.produto-nome {
  font-size: 16px;
  margin: 0 0 8px 0;
  color: #333;
  font-weight: 600;
}

.produto-controle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #444;
}

.produto-controle input {
  width: 50px;
  padding: 5px;
  font-size: 14px;
}

.btn-remover {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  width: 10px;
  margin-right: 30px;
}

.btn-remover img {
  width: 20px;
  height: 20px;
  filter: grayscale(0%);
  opacity: 0.8;
  transition: 0.2s ease;
}

.btn-remover img:hover {
  opacity: 1;
  filter: none;
}

/*Footer*/

.footer {
  background-color: #2082bf;
  color: #fff;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin: 10px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-column ul li i {
  margin-right: 8px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-column.social {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon {
  font-size: 28px;
  color: #2082bf;
  background-color: #fff;
  padding: 10px;
  border-radius: 50%;
}

.footer-divider {
  border-top: 1px solid #1a6b9a;
  margin: 30px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.payments h4 {
  margin-bottom: 10px;
  font-size: 18px;
}

.payment-icons i {
  font-size: 30px;
  margin-right: 12px;
  color: #fff;
}

.footer-copy,
.footer-powered, a {
  font-size: 14px;
  color: #e0e0e0;
}

/* Responsivo */
@media (max-width: 1215px) {
  .pagina-produto {
      flex-direction: column;
      align-items: center;
  }

  .galeria .detalhes{
      flex: 1 1 100%;
      max-width: 100%;
  }
  .detalhes {
      margin-left: 0;
      margin-right: 0;
      text-align: center;
  }
 
  /* body{
    background-color: #000;
  } */
  .calculo-frete input[type="text"] {
    margin-right: 0;
  }
  .calculo-frete{
    display: inline-block;
    margin: 0;
  }
}

@media (max-width: 600px) {
  header {
      text-align: center;
  }
  .nav-container{
      flex-direction: column;
      align-items: center;
  }
  header .logo  {
      width: 100%;
      text-align: center;
  }
  .menu-icons{
    margin-top: -50px;
    justify-content: center;
  }
  .calculo-frete input[type="text"] {
    margin-right: 0;
  }
  .calculo-frete{
    display: inline-block;
    margin: 0;
  }
  .container_carrinho{
    flex-direction: column;
  }

}