@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Helvetica, sans-serif;
}

html, body {
  background: #f4f4f6;
  scroll-behavior: smooth;
}

/* Header */
header {
  text-align: center;
  padding: 70px 20px;
  width: 100%;
  background-color: #111111;
}

header h1 {
  font-size: 70px;
  color: #ffffff;
}

header h3 {
  font-size: 50px;
  font-weight: bolder;
  color: #ffffff;
}

header span {
  color: #2cfd19;
}

/* Search */
.search-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 50px 0;
}

#search-input {
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  flex: 1 1 250px;
  max-width: 550px;
  outline: none;
}

#search-input::placeholder {
  color: #999;
}

#search-btn {
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 800;
  border: none;
  background: #656666;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  flex: 0 0 auto;
}

#search-btn:hover {
  background-color: #09aee0;
}

.aviso-compra {
  background-color: #111111;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.aviso-compra p {
  margin: 0;
}

.aviso-compra strong{
  color: #2cfd19;
}


/* Container dos produtos */
.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
  /* centraliza os cards dentro da grid */
  align-items: start;
  max-width: 1300px;
  margin: 0 auto 50px auto;
  /* centraliza o container */
}

/* Card */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 650px;
  transition: transform 0.3s;
}


.card:hover {
  transform: translateY(-5px);
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
}

.carousel-img {
  display: none;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 6px;
}

.carousel-img.active {
  display: block;
}

/* Botões do carousel */
.carousel button.prev,
.carousel button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 3px;
}

.carousel button.prev {
  left: 5px;
}

.carousel button.next {
  right: 5px;
}

.carousel button:hover {
  background-color: rgba(109, 108, 108, 0.7);
}

/* Título */
h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 8px;
}

/* Preço + Frete */
.price-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.price-line .price {
  font-weight: bold;
  font-size: 22px;
  color: #222;
}

.price-line .frete {
  color: rgb(4, 216, 4);
  font-weight: bold;
  font-size: 16px;
}

/* Cores */
.color-selector {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.color-circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

.color-circle:hover {
  transform: scale(1.3);
  border: 2px solid #000;
}

.color-circle.selected {
  outline: 3px solid #ff0000;
}

/* Botões detalhes e compra */
.btn-details {
  width: 160px;
  background-color: #124279;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  margin: 5px;
  transition: background-color 0.3s;
}

.btn-details:hover {
  background-color: #0a9fe4;
}

.btn-buy {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  background: #4a8145;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin: 5px 5px 0 0;
  transition: background 0.3s, color 0.3s;
}

.btn-buy:hover {
  background: #2cfd19;
}

.btn-pix {
  background: #04d804;
}

.btn-pix:hover {
  background: #03b703;
}

/* Detalhes do produto */
.product-details {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: #444;
  text-align: left;
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 50px;
  height: 50px;
  cursor: pointer;
  animation: gentle-shake 1s infinite; /* animação contínua mais lenta */
}

.whatsapp-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes gentle-shake {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-1px, 0) rotate(-2deg); }
  50% { transform: translate(1px, 0) rotate(2deg); }
  75% { transform: translate(-1px, 0) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.payment-section {
  background-color: #f3f4f6;
  padding: 30px 20px;
  margin-top: 40px;
  text-align: center;
  border-top: 2px solid #e2e8f0;
}

.payment-section h3 {
  font-family: 'Poppins', sans-serif;
  color: #374151;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 600;
}

.payment-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.payment-cards img {
  height: 50px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.payment-cards img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Estilização do menu */
.menu {
  padding: 15px 20px;
  text-align: center;
}

.menu a {
  color: #000000;
  text-decoration: none;
  margin: 0 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s, transform 0.3s;
}

.menu a:hover {
  color: #1A4669;
  transform: translateY(-2px);
}


/* Footer sofisticado */
.footer {
  background-color: #111111;
  color: #fff;
  padding: 30px 20px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
  font-family: 'Poppins', sans-serif;
  text-align: center; /* para centralizar o P em telas pequenas */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 1 1 auto;
}

.footer-info h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.footer-info p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #e0e0e0;
  flex-basis: 100%;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 15px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #111111;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-icon img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.social-icon:hover {
  transform: scale(1.2);
  background-color: #111111;
}


@media (max-width: 767px) {

  h1,
  h3,
  span {
    font-weight: 18px;
  }

  .product-container {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {

  .carousel-img {
    height: 250px;
  }

  header h1 {
    font-size: 30px;
  }

  header h3 {
    font-size: 17px;
    margin-top: 5px;
  }

  .card {
    min-height: 600px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer-info,
  .footer-social {
    justify-content: center;
  }

  .footer-info p {
    margin-top: 10px;
  }

  .whatsapp-btn{
    height: 50px;
    width: 50px;
  }
}

@media (max-width: 480px) {
  .frase-topo{
    font-size: 12px;
  }

  .logo{
    margin-left: -10px;
    margin-bottom: 26px;
    height: 90px !important;
  }

  header h1 {
    font-size: 30px;
  }

  header h3 {
    font-size: 17px;
    margin-top: 5px;
  }

  .search-container {
    flex-direction: row;
    align-items: center;
  }

  #search-input,
  #search-btn {
    width: 200px;
  }

  .carousel-img {
    height: 300px;
  }

  .card {
    min-height: 550px;
  }

  #search-input {
    max-width: 90%;
  }

  .whatsapp-btn{
    height: 50px;
    width: 50px;
  }

  .payment-cards img {
    height: 45px;
    margin: 5px;
  }

  .payment-section h3 {
    font-size: 20px;
  }

  /* Estilização do menu */
.menu {
  padding: 15px 20px;
  text-align: center;
}

.menu a {
  color: #000000;
  text-decoration: none;
  margin: 0 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s, transform 0.3s;
}

.menu a:hover {
  color: #1A4669;
  transform: translateY(-2px);
}

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-info {
    align-items: center; /* centraliza H3 e P */
  }

  .footer-info h3 {
    font-size: 20px;
  }

  .footer-info p {
    font-size: 13px;
  }

  .footer-social {
    justify-content: center;
    margin-top: 10px;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }

  .social-icon img {
    width: 28px;
    height: 28px;
  }
}