/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nestle-Test-Light", Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Cabeçalho */
header {
  background-color: #f0b340; /* Cor do fundo */
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img#app-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  cursor: pointer;
}

header h1 {
  flex: 1;
  text-align: center;
  font-size: 24px;
  margin: 0;
}

header img#reset-button {
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  background-color: #f0b340; /* Fundo igual ao header */
  padding: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

header img#reset-button:hover {
  background-color: #e09c30; /* Cor mais escura no hover */
  transform: scale(1.1); /* Efeito de escala no hover */
}

/* Fundo principal com imagem */
main {
  flex: 1;
  padding: 20px;
  background: linear-gradient(rgba(240, 179, 64, 0.7), rgba(240, 179, 64, 0.7)),
    url("https://i.ibb.co/VQTKrgV/KV-1-1.png") no-repeat center center;
  background-size: cover;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 900px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Produtos */
.product-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  gap: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Imagem do produto */
.product-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  background-color: #f1f1f1;
  padding: 10px;
}

/* Informações do produto */
.product-container h3 {
  font-size: 18px;
  margin: 0;
  color: #007cba;
  flex: 1;
  text-align: left;
}

/* Reações */
.reactions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.reaction {
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: #f1f1f1;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.reaction:hover {
  background-color: #007cba;
  color: #fff;
  transform: scale(1.1);
}

.reaction.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal h2 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #333;
}

.modal p {
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
}

.modal button {
  background: #007cba;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.modal button:hover {
  background: #005a8c;
}

/* Rodapé */
footer {
  text-align: center;
  background-color: #f0b340;
  color: #fff;
  padding: 15px;
  font-size: 14px;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  margin-top: auto;
}

/* Responsividade */
@media (max-width: 768px) {
  .product-container {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .product-image {
    width: 60px;
    height: 60px;
  }

  .reactions {
    flex-wrap: nowrap;
  }

  .reaction {
    font-size: 14px;
    padding: 5px 8px;
  }
}