.swiper {
  width: 100%;
}

.swiper-thumbs {
  width: 100%;
  height: 500px;

  .swiper-slide {
    background-size: cover;
    background-position: center;
    opacity: 0.4;
  }

  .swiper-slide-thumb-active {
    opacity: 1;
    border: 3px #b59b4b solid;
  }

  .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.swiper-gallery {
  height: 400px;

  .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media screen and (width >= 1024px) {
    height: 750px;
  }
}

.variants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;

  & > a {
    text-decoration: none;
    color: #000;
  }

  & .item {
    flex-basis: 120px;
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid #7d6b34;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 300ms cubic-bezier(0.4, 0, 0.2, 1),
      color 300ms cubic-bezier(0.4, 0, 0.2, 1),
      transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;

    & input[type="radio"] {
      display: none;
    }

    &.active {
      background-color: #8c773a;
      transform: translateY(-3px);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
      color: #ffffff;
      cursor: default;
    }

    &:hover {
      background-color: #8c773a;
      transform: translateY(-3px);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
      color: #ffffff;
    }

    & span {
      font-weight: 600;
      text-align: center;
    }
  }
}

.updateAmount {
  display: inline-block;
  animation: sideToside 0.8s cubic-bezier(0.01, 0.69, 0.62, 0.5);
}

@keyframes sideToside {
  from {
    transform: translateX(-15px);
  }

  to {
    transform: translateX(0);
  }
}
