div.product-page-container
{
    display: flex;
    margin: 0 auto;
    width: 98%;
    padding-top: 114px;
}

div.product-page-gallery
{
    width: 50%;
    height: calc(100vh - 114px);
    display:flex;
    flex-direction: column;
    overflow: hidden;
    position: sticky;
    top: 114px;
}

div.main-image
{
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

div.main-image img
{
    max-width: calc(100% - 16px);
    max-height: calc(100% - 16px);
    width: auto;
    height: auto;
    display: block;
    border: 1px solid #0e0e0e;
    border-radius: 8px;
    cursor: zoom-in;
}

div.product-page-gallery-image-select
{
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

div.image-selection
{
    aspect-ratio: 1 / 1;
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

div.image-selection img
{
    width: 90%;
    height: 90%;
    object-fit: cover; 
    object-position: center;
    display: block;
    border: 1px solid #0e0e0e;
    border-radius: 8px;
}

a.image-selection
{
    aspect-ratio: 1 / 1;
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

a.image-selection img
{
    width: 90%;
    height: 90%;
    object-fit: cover; 
    object-position: center;
    display: block;
    border: 1px solid #0e0e0e;
    border-radius: 8px;
}

div.product-page-details
{
    width: calc(50% - 32px);
    margin: 0 auto;
    min-width: 0;
}

div.details-top
{
    width: 100%;
}

div.details-top h1
{
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 0px;
}

div.details-main
{
    width: 100%;
    min-width: 0;
}

img.main-img
{
    width: 100%;
}

p.price
{
    font-size: 1.6rem;
    text-align: center;
    margin: 0px auto 12px ;
    font-weight: 700;
}

p.stock
{
    font-size: 1.3rem;
    text-align: center;
}

button.add
{
    position: relative;
    overflow: hidden; 
    width: 80%;
    height: 3.5rem;
    border: 1px solid #0e0e0e;
    background-color: #e77ab7;
    cursor: pointer;
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    padding-bottom: 6px;
    border-radius: 8px;
    color: black;
    margin: 0 auto;
    display: block;
}


button.add::after
{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px; 
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 35%; 
    height: 3px;
    background: #0e0e0e;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}


button.add:hover::after
{
    transform: translateX(-50%) scaleX(1);
}

button.add:active
{
    background-color: white;
}

p.delivery-note
{
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

p.delivery-note img
{
    height: 25px;
    width: 25px;
    margin-right: 8px;
}

div.product-description
{
    width: 100%;
    overflow-wrap: normal;
    word-break: normal;
}

select.product
{
    font-size: 1.3rem;
    width: 80%;
    margin: 24px auto 32px;
    display: block;
    border: 1px solid #0e0e0e;
    height: 36px;
}

span.price-original
{
    text-decoration: line-through;
    font-weight: 400;
    margin: 0 12px;
}

span.price-sale
{
    margin: 0 12px;
    color: #8A003C;
}

/* #Mobile */
@media (max-width: 767.99px) {
    a.image-selection
    {
        width: 25%;
    }

    div.product-page-container
    {
        flex-direction: column;
    }

    div.product-page-gallery
    {
        position: static;
        width: 100%;
        height: auto;
    }

    div.main-image
    {
        height:500px;
    }

    a.image-selection
    {
        width: 20%;
    }
    
    div.product-page-details
    {
        width: calc(100% - 32px);
    }

    button.add
    {
        width: 75%
    }

    button.add::after
    {
        width: 50%;
    }

    div.product-description p,
    div.product-description ul,
    div.product-description li
    {
        font-size: 1.2rem;
    }

    p.stock
    {
        text-align: center;
    }

    div.details-top h1
    {
        margin-top: 0px;
    }
}

/* #Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    a.image-selection
    {
        width: 25%;
    }

    div.product-page-container
    {
        flex-direction: column;
    }

    div.product-page-gallery
    {
        position: static;
        width: 100%;
        height: auto;
    }

    div.main-image
    {
        height:600px;
    }

    a.image-selection
    {
        width: 20%;
    }
    
    div.product-page-details
    {
        width: calc(100% - 32px);
    }

    button.add
    {
        width: 65%
    }

    div.product-description p,
    div.product-description ul,
    div.product-description li
    {
        font-size: 1.2rem;
    }

    p.stock
    {
        text-align: center;
    }
}

/* #laptop Small laptops and large tablets */
@media (min-width: 1025px) and (max-width: 1280px) {

    a.image-selection
    {
        width: 25%;
    }

}

/*mid-sized monitors*/
@media (min-width: 1280.01px) and (max-width: 1499.99px) {

}

/* wider monitors */
@media (min-width: 1500px) and (max-width: 9999px) {
    
    a.image-selection
    {
        width: 16.66%;
    }
}