.title-container {
    justify-content: center;
    display: inline-block;
    width: 100%;
    max-width: 800px;
    padding: 60px;
    margin: 60px;        /* wyśrodkowanie kontenera */
    text-align: center; 
}

.title {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center:

}
.subtitle {
    position: center;
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    color: #333;
}   
.product-image {
    width: 100%;  
    transition: opacity .3s ease;
}

/* galeria karty produktu */

.product-thumbs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.product-thumbs img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s ease, transform .2s ease;
}

.product-thumbs img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.product-thumbs img.active-thumb {
    opacity: 1;
    outline: 2px solid black;
}



.product-description {
    padding-left: 15px;
    max-width: 600px;
 }

.product-containter {
display: flex;
flex-wrap: wrap;
width:100%;
min-width: 400px;
gap: 15px;
justify-content: center;
height: auto;

}


.product-card {
display: block;
gap: 14px;
min-width: 300px;
max-width: 350px;
width: 100%;
height: auto;
background: #fff;
flex: 1 1 375px;  
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.3s ease;

}

.product-card:hover {
transform: translateY(-1.8px);
}

.product-image {
width: 100%;
border-radius: 1px;
height: auto;
object-fit: cover;
}

.product-details {
padding: 0px;
}

.product-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
margin: 15px;
}

.product-description {
padding: 20px 10px;
font-size: 14px;
line-height: 1.4;
color: #666;
background-color: #ffffff3a;
backdrop-filter: blur(15px);


max-width: 718px;
margin: 20px auto 0;   
text-align: left;      


}

p {
    margin: 10px;
    
    line-height: 1.2;
    border-width: 1px;
    border-color: black;
}


.product-price {
padding-left: 10px;
font-size: 16px;
font-weight: thin;
color: #333;
}





.size-selector {
  margin:0;
  max-height: 45px;
  color: rgb(255, 255, 255);
  cursor: pointer;
  padding: 10px 20px;
  width: 100%;
  border: none;
  background-color:rgba(0, 0, 0, 0.91);
  box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.5);
  text-align: center;
  outline: none;
  font-size: 14px;
  transition: background-color 1.1s ease;
  
}

.size-selector:hover {
  background-color: #0056b3;
  color: rgb(255, 255, 255);
}

/* size buttons behavior when selected */
.selected {
    background-color: #0088ff;;
    transition: background-color 0.2s ease;
}
.selected:hover {
    background-color: #0088ff;;
}
.purchase-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: 0;
    padding: 0 12px;
}

/*below product cards, button move client to payment & delivery form*/
.purchase-btn {
    color: rgb(255, 255, 255);
    margin: 50px auto;
    max-width: 720px;
    width: min(90%, 720px);
    height: 70px;
    padding: 14px;
    background: #0088ff;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 40px -35px 30px 0px rgba(0,0,0,0.3);
    display: block;
}
.purchase-btn:hover {
    background-color: #0056b3;
    color: rgb(255, 255, 255);
}

@media (max-width: 600px) {
    .purchase-wrapper {
        padding: 0 10px;
    }

    .purchase-btn {
        width: 100%;
        max-width: 100%;
        margin: 30px auto;
    }
}

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.modal-backdrop.active {
    display: block;
}
