/* доп. картинки в товаре */

.tovar_img_small{
  width: 100px; 
  display:inline-block;
  margin:20px 10px 0px 0px;  
  vertical-align: top;
}

.image__wrapper, .minimized{
  width: 100px;
  height: 80px;
  text-align: center;
}

.minimized {
  cursor: pointer;
  object-fit: cover;
}

.image__wrapper_text{
  margin-top: 10px;
  font-size: 14px;
}


/* главная картинка в товаре */


.tovar_img_big{
  position: relative;
}

.tovar_img_big, .image__wrapper1, .minimized1{
  width: 350px; 
}

.image__wrapper1, .minimized1{
  height: 300px; 
}

.minimized1 {
  cursor: pointer;
  object-fit: cover;
}






/* увеличенная картинка */

#magnify {
  display: none;
  position: fixed;
  max-width: z00px;
  height: auto;
  z-index: 9999;
}
 
#magnify img {
  width: 100%;
  border-radius: 5px;
  transition: 0.5s;
}
 
/* затемняющий фон */

#overlay {
  display: none; 
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.4;
  z-index: 9990;
}
 
/* кнопка закрытия */
#close-popup {
  width: 30px;
  height: 30px;
  background: #FFFFFF;
  border: 1px solid #AFAFAF;
  border-radius: 15px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
}
 
#close-popup i {
  width: 30px;
  height: 30px;
  background: url(https://codernote.ru/files/cross.png) no-repeat center center;
  background-size: 16px 16px;
  display: block;
}
 
@keyframes rota {
 25% { transform: rotate(360deg); }
}
 
#close-popup:hover {
  animation: rota 4s infinite normal;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}