* {
    font-family: century-gothic, sans-serif;
}

.page {
    display: grid;
    grid: 100px auto / repeat(5, 1fr);
    grid-template-areas:
        ". . . . ."
        "sidebar products products products products"
        ". . . . .";
    grid-gap: 20px;
}

/* header section */

#navContainer {
    width: 95%;
    margin: auto;
}
#navContainer a {
    text-decoration: none;
    color: black;
    box-sizing: border-box;
}
body {
    padding: 0px;
    margin: 0px;
}
#uper {
    background-color: black;
    width: 100%;
    height: 40px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}
#uper > p {
    margin-right: 5%;
}
#headnav {
    /* font-family: sans-serif; */
    margin-top: 1%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
#headnav>input {
    height: 45px;
    margin-top: -5px;
    width: 60%;
    margin-right: -18%;
}
#headnav>img {
    height: 42px;
}
#headnav>p {
    margin-left: 250px;
}
#nav {
    display: flex;
    justify-content: space-around;
    padding-left: 2%;
    padding-right: 2%;
}
#nav > p:first-child > a {
    color: red;
}
#nav a {
    text-decoration: none;
    color: rgb(65, 65, 65);
}
#nav p:hover {
    text-decoration: underline 2px;
}

#cartlogo{
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("images/shopping-bag.png");
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

#cart-len{
    margin-top: 15px;
    cursor: pointer;
    text-decoration: none;
    font-size: 17px;
}

/* sidebar section */

#sidebar {
    grid-area: sidebar;
    /* position: sticky; */
    margin-top: -50px;
}

details {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 10px;
}

summary {
    padding: 20px;
    cursor: pointer;
    border-bottom: 1px solid lightgray;
    list-style: none;
}

details[open] summary:before {
    content: '';
    display: block;
    background: transparent;
}

summary:after {
    content: '';
    float: right;
    width: 8px;
    height: 8PX;
    border-bottom: 1px solid currentColor;
    border-left: 1px solid currentColor;
    border-bottom-left-radius: 2px;
    transform: rotate(45deg) translate(50%, 0%);
}

.droplist {
    display: flex;
    padding-left: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 20px;
}

.droplist>label {
    margin-left: 15px;
}



/* main section */

.main {
    grid-area: products;
    margin-top: -50px;
}
.path {
    display: flex;
}
.revert {
    width: 125px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    margin-bottom: 10px;
    margin-right: 10px;
}
.revert>h4:nth-child(2)>a{
    text-decoration: none;
    color:grey;
    margin-left: 10px;
}
.revert>h4:nth-child(2)>a:hover{
    text-decoration: underline;
    color:rgb(202, 156, 100);
}
.revert>h4:nth-child(3){
    margin-left: 10px;
}
.revert>h4:nth-child(4)>a{
    text-decoration: none;
    color:grey;
    margin-left: 10px;
}
.revert>h4:nth-child(4)>a:hover{
    text-decoration: underline;
    color:rgb(202, 156, 100);
}
#btndiv {
    border-bottom: 1px solid rgba(128, 128, 128, 0.274);
    display: flex;
}

#sortbtn {
    border: 0px;
    padding: 10px;
    text-decoration: none;
    background-color: white;
    font-size: 16px;
    cursor: pointer;
}

#sortbtn:hover {
    border-bottom: 2px solid black;
}

#prodhead {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    margin-bottom: 20px;
    margin-top: 15px;
}

#mySelect {
    width: 20%;
    padding: 10px;
    font-size: 16px;
}

#products {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: max-content;
    gap: 5px;
    row-gap: 20px;
    margin: auto;
}

.imgcard {
    width: 100%;
}

.pro-image {
    width: 100%;
    position: relative;
}

.card-btn {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 10px;
    border: none;
    outline: none;
    background-color: rgba(231, 226, 226, 0.5);
    border-radius: 5px;
    transition: 0.5s;
    cursor: pointer;
    opacity: 0;
    text-transform: capitalize;
}

.pro-image:hover .card-btn {
    opacity: 1;
}

.card-btn:hover {
    background: #fff;
}

#colord {
    height: 15px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

#colord>div {
    width: 6%;
    height: 15px;
    border-radius: 10px;
    margin-right: 10px;
    cursor: pointer;
    margin-right: 20px;
}

#colord>div:nth-child(1) {
    background-color: rgb(74 71 74);
}

