product-cart.scss 6.51 KB
@import "../../vars";
@import "../../mixins";

.product-cart {
    background-color: #F7F7F9;
    padding-bottom: 80px;

    .poduct-cart__links {
      padding-top: 16px;
      display: flex;
      font-size: 14px;
      line-height: 16px;
      letter-spacing: -0.01em;
      color: #636B78;

      > *:not(:first-child) {
        margin-left: 8px;
      }

     .link_active {
      font-weight: 600;
      color: $vmainGrey;
     }
    }

    .cart__wrapper {
      display: flex;
      margin-top: 40px;

      .cart__info {
        margin-top: 20px;
        margin-left: 20px;

        &-title {
          font-size: 36px;
          line-height: 42px;
          letter-spacing: -0.01em;
          color: $vmainGrey;
          max-width: 450px;
          width: 100%;
        }

        &-config {
          display: flex;
          margin-top: 48px;

          &-select {
            display: flex;
            flex-wrap: wrap;

            .select-size__wrapper, .select-power__wrapper, 
            .select-source__wrapper {
              display: flex;
              flex-direction: column;

              .label {
                font-size: 14px;
                line-height: 16px;
                letter-spacing: -0.01em;
                color: $vmainGrey;
              }
              
              .select {
                background-color: transparent;
                border: none;
                margin-top: 8px;
                -moz-appearance: none;
                -webkit-appearance: none;
                appearance: none;
                background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1.29289 5.29289C0.902369 5.68342 0.902369 6.31658 1.29289 6.70711L10 15.4142L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L10 12.5858L2.70711 5.29289C2.31658 4.90237 1.68342 4.90237 1.29289 5.29289Z' fill='%23ABB2BF'/%3E%3C/svg%3E");
                background-repeat: no-repeat, repeat;
                background-position: right .7em top 50%, 0 0;
                background-size: .65em auto, 100%;
                font-weight: 600;
                font-size: 16px;
                line-height: 20px;
                letter-spacing: -0.01em;
                color: $vmainGrey;
              }

              .select-size {
                background-position: right 0.7em top 50%, 0 0;
              }

              .select-power {
                background-position: right 0.1em top 50%, 0 0;
              }

              .select-source {
                background-position: right 0.7em top 50%, 0 0;
              }
            }

            .select-size__wrapper {
              width: 140px;
            }

            .select-power__wrapper {
              margin-left: 20px;
            }

            .select-source__wrapper {
              margin-top: 24px;
              max-width: 331px;
              width: 100%;
            }
          }

          &-country {
            font-size: 14px;
            line-height: 16px;
            letter-spacing: -0.01em;
            color: $vmainGrey;
            position: relative;

            .svg-country {
              width: 19px;
              height: 15px;
              display: inline-block;
              position: absolute;
              top: 28px;
              left: 0;
            }

            .name {
              font-weight: 600;
              font-size: 16px;
              line-height: 20px;
              letter-spacing: -0.01em;
              margin-top: 10px;
              position: relative;
              margin-left: 32px;
            }
          }
        }

        &-links {
          margin-top: 40px;
          display: flex;
          flex-direction: column;
          font-size: 14px;
          line-height: 16px;
          letter-spacing: -0.01em;
          text-decoration-line: underline;
          color: $vMain3;

          > :not(:last-child) {
            margin-bottom: 6px;
          }
        }

        &-down {
          position: relative;
          margin-top: 41px;
          display: flex;
          justify-content: flex-end;

          .price-before {
            position: absolute;
            bottom: 9px;
            right: 190px;
            font-size: 36px;
            line-height: 24px;
            letter-spacing: -0.01em;
            text-decoration-line: line-through;
            color: #BEC4CE;
          }

          &__price {
            margin-left: auto;
            font-weight: 600;
            font-size: 36px;
            line-height: 42px;
            letter-spacing: -0.01em;
            color: $vmainGrey;
          }
        }

        &-buttons {
          margin-top: 25px;
          display: flex;
          justify-content: flex-end; 

          .cart__button {
                align-self: end;
                display: flex;
                align-items: center;
                justify-content: center;
          }

          .buy {
            @include btn-orange;
            margin-right: 20px;
            padding: 16px 60px;


            &:hover {
              @include btn-orange-hover;
            }
          }

          .now {
            @include btn-orange-hover;
            padding: 16px 30px;
            
              &:hover {
                @include btn-orange; 
              }

          }
        }
      }
    }
}

.swiper-product-container {
  max-width: 700px;
  padding: 0 10px 10px 10px;
 
}

/* galleryTop */
.gallery .swiper-slide {
  cursor: pointer;
}

.gallery {
  max-height: 440px;
  height: 100%;
}

.swiper-zoom-container img
 {
  max-width: 100%;
  max-height: 392px;
  object-fit: cover !important;
 }

.gallery img {
  width: 762px;
  height: 392px;
  border-radius: 10px;
}

/* thumbs */
.swiper-wrapper-thumbs {
  transform: translate3d(0.164px, 0px, 0px) !important;
  width: 180px !important;
  margin-top: 5px;
}

.gallery-thumbs .swiper-slide {
  width: auto;
  border-radius: 10px;
  opacity: 0.8;
  -webkit-filter: grayscale(100%);
  /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
}

.gallery-thumbs .swiper-slide-active {
  opacity: 1;
  -webkit-filter: initial;
  /* Safari 6.0 - 9.0 */
  filter: initial;
  font-weight: bold;
  color: #231b93;
}

.gallery-thumbs img {
  cursor: pointer;
  width: 100%;
  height: 90px;
  border: 1px solid #F5851A;
  border-radius: 10px;
  object-fit: cover;
}


.swiper-scrollbar {
    height: 8px !important;
    background-color: #DFE1E7 !important;
    border-radius: 10px;
    cursor: pointer;
}