.products-last-visited {
  padding-top: 4.8rem;
}

.products-last-visited-wrapper {
  display: flex;
  overflow: auto;
  gap: 1rem;
  padding-top: 2.4rem;
  scroll-snap-type: x mandatory;

  & a {
    background-color: var(--white);
    border-radius: 4px;
  }

  & .card-product {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.6rem;
    scroll-snap-align: start;

    &:hover {
      transform: scale(0.99);
    }

    & button {
      border: none;
      padding: 1.2rem;
      border-radius: 4px;
      font-size: 1.5rem;
      background: linear-gradient(
        140deg,
        rgba(255, 102, 0, 1) 40%,
        rgba(255, 117, 26, 1) 100%
      );
      box-shadow: 0 3px 0 var(--orange-d-30);
      color: var(--white);
      cursor: pointer;

      &:active {
        transform: translateY(3px);
        box-shadow: none;
      }
    }
  }

  & img {
    width: 100%;
    min-width: 32rem;
  }
}

.promotions {
  padding-top: 3.2rem;
  display: flex;
  gap: 2.4rem;
  flex-direction: column;

  & .container-cards-promotion {
    display: flex;
    gap: 1.6rem;
    width: 100%;
    overflow: auto;
    scroll-snap-type: x mandatory;
  }

  & .card-promotion {
    scroll-snap-align: start;
    transition: all 200ms ease-out;
    
    &:hover {
      transform: scale(.98);
    }
    
    & img {
      max-width: 36rem;
      border-radius: 4px;
    }
  }
}

@media (min-width: 768px) {
  .products-last-visited-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    & img {
      min-width: 0;
    }
  }
}
