.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  color: var(--product-card-color);
  background-color: transparent;
  border-radius: 6px;
  overflow: hidden;
  z-index: 3;
  transition: 0.2s ease-in-out;
  border: 1px solid transparent;
}

.product-card .product-image {
  position: relative;
  overflow: hidden;
}

.product-card .product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(229, 231, 235, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  z-index: 1;
}

.product-card-flag {
  position: absolute;
  top: 12px;
  left: auto;
  right: 12px;
  background: #ff4d4d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(255, 77, 77, 0.25);
  z-index: 3;
}

.product-card-label {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 0;
  background: #FDE047;
  color: #0b6ec2;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.product-card .space-image {
  display: block;
  position: relative;
  overflow: hidden;
  padding-bottom: 10px;
  z-index: 0;
}

@media (min-width: 768px) {
  [data-prod-line='5'] .space-image.square {
    max-height: 100%;
  }
}

.product-card .space-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  object-position: center;
}

.product-card .space-image img:not(.loaded) {
  width: 100%;
}

.product-card .space-image:after {
  content: '';
  display: block;
  padding-bottom: 100%;
}

.product-card .product-tags-circle {
  position: absolute;
  top: 0.475rem;
  left: 0.475rem;
  flex-direction: column;
}

.product-card .product-tags {
  position: absolute;
  right: 0.525rem;
  min-width: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card .product-tags[data-tags-count='1'],
.product-card .product-tags[data-tags-count='2'] {
  top: 6px;
}

.product-tags .tag {
  width: 53px;
  height: 42px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.275rem;
  text-align: center;
  word-wrap: break-word;
  overflow: hidden;
}

.product-card .product-tags .tag {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  background: var(--product-tags-bg);
  color: var(--product-tags-color);
  font-size: 0.825em;
  border-radius: 4px;
  padding: 0 0.225rem;
  font-weight: 600;
  margin: 2px;
  border: 1.2px solid var(--product-tags-bg);
  line-height: 20px;
}

[data-prod-line='5'] .product-card .product-tags .tag {
  width: 100%;
  font-size: 0.625em;
}

.product-card .product-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  flex-grow: 1;
  padding: 1.2rem 0 1.475rem;
}

@media (max-width: 767px) {
  .product-card .product-info {
    padding: 1.075rem 0 0.625rem;
  }
}

@media (min-width: 768px) {
  .item-actions-fixed .product .product-info {
    padding: 1.4rem 1.2rem 1rem;
  }
}

.product-card .product-info .product-name {
  color: var(--product-card-color);
  flex-grow: 1;
  max-height: 60px;
  font-size: 0.775rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Limita o título a duas linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  /* Trunca o texto com reticências se ultrapassar o limite de linhas */
  word-wrap: break-word;
  /* Permite que o título do produto quebre para a próxima linha se for muito longo */
}

.product-card .product-price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  min-height: 70px;
  transition: 0.2s ease-out;
  color: var(--product-card-color);
  text-align: left;
}

.product-card .product-price .price .current-price {
  display: block;
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--product-card-price-color);
}

.old-price-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.1rem;
}

.product-card .product-price .price .old-price {
  font-size: 0.75rem;
  text-decoration: line-through;
}

.tag-discount {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  padding: 1px 3px 1px 3px;
  border-radius: 6px;
  font-size: 0.7rem;
  line-height: 1;
  background-color: var(--product-card-tag-discount-bg);
  color: var(--product-card-tag-discount-color);
  position: relative;
  z-index: 2;
  font-weight: 700;
  text-align: center;
}

.tag-list.tag-discount {
  border-radius: 6px;
  margin-left: 0.475rem;
  top: 0;
}

.tag-list.tag-discount span {
  line-height: 18px;
}

.product-card .tag-ondemand {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1px 0 1px;
  border-radius: 6px;
  font-size: 0.7rem;
  background-color: var(--primary-color);
  color: var(--product-card-tag-discount-color);
  position: relative;
  z-index: 2;
  font-weight: 700;
  text-align: left;
  margin-left: 0.475rem;
  top: 0;
  line-height: 18px;
  width: fit-content;
}

.product-card .product-price .product-installments {
  font-size: 0.725rem;
  font-weight: 400;
  display: block;
}

.description-price {
  font-size: 0.75rem;
  color: var(--primary-color);
}

.product-card .actions {
  position: absolute;
  left: 0;
  bottom: 1rem;
  z-index: 4;
  display: flex;
  width: 100%;
  padding: 0 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}

.product-card:focus-within .product-image::after {
  opacity: 1;
  visibility: visible;
}

.product-card:focus-within .actions {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-image::after {
    opacity: 1;
    visibility: visible;
  }

  .product-card:hover .actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.actions .product-button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  width: 100%;
  height: 36px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  color: #fff;
  background-color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: 0.2s ease-out;
  pointer-events: auto;
}

.actions .product-button:hover {
  opacity: 0.92;
}

@media (max-width: 767px) {
  .product-card .actions {
    bottom: 0.875rem;
    padding: 0 0.75rem;
  }
}

@media (min-width: 768px) {
  [data-prod-line='5'] .space-image.square {
    max-height: 100%;
  }
}

@media (max-width: 767px) {
  .product-card .actions .prod-options a.botao.wpp-button.btn-pay-wp {
    font-size: 0.525rem;
    height: 26px;
    border-radius: 4px;
    letter-spacing: -0.2px;
    font-weight: 600;
  }
}
