#main-product {
    flex-grow: 1; /* Pozwala `main` zająć całą dostępną przestrzeń */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    font-family: Arial, sans-serif;
    color: white;
    background-color: #273850 !important;
    margin-top: 12vh;
}

.produkt-szczegoly {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 400px;
    height: 453px;
    position: relative;
    justify-content: center;
}



.back-button {
    width: auto;
    display: flex;
    padding: 8px 12px;
    background: #2F5C9D;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-family: arial;
    font-weight: bold;
    transition: background 0.2s ease-in-out;
    margin-top: 7px;
}



.back-button:hover {
    background: #3b77ca;
}

.product-images {
    position: relative;
    width: 400px;
    height: 453px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-images img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.product-images img.active {
    opacity: 1;
}

.image-nav {
    display: flex;
    justify-content: space-between !important;
    gap: 5px;
    width: 100%;
    height: 280px;
    z-index: 900;
    align-items: center;

}

.image-nav button {
    display: flex;
    width: 10%;
    font-size: 14px;
    border: none;
    background-color: #000000;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    font-family: Arial, sans-serif;
    align-items: center;  /* Wyśrodkowanie w osi Y */
    justify-content: center;  /* Wyśrodkowanie w osi X */
    height: 10%;
    opacity: 50%;
}
.image-nav #prev {
    order: -1;
    border-radius: 0 2px 2px 0;
   
}
.image-nav #next {
   order: 1;
   border-radius: 2px 0 0 2px;
}

.image-nav button:hover {
    opacity: 90%;
}

.produkt-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 350px;
    font-family: Arial, sans-serif;
}


#dostcena{

    text-align: center;
}
#opis{
    width: 50%;
    line-height: 30px;
    text-align: left;
}

#produktbasic{
    display: flex;
        width: 90%;
        justify-content: center !important;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-top: 10px;

}

#produkttitle{
    text-align: center;
    font-family: 'bebas';
    letter-spacing: 2px;
    font-size: 4vh;
    color: #ffffff;
}

#produkttitlen{
    text-align: center;
    font-family: 'bebas';
    letter-spacing: 2px;
    font-size: 4.8vh;
    color: #ffffff;
    margin-bottom: 20px;
    
}
.produkt-info h1 {
   text-align: center;
}
.koszyk-form {
    display: flex;
    flex-direction: row;
    margin-top: 3px;
    align-items: center;
    font-family: Arial, sans-serif;
    width: 100%;
    justify-content: center;
    max-width: 500px;


}

.koszyk-form input {
    color: #ffffff;
    width: 15%;
    max-width: 65px;
    padding: 5.5px;
    text-align: center;
    font-family: arial;
    font-weight: bold;
    background-color: #4e5e77;
    border: 1px solid #149825;
    border-radius: 5px 0 0 5px;
    
}

.koszyk-form button {
    padding: 8px 12px;
    background-color: #149825;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background 0.3s;
    font-family: arial;
    font-weight: bold;
    width: 65%;
}

.koszyk-form button:hover {
    background-color: #1bc031;
}


.dostepnosc {
    font-weight: bold;
    font-size: 16px;
}

.dostepny {
    color: rgb(0, 232, 0) !important; /* Zielony */
}

.niedostepny {
    color: #dc3545; /* Czerwony */
}


    #info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 90%;
    margin: auto;
    gap: 30px;
    margin-top: 30px;
}

.info-left {
    flex: 1 1 50%;
    font-size: 1.2rem;
    color: #ffffff;
    background: #00000045;
    height: 100% !important;
    max-height: 700px;
    border-radius: 7px;
    padding: 8px;
}

.info-right {
    flex: 1 1 45%;
    text-align: center;
}

.info-right h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

#praca{
    width: 600px;
    height: 338px;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
}


@media (min-width: 768px) {
#produkttitle{
    display: none!important;
    text-align: center;
    font-family: 'bebas';
    letter-spacing: 2px;
    font-size: 3vh;
    color: #ffffff;
}
}

/* Telefon - kolumna zamiast wiersza */
@media (max-width: 768px) {
    #info {
        flex-direction: column;
        align-items: center;
    }

    .info-left, .info-right {
        width: 100%;
    }

    #praca{
        width: 370px;
        height: 208px;
        aspect-ratio: 16 / 9;
        border-radius: 20px;
    }
    
    #info{
        width: 100%;
    }
    
    
    #produktbasic{
flex-direction: column!important;

    }

    .produkt-cechy{
        flex-direction: row!important;
    }


    
    #produkttitlen{
        display: none!important;
        text-align: center;
        font-family: 'bebas';
        letter-spacing: 2px;
        font-size: 3vh;
        color: #ffffff;
    }



}



#scalable{
    display: flex;
    flex-direction: column;
    width: 90%;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.produkt-cechy{
    display: flex;
        flex-direction: column;
        font-family: sans-serif;
        gap: 5px;
        justify-content: center;
        text-align: center;
        justify-content: center;
        margin-top: 6px;
        letter-spacing: 1.4px;
}





@media screen and (max-width: 1400px) {
           
    #main-product {
        
        
        margin-top: 10vh; /* Dodajemy margines równy wysokości headera */
        
        
    }
    
}


@media screen and (max-width: 1055px) {
           
    #main-product {
        
        
        margin-top: 8vh; /* Dodajemy margines równy wysokości headera */
        
        
    }
    
}




@media screen and (max-width: 750px) {
           
    #main-product {
        
        
        margin-top: 8vh !important; /* Dodajemy margines równy wysokości headera */
        
        
    }
    
}