#colord>div:nth-child(2) {
    background-color: rgb(141 74 65);
}

#colord>div:nth-child(3) {
    background-color: rgb(140 163 192);
}

#colord>div:nth-child(4) {
    background-color: lightgray;
}

#colord>div:nth-child(5) {
    background-color: rgb(74 71 74);
}

#stard {
    width: 100%;
}

.ratingstar {
    margin-top: 25px;
    cursor: pointer;
    color: rgb(61, 60, 60);
}

.pro-info {
    width: 100%;
    height: 100px;
    padding-top: 5px;
}

.pro-brand {
    text-transform: capitalize;
    font-size: 18px;
}

.pro-desc {
    width: 100%;
    margin-top: -10px;
    overflow: hidden;
    text-transform: capitalize;
    font-size: 18px;
    cursor: pointer;
    color: rgb(73, 73, 73);
    opacity: 0.7;
    text-decoration: none;
}

.pro-desc:hover{
    text-decoration: underline 2px;
}

.price {
    font-weight: 900;
    font-size: 20px;
}


#cart-items{
    font-size: 18px;
    color: red;
    text-decoration: none;
    margin-left: 15px;
}

/* footer section */

#footer{
    display: grid;
    grid-template-columns: repeat(6,16%);
    color: rgb(73, 73, 73);
    margin-top: 100px;
    justify-content: center;
    font-family: sans-serif;
    /* background-color: azure; */
    background-color: #FBF8F1;
}
#footer p{
    font-size: 14px;
}
#footer a{
    text-decoration: none;
    color: black;
}
.FH{
    color: black;
}
#lastLine {
    padding: 2%;
    background-color: #FBF8F1;
}
#lastLine > span {
    margin-right: 40px;
    font-size: 13px;
    color: grey;
}
#lastLine span:hover {
    text-decoration: underline 2px;
}
#footer>div p:hover {
    text-decoration: underline 2px;
}
#smDiv {
    display: flex;
    flex-direction: column;
}
#smDiv > div:nth-child(1){
    margin-top: 20px;
    margin-bottom: 20px;
}
#smDiv > div:nth-child(1) img {
    height: 25px;
}
#smDiv > div:nth-child(2) img {
    height: 25px;
    margin: 5px;
}
#smDiv > div:nth-child(2) img:nth-child(5) {
    height: 20px;
    margin-bottom: 10px;
}



@media all and (min-width: 451px) and (max-width:750px) {
    .page {
        grid: 100px auto / repeat(2, 1fr);
        grid-template-areas:
            ". . . . ."
            "products products products products products"
            ". . . . .";
    }
    .main {
        margin-top: -120px;
    }
    #products {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
    #btndiv{
        display: none;
    }
    #cartlogo{
        height: 30px;
        width: 30px;
        background-size: 30px 30px;
    }
    #cart-len{
        margin-top: 10px;
        margin-left: 3px;
        font-size: 14px;
    }
    #container {
        width: 85%;
    }
    #headnav > input {
        display: none;
    }
    #headnav > h1 {
        font-size: 20px;
    }
    #nav input {
        width: 90%;
        padding: 14px;
    }
    #uper p+p {
        display: none;
    }
    #footer {
        display: none;
    }
    #lastLine {
        display: none;
    }
}
@media all and (min-width: 100px) and (max-width:450px) {
    .page {
        grid: 100px auto / repeat(1, 1fr);
        grid-template-areas:
            ". . . . ."
            "products "
            ". . . . .";
    }
    #products {
        width: 100%;
        grid-template-columns: repeat(1, 1fr);
    }
    #btndiv{
        display: none;
    }
    .main {
        margin-top: -120px;
    }
    #cartlogo{
        height: 30px;
        width: 30px;
        background-size: 30px 30px;
    }
    #cart-len{
        margin-top: 10px;
        margin-left: 3px;
        font-size: 14px;
    }
    
    #container {
        width: 85%;
    }
    #navContainer{
        box-sizing: border-box;
    }
    #headnav > input {
        display: none;
    }
    #headnav > h1 {
        font-size: 15px;
    }
    #headnav > p {
        font-size: 13px;
    }
    #nav input {
        width: 90%;
        padding: 10px;
    }
    #headnav h1 {
        margin-right: -150px;
    }
    #uper p+p {
        display: none;
    }
    #footer {
        display: none;
    }
    #lastLine {
        display: none;
    }
}