@import './../../../../sources/styles/include.scss';

$component: 'categories';
$template: 'template-9';
$class: #{$component};
$item: 'widget-item';

@keyframes development-solutions {
  from {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
  to {
    transform: translateX(0);
  }
}

.widget.c-#{$component}.c-#{$component}-#{$template} {
  .widget-wrapper-2 {
    position: relative;
  }
  .widget-content {
    padding: 0 50px;
  }
  .#{$item}-wrapper {
    position: relative;
    height: 100%;
    padding: 20px;
  }
  .#{$item}-picture {
    display: block;
    min-height: 500px;
  }
  .#{$item}-name-wrap {
    font-size: 40px;
    font-weight: 500;
    line-height: normal;
    color: #000000;
    margin-top: 45px;
    word-wrap: break-word;
  }
  .#{$item}-name {
    color: #2f3334;
    text-decoration: none;
    transition: color 0.4s;
  }
  .#{$item}-description {
    font-size: 14px;
    line-height: 21px;
    color: #000000;
    margin-top: 10px;
    word-break: break-all;
  }

  .#{$item}-features {
    margin-top: 50px;
  }
  .#{$item}-features-item:hover {
    .#{$item}-features-item-icon {
      transform: scale(1.2);
    }
  }
  .#{$item}-features-item-icon {
    font-size: 0;
    text-align: center;
    width: 29px;
    height: 29px;
    margin-right: 18px;
    background-color: #16DC95;
    border-radius: 50%;
    box-shadow: 0px 6px 18px #11B87C;
    transition-property: transform;
    transition-duration: 0.4s;

    &:after {
      content: '';
      display: inline-block;
      width: 0;
      height: 100%;
      vertical-align: middle;
    }

    svg {
      display: inline-block;
      vertical-align: middle;
    }
  }

  .#{$item}-features-item-description {
    font-size: 11px;
    line-height: 16px;
    color: #222222;
  }

  .#{$item}-marks {
    margin-top: 15px;
  }
  .#{$item}-marks-name {
    font-size: 16px;
    line-height: 24px;
    color: #222222;
    margin-bottom: 5px;
  }
  .#{$item}-mark-item {
    font-size: 14px;
    line-height: 14px;
    color: #FFF;
    padding: 5px 7px;
    border-radius: 5px;
    background-color: red;
    pointer-events: none;
    user-select: none;
    cursor: default;
  }
  .#{$item}-mark-item-wrap:nth-child(1) .#{$item}-mark-item {
    background: #FC2A5C;
  }
  .#{$item}-mark-item-wrap:nth-child(2) .#{$item}-mark-item {
    background: #116AFC;
  }
  .#{$item}-mark-item-wrap:nth-child(3) .#{$item}-mark-item {
    background: #16DC95;
  }
  .#{$item}-mark-item-wrap:nth-child(4) .#{$item}-mark-item {
    background: #16dcca;
  }
  .#{$item}-mark-item-wrap:nth-child(5) .#{$item}-mark-item {
    background: #ab16dc;
  }
  .#{$item}-mark-item-wrap:nth-child(6) .#{$item}-mark-item {
    background: #dcb116;
  }

  .#{$item}-price {
    color: #222222;
    margin-top: 60px;
  }
  .#{$item}-price-value {
    font-size: 40px;
    font-weight: 300;
    line-height: 40px;

    &[data-price='old'] {
      font-size: 20px;
      line-height: 25px;
      text-decoration: line-through;
      margin-top: 10px;
    }
  }

  .#{$item}-buttons {
    margin-top: 20px;
  }
  .#{$item}-button {
    display: inline-block;
    font-size: 16px;
    line-height: 16px;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 26px;
    user-select: none;
  }
  .#{$item}-button-additional {
    color: #fff;
  }
  .#{$item}-button-detail {
    color: #222222;
    background-color: #FFF;
    border: 2px solid #EFEFEF;
    padding-top: 16px;
    padding-bottom: 16px;
    transition-property: border-color;
    transition-duration: 0.4s;
  }

  [data-role='slider'] .#{$item}-wrapper {
    padding-right: 50px;
    padding-bottom: 30px;
  }

  .widget-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;

    button {
      position: absolute;
      cursor: pointer;
      top: 0;
      margin-top: -24px;
      outline: none;
      font-size: 0;
      width: 40px;
      height: 40px;
      background-color: #FFF;
      border-radius: 50%;
      user-select: none;
      border: 1px solid #E8E8E8;
      overflow: hidden;
      outline: none;
      @include border-radius(2px);
      @include transition(0.35s, all);

      &:hover {
        svg {
          path {
            stroke: #FFF;
          }
        }
      }
      path {
        transition-property: fill;
        transition-duration: 0.4s;
      }
      &.disabled {
        visibility: hidden;
        cursor: not-allowed;

        path {
          fill: #EFEFEF;
        }
      }
      &.owl-prev {
        left: 0;

        svg {
          margin-right: 2px;
        }
      }
      &.owl-next {
        right: 0;

        svg {
          margin-left: 2px;
        }
      }
    }
  }

  @media all and (max-width: 768px) {
    .#{$item}-name {
      font-size: 25px;
      margin-top: 30px;
      line-height: 1.4;
    }
    .#{$item}-picture {
      min-height: 300px;
      background-position: center center;
    }

    [data-role='slider'] .#{$item}-wrapper {
      padding-left: 0;
      padding-right: 15px;
    }
    .owl-nav {
      top: 125px;
    }
  }

  @media all and (max-width: 500px) {
    .#{$item}-features {
      display: none;
    }
    .#{$item}-price {
      margin-top: 30px;
    }
    .#{$item}-price-value {
      font-size: 25px;
      line-height: 25px;

      &[data-price='old'] {
        font-size: 18px;
        line-height: 23px;
      }
    }
    .#{$item}-button {
      font-size: 14px;
      line-height: 14px;
    }
    .#{$item}-name {
      font-size: 20px;
      margin-top: 30px;
      line-height: 1.2;
    }
  }

}