.product-name{
    width: 100%;
    background-color: rgb(66, 65, 65);
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
.product-name h1{
    color: #f3a93d;
    margin-top: 40px;
}

.image {
    perspective: 1000px;
    width: 250px;
    margin: 30px 2px;
  }
  figure { 
    margin: 0 !important;
    width: 250px;
    height: 240px;
    background-size: 100%; 
    transform-origin: center bottom;
    transform-style: preserve-3d;
    transition: 1s transform;
   }
  figure figcaption { 
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    background-size: 100%; 
    height: 40px;
    background-repeat: no-repeat;
    background-position: bottom;
    color: #fff; 
    position: relative; 
    top: 240px;
    transform-origin: center top;
    transform: rotateX(-89.9deg);
    font-size: 17px;
    font-family: Montserrat, Arial, sans-serif;
    text-align: center;
    line-height: 2;
  }
  figure:before {
    content: '';
    position: absolute; 
    top: -60px; left: 0;
    width: 100%; height: 100%;
    box-shadow: 0 0 100px 50px rgba(0, 0, 0, 0.1), inset 0 0 250px 250px rgba(0, 0, 0, 0.1);
    transition: 1s;
    transform: rotateX(95deg) translateZ(-80px) scale(0.75);
    transform-origin: inherit;
  }
  .image:hover figure { 
    transform: rotateX(80deg) translateZ(5vw); 
  }
  .image:hover figure:before {
    box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.2), inset 0 0 250px 250px rgba(0, 0, 0, 0.2);
    transform: rotateX(-5deg) translateZ(-80px) scale(1);
    }
  
  
  
  @media screen and (max-width: 1200px) {
    .image {
      perspective: 1000px;
      width: 200px;
      margin: 25px 10px;
    }
    figure { 
      margin: 0 !important;
      width: 200px;
      height: 190px;
     }
     figure figcaption { 
      height: 25px;
      top: 190px;
      transform-origin: center top;
      font-size: 10px;
    }
    .image:hover figure { 
      transform: rotateX(80deg) translateZ(5vw); 
    }
  }
  @media screen and (max-width: 992px) {
    .image {
      perspective: 1000px;
      width: 150px;
      margin: 25px 10px;
    }
    figure { 
      margin: 0 !important;
      width: 150px;
      height: 140px;
     }
     figure figcaption { 
      height: 25px;
      top: 140px;
      transform-origin: center top;
      font-size: 10px;
    }
    .image:hover figure { 
      transform: rotateX(80deg) translateZ(5vw); 
    }
  }
  @media screen and (max-width: 768px) {
    .image {
      perspective: 1000px;
      width: 200px;
      margin: 20px 10px;
    }
    figure { 
      margin: 0 !important;
      width: 200px;
      height: 190px;
     }
     figure figcaption { 
      height: 25px;
      top: 190px;
      transform-origin: center top;
      font-size: 10px;
    }
    .image:hover figure { 
      transform: rotateX(80deg) translateZ(5vw); 
    }
  }
  @media screen and (max-width: 550px) {
    .image {
      perspective: 1000px;
      width: 150px;
      margin: 20px 10px;
    }
    figure { 
      margin: 0 !important;
      width: 150px;
      height: 140px;
     }
     figure figcaption { 
      height: 25px;
      top: 140px;
      transform-origin: center top;
      font-size: 10px;
    }
    .image:hover figure { 
      transform: rotateX(80deg) translateZ(5vw); 
    }
  }
  
  @media screen and (max-width: 400px) {
    .image {
      perspective: 1000px;
      width: 140px;
      margin: 30px 0px;
    }
    figure { 
      margin: 0 !important;
      width: 140px;
      height: 130px;
     }
     figure figcaption { 
      height: 25px;
      top: 130px;
      transform-origin: center top;
      font-size: 10px;
    }
    .image:hover figure { 
      transform: rotateX(80deg) translateZ(5vw); 
    }
  }