@media (max-width: 620px) {
    .item-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .item-row img.photo {
    margin-right: 0;
    margin-bottom: 10px;
   
  }
  .photo-block {
    flex-direction: row;
    text-align: center;
  }

  .photo {
    width: 100%;
    height: auto;
  }

  .photo-text {
    width: 100%;
    padding: 10px;
  }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    background: url("../images/img1.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;

}
.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.header {
    position: fixed;
    width: 100%;
    text-align: center;
    height: 60px;
    background-color: rgb(168, 110, 165);
    color: white;
    font-size: 30px;
    line-height: 60px;
    text-shadow: 5ch 5ch 50px rgba(14, 0, 0, 0.5);   
    
}
.items {
    display: flex;    
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-block {
    display: block;
    flex: 1;
    text-align: center;
    font-size: 18px;
    color: rgb(10, 0, 9);    
    width: 90%;
    
}
.item-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    background-color: rgba(255,255,255,0.4);
    padding: 30px;
    border-radius: 20px;
    margin-top: 120px;
    flex-wrap: wrap;
}

.item-row .photo {
    height: 300px;
    border-radius: 20px;
}
.photo:hover {
filter: inherit;
}
.photo:active{
    width: 400px;;
    height: auto;
    filter: inherit;    
    transform: translateZ(calc(var(--index)*15));
}

.item-row .photo-text {
    text-align: left;
    font-size: 18px;
    flex: 1;
}


.photo {
    width: auto;    
    height: 370px;         
    cursor: pointer;
    border-radius: 30px;
    border-color: black;
       
}

.photo-text {
    flex: 1;
    text-align: center;
    font-size: 18px;
    color: rgb(10, 0, 9);
    display: block;
    width: 40%;
}
.buy-button {
    background-color: rgb(221, 204, 220);
    border-radius: 30px;
    width: 60px;
    cursor: pointer;

    
}
.back-button {
    text-align: center;
    background-color:  rgb(168, 110, 165);
    border-radius: 8px;
    color: rgb(226, 234, 243);
    width: 100%;    
    height: 30px;
    line-height: 25px;    
    margin: 0;
    text-decoration: none;    
    position: fixed;
    top:60px;
    font-size: 16px;

}
.back-button:hover {
    color:rgb(226, 234, 243);
    }
    
.next-button{
    text-align: center;
    background-color: rgb(168, 110, 165);
    color: #fcfbfc;
    width: 35px;
    height: 30px;
    line-height: 25px;
    border-radius: 10px;    
    text-decoration: none;    
    position: fixed;
    left: 90%;
    top:60px;
    font-size: 16px;
}
.next-button:hover {
    background-color: rgba(116, 59, 113, 0.8);
    border-radius: 7px;
    color:rgb(226, 234, 243);
}
.previous-button{
    text-align: center;
    background-color: rgb(168, 110, 165);
    color: rgb(226, 234, 243);
    width: 35px;
    height: 30px;
    line-height: 25px;
    border-radius: 10px;    
    text-decoration: none;    
    position: fixed;
    left: 7%;
    top:60px;
    font-size: 16px;
}
.previous-button:hover {
    background-color: rgba(116, 59, 113, 0.8);
    border-radius: 7px;
    color:rgb(226, 234, 243);
}
.cartBtn {
  position: fixed;
  top: 8px;
  right: 30px;
  padding: 10px 20px;
  font-size: 16px;     
  border-radius: 8px;
  cursor: pointer;
  width: auto;             /* важно! убирает растяжение */
  max-width: 100px;
  background-color: rgba(41, 39, 39, 0.4);
  z-index: 999;
  color: aliceblue;


}
#cart {     
 position: fixed;
 top: 110px;
 right: 15px; 
 background-color: rgb(168, 110, 165, 0.9);

}
    
  

#customer-info input,
#customer-info textarea {
  
  width: 300px;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 3px;
  border-radius: 5px;
  border: 1px solid #1f1111;
  
}
.cart-item button {
  margin-left: 5px;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  border: none;
  background-color: #d6d3d3;
  cursor: pointer;
}
.preis p2 {
    background-color: rgb(80, 148, 12);
    border-radius: 7px;
    color:rgb(238, 241, 241);
    

}

