#spareparts{
    position: relative;
    padding-bottom: 9rem;
    margin: 1.5rem;
    margin-top: 2rem;
    width: 103.6rem;
    background-color: white;
    box-shadow: 0px 0px 4px 2px gainsboro;
}
#spareparts .sp-heading{
    background-color: lightgrey;
    font-size: 2.5rem;
    font-weight: 900;
    padding: 1rem 3rem;
}
#spareparts .sp-grid{
    display: grid;
    grid-template-areas: 'sp1 sp2 sp3 sp4 sp5 sp6''sp7 sp8 sp9 sp10 sp11 sp12''sp13 sp14 sp15 sp16 sp17 sp18';
    width: inherit;
    margin: 0.9rem;
    padding: 0.5rem;
}
#spareparts .sp-grid .each-grid{
    padding: 1.3rem;
    box-shadow: 0px 0px 4px 2px gainsboro;
    border-radius: 10px;
    margin: 0.8rem 0rem;
    width: 15.5rem;
}
#spareparts .sp-grid div .spgrid-img{
    width: 10rem;
    height: 8rem;
}
#spareparts .sp-grid div .spgrid-desc{
    text-align: center;
    font-size: 1.5rem;
}
#spareparts .line{
    display: block; 
    position: absolute;
    bottom: 0rem; 
    left: 2rem;
    font-size: 2rem; 
    text-decoration: underline blue; 
    border-top: 1px solid gainsboro; 
    width: 96%; 
    padding: 2rem 0rem;
}

@media screen and (max-width: 500px) {
    #spareparts{
        width: 45.5rem;
    }
    #spareparts .sp-heading{
        font-size: 1.7rem;
        font-weight: 600;
        padding: 1rem 2rem;
    }
    #spareparts .sp-grid{
        grid-template-areas: 'sp1 sp2 sp3''sp4 sp5 sp6''sp7 sp8 sp9''sp10 sp11 sp12''sp13 sp14 sp15''sp16 sp17 sp18';
        margin: 0.5rem;
        padding: 0.2rem;
    }
    #spareparts .sp-grid .each-grid{
        padding: 1rem;
        border-radius: 5px;
        margin: 0.5rem 0rem;
        width: 14rem;
    }
    #spareparts .sp-grid div .spgrid-img{
        width: 8rem;
        height: 6rem;
    }
    #spareparts .sp-grid div .spgrid-desc{
        font-size: 1.4rem;
    }
    #spareparts .line{
        display: block; 
        position: absolute;
        bottom: 0rem; 
        left: 1rem;
        font-size: 1.5rem; 
    }
}