@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'sans-serif';
}

body {
  margin-bottom: 4rem;
}

/* HEADER */

nav {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.promo {
  background-color: #ff8200;
  padding: 4px 60px;
  text-align: center;
  font-size: .75rem;
  color: white;
  font-weight: 500;
}

.back {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.back p {
  font-weight: 600;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 60px;
  margin-top: 1rem;
}

.header img {
  width: 130px;
}



/* SECTION 1 */

.product-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0px 60px;
}

.product-container-header {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quantity {
  color: #a2aaae;
  font-size: .9rem;
}

.produc-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.rating {
  display: flex;
  align-items: center;
}

.rating span {
  color: #a2aaae;
  font-size: .9rem;
}

.ri-star-s-fill {
  color: #FEC83A;
  gap: 2px;
}

.card {
  /* padding: 20px; */
  text-align: center;
  width: 100%;
  padding: 0px 60px;
}

.main-image {
  width: 50%;
  border-radius: 10px;
  transition: opacity 0.3s ease-in-out;
}

.thumbnails {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
}

.thumbnails img {
  width: 20%;
  opacity: 0.6;
  /* height: 60px; */
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  border: 2px solid transparent;
}

.thumbnails img:hover {
  opacity: 1;
}



/* SECTION 2 */

.product-details-container {
  padding: 0px 60px;
  width: 100%;
}

.sender {
  color: white;
  background-color: #FF8200;
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.price-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 1rem;
}

.ex-price {
  color: #a2aaae;
  text-decoration: line-through;
  font-size: 1.1rem;
}

.price {
  font-size: 1.8rem;
  font-weight: 600;
}

.price span {
  color: #4caf50;
  font-weight: 500;
  font-size: 1.2rem;
}

.freight {
  color: #4caf50;
  font-weight: 500;
  font-size: 1.2rem;
}

.color-container {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
}

.color-container p {
  color: #5e5e5e;
  font-size: 1.3rem;
  font-weight: 600;
}

.color-container img {
  width: 100px;
  border-radius: 10px;
  border: 2px solid #000;
  padding: 5px;
  margin-bottom: 24px;
  margin-top: 4px;
  cursor: pointer;
}

.size-container {
  text-align: left;
  background: white;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.size-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #5e5e5e;
}

.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-option {
  padding: 10px 15px;
  border: 2px solid #000;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.size-option:hover {
  background: #f0f0f0;
}

.size-option.selected {
  background: black;
  color: white;
}

.product-details-container a {
  display: block;
  margin-top: 2rem;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background-color: #ffc83a;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}

.product-details-container a:hover {
  background-color: #ffc83a;
}

.guarantee {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: .9rem;
  margin-top: 1.2rem;
}

.guarantee i {
  margin-right: 6px;
  font-weight: 600;
  font-size: 1.2rem;
}

.guarantee p {
  color: black;
}

.guarantee span {
  color: #6f6f6f;
}

.separator {
  height: 1px;
  background-color: black;
  margin: 3rem 0;
}



/* SECTION 3 */

.opinions-container {
  padding: 0px 60px;
}

.opinion-title {
  font-size: 1.2rem;
  color: #5e5e5e;
  font-weight: 600;
  margin-bottom: 1rem;
}

.opinion {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 3rem;
}

.stars i {
  color: black;
  font-size: 1.5rem;
}

.opinion img {
  width: 125px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
}

.opinion-description {
  color: #5e5e5e;
  font-weight: 600;
}

/* BUTTONS LIKE/UNLIKE */

.buttons-container {
  display: flex;
  gap: 10px;
  margin-top: .3rem;
}

.button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid #ccc;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.button i {
  font-size: 16px;
}

.button.active.like {
  background: #ffc83a;
  color: white;
}

.button.active.dislike {
  background: #ff5252;
}

/* .button:hover {
  background: #0081d6;
  color: white;
} */

.button.dislike:hover {
  background: #ff5252;
}

/* Estilo para o parágrafo com a classe 'promo-text' */
.promo-text {
  color: white; /* Define a cor do texto como branco */
  font-weight: 600;
}

.pulse {
  transform: scale(1);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(3, 7, 18, 0.4);
  }
  50% {
      transform: scale(1.05);
      box-shadow: 0 0 10px 5px rgba(3, 7, 18, 0.2);
  }
  100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(3, 7, 18, 0);
  }
}



/* SECTION 4 */

.terms-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0px 60px;
}

.terms-container p {
  font-size: .8rem;
  color: #5e5e5e;
  font-weight: 600;
}

/* Contêiner das imagens */
.image-container {
  display: inline-block; /* Faz com que as imagens fiquem uma ao lado da outra */
}

/* MEDIA QUERIES */

@media (max-width: 1000px) {
  .main-image {
    width: 90%;
  }

  .thumbnails img {
    width: 30%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .promo {
    padding: 4px 20px;
  }

  .header {
    padding: 0px 20px;
  }

  .product-container {
    padding: 0px 20px;
  }

  .product-details-container {
    padding: 0px 20px;
  }

  .opinions-container {
    padding: 0px 20px;
  }

  .terms-container {
    padding: 0px 20px;
  }

  .main-image {
    width: 100%;
  }

  .thumbnails img {
    width: 25%;
    margin-bottom: 2rem;
  }

  .sender {
    font-size: .85rem;
  }
}