: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;
    background-color: var(--primaryColor);
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior: contain;
    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;
}

/* MAIN  */

main{
    grid-area: 'main';
}
section#searchSection{
    height: 15vh;
    align-content: center;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-top: 12vh;
}
section#searchSection div.form{
    background-color: #fff;
    display: flex;
    width: 90vw;
    min-width: fit-content;
    height: 40%;
    padding: 0.5%;
    border: 1.5px solid var(--secondaryColor);
    border-radius: 10px;
}
section#searchSection div.form input{
    width: 85%;
    height: 100%;
    border: none;
    background-color: white;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
section#searchSection div.form input::placeholder{
    text-align: left;
    justify-self: end;
    margin-left: 5vw;
    font-size: max(1.4em, 2vw);
}
section#searchSection img{
    width: 5vw;
}
section#searchSection div.form img{
    height: 80%;
}
section#searchSection div.form button{
    width: 15%;
    background-color: white;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border: none;
    border-left: 2px solid var(--secondaryColor);
}
section#searchSection div.filter{
    display: flex;
    width: auto;
    align-self: flex-start;
    margin-left: 5%;
    position: relative;
    margin-top: 5%;
}
section#searchSection div.filter button#filter img{
    height: 50%;
}
section#searchSection div.filter button#filter{
    height: 100%;
    width: min(20vw, 20vmin);
    min-height: fit-content;
    min-width: fit-content;
    padding: 5% 7%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 40px;
    border: 1px solid var(--secondaryColor);
    font-size: max(1rem, 2vw);
    justify-self: flex-start;
    position: relative;
}
section#searchSection div.filter div#filterBox{
    width: 70vw;
    height: 60vh;
    position: absolute;
    top: 110%;
    background-color: white;
    border-radius: 30px;
    transform: translateX(-120%);
    transition: 1.2s 0s ease-in-out;
    z-index: 30;
}
section#searchSection div.filter div#filterBox.open{
    transform: translateX(0%);
}
section#searchSection div.filter div#filterBox ul h1{
    font-family: var(--Abel);
    color: #666666;
    font-size: 1.5rem;
}
section#searchSection div.filter div#filterBox ul{
    display: flex;
    flex-direction: column;
    gap: 2vh;
}
section#searchSection div.filter div#filterBox li input {
    display: none;
}
section#searchSection div.filter div#filterBox li{
    background-color: white;
    width: fit-content;
    width: max(fit-content, 35%);
    height: fit-content;
    padding: 3% 5%;
    display: flex;
    border: 2px solid black;
    border-radius: 40px;
    gap: 1vw;
}
section#searchSection div.filter div#filterBox li img{
    height: 2vh;
    width: 20%;
    align-self: center;
    display: none;
}
section#searchSection div.filter div#filterBox li label{
    flex-grow: 1;
    font-family: var(--productNameText);
    font-size: 1.2rem;
    width: 100%;
    height: 100%;
}
section#searchSection div.filter div#filterBox li:has(input:checked){
    background-color: var(--secondaryColor);
    min-width: fit-content;
    width: max(60%, fit-content);
}
section#searchSection div.filter div#filterBox img:has(+ input:checked){
    display: block;
}
/* PRDUCT CARD */
section#products{
    scroll-snap-type: y mandatory;
}
section.categorySection {
    scroll-margin-top: 8vh;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: repeat(2, minmax(20vw, 1fr));
    width: clamp(30vw, fit-content 90vw);
    column-gap: 2vw;
    justify-self: start;
    padding: 0 2%;
}
section.categorySection card.productCard{
    border: 3px solid black;
    background-color: white;
    border-radius: 20px;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: grid;
    grid-template-rows: 3fr 0.3fr 0.75fr 0.75fr;
    padding-bottom: 5%;
}
section.categorySection card.productCard img.itemImg{
    width: 90%;
    border-radius: 5px;
    border: 0px;
    align-self: center;
    justify-self: center;
    margin-top: 5%;
    grid-row: 1/2;
    background-color: black;
}
section.categorySection card.productCard div.details{
    display: flex;
    grid-row: 2/3;
    height: 90%;
}
section.categorySection card.productCard button#orderbtn{
    width: 90%;
    min-height: 90%;
    max-height: 8vh;
    background-color: var(--secondaryColor);
    border: 3px solid white;
    grid-row: 3/4;
    border-radius: 15px;
    font-family: var(--Itim);
    color: white;
    font-size: 1rem;
    justify-self: center;
}
section.categorySection card.productCard button#addToCartbtn{
    width: 90%;
    min-height: 90%;
    max-height: 8vh;
    background-color: white;
    color: var(--secondaryColor);
    border-color: var(--secondaryColor);
    grid-row: 4/5;
    border-radius: 15px;
    font-family: var(--Itim);
    font-size: 1rem;
    justify-self: center;
    margin-top: auto;
}
section.categorySection card.productCard div.details h1{
    font-family: var(--productNameText);
    font-size: 3vw;
    width: 40%;
    margin-left: 10%;
    text-align: left;
}
section.categorySection card.productCard div.details h2{
    font-family: var(--productPriceText);
    font-size: 0.7rem;
    width: 30%;
    text-align: right;
    right: 10%;
}
section#products h1.category{
    color: var(--secondaryColor);
    font-size: 2.5rem;
    font-family: var(--Abel);
    padding-left: 5%;
}



@media screen and (orientation: landscape){
    /* SEARCH BAR */
    section#searchSection {
        padding-top: 10vh;
    }
    section#searchSection div.form{
        width: 55%;
        height: 35%;
        padding: 0.5%;
        border: 1.5px solid var(--secondaryColor);
        border-radius: 20px;
    }
    section#searchSection div.form input{
        width: 90%;
    }
    section#searchSection div.form input::placeholder{
        font-size: 1.4rem;
    }
    section#searchSection div.form input{
        width: 90%;
    }
    section#searchSection div.form button{
        width: 10%;
    }
    section#searchSection div.filter{
        margin-top: 1%;
    }
    section#searchSection div.filter div#filterBox{
        width: 30vw;
        height: 60vh;
        min-height: fit-content;
        position: absolute;
        top: 100%;
        background-color: white;
    }
    section#searchSection div.filter div#filterBox ul h1{
        font-size: 1.8rem;
    }
    section#searchSection div.filter div#filterBox li label{
        font-size: 1.2rem;
    }
    section#searchSection div.filter button#filter{
        font-size: 1.5rem;
        padding: 5% 7%;
        align-content: center;
        justify-content: start;
        align-content: flex-start;
    }
    section#searchSection div.filter button#filter img{
        height: 3vh;
    }
    /* PRODUCT CARD */
    section.categorySection{
        position: relative;
        left: 4vw;
        grid-template-columns: repeat(4, minmax(20vw, 1fr));
    }
    section.categorySection card.productCard{
        width: 20vw;
        min-height: fit-content;
        height: 100%;
        grid-template-rows: 3fr 0.3fr 0.5fr 0.5fr;
        row-gap: 0.75vmin;
    }
    section.categorySection card.productCard img.itemImg{
        width: 90%;
        background-color: black ;
    }
    section.categorySection card.productCard button{
        min-height: fit-content;
    }
    section.categorySection card.productCard button#orderbtn{
        font-size: 1.5rem;
    }
    section.categorySection card.productCard button#addToCartbtn{
        font-size: 1.5rem;
    }
    section.categorySection card.productCard div.details h1{
        font-size: 1.8vw;
        width: 50%;
    }
    section.categorySection card.productCard div.details h2{
        font-size: 1rem;
    }
}