@import 'hooper/dist/hooper.css';

.hooper {
  &--index {
    height: 100%;

    .hooper-slide {
      position: relative;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      &__text {
        position: absolute;
        background-color: #ffffffd1;
        width: 582px;
        height: 396px;
        left: 0px;
        bottom: 10%;
        transition: all 2s ease-in-out;
        opacity: 0;

        &__wrap {
          height: 100%;
        }

        @media (max-width: 900px) {
          width: 100%;
          display: flex;
          align-items: center;
          bottom: 0;
        }

        @media (max-width: 768px) {
          height: 300px;
        }

        @media (max-width: 600px) {
          top: 0;
          margin-top: 35%;
        }
      }

      &.is-active {
        .hooper-slide__text {
          opacity: 1;
        }
      }
    }

    .hooper-pagination {
      bottom: 40px;

      @media (max-width: 600px) {
        display: none;
      }
    }

    .hooper-indicator {
      margin: 0 4px;
      width: 44px;
      height: 4px;
      border-radius: 0px;

      &.is-active,
      &:hover {
        background-color: $quinary-color;
      }
    }
  }

  &--productMain {
    height: 500px;
    max-width: 600px;
    border: 1px solid $tertiary-color;

    @media (max-width: 700px) {
      height: 300px;
    }

    .hooper-slide {
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 80px;

      img {
        height: 100%;
        width: 100%;
        object-fit: contain;
      }
    }

    .hooper-prev,
    .hooper-next {
      background: #fff;
      box-shadow: -2px 7px 30px rgba(0, 0, 0, 0.2);
      width: 72px;
      height: 72px;
      border-radius: 100%;
      display: flex;
      align-items: center;
      justify-content: center;

      @media (max-width: 600px) {
        width: 40px;
        height: 40px;
      }

      &.is-disabled {
        opacity: 0;
      }

      svg {
        path:nth-child(3) {
          fill: #ff0000;
        }
      }
    }

    .hooper-prev {
      left: -36px;

      @media (max-width: 600px) {
        left: -16px;
      }
    }

    .hooper-next {
      right: -36px;

      @media (max-width: 600px) {
        right: -16px;
      }
    }
  }

  &--productThumbs {
    height: 100px;
    max-width: calc(600px + 10px);

    @media (max-width: 500px) {
      display: none;
    }

    .hooper-slide {
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid $tertiary-color;
      padding: 20px;
      width: calc(25% - 10px) !important;
      margin-left: 10px;

      &:nth-child(1) {
        margin-left: 0px;
      }

      img {
        height: 100%;
      }
    }
  }
}
