.product-single-main {
  @include make-col-ready();

  @include media-breakpoint-up(lg) {
    @include make-col(8);
  }

  .product-single-top-part {
    background-color: $white;
    border: 1px solid $border-color;
    border-radius: $border-radius;
    overflow: hidden;
    margin-bottom: 30px;

    .product-info-before-gallery {
      display: flex;
      align-items: center;
      padding: 30px;

      @include media-breakpoint-down(sm) {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;

        .before-gallery-unit {
          border: none;
          padding: 10px;
        }
      }
    }

    .before-gallery-unit {
      display: flex;
      align-items: center;
      border-right: 1px solid $border-color;
      padding-right: 20px;
      margin-right: 20px;

      &:last-child {
        padding-right: 0;
        border-right: none;
      }

      .icon {
        margin-right: 15px;
        font-size: 24px;
        color: color('blue');
      }

      .info {
        line-height: 1.5;
        .label {
          color: gray('400');
        }
        .value {
          a {
            span {
              margin: 0 8px;
            }
          }
          a:last-child {
            span {
              display: none;
            }
          }
        }
      }

      .star-rating {

        .rating {
          background-color: color('teal');
          color: #fff;
          padding: 3px 6px;
          margin-right: 8px;
          border-radius: 4px;
        }
      }
    }
  }

  .product-image-wrapper {
    img {
      max-width: 100%;
      width: 100%;
      height: auto;
    }
  }

  .product-single-meta-inside {
    @include media-breakpoint-up(lg) {
      display: none;
    }
  }

}

.course-single-gallery {
  .product-image-wrapper {
    position: relative;

    .video-button {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);

      .cdb-video-icon {
        background-color: rgba(61,61,61,.6);
        width: 90px;
        height: 90px;
        border: 0;

        &:before {
          border-width: 15px 0 15px 20px;
          left: 44px;
          margin: -14px 0 0 -7px;
        }

        &:hover {
          background-color: $white;
        }
      }
    }
  }
}

.product-single-aside {
  @include make-col-ready();

  @include media-breakpoint-down(md) {
    display: none;
  }

  @include media-breakpoint-up(lg) {
    @include make-col(4);
  }
}

.product-info-box,
.product-single-content,
.product-reviews,
.course-teacher-details {
  background-color: $white;
  padding: 1.75rem;
  border: 1px solid $border-color;
  border-radius: $border-radius;
  overflow: hidden;
  margin-bottom: 30px;
}

.product-reviews {
  padding: 0;

  .product-review-title {
    padding: 0 30px;
    border-bottom: 1px solid $border-color;

    .inner {
      position: relative;
      font-size: 16px;
      padding: 20px 0;
      margin-bottom: 0;
      display: inline-block;

      i {
        margin-right: 10px;
      }

      &:after {
        content: '';
        display: block;
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: color('orange');
      }
    }
  }
}

.product-reviews-inner {
  padding: 1.75rem;
}

.product-reviews-stats {
  display: flex;

  @include media-breakpoint-down(md) {
    flex-direction: column;
  }

  .rating-subtitle {
    color: gray('500');
    margin-bottom: 10px;
  }

  .detailed-ratings {
    min-width: 60%;
    margin-bottom: 30px;

    .detailed-ratings-inner {
      padding: 30px;
      border: 1px solid $border-color;
      border-radius: $border-radius;

      .course-rating {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        line-height: 1;

        &:last-child {
          margin-bottom: 0;
        }

        .number {
          white-space: nowrap;
          margin-right: 15px;
        }

        .bar {
          position: relative;
          background-color: gray('200');
          width: 100%;
          height: 12px;
          border-radius: 8px;
          margin-right: 15px;

          .bar-fill {
            position: absolute;
            top: 0;
            left: 0;
            height: 12px;
            border-radius: 8px;
            background-color: color('orange');
          }
        }
      }
    }
  }
}

.average-rating {
  padding-right: 30px;

  @include media-breakpoint-down(md) {
    padding-right: 0;
    margin-bottom: 20px;
  }

  .avareage-rating-inner {
    min-width: 180px;
    padding: 42px 30px;
    border: 1px solid $border-color;
    border-radius: $border-radius;
    text-align: center;

    .average-rating-number {
      font-size: 65px;
      line-height: 65px;
      color: #464749;
    }

    .average-rating-stars {
      margin-bottom: 10px;

      .star-rating {
        display: inline-block;
        vertical-align: top;
        width: 90px;
        height: 18px;
        margin-top: 10px;
        background-size: 18px;
        background: url('../images/star-empty.svg') left top repeat-x;

        & > span {
          display: block;
          text-indent: -9999px;
          line-height: 1;
          height: 18px;
          background-size: 18px 18px;
          background: url('../images/star-fill.svg') left top repeat-x;
        }

      }

      .price {
        display: none;
      }
    }

    .average-rating-label {
      color: gray('500');
    }
  }

  .detailed-ratings {
    flex-grow: 1;
  }
}

.product-info-box {

  .price {

    .price-label {
      display: block;
      color: gray('500');
    }

    .amount {
      color: #464749;
    }

    & > .amount {
      font-size: 26px;
    }

    del {
      margin-right: 8px;
    }

    ins {
      background-color: transparent;
      .amount {
        font-size: 26px;
      }
    }
  }

  .stock {
    display: none;
  }

  .button {
    @extend .btn-border;
    width: 100%;
  }

  .cart {

    .quantity {
      display: none;
    }
  }

  .product-side-share {
    text-align: center;
  }

  .post-share {
    justify-content: center;
  }
}

.product-meta-info-list {
  display: block;
  margin-top: 30px;
  margin-bottom: 30px;

  .meta-info-unit {
    display: flex;
    align-items: center;
    border-bottom: 1px solid gray('200');
    padding-top: 12px;
    padding-bottom: 12px;

    .icon {
      font-size: 16px;
      margin-right: 15px;
      color: color('orange');
    }
  }
}

.course-teacher-details {

  .top-part {
    display: flex;
    align-items: center;
    margin-bottom: 10px;

    img {
      max-width: 100%;
      width: 80px;
      height: auto;
      border-radius: 50%;
    }

    .name {
      line-height: normal;
      flex-grow: 1;
      padding-left: 20px;

      h6 {
        margin-bottom: 4px;
      }

      .job-title {
        color: gray('500');
      }
    }
  }

  .content p {
    margin-bottom: 8px;
  }
}

.related-products {
  margin-top: 10px;

  > h2 {
    margin-bottom: 24px;
  }
}