.product-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-header {
  flex: 0 0 60%;
  margin-bottom: 80px;
}

.product-title {
  margin: 0;
  padding: 1.8em 67px 1.5em 30px;
  background: #fff;
  font-size: 1rem;

  small,
  span {
    display: block;
  }

  small {
    font-weight: $font-weight-light;
  }

  span {
    font-size: 2em;
    text-transform: uppercase;
    font-weight: $font-weight-bold;
  }

  @include media-breakpoint-up(md) {
    font-size: 25px;
  }
}

.product-text {
  line-height: 2;
  font-size: 20px;
  font-weight: $font-weight-light;
}

.product-detail,
.product-style {
  max-height: 75vh;
  margin-bottom: 10px;

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

.product-detail {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  .product-detailimage {
    aspect-ratio: 4/2;
    overflow: hidden;
  }

  @include media-breakpoint-up(md) {
    .product-detailimage {
      aspect-ratio: unset;
    }
  }
}

.product-detailimage {
  background: center no-repeat;
  background-size: cover;
  flex: 1;

  @include media-breakpoint-down(sm) {
    min-height: 50vw;
  }
}

.product-content {
  flex: 0 0 60%;
  padding-bottom: 30px;
  position: relative;

  > .row {
    max-width: 1460px;
    margin: auto;
  }

  @include media-breakpoint-up(md) {
    padding-left: 100px;
    padding-right: 100px;
  }
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  align-items: center;
}

.product-feature {
  max-height: 100px;
  width: auto;
  padding: 5px;
}

.product-prev,
.product-next {
  position: absolute;
  display: none;
  width: 110px;
  height: 250px;
  top: 0;
  background-size: cover;
  transition: transform 0.6s ease-in-out-back, filter 0.4s ease;
  filter: grayscale(100%);

  @include media-breakpoint-up(md) {
    display: block;
  }

  &:hover,
  &:focus {
    filter: grayscale(0);
    transform: translateX(0);
  }
}

.product-prev {
  left: -10px;
  transform: translateX(-40px);
}

.product-next {
  right: -10px;
  transform: translateX(40px);
}

.product-close {
  user-select: none;
  width:1.3em;
  height:1.3em;
  line-height: 1.3em;
  position: fixed;
  right: 15px;
  top: 15px;
  text-decoration: none;
  text-align: center;
  opacity: 1;
  color: inherit;
  font-style: normal;
  font-size: 40px;
  font-family: Arial, Baskerville, monospace;
  overflow: visible;
  cursor: pointer;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 10;
  box-shadow: none;
  touch-action: manipulation;
  background: #fff;

  &:hover,
  &:focus {
    outline: none;
    color: inherit;
    text-decoration: none;
  }

  &:active {
    transform: translateY(1px);
  }

  &::-moz-focus-inner {
    padding: 0;
    border: 0;
  }
}
