html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    color: white;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 50px;
    padding: 20px;
}

.product-container-info {
    display: flex;
    background-color: 	#272727;
    border: 1px solid rgb(31, 31, 31);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.651);
    max-width: 800px;
    width: 100%;
    gap: 20px;
    margin-top: 10px;
    border-top: 2px solid #BD0000;

}
.image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-image img {
    max-width: 300px;
    border-radius: 8px;
    cursor: pointer;
}
.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.thumbnail-container img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}
.thumbnail-container img:hover {
    transform: scale(1.1);
}

.details-section {
    flex: 1;
    background-color:#272727;
    margin: 0 auto;
    padding: 10px;
    max-width: 400px;
}

.details-section h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.cart-container {
    flex: 1;
}

.price {
    font-size: 18px;
    color: white;
    margin-left: 2px;
    margin-top: 10px;
}

.stock {
    font-size: 14px;
}

.sku {
    font-size: 12px;
    margin-top: 10px;
}

.product-selector {
    padding: 4px 4px;
    margin-right: 1em;
    font-size: 14px;
    margin-top: 16px;
}

.form {
    display: flex;
}

.details-section label{
    font-size: 15px;
}

input[type="number"] {
    padding: 8px;
    margin: 10px 0;
    font-size: 14px;
    border-radius: 8px;
    border: #333 1px solid;
}

.product-spacer {
    padding: 5px;
}

.add-to-cart {
    margin-top: 25px;
    padding: 9px 25px;
    border-radius: 8px;
    cursor: pointer;
    width: 50%;
}

.additional-info {
    background-color: 	#272727;
    border: 1px solid rgb(31, 31, 31);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.651);
    max-width: 800px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    border-top: 2px solid #BD0000;

}
.additional-info h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}
.additional-info p {
    color: white;
    font-size: 14px;
}


.lightbox {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    margin: auto;
    margin-top: 5%;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 60px;
    color: white;
    cursor: pointer;
}


@media (max-width: 575px) {
    .product-container-info {
         display: flex;
         flex-direction: column;
    }

    .details-section h1 {
        font-size: 18px;
    }
}
