main{
    width: 100vw;
    height: 100%;
    margin-top: 5rem;
}

img{
    object-fit: cover;
    width: 100%;
}

button{
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shop_search_container{
    display: flex;
    justify-content: center;
    width: 100%;
    height: 7rem;
    position: relative;
}

.shop_form{
    background: white;
    margin-inline: auto;
    width: 50%;
    max-width: 700px;
    border-radius: 15px;
    padding: 2rem;
    position: absolute;
    top: -80%;
    box-shadow: 1px 1px 10px 1px #dad8d8;
}

.form_title{
    margin-bottom: 1rem;
    font-weight: 600;
}

.input_container{
    border: 1px solid #9C9B9B;
    border-radius: 30px;
    padding: .5rem;
    display: flex;
    justify-content: space-between;
}

.input_container input{
    width: 70%;
    font-size: small;
    outline: none;
    
}

.input_container button{
    background: var(--sea-green);
    border-radius: 25px;
    padding: .4rem 1rem;
    font-size: small;
}

.input_container button img{
    width: 1rem;
    height: 1rem;
}

.best_seller, .products{
    width: 100%;
    padding: 1rem;
    margin-bottom: 2rem;
}

.best_seller h2{
    margin-bottom: 1rem;
    font-weight: bold;
    font-family: sans-serif
}

.cards_container{
    width: 100%;
    display: flex;
    gap: 1rem;
    padding-bottom: .5rem;
    overflow: auto;
}

/* For Chrome, Safari, and newer versions of Edge */
.cards_container::-webkit-scrollbar {
    display: none;
  }
  
  /* For Firefox */
  .cards_container {
    scrollbar-width: none;
  }
  
  /* For IE and Edge */
  .cards_container {
    -ms-overflow-style: none;
  }

.card{
    border: 1px solid #8FF8AD;
    min-width: 250px;
    width: 300px;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    flex-grow: 1;
}

.card_img{
    width: 100%;
    height: 250px;
    border-radius: 5px;
    overflow: hidden;
}

.card_img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card_content{
    padding: .5rem;
}

.item_location{
    display: flex;
    align-items: center;
    gap: .1rem;
}

.item_location img{
    width: .7rem;
    height: .7rem;
}

.item_price_and_button{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.item_price{
    font-size: large;
    font-weight: bold;
}

.item_btn{
    /* background: white; */
    border-radius: 6px;
    padding: .5rem;
    color: var(--sea-green);
    border:1px solid var(--sea-green);
    border-radius: 5px;
}

.tabs{
    display: flex;
    gap: 1rem;
    overflow: scroll;
    padding: .5rem;
    margin-bottom: 1rem;
}

/* For Chrome, Safari, and newer versions of Edge */
.tabs::-webkit-scrollbar {
    display: none;
  }
  
  /* For Firefox */
  .tabs {
    scrollbar-width: none;
  }
  
  /* For IE and Edge */
  .tabs {
    -ms-overflow-style: none;
  }

.tabs button{
    background: var(--sea-green);
    border-radius: 20px;
    padding: .4rem 1rem;
}

.products_container{
    width: 100%;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.products_container .card{
    width: 150px;
}

.advert{
    width: 100%;
    height: 70vh;
    margin-bottom: 5rem;
    background-image: url("../img/advert.png");
    background-repeat: no-repeat;
    background-size: cover;
    object-fit: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.advert h1{
    color: white;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .shop_form{
        width: 70%;
        padding: 1.5rem;
        top: -70%;
    }
    .img_container{
        height: 50vh;
    }
    .img_container img{
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 550px) {
    .shop_form{
        width: 85%;
        padding: 1rem;
        top: -60%;
    }

    .tabs button{
        border-radius: 20px;
        padding: .4rem 1rem;
    }

    .advert{
        height: 30vh;
    }
}
@media screen and (max-width: 425px) {
    .shop_form{
        width: 90%;
        padding: .5rem;
        top: -40%;
    }
    .form_title{
        margin-bottom: .5rem;
        font-weight: 500;
    }
    .input_container{
        padding: .3rem;
    }
    
    .input_container input{
        font-size: smaller;
    }
    
    .input_container button{
        padding: .2rem 1rem;
        font-size: smaller;
    }
}
@media screen and (max-width: 360px) {
    .form_title{
        margin-bottom: .2rem;
    }
    .input_container{
        padding: .4rem;
        flex-direction: column;
        gap: .5rem;
        justify-content: space-between;
        border: none;
    }
    
     .input_container input{
        border: 1px solid #9C9B9B;
        border-radius: 25px;
        padding-left: .5rem;
        width: 100%;
        font-size: small;
        outline: none;
        
    }
}