body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
}

.resized-body {
  flex: 1 1 auto;
}

#filters {
  display: flex;
  max-width: 75rem;
  border-radius: 8px;
  border: 1px solid var(--c2);
  background: var(--w);
  gap: 10px;
  padding: 12px;
  margin: 0 auto;
  margin-top: 2rem;
  overflow-x: auto;
  white-space: nowrap;
}

.item {
  padding: 10px;
  border-radius: 8px;
  background: var(--c2);
  transition: 0.2s;
  text-align: center;
  flex: 0 0 auto;
}

.item:hover {
  scale: 1.05;
}

.item p {
  color: var(--c9);
  font-size: 0.875em;
  font-style: normal;
  line-height: normal;
}

.selected-filter {
  background: linear-gradient(#ff3c2e, #b52628) !important;
  color: var(--w);
}

.selected-filter:hover {
  background: linear-gradient(#d43226, #b52628) !important;
}

.selected-filter {
  color: var(--w);
  font-weight: 700;
}

.container.section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, auto));
  column-gap: 2.45rem;
  max-width: 1200px;
}

@media screen and (max-width: 1200px) {
  .container.filters {
    width: 95%;
  }

  .container.section {
    max-width: 95%;
    grid-template-columns: repeat(auto-fit, minmax(250px, 270px));
    align-items: center;
    justify-content: center;
    column-gap: 1rem;
  }
}

.section button {
  border-radius: 0.5rem;
  border: none;
  background: linear-gradient(#ff3c2e, #b52628);
  color: var(--c1);
  font-family: "Poppins";
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 10px 20px;
}

.section button:hover {
  background: linear-gradient(#d43226, #b52628);
}

button a {
  color: var(--w);
}

.product-image {
  grid-area: product-image;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

.img-produto {
  max-height: 90%;
  max-width: 90%;
  height: 200px;
  object-fit: contain;
}

.product-image span {
  width: inherit;
  height: inherit;
  box-sizing: border-box;
  overflow: hidden;
}

.card {
  position: relative;
  height: 29rem;
  margin-top: 1.75rem;
  background-color: var(--w);
  border-radius: 8px;
  border: 1px solid var(--c2);
  display: grid;
  padding-bottom: 1rem;
  grid-template-columns: 1fr;
  grid-template-areas:
    "product-image"
    "description"
    "original-price"
    "pricing"
    "cupom"
    "redeem-offer"
    "created-at";
}

.has-cupom {
  height: 31rem;
}

.redeem-offer {
  grid-area: redeem-offer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.description {
  width: 13.5rem;
  min-height: 66px;
  margin: 0 auto;
  text-align: start;
  color: var(--c11);
  font-family: "Roboto";
  font-size: 1.125rem;
  grid-area: description;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: wrap;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.created-at {
  color: var(--c6);
  font-family: "Roboto";
  justify-self: start;
  font-size: 0.75rem;
  font-style: normal;
  grid-area: created-at;
  font-weight: 400;
  line-height: normal;
  padding-left: 0.5rem;
}

.pricing {
  color: var(--p1-c);
  width: 13.5rem;
  margin: 0 auto;
  text-align: start;
  font-family: "Roboto";
  grid-area: pricing;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 0px 0 10px 0;
}

.original-price {
  grid-area: original-price;
  font-size: 1rem;
  margin: 0 auto;
  padding: 15px 0 0 0;
  width: 13.5rem;
  font-style: normal;
  font-weight: 400;
  text-decoration: line-through;
  line-height: normal;
  color: var(--c9);
}

.container-cupom {
  border-radius: 0.5rem;
  max-width: 13rem;
  margin: 0 auto;
  height: 40px;
  grid-area: cupom;
  user-select: none;
  border: 1px dashed var(--c6);
  background: var(--c1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.container-cupom:hover {
  transform: scale(1.1);
}

.container-cupom p {
  color: var(--p3-b);
  font-family: "Roboto";
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 5px 0px;
  text-transform: uppercase;
}

.container-cupom-null {
  border-radius: 0.5rem;
  width: 9.5625rem;
  margin: 0 auto;
  padding: 5px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-cupom-null p {
  color: var(--w);
  font-family: "Roboto";
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* BOTÕES PAGINAS */

.container-buttons {
  margin-top: 2.88rem;
  display: flex;
  justify-content: center;
  margin-bottom: 5rem;
  align-items: center;
  gap: 5px;
}

.pagina-btn {
  color: var(--c7);
  text-align: center;
  font-family: "Poppins";
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
}

.selected-page-btn {
  color: #ff3c2e;
}

.selected-page-btn-icon {
  color: #ff3c2e;
  padding-right: 10px;
  font-size: 2rem;
}

.container-buttons p + p {
  margin-left: 0.63rem;
}

.container-supper-offer {
  width: 11.625rem;
  height: 1.4rem;
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 0rem 0.5rem;
  background: var(--p4-a);
  box-shadow: 0px 2px 2px 0px var(--p3-a);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-supper-offer p {
  color: var(--w);
  text-align: center;
  font-size: 0.75rem;
}

/* TERMINAR OS FILTROS DO MOBILE */

@media screen and (max-width: 650px) {
  .container-buttons {
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
}

.pricing-discount {
  color: var(--p1-c);
}

/* É aqui vv */
@media screen and (max-width: 586px) {
  .container.filters {
    width: 90vw;
    justify-items: center;
  }

  .product-image {
    padding-top: 0;
  }

  .container-supper-offer {
    width: 8rem;
  }

  .created-at {
    padding-left: 0;
  }

  #filters {
    margin-top: 1rem;
    border: 1px solid rgba(222, 224, 224, 0.5);
  }

  .container.section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90vw;
    height: auto;
    border: 1px solid rgba(222, 224, 224, 0.5);
    border-radius: 12px;
    margin-top: 1.75rem;
    grid-template-columns: auto;
    grid-template-rows: 1.5rem auto 1.5rem 1.5rem min-content min-content;
    padding: 1rem;
    grid-template-areas:
      "created-at created-at"
      "product-image description"
      "product-image original-price"
      "product-image pricing"
      "cupom cupom"
      "redeem-offer redeem-offer";
  }

  .product-image {
    width: 115px !important;
    height: 115px !important;
    min-height: 115px;
    min-width: 115px;
  }

  .img-produto {
    max-height: 115px;
    max-width: 115px;
  }
  .section button {
    padding: 0;
    width: 80vw;
    margin: 0 auto;
    margin-top: 1rem;
    height: 40px;
  }

  .product-image img {
    max-width: 115px;
    max-height: 115px;
  }

  .description {
    width: auto;
    min-height: 50px;
    max-width: 20rem;
    text-wrap: wrap;
    margin-left: 0.5rem;
    padding-right: 1rem;
    text-align: start !important;
    padding-top: 0;
    align-self: start !important;
    font-size: 1rem;
  }

  .pricing {
    max-width: 10rem;
    align-self: end;
    margin-left: 0.5rem;
    padding: 0;
  }

  .original-price {
    margin-left: 0.5rem;
    align-self: end;
    max-width: 10rem;

    font-size: 0.85rem;
    text-decoration: line-through;
    display: block;
  }

  .created-at {
    padding-left: 0;
  }

  .container-cupom {
    margin-top: 0.5rem;
  }

  .reedem-offer {
    background-color: aquamarine !important;
  }
}

@media screen and (max-width: 350px) {
  .product-image img {
    max-width: 110px;
    max-height: 110px;
  }

  .card {
    padding: 8px;
  }
}
