/**
 * Products list Block
 * ----------------------------------------------------------------------------
 */
$height: 100px;


.products-list {
  background: $color-white;
  color: $color-gray-85;

  // each item in list
  &__item {
    width: 100%;
    margin-bottom: .75em;
    padding-bottom: .75em;
    border-bottom: 1px solid $color-gray-10;
    display: grid;
    grid-gap: 5px 15px;
    grid-template-columns: 3fr 5fr;

    .quantity__input-container {
      height: 35px;
    }

    .vo-add-to-cart input[type="radio"] + label {
      padding: 2px 8px;
    }
  }

  &__thumbnail {
    grid-row: 1 / span 5;
  }

  &__title {
    cursor: pointer;
    grid-row: 1;
    font-size: 1.4rem;
  }

  &__wholesale-price,
  &__price {
    cursor: pointer;
    grid-row: 2;
    line-height: 1em;
    font-size: 1.3rem;
    margin: 0;
    color: black;
  }

  &__wholesale-price {
    grid-row: 3;
  }

  &__options {
    padding-top: 10px;
    grid-row: 4
  }

  &__cart {
    display: flex;
    grid-row: 5;
  }

  &__label {
    font-size: .9rem;
  }

  // in thumbnail div
  &__image {
    margin: 0 auto;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    -webkit-background-size: contain;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

  }

  &__button.vo-add-to-cart__button {
    height: 35px;
    line-height: 35px;
    padding: 0 18px;
    margin: 0 10px;
  }


  &__more-info {
    grid-column: 1 / span 2;
    grid-row: 6;
    opacity: 0;
    visibility: hidden;
    transition: all .5s ease-in-out;
    height: 0;

    .active & {
      opacity: 1;
      visibility: visible;
      height: auto;
    }

    .product {
      padding: 1em;
      color: $color-white;
      display: flex;
      flex-direction: column;
    }

    &--block {
      position: relative;
      z-index: 2;
    }
    
    &--image {
      text-align: center;
    }
  }
}

@include breakpoint(large) {
  .products-list {
    &__item {
      display: flex;
      flex-flow: row;
      justify-content: space-between;
      flex-wrap: wrap;
      align-items: center;
      margin: 0;
      padding: 0;

      &--col {
        flex: 1 1 0;
      }

      &--row {
        flex: 0 1 100%;
      }
    }

    &__thumbnail {
      height: 100px;
      flex-grow: 2;
    }

    &__title {
      flex-grow: 6;
    }

    &__wholesale-price {
      flex-grow: 2;
    }

    &__price {
      flex-grow: 2;
    }

    &__options {
      padding-top: 0;
      flex-grow: 3;
    }

    &__cart {
      flex-grow: 4;
    }

    // The more info box which folds out
    &__more-info {
      .product {
        flex-direction: row;
      }

      &--block {
        width: 60%;
      }

      &--image {
        width: 40%;
      }
    }
  }
}
