@import '../../../styles/app';

.product-page {
  .section {
    margin-bottom: $spacer * 5;

    @include media-breakpoint-down(sm) {
      background-color: $white;
      margin: 0 -15px;
    }

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

  .sectionTitle {
    width: 100%;
    text-align: center;
    margin-bottom: $spacer * 2;
    font-weight: $font-weight-normal;

    @include media-breakpoint-down(sm) {
      font-size: 1.4rem;
      margin-bottom: $content-padding / 2;

      &.hide-sm {
        display: none;
      }
    }
  }

  .slider {
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;

    @include media-breakpoint-down(sm) {
      margin-bottom: -#{$content-padding / 2};
      padding-bottom: 50px;
    }

    .productCard {
      margin-bottom: 0;
    }

    :deep(.carousel__track) {
      justify-content: flex-start;
    }

    :deep(.carousel__slide) {
      flex: 0 0 25%;
      max-width: 25%;

      @include media-breakpoint-down(lg) {
        flex: 0 0 33.333%;
        max-width: 33.333%;
      }

      @include media-breakpoint-down(md) {
        flex: 0 0 50%;
        max-width: 50%;
      }
    }
  }

  .sliderItem {
    padding: 0 10px;
    width: 100%;

    @include media-breakpoint-down(sm) {
      padding: 5px;
    }
  }
}
