/* section1-start */
#sc1 .container{
    position: absolute;
    left: 0;
    right: 0;
    z-index: -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 17em;
    padding: 1em 0;
}

#sc1 .container > img{
    height: 100%;
    object-fit: cover;
}
/* section1-end */

/* section2-start */
#sc2 .container{
    display: flex;
    flex-direction: column;
    margin: 4em 10% 0 10%;
    gap: 1em;
}


#sc2 .title > p:first-of-type{
    font-size: 2.5em;
    font-weight: 500;
    font-family: 'Playfair Display';
    color: var(--primary-color);
    margin-bottom: .2em;
}

#sc2 .title > p:last-of-type{
    font-size: .9em;
    font-weight: 400;
    color: rgb(108, 108, 108);
}

#sc2 .search-bar{
    width: 30em;
    background-color: white;
    border: solid .5px rgb(235, 235, 235);
    border-radius: 2em;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

#sc2 .search-bar > div{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5em;
    padding: .8em 1em;
}

#sc2 .search-bar input{
    flex: 1;
    border: none;
    border-radius: 2em;
    outline: none;
    box-shadow: none;
    font-size: .9em;
    font-weight: 100;
}

#sc2 .search-bar i{
    font-size: 1em;
    color: var(--primary-color);
}

#sc2 .category{
    display: flex;
    align-items: center;
    gap: .5em;
}

#sc2 .category .item{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5em;
    font-size: .9em;
    font-weight: 400;
    padding: .5em 1em;
    cursor: pointer;
    background-color: white;
    color: rgb(112, 112, 112);
    border: solid .1em rgb(244, 244, 244);
    border-radius: 2em;
    height: 1.2em;
}

#sc2 .category .item.active{
    background-color: var(--button-color-a);
    color: white;
}

#sc2 .category .item:hover{
    background-color: var(--button-color-b);
    color: white;
}

#sc2 .category .item > img{
    height: 100%;
    object-fit: cover;
}

/* section2-end */

/* section3-start */
#sc3 .container{
    padding: .5em 10%;
}

#sc3 .sort{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#sc3 .sort select{
    border-radius: 2em;
    border: solid .1em rgb(244, 244, 244);
    font-size: .9em;
    font-weight: 400;
    padding: .5em 1em;
    color: rgb(112, 112, 112);
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 10em;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#sc3 .sort i{
    font-size: 1em;
    padding: .4em;
    cursor: pointer;
}

#sc3 .content{
    display: flex;
    flex-direction: column;
    padding-top: .2em;
    gap: .5em;
}

#sc3 .empty-products{
    display: flex;
    justify-content: center;
    padding: 2em 0;
    color: grey;
    font-size: .9em;
    font-weight: 400;
}

#sc3 .item{
    display: flex;
    height: 8em;
    justify-content: space-between;

    background-color: white;
    border-radius: 1em;
    border: solid .1em rgb(244, 244, 244);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);

    padding: 1em 1.2em;
}

#sc3 .item:hover{
    transform: scale(1.01);

    transition: transform ease 300ms;
}

#sc3 .item .left{
    display: flex;
    gap: 2em;
}

#sc3 .item .left > div{
    display: flex;
    flex-direction: column;
    gap: .5em;
}


#sc3 .item .left > div > p:first-of-type{
    font-size: 1.5em;
    font-weight: 400;
    margin-top: .2em;
}

#sc3 .item .left > div > p:last-of-type{
    font-size: .8em;
    font-weight: 400;
    color: rgb(112, 112, 112);
}

#sc3 .item .left .tag{
    display: flex;
    gap: .5em;
    font-size: .9em;
}

#sc3 .item .left .tag > p{
    font-size: .85em;
    font-weight: 400;
    padding: .5em 1em;
    background-color: rgb(250, 250, 250);
    color: rgb(112, 112, 112);
    border: solid .1em rgb(244, 244, 244);
    border-radius: 2em;
    text-align: center;
}

#sc3 .item img{
    height: 100%;
    object-fit: fill;
    aspect-ratio: 4/3;
    border-radius: 8px;
}

#sc3 .item .right{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-end;
    margin-top: .2em;
}

