*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", serif;
    font-size: 62.5%
}
a{
    text-decoration: none;
}

body{
    opacity: 0;
    max-width: 100%;
    max-height: 100vh;
    background-color: #1a1919;
    transition: oapcity 0.3s ease-in-out;
}
body.loaded{
    opacity: 1;
}
@media (min-width: 50px){
    *{
        font-size: 68%;
    }
    header{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 6rem;
        height: 8vh;
        background-color:#252525;
        position: fixed;
        top: 0;
        z-index: 1020;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.75);
    }
    main{
            max-width: 100vw;
            min-height: 100vh;
            display: flex;  
            flex-direction: column;
            align-items: center;
            overflow-x: hidden;
    }
    .text{    
        width: 100%;
        height: 30vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 5rem;
       
    }
    main .text h1{
        font-size: 1.8rem;
        color: white;
        border-radius: 10rem;
        border-bottom: 2px solid #cd0436d5;
        padding-bottom: 0.5rem;
    }
    main .text p{
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.574);
        text-align: center;
    }
    
  
    main .grid-content{
        margin-top: 3rem;
        width: 100vw;
        min-height: 100vh;
        padding-top: 1rem;
        width: 90%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        border-top: 1px solid #cd0436d5;
        transition: transform 1s, opacity 1s ease-in
    }

    .grid-content--hidden{
        opacity: 0;
        transform: translateY(8rem);
    }

    main .grid-content .sort-btn{
        width: 100%;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    main .grid-content .sort-btn i{
        font-size: 2rem;
        color: white;
        cursor: pointer;
    }
    main #bread-crumb{
        font-size: 1.2rem;
        color: white;
    }
    main .grid-content .sort-btn p{
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.574);
    }
    .grid-wrapper-products{
        width: 100%;
        min-height: 100vh;
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 50vh;
    }
   

    .product-wrapper{
        width: 100%;
        height: 100%;
        background-color: white;
        box-shadow: 0 0 15px #cd0436;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        transition: transform 1s, opacity 1s;
    }

    .product--hidden{
        opacity: 0;
        transform: translateY(8rem);
    }

    .product-wrapper .img-container{
        padding: 1rem;
        width: 100%;
        height: 40%;
    }
    .product-wrapper .img-container img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.3s;
        cursor: pointer;
    }
    .product-wrapper .img-container img:hover{
        transform: scale(1.05);
    }
    .text-container{
        width: 100%;
        height: 60%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0 1rem;
        gap: 0.5rem;
    }
    .text-container .procut-name{
        font-size: 1.3rem;
        text-align: center;
    }
    .text-container .product-description{
        font-size: 1rem;
        color: #334862;
    }
    .text-container .price{
        display: flex;
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
        height: 25%;
        width: 100%;
       
    }
    .text-container .price .buy-btn{
        padding: 0.4rem;
        font-size: 1.1rem;
        background-color: #1a1919;
        color: white;
        border-radius: 0.4rem;
        border: none;
        transition: 0.3s;
        cursor: pointer;
    }
    .text-container .price .buy-btn:hover{
        color: gold;
        background-color: green;
        transform: scale(1.06);
    }
    .text-container .price .product-price,
    .text-container .price span{
        font-size: 1rem;
        color: green;
        font-weight: bold;
    }

    /*Sort*/
    .sort-options{
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        gap:0.7rem;
        position: relative;
    }
    .sort-display{
        position: absolute;
        width: 12rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        top: 3.2rem;
        right:0;
        padding: 0.8rem;
        gap: 0.9rem;
        background-color: #1a1919;
        z-index: 900;
       
}
    .hide-sort-option{
    display: none;
    }
.sort-display-show{
    display: block !important;
}
    .grid-content .sort-options .sort-display p{
    transition: 0.3s;
    
}
    .sort-options .sort-display p:hover{
        color:white;
        cursor: pointer;
    }

    footer{
        margin-top: 3rem;
        width: 100vw;
        height: 5vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(36, 36, 36, 0.582);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    }
    footer h1{
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.495);
    }
}


@media (min-width: 768px){
    *{
        font-size: 68%;
    }
    .grid-wrapper-products{
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    .product-wrapper .img-container{
        width: 80%;
        height: 40%;
    }
    main .grid-content .sort-btn i{
        font-size: 2.3rem;
    }
    main .grid-content .sort-btn{
        margin-bottom: 1rem;
        margin-top: 1rem;
    }
    .text{
        height: 25vh;
    }
    main #bread-crumb{
        font-size: 2rem;
    }
    main #products-number{
        font-size: 1.3rem;
    }

   
}

@media (min-width: 1000px){
    .grid-wrapper-products{
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    .product-wrapper .img-container{
        width: 80%;
        height: 48%;
    }
    .text-container .procut-name{
        font-size: 1.4rem;
    }
    .text-container .product-description{
        font-size: 1.3rem;
    }
    .text-container .price .buy-btn{
        font-size: 1.2rem;
    }
    .text-container .price .product-price,
    .text-container .price span{
        font-size:  1.5rem;
    }
}
@media (min-width: 1280px){
    *{
        font-size: 70%;
    }
    body{
        padding-top: 5rem;
    }
    .product-wrapper .img-container{
        width: 80%;
        height: 60%;
    }
    main .text{
        width: 60%;
    }
    main .text h1{
        font-size: 3rem;
}
main .text p{
    font-size: 1.3rem;
}
.text{
    height: 21vh;
}

}

@media (min-width: 1440px){
    *{
        font-size: 75%;
    }
}
@media (min-width: 1920px){
    *{
        font-size: 80%;
    }
}
