:root{
    --primaryColor: #FFD9DA;
    --secondaryColor: #EA638C;
    --accentColor: #DECEBE;
    --headingText: Changa;
    --productNameText: Comfortaa;
    --productPriceText: 'Mochiy Pop One';
    --contentText: Pompiere;
    --Abel: Abel;
    --Itim: Itim;
    --classic: Antic Didone;
    --funky: Marko One;
    --abzee: ABeeZee;
}

body{
    margin: 0;
    padding: 0;
    overflow: hidden;
    overflow-y: scroll;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
    "nav"
    "main"
    "footer";
}
::-webkit-scrollbar{
    display: none;
}
a{
    text-decoration: none;
    color: inherit;
}
ul{
    list-style: none;
}
ol{
    list-style: none;
}

main{
    grid-area: 'main';
    text-align: center;
    padding-top: 8vh;
    position: relative;
}
h1.head{
    font-family: var(--headingText);
    font-size: 3rem;
}
section#cartItemsContainer{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vh;
    height: 90vh;
    grid-area: 1/1;
}
section#cartItemsContainer card.itemCard{
    background-color: var(--primaryColor);
    border: 1px solid var(--secondaryColor);
    display: grid;
    border-radius: 20px;
    grid-template-columns: 1fr auto 1.5fr 1.5fr;
    overflow: hidden;
    width: 90%;
    height: 10vh;
    justify-items: center;
    padding: 2% 0%;
    gap: 2vw;
    position: relative;
}
section#cartItemsContainer card.itemCard button#close{
    height: 100%;
    width: 100%;
    background-color: transparent;
    grid-column: 1/2;
    border: none;
    border-right: 2px solid var(--secondaryColor);
}
section#cartItemsContainer card.itemCard button#close img{
    width: 5vw;
    align-self: center;
    justify-self: center;
}
section#cartItemsContainer card.itemCard>img{
    grid-column: 2/3;
    height: 10vh;
    border-radius: 10px;
}
section#cartItemsContainer card.itemCard div.details{
    grid-column: 3/4;
    width: 100%;
    height: 10vh;
    align-self: center;
    justify-self: center;
    justify-content: baseline;
    padding-left: 2vw;
    position: relative;
    top: 0;
    transform: translateY(-10%);
}
section#cartItemsContainer card.itemCard div.details h1{
    font-size: 3vw;
    font-family: var(--productNameText);
    text-align: start;
    max-height: 50%;
    height: fit-content;
}
section#cartItemsContainer card.itemCard div.details h2{
    font-size: 2.5vw;
    font-family: var(--productPriceText);
    text-align: start;
}
section#cartItemsContainer card.itemCard div.counter{
    grid-column: 4/5;
    width: 90%;
    height: 5vh;
    justify-self: center;
    align-self: center;
    border: 2px solid var(--secondaryColor);
    border-radius: 10px;
    background-color: transparent;
    display: flex;
}
section#cartItemsContainer card.itemCard div.counter span{
    flex: 1;
    min-width: 30%;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--productNameText);
    text-align: center;
}
section#cartItemsContainer card.itemCard div.counter span#number{
    flex: 1;
    min-width: 30%;
    align-content: center;
    border-left: 2px solid var(--secondaryColor);
    border-right: 2px solid var(--secondaryColor);
}
section#cartItemsContainer card.itemCard div.counter span button{
    width: 100%;
    height: 100%;
    background-color: transparent;
    font-size: 1.7rem;
    font-family: var(--productNameText);
    border: none;
}
section#cartItemsContainer>h1{
    font-family: var(--Itim);
}

section#buy{
    height: 20vh;
    width: 100vw;
    background-color: #1b2021;
    overflow: hidden;
    position: sticky;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
section#buy div.wrapper{
    width: 90%;
    height: fit-content;
    display: flex;
    font-size: 0.8rem;
    font-family: var(--contentText);
    color: white;
    gap: 20%;
    justify-content: center;
}
section#buy button#buyBtn{
    width: 90%;
    height: 40%;
    border-radius: 15px;
    border: none;
    background-color: var(--primaryColor);
    font-size: 1.5rem;
    font-family: var(--Itim);
}

/* FOOTER */
footer{
    grid-area: 'footer';
}

@media screen and (orientation: landscape){
    section#cartItemsContainer card.itemCard{
        grid-template-columns: 0.5fr auto 1fr 0.7fr;
        width: 80%;
        height: 15vh;
        padding: 1% 0;
    }
    section#cartItemsContainer card.itemCard>img{
        grid-column: 2/3;
        aspect-ratio: 1/1;
        height: 15vh;
        border-radius: 10px;
    }
    section#cartItemsContainer card.itemCard div.details{
        justify-content: space-around;
        height: fit-content;
    }
    section#cartItemsContainer card.itemCard div.details h1{
        font-size: 2vw;
        position: relative;
        top: 0;
    }
    section#cartItemsContainer card.itemCard div.details h2{
        font-size: 1.7vw;
        position: relative;
        bottom: 0;
    }
    section#cartItemsContainer card.itemCard button#close img{
        width: 1.5vw;
    }
    section#cartItemsContainer card.itemCard div.counter span{
        font-size: 2rem;
    }
    section#cartItemsContainer card.itemCard div.counter span button{
        font-size: 2rem;
    }
    section#buy button#buyBtn{
        width: 50%;
    }
}