article {

  position: relative;
  transition: all .2s cubic-bezier(.47,1.64,.41,.8);

  .pictures-container {

    display: flex;
    position: relative;
    z-index: 2;

    ul.variations {

      display: flex;
      flex-wrap: wrap;
      gap: .5rem;
      width: 36%;
      align-content: center;
      justify-content: center;
      position: relative;
      z-index: 2;
      padding: 0 .5rem;
      padding-top: 24%;

      li {
        display: inline-block;
        width: 1.25rem;
        height: 1.25rem;
        background-color: var(--variationbg);
        border-radius: 50%;
        position: relative;
        box-shadow: 0 0 .25rem 0 rgba(0, 0, 0, 0.5);
        transition: .15s ease-out;
        border: 1px solid var(--variationbg);
      }

      li:hover,
      li.current {
        cursor: pointer;
        border-color: var(--alto-white);
        /* transform: scale(1.1); */
      }

    }

    .pictures {

      position: relative;
      padding-bottom: 64%;
      width: 64%;
      display: flex;
      z-index: 2;

      picture {

        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        right: 0;
        overflow: hidden;
        border-radius: 26.5%;
        background-color: var(--alto-white);
        border: 1px solid var(--alto-white);
        box-shadow: 0 0 .5rem 0 rgba(0, 0, 0, 0.5);
        opacity: 0;
        /* transition: .3s ease-out; */

        a {

          display: block;
          width: 100%;
          height: 100%;
          cursor: pointer;

          img {
            max-width: 100%;
            max-height: 100%;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            z-index: 3;
          }

        }

      }

      picture.current {
        opacity: 1;
      }

    }

  }

  .pictures-container:after {
    content: "";
    display: block;
    background-color: var(--bg-fake-white);
    width: 100%;
    height: 66%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    border-radius: 1rem 1rem 0 0;
  }

  > ul {

    background-color: var(--bg-fake-white);
    display: block;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    border-radius: 0 0 1rem 1rem;
    padding: 1rem;
    height: 186px;

    li {

      a {
        color: var(--alto-black);
        /* transition: color .15s ease-out; */
      }

      a:hover {
        color: var(--alto-red);
      }

      .brand {
        font-size: .9rem;
      }

      .name {
        font-size: 1.2rem;
        line-height: 1.4rem;
        text-decoration: none;
        color: #000;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        overflow: hidden;
        word-wrap: break-word;
      }

      .model {
        font-size: .9rem;
      }

    }

  }

  .price {

    display: flex;
    flex-direction: column;
    gap: .5rem;

    .price-current {

      font-size: 2rem;
      color: var(--alto-red);
      text-decoration: none;
      font-weight: 600;

      sup {
        font-size: 1rem;
        margin-left: .15rem;
        vertical-align: super;
      }

    }

    .price-reg {

      font-size: 1rem;

      span {
        text-decoration: line-through;
      }

      strong {
        margin-left: .5rem;
        font-weight: 600;
        text-decoration: none;
      }

    }

  }

}

@media only screen and (min-width: 701px)  {
  article:hover {
    transform: scale(1.1);
  }
}

@media only screen and (max-width: 700px)  {

  article {

    padding-top: 0;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
     "picture ul ul";

    .pictures-container {

      position: relative;
      width: 100%;
      padding-bottom: 0;
      grid-area: picture;
      flex-direction: column-reverse;
      justify-content: flex-end;

      .pictures {
        width: 100%;
        /* aspect-ratio: 1; */
        padding-bottom: 100%;
      }

      ul.variations {
        width: 100%;
        /* aspect-ratio: 1; */
        height: 100%;
        padding: 1rem 0 0 0;
        align-content: start;

        li {
          width: calc(33% - .5rem);
          height: calc(50% - .25rem);
        }
      }

    }

    .pictures-container:after {
      display: none;
    }

    > ul {

      grid-area: ul;
      border-radius: 1rem;
      min-height: 180px;
      height: auto;

      li.variations {
        position: absolute;
        left: 0;
        bottom: 0;
        margin-bottom: 0;
      }

    }

  }

}
