.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  transition: all 250ms ease-in-out;
  opacity: 0;
  visibility: hidden;
}
.modal--bg {
  visibility: visible;
  opacity: 1;
  z-index: 1;
}
.modal__content {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 540px;
  width: 960px;
  max-width: calc(100% - 30px);
  background-color: #edf7f6;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-100px);
  transition: all 250ms ease-in-out;
}
.modal__content--show {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  visibility: visible;
  opacity: 1;
  z-index: 2;
}
.modal__images{
  width: 100%;
}
.modal__img {
  width: 100%;
}
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #212527;
  cursor: pointer;
  transition: all 250ms ease-in-out;
  z-index: 3;
}
.modal__close:hover {
  color: #df4747;
}
.modal__left, .modal__right {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 50%;
}
.modal__left{
  padding: 0;
}
.detail__title, .detail__description {
  text-transform: uppercase;
}
.detail__price {
  font-weight: bold;
}
.detail__bagBtn {
  cursor: pointer;
  background: #212527;
  color: #edf7f6;
  text-align: center;
  padding: 10px 20px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 250ms ease-in-out;
}
.detail__bagBtn:hover {
  color: #47df5b;
}
.modal__images .owl-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}
.modal__images .owl-controls .owl-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.modal__images .owl-controls .owl-nav .owl-prev::before {
  content: "\f104";
  font-family: "FontAwesome";
  font-size: 20px;
  font-weight: bold;
}
.modal__images .owl-controls .owl-nav .owl-next::before {
  content: "\f105";
  font-family: "FontAwesome";
  font-size: 20px;
  font-weight: bold;
}
.modal__images .owl-controls .owl-nav .owl-prev,
.modal__images .owl-controls .owl-nav .owl-next{
  opacity: .2;
  background: rgba(71, 55, 78, 0.8);
  border-radius: 0;
}
.modal__images:hover .owl-controls .owl-nav .owl-prev,
.modal__images:hover .owl-controls .owl-nav .owl-next{
  opacity: 1;
}
.modal__images .owl-controls .owl-nav .owl-prev {
  position: absolute;
  left: 0;
  color: #edf7f6;
  margin: 0;
  cursor: pointer;
  transition: all 250ms ease-in-out;
}
.modal__images .owl-controls .owl-nav .owl-next {
  position: absolute;
  right: 0;
  color: #edf7f6;
  margin: 0;
  cursor: pointer;
  transition: all 250ms ease-in-out;
}
@media (max-width: 600px) {
  .product {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    min-width: 400px;
  }
  .modal__content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    z-index: 1001;
  }
  .modal__content--show {
    max-height: 100%;
    min-width: 400px;
  }
  .modal__left, 
  .modal__right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
  }
  .modal__left{
    padding: 0px;
  }
}