/**
 * Featured Products.
 */
.component-featured-products {
  clear: both;
  margin: 0 auto 40px;
  padding: 0 15px;
  max-width: 1400px;
}
.component-featured-products__title {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: $c-primary;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.component-featured-products__slider {
  margin: 0;
  padding: 0 40px;

  // Slider arrows.
  .slick-prev,
  .slick-next {
    position: absolute;
    top: 35%;
    display: block;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    font-size: 0;
    line-height: 1.0;
    background: none;
    border: none;
    outline: none;
    vertical-align: middle;
    z-index: 2;
  }
  .slick-prev {
    left: 3px;

    // Arrow.
    &:before {
      @include fa-icon();
      content: $fa-var-angle-left;
      display: inline-block;
      margin: 0;
      padding: 0;
      color: #6a6a6a;
      font-size: 50px;
      text-align: center;
      outline: none;
    }
    &:hover:before {
      opacity: 0.6;
    }
  }
  .slick-next {
    right: 3px;

    // Arrow.
    &:before {
      @include fa-icon();
      content: $fa-var-angle-right;
      display: inline-block;
      margin: 0;
      padding: 0;
      color: #6a6a6a;
      font-size: 50px;
      text-align: center;
      outline: none;
    }
    &:hover:before {
      opacity: 0.6;
    }
  }
  .slick-next,
  .slick-prev {
    &.slick-disabled {
      // Arrow.
      &:before {
        color: #ccc;
        opacity: 1;
      }
    }
  }
}
.component-featured-products__slider__slide__item {
  padding: 0 10px;

  a {
    line-height: 1.3em;
    color: #000;
  }
}

// If there are not enough items to trigger the slider.
.component-featured-products__slider--no-slider {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;

  @media (min-width: $screen-xs-min) {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
  }
  .component-featured-products__slider__slide {
    float: none;
    margin: 0 0 30px 0;
    padding: 0 10px;
    width: 50%;
    background: none;

    @media (min-width: $screen-sm-min) {
      padding: 0 10px;
      width: 25%;
    }
    @media (min-width: $screen-md-min) {
      width: 15%;
    }
  }
  .component-featured-products__slider__slide__item {
    padding: 0;
  }
}

// Overrides for in-page featured products.
.paragraph--view-mode--default {
  a.product--teaser .product__thumbnail {
    height: 160px;
  }
}
