.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 28px;
}

@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 22px;
  }
}

@media (max-width: 767px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px 22px;
  }
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: "";
  display: block;
  width: 100%;
  grid-column: 1 / -1;
}

.woocommerce ul.products li.product.cre-product-card,
.woocommerce-page ul.products li.product.cre-product-card {
  margin: 0;
  width: 100%;
}

.woocommerce ul.products li.product.cre-product-card .cre-product-card__inner,
.woocommerce-page ul.products li.product.cre-product-card .cre-product-card__inner {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}

.cre-product-card__image-link {
  display: block;
  text-decoration: none;
}

.cre-product-card__image-wrap {
  border-radius: 10px;
  overflow: hidden;
}

.cre-product-card .cre-product-card__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 !important;
}

.cre-product-card__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
  padding: 19px 0;
}

.woocommerce ul.products li.product.cre-product-card .cre-product-card__title,
.woocommerce-page ul.products li.product.cre-product-card .cre-product-card__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 800;
  color: #1f1f1f;
}

.cre-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.cre-product-card__subtitle {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  color: #262626;
  text-transform: uppercase;
}

.cre-product-card__specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 4px;
  margin-top: auto;
}

.cre-product-card__spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 4px;
  border-radius: 6px;
  min-height: 34px;
}

.cre-product-card__spec-row.is-alt {
  background: #f0f0f0;
}

.cre-product-card__label {
  font-size: 16px;
  line-height: normal;
  font-weight: 500;
  color: #262626;
  flex: 1 1 auto;
  max-width: 195px;
}

.cre-product-card__value {
  font-size: 16px;
  line-height: normal;
  font-weight: 700;
  color: #000;
  text-align: right;
  flex: 0 0 auto;
  white-space: nowrap;
}

.cre-product-card__measures {
  display: flex;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.cre-product-card__measure {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cre-product-card__measure-label {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  color: #1f1f1f;
}

.cre-product-card__measure-value {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  color: #1f1f1f;
}

.cre-product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding-top: 10px;
}

.cre-product-card__garantia-badge {
  width: fit-content;
  position: absolute;
  right: 16px;
  top: 18px;

  & svg {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .cre-product-card__image-wrap {
    position: relative;
  }

  .cre-product-card__garantia-badge {
    top: 6px;
    right: 4px;
  }

  .cre-product-card__garantia-badge svg {
    width: 38px;
    height: 38px;
    background-image: url(/wp-content/uploads/2026/04/Garantia-meses.png);
    background-position: center center;
    background-size: contain;
  }
}

@media (max-width: 767px) {

  .woocommerce ul.products li.product.cre-product-card .cre-product-card__inner,
  .woocommerce-page ul.products li.product.cre-product-card .cre-product-card__inner {
    padding: 16px;
    border-radius: 18px;
    gap: 18px;
  }

  .woocommerce ul.products li.product.cre-product-card .cre-product-card__title,
  .woocommerce-page ul.products li.product.cre-product-card .cre-product-card__title {
    font-size: 24px;
  }

  .cre-product-card__subtitle,
  .cre-product-card__label,
  .cre-product-card__value,
  .cre-product-card__measure-label,
  .cre-product-card__measure-value {
    font-size: 15px;
  }

  .cre-product-card__actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cre-product-card__btn {
    min-height: 48px;
    border-radius: 14px;
    font-size: 15px;
    padding: 10px 14px;
  }
}

/* tablet */
@media (max-width: 1024px) {
  .cre-product-card__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 11px;
  }

  .woocommerce ul.products li.product a img {
    width: 125px;
  }

  .woocommerce ul.products .cre-product-card__head {
    width: calc(100% - 125px - 11px);
  }

  .woocommerce ul.products li.product.cre-product-card .cre-product-card__title,
  .woocommerce-page ul.products li.product.cre-product-card .cre-product-card__title {
    font-size: 20px;
  }

  .cre-product-card__specs {
    padding-top: 19px;
  }
}