#sc3 .item .right > p{
    font-size: 1.5em;
}

#sc3 .item .right>div{
    display: flex;
    flex-direction: column;
}

#sc3 .right button{
    border-radius: .6em;
    padding: .5em 1.2em;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    border: solid .1em var(--button-color-a);
    font-size: 1em;
    font-weight: 400;
    font-family: 'Inter';
    background: var(--button-color-b);
}

#sc3 button:last-of-type{
    background: white;
    font-size: .9em;
    color: rgb(55, 55, 55);
    border: solid .15em rgb(244, 244, 244);
    border-radius: 2em;
    padding: .3em 1.2em;
    margin: .5em 0 0 .5em;
}

#sc3 button:last-of-type:hover{
    background: rgb(246, 246, 246);
}

#sc3 button > div{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8em;
}

/* section3-end */

@media (max-width: 1150px) { 
    #sc2 .container{
        margin: 4em 5% 0 5%;
    }

    #sc3 .container{
        padding: .5em 5%;
    }
}

@media (max-width: 1000px){
    #sc1 .container > img:last-of-type{
        display: none;
    }

    #sc2 .container{
        align-items: center;
        flex-direction: column;
        margin: 4em 5% 0 5%;
        gap: 1em;
    }
    #sc2 .container .title{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #sc2 .search-bar{
        width: 100%;
        font-size: 1.2em;
    }


    #sc3 .content{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: .5em;
    }
    #sc3 .content hr{
        display: none;
    }
    #sc3 .item{
        flex-direction: column;
        height: auto;
        align-items: center;
        padding: 1.5em;
    }
    #sc3 .item .left{
        flex-direction: column;
        align-items: center;
    }
    #sc3 .item .left > div{
        flex-direction: column;
        align-items: center;
    }
    #sc3 .item .right{
        align-items: center;
        gap: 1em;
        margin-top: 1.5em;
    }
    #sc3 .item img{
        width: 100%;
        object-fit: fill;
        aspect-ratio: 4/2.8;
    }
    #sc3 .item button:last-of-type{
        display: none;
    }
    #sc3 .item .left > div > p:first-of-type{
        text-align: center;
    }
    #sc3 .item .left > div > p:last-of-type{
        text-align: center;
    }
    #sc3 .sort{
        justify-content: flex-end;
    }
}

@media (max-width: 670px){
    #sc1 .container > img{
        height: 70%;
        object-fit: cover;
    }
    #sc2 .title{
        font-size: .8em;
    }
    #sc2 .category {
        display: flex;             
        width: 100%;               
        overflow-x: auto;          
        overflow-y: hidden;        
        flex-wrap: nowrap;         
        padding-bottom: 10px;      
        justify-content: flex-start; 
        -webkit-overflow-scrolling: touch;
    }
    #sc2 .category .item {
        flex-shrink: 0;            
        white-space: nowrap;       
    }
    #sc2 .category::-webkit-scrollbar {
        display: none;
    }
    #sc2 .container{
        margin: 1em 1em 0 1em;
    }

    #sc3 .container{
        padding: .5em 1em;
    }
    #sc3 .content{
        font-size: .8rem;
    }
}

@media (max-width:520px){
    
    #sc2 .search-bar > div{
        padding: .5em 1em;
        font-size: .9em;
    }
    #sc2 .category .item{
        font-size: .8em;
        font-weight: 500;
    }

    #sc3 .item .left > div > p:first-of-type{
        font-size: 1.5em;
        font-weight: 600;
        margin-top: .2em;
    }

    #sc3 .item .left > div > p:last-of-type{
        font-size: 1em;
        font-weight: 600;
        color: rgb(112, 112, 112);
    }

    #sc3 .content{
        font-size: .6rem;
        font-weight: 600;
    }
}

@media (max-width:400px){
    #sc2 .title{
        font-size: .7em;
    }

    #sc3 .content{
        font-size: .5rem;
    }
    #sc3 .sort select{
        font-size: .7em;
        font-weight: 400;
    }
    #sc3 .item .left .tag > p{
        font-weight: 500;
    }
}

@media (max-width:350px){
    #sc3 .content{
        grid-template-columns: 1fr;
    }
}