
:root{
    max-width: 900px;
    margin: 0 auto;
    color: #333;
}
body {
    margin: 100px 0;
    min-height: 100vh;
    padding: 0 1em;
    box-sizing: border-box;
}
#filterAsc {
    display: none;
}
#filterAsc + label img {

    transition: all 0.2s;
}
#filterAsc:checked + label img {
transform: rotate(180deg);
}
#nav {
    text-align: center;
    color: rgb(251, 253, 254);   
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    font-size: 1.4em;
    background: #336604;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;      
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 5;
}
.heading {
    text-align: center;
    font-size: 2em;
    max-width: 550px;
    margin: 0 auto;
}
.search{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    border: 2px solid green;
    margin: 1em 0;
    border-radius: 10px;
    position: relative;
    outline: none;
}
.search input , button {
    padding: 1em;
    line-height: 0;
    border: none;
    border-radius: 10px;
    outline: none;

}
.search button {
    background: rgb(27, 154, 27);
    font-weight: 600;
    font-size: 1em;
    border-radius: 10px;

    position: absolute;
    color: #fff;
    right: -2px;
    height: 100%;
}
.search button:hover {
    color: #bbb;
}
#nav h2 {
    margin: 5px 0;
}
#nav h4{
    margin: 2px 0;
    color: rgb(69, 144, 69);
}

.mode{
    width: fit-content;
    margin: 0 auto;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1em;
    
    /* padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid green; */
    
   
}
.mode input {
    display: none;  
}
.mode label{
    padding: 0px 6px;
    border: 1px solid green ;
} 
.mode label:nth-child(0){
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
 }
.mode label:nth-child(1){
   border-top-right-radius: 4px !important;
   border-bottom-right-radius: 4px;
}
.mode input[name='mode']:checked + label {
    background: green;
    color: #fff;
}
/* .mode #generic:checked + label {
    background: rgb(51, 129, 51);
    color: #fff;
}
.mode #brand:checked + label {
    background: rgb(51, 129, 51);
    color: #fff;
} */
    
.catagory {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 128, 0, 0.387);
    position: relative;
}
.catagory button {
    border: 0;
    background: #fff;
    border-radius: 0;
    padding: 1.6em 3px;
}

.catagory div {
transition: transform 0.2s ;
position: absolute;
height: 80%;
width: 20%;
background: rgba(0, 128, 0, 0.645);
left: 5px;
border-radius: 4px;
top: 10%;
}
.filter {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-items: end;
    margin-top: 10px;
    margin-bottom: 10px;
    gap: 5px;
}
.filter label {
    grid-column: span 2;
}
#filterselect {
    border: 1px solid green;

    outline: none;
    /* width: 100%; */
}

#filterselect option {
    /* width: 2000px; */
}

.product{
    border: 2px solid green;
    max-width: 700px;
    margin: 10px auto;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 12px;
    display: grid;
    min-height: 20px;
    grid-template-columns: 70% 30%;
    white-space: normal;
    word-wrap: break-word;
    
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
}
.product p , h3{
    margin: 0;
    

}
.price {
    display: grid;
    white-space: normal;
    place-content: center;
    /* border: 3px solid blue; */
    height: 100%;
    width: 100%;
    font-size: 1.4em;
    word-wrap: break-word;
    grid-row: span 3;
}
