@charset "UTF-8";

body.page-product {
  .product-image {
    .swiper {
      height: 500px;
      &:hover {
        .swiper-pager > div {
          background-color: rgba(255, 255, 255, 0.548);
          opacity: 1;
          &:hover {
            background-color: rgba(255, 255, 255);
          }
        }
      }
    }
    .left {
      margin-right: 1rem;

      .swiper > div > div{
        border: 1px solid #eee;
        margin-bottom: 10px;
        width: 80px;
        height: 80px !important;
        padding: 2px;
        cursor: pointer;

        &.active, &:hover {
          border: 1px solid #3a3a3a;
        }
      }

      .swiper-pager {
        > div {
          opacity: 0;
          background-color: rgba(255, 255, 255, 0);
          transition: all .5s;
        }
        .swiper-button-next {
          border: 0;
          top: 518px;
          left: 50%;

          height: 55px;
          width: 30px;
          transform-origin: center;
          transform: rotate(90deg) translate(0,25%);

          &:hover,&.active {
            border: 0 !important;
          }

          &::after {
            font-size: 18px;
          }
        }

        .swiper-button-prev{
          border: 0;
          top: 8px;
          left: 50%;
          height: 55px;
          width: 30px;
          transform-origin: center;
          transform: rotate(90deg) translate(0,25%);

          &:hover,&.active {
            border: 0 !important;
          }

          &::after {
            font-size: 18px;
          }
        }
      }
    }

    .right {
      border: 1px solid #eee;
    }
  }

  .variables-wrap {
    .variable-info {
      > div {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        border: 1px solid #ddd;
        margin-left: 0;
        min-width: 3rem;
        padding: 0.5rem;
        cursor: pointer;
        text-align: center;
        font-weight: bold;
        // border-radius: 2rem;
        transition: all .1s ease-in-out;
        &:hover, &.selected {
          border-color: #222;
        }

        &:not(.selected) {
          &.disabled {
            border: 1px dashed #bfbfbf;
            color: #999;
            font-weight: initial;
          }
        }
      }
    }
  }

  .peoduct-info {
    .rating-wrap {
      margin-bottom: 2rem;

      .rating {
        margin-right: .5rem;
        i {
          color: $primary;
        }
      }
    }

    .price-wrap {
      margin-bottom: 2rem;

      .new-price {
        margin-right: .6rem;
        font-size: 1.6rem;
        line-height: 1;
      }
    }

    .attribute-wrap {
      margin-bottom: 2rem;

      .table {

      }
    }

    .quantity-btns {
      .quantity-input {
        max-width: 5rem;
        text-align: center;
      }

      .quantity-wrap {
        height: 43px;
      }
    }
  }

  .product-description {
    .nav-tabs {
      .nav-link {
        border: none;

        &.active {
          position: relative;
          background-color: transparent;
          color: $primary;

          &:before {
            border-top: 1px solid $primary;
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
          }
        }
      }
    }
  }
}