.produtos-abas {
  --laranja: #fb4b1f;
  --laranja-hover: #e63f16;
  --roxo: #3126b3;
  --texto: #222222;
  --cinza: #777777;
  --estrela: #f7b500;

  font-family: 'Poppins', 'Segoe UI', sans-serif;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;

  /*
    Cria o fundo laranja somente no topo,
    igual à referência.
  */
  background: linear-gradient(
    to bottom,
    var(--laranja) 0,
    var(--laranja) 240px,
    #ffffff 240px,
    #ffffff 100%
  );
}

/* Área interna centralizada */
.produtos-abas__inner,
.produtos-abas__content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Cabeçalho das abas */
.produtos-abas__header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 16px;
  margin-bottom: 42px;
}

/* Nav das abas */
.produtos-abas__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

/* Botões das abas */
.produtos-abas__btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;

  color: #ffffff;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;

  padding: 0 20px 16px;
  min-width: 145px;

  opacity: 1;
  font-family: inherit;
}

/* Linha abaixo das abas */
.produtos-abas__btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;

  width: 145px;
  height: 5px;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);

  transform: translateX(-50%);
  transition: background 0.2s ease;
}

/* Aba ativa */
.produtos-abas__btn.active {
  font-weight: 700;
}

.produtos-abas__btn.active::after {
  background: var(--roxo);
}

/* Painéis */
.produtos-abas__panel {
  display: none;
}

.produtos-abas__panel.active {
  display: block;
}

/* Grid dos produtos */
.produtos-abas__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;

  /*
    Este margin faz os cards subirem,
    sobrepondo o fundo laranja e o branco.
  */
  margin-top: 0;
  padding-bottom: 48px;
}

/* Card */
.produto-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;

  border: 1px solid #eeeeee;
  box-shadow: none;

  display: flex;
  flex-direction: column;

  min-height: 344px;
}

/* Remove hover muito forte */
.produto-card:hover {
  transform: none;
  box-shadow: none;
}

/* Link da imagem */
.produto-card__image-link {
  display: block;
  text-decoration: none;
}

/* Área da imagem */
.produto-card__image {
  position: relative;
  width: calc(100% - 16px);
  height: 205px;

  margin: 8px auto 0;

  border-radius: 13px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f5f5f5;
}

/* Imagem */
.produto-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Badge promoção */
.produto-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;

  background: var(--laranja);
  color: #ffffff;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;

  padding: 7px 12px;
  border-radius: 999px;

  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Corpo do card */
.produto-card__body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Estrelas */
.produto-card__rating {
  min-height: 14px;
  margin-bottom: 2px;

  color: var(--estrela);
  font-size: 10px;
  line-height: 1;
}

.produto-card__rating .star-rating {
  float: none;
  width: auto;
  height: auto;
  font-size: 10px;
  line-height: 1;
  color: var(--estrela);
}

.produto-card__stars-empty {
  color: var(--estrela);
  font-size: 10px;
  letter-spacing: 1px;
}

/* Título */
.produto-card__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.produto-card__title a {
  color: var(--roxo);
  text-decoration: none;
}

.produto-card__title a:hover {
  text-decoration: none;
}

/* Preço */
.produto-card__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;

  margin-bottom: 6px;

  font-size: 11px;
  line-height: 1.2;
}

.produto-card__price .price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.produto-card__price del {
  color: #777777;
  font-size: 9px;
  font-weight: 400;
  opacity: 1;
}

.produto-card__price del .amount {
  color: #777777;
}

.produto-card__price ins {
  color: var(--laranja);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.produto-card__price ins .amount {
  color: var(--laranja);
}

/* Badge desconto */
.produto-card__discount {
  background: var(--roxo);
  color: #ffffff;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;

  padding: 4px 7px;
  border-radius: 4px;
}

/* Parcelamento */
.produto-card__installments {
  color: #777777;
  font-size: 10px;
  line-height: 1.25;

  margin-bottom: 8px;
}

/* Botão */
.produto-card__button {
  margin-top: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 28px;

  background: var(--laranja);
  color: #ffffff;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 800;
  line-height: 1;

  text-align: center;
  text-decoration: none;
  text-transform: uppercase;

  transition: background 0.2s ease;
}

.produto-card__button:hover {
  background: var(--laranja-hover);
  color: #ffffff;
}

/* Responsivo */
@media (max-width: 1024px) {
  .produtos-abas__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .produtos-abas {
    background: linear-gradient(
      to bottom,
      var(--laranja) 0,
      var(--laranja) 260px,
      #ffffff 260px,
      #ffffff 100%
    );
  }

  .produtos-abas__nav {
    gap: 14px;
  }

  .produtos-abas__btn {
    font-size: 18px;
    min-width: auto;
    padding: 0 8px 14px;
  }

  .produtos-abas__btn::after {
    width: 100px;
  }

  .produtos-abas__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .produtos-abas__grid {
    grid-template-columns: 1fr;
  }
}
