html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    color: rgb(85, 85, 85);
    font-family: "Quicksand", Arial;
}

.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: 	#fafafa;
    border: 1px solid rgb(221, 221, 221);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 5px 0 rgba(163, 163, 163, 0.623);
    max-width: 800px;
    width: 100%;
    gap: 20px;
    margin-top: 10px;
}
.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 {
    display: grid;
    grid-template-rows: 1fr;
    align-items: center;
    justify-content: start;
    background-color: #fafafa;
    margin: 0 auto;
    padding: 10px;
    max-width: 400px;
}

.product-details-container {
    display: grid;
    grid-template-rows: 1fr 50px;
}

.product-details-container h2 {
    font-size: 20px;
    font-weight: 500;
}

.stock {
    font-size: 14px;
}

.sku {
    font-size: 12px;
    font-weight: 450;
}

.cart-container {
    display: grid;
    grid-template-rows:  1fr;
    align-items: baseline;
    justify-content: start;
}

.price {
    font-size: 18px;
    font-weight: 450;
    color: rgb(85, 85, 85);
}

.product-quantity-submit-container {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    align-items: center;
    justify-content: center;
    max-width: 200px;
}

.details-section label{
    font-size: 15px;
}

.product-spacer {
    padding: 5px;
}

.add-to-cart {
    padding: 9px 25px;
    border-radius: 8px;
    cursor: pointer;
    min-width: 200px;
    width: 100%;
}

.additional-info {
    box-shadow: 0 1px 5px 0 rgba(163, 163, 163, 0.623);
    border: 1px solid rgb(221, 221, 221);
    padding: 20px;
    border-radius: 8px;
    background-color: 	#f1f1f1;
    max-width: 800px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}
.additional-info h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    color: rgb(85, 85, 85);
}
.additional-info p {
    color: rgb(85, 85, 85);
    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: 600px) {
    .product-container-info {
         display: flex;
         flex-direction: column;
    }
    .details-section h1 {
        font-size: 18px;
    }
    .qty-input {
        text-align: center;
    }

    .lightbox-close {
        right: 30px;
        font-size: 60px;
        color: rgb(44, 44, 44);
        cursor: pointer;
    }
    .details-section {
        text-align: center;
    }

    .cart-container {
        justify-content: center;
        align-items: center;
    }
    .price {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 25px;
    }
    .product-quantity-submit-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}
