.category-card {
    display: inline-block;
    padding: 6px;
    margin-right: 6px;
    margin-top: 6px;
    
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    vertical-align: top; /* Ensures cards align properly even if heights vary */
}
.mobile-category-container{
    padding-bottom: 10px;
    display: none;
}
.section-wrapper{

    margin-top: 70px;
    height: 100%;
    display: flex;
    padding: 0 25px;
}
.delete-btn i{
    color: red;
    padding: 10px;
}

.delete-modal-container{
    position: fixed;
    top: 0;left: 0;right: 0;bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
}
#delete-modal-container.show{
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-modal-container .wrapper{
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
}
.delete-modal-container .header{
    position: unset;
    z-index: unset;
    top: unset;
    right: unset;
    left: unset;
    box-shadow: unset;
    background-color: unset;
}
.delete-modal-container .wrapper{
   text-align: center;
  
}
.delete-modal-container .wrapper .icon{
    font-size: 2rem;
    color: rgb(252, 37, 51);
    text-align: center;
    margin-bottom: 10px;
}
.delete-modal-container .wrapper .card1-delete{
    font-size: .8rem;
    font-weight: 700;
}
.delete-modal-container .wrapper .name-delete{
    font-size: .8rem;
}
.delete-modal-container .wrapper .text{
    margin: 20px 0;
}
.delete-modal-container .wrapper .bottom-card{
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}
.delete-modal-container .x-icon{
    position: absolute;
    top: 20px;
    right: 20px;
}
.delete-modal-container .wrapper .bottom-card span:nth-child(1){
    border: solid royalblue 1px;
    cursor: pointer;
    padding: 8px 20px;
    font-size: .8rem;
    border-radius: 8px;
}
.delete-modal-container .wrapper .bottom-card span:nth-child(2){
    background-color: rgb(252, 37, 51);
    padding: 8px 20px;
    font-size: .8rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}


.pagination-tab{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    margin-top: 20px;
}
.pagination-tab  a{
    margin: 0 10px;
}
.pagination-tab .current-page{
    background-color: blue;
    color: white;
    padding: 3px 10px;
    font-size: .85rem;
}

.section-wrapper .filter-container{


    min-width: 300px;
    max-width: 300px;
    padding: 20px 0 20px 20px;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 26%);
    margin-right: 20px;
    padding-right: 20px;
    align-self: baseline;
}




.section-wrapper .listings-container{

    height: 100%;
    flex-grow: 1;
    padding: 20px;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 26%);

}
.section-wrapper .recommended-top{

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;

}
.section-wrapper .outline{

    font-size: .9rem;
    font-weight: 600;
}
.section-wrapper .outline .card1{
    display: none;
}
.sort-container{
    font-size: .9rem;

    white-space: nowrap;
}
.sort-container span:nth-child(1){
    color: rgba(45,46,47,1);
}

.sort-container span:nth-child(3){
    color: gray;
}
.sort-container span:nth-child(2){
    margin: 0 10px;
    font-weight: 600;
}
.product-container{
   margin-bottom: 20px;
    display: flex;
    border-bottom: solid #b1adb3 1px;
    text-decoration: none;
    color: unset;


}
.product-container img{
    width: 150px;
    max-height: 150px;
}
.product-container .product-text-wrapper{

    flex-grow: 1;
    padding: 10px 20px;
}
.product-container .card1{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-container .card1 .headings{
    color: #007fb0;
    font-size: .9rem;
    font-weight: 600;


    display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

}
.product-container .card1 .location{
    font-size: .9rem;
    color: black;
    font-weight: 600;

}
.product-container .card2{
    margin: 8px 0;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-container .card2,.product-container .card3{
    color: #8a848d;
    font-size: .8rem;
}
.product-container .card3 span{
   background-color:gainsboro;
   padding: 8px;
   font-size: .6rem;
   font-weight: unset;
}
.product-container .card3 span:nth-child(2){
  margin-left: 5px;
}
.product-container .card3{
    font-weight: 600;
}
.product-container .card4{
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 15px;
    font-size: .8rem;
}

.product-container .card4 .price{
    color: #52a744;
    font-weight: 600;
}

.product-container .heart{
    color: #f68b1e;
    margin-left: 20px;
}

.product-container .title span{

    font-size: 1rem;
    font-weight: 600;
}
.product-container .title i{

    color: black;
}

.ratings a{
    text-decoration: none;
    font-size: .85rem;
}
.filter-container .ratings{

    margin-top: 10px;
}
.filter-container .ratings span:nth-child(1){
    font-size: .9rem;
    font-weight: 600;
}
.filter-container .ratings>div{
    margin-bottom: 6px;
    font-size: .7rem;
}
.filter-container .ratings i{
    color: #f68b1e;

}
.filter-container .location{
    position: relative;
    margin-top: 20px;
}
.filter-container .location span:nth-child(1){
    font-size: .9rem;
    font-weight: 600;
}
.filter-container .location input{
    border: 1px solid #4a85c9;
    width: 100%;
    padding: 7px 20px;
    border-radius: 100px;
    margin-top: 6px;
}
.filter-container .location input:focus{
    border: none;
    outline: solid #4a85c9 1px;
}

.filter-container .price-wrapper{

    width: 100%;
    margin-top: 20px;
}
.filter-container .price-wrapper .wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.filter-container .ratings input[type="text"]{
    width: 100%;
    border: 1px solid #4a85c9;
    padding: 7px;
    border-radius: 6px;
}
.filter-container .ratings input[type="text"]:focus{
    border: none;
    outline: solid #4a85c9 1px;
}

.filter-container .price-wrapper input{
    width: 50%;
    border: 1px solid #4a85c9;
    padding: 7px;
    border-radius: 6px;
}
.filter-container .price-wrapper input:focus{
    border: none;
    outline: solid #4a85c9 1px;
}
.filter-container .price-wrapper .title{
    font-size: .9rem;
    font-weight: 600;
}
.filter-container .price-wrapper input:nth-child(1){
    margin-right: 4px;
}
.filter-container .price-wrapper input:nth-child(2){
    margin-left: 4px;
}
.section-wrapper-mobile{
    display: none;
}
.fixed-filter{
    display: none;
}

#suggestion-container {
   width: 100%;
    overflow-y: auto;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    display: none;

  }

  /* Styles for the suggestion items */
  #suggestion-container div {
    padding: 8px;
    cursor: pointer;
  }

  #suggestion-container div:hover {
    background-color: #ddd;
  }

  .section-wrapper .cancel{
    display: none;
  }

@media screen and (max-width:823px){
    .mobile-category-container{
        padding-bottom: 10px;
        display: block;
    }
    .mobile-category-container a{
        font-size: .7rem;
    }
    .section-wrapper .outline span{
        display: none;
    }
    .section-wrapper .outline .card1{
       display: block;
    }
    .section-wrapper{

        margin-bottom: 80px;
    }

    .section-wrapper .cancel{
        display: block;
        position: absolute;
        right:20px ;
        top: 20px;
        z-index: 100;
        background-color: white;
        height: 40px;
        width: 40px;
        border-radius: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .section-wrapper #filter-container.show{
        display: block;
    }
    .section-wrapper .filter-container{
        display: none;
        position: fixed;
        background-color: rgba(0,0,0,.6);
        top: 0;bottom: 0;
        left: 0;right: 0;
        z-index: 2000;
        min-width: unset;
        max-width: unset;
        margin: 0;
        padding: 0;
    }
    .section-wrapper .fixed-new-wrapper{
        background-color: white;
        width: 70%;
        position: absolute;
        overflow-y: scroll;
        height: 100%;



    }
    .section-wrapper .title-x{

        position: fixed;
        width: 70%;
        background-color: white;
        padding: 14px 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

    }
    .section-wrapper .fixed-new-wrapper .price-wrapper,.section-wrapper .fixed-new-wrapper .location{
        padding: 3px 20px;
    }
    .section-wrapper .fixed-new-wrapper .ratings:nth-child(2){
        margin-top: 60px;
    }

    .section-wrapper .ratings{
        padding: 3px 20px;
    }

    .section-wrapper-mobile{
        display: block;

        padding: 20px;
        margin-top: 150px;

    }
    .filter-mobile-container{
        display: flex;

        justify-content: space-between;
        margin-bottom: 20px;

    }

    .filter-mobile-container .card1{
        border: 1px solid #b1adb3;
        padding: 5px 10px;
        border-radius: 6px;
    }
    .filter-mobile-container .card2{
        padding: 5px 10px;
    }
    .filter-mobile-container .card2 select{
        border: 1px solid #b1adb3;
        padding: 2px 5px;
        border-radius: 5px;
    }

    .product-container img{
        width: 100px;
       height: 100px;
    }


    .product-container .card1 .headings{

        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;

    }

    .product-container .card3{

        display: none;
    }
    .product-container .card4{

        margin-top: 4px;
    }
    .fixed-filter{
       display: block;
        position: fixed;
        top: 0;left: -100%;bottom: 0;
        background-color: rgba(0,0,0,.6);
        width: 100%;
        z-index: 2000;
        transition: left 0.3s ease-out
    }
    #fixed-filter.show{
        left: 0;
    }
    .fixed-filter .box-wrapper{
        height: 100%;
        width: 80%;
        background-color: white;
        overflow-y: scroll;
    }
    .fixed-filter .cancel{
        position: absolute;
        right:20px ;
        top: 20px;
        z-index: 100;
        background-color: white;
        height: 40px;
        width: 40px;
        border-radius: 40px;
        display: flex;
        align-items: center;
        justify-content: center;



    }
    .fixed-filter .filter-container .wrapper-t{

        padding: 20px;
        margin-top: 48px;

    }
    .fixed-filter .head{

        position: absolute;
        top: 0;
        right: 20%;
        left: 0;
        padding: 20px;
        z-index: 100;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        background-color: white;
    }
}

@media screen and (max-width:399px) {
    .product-container img{
        width: 80px;
       height: 80px;
    }
    .product-container .product-text-wrapper{

        flex-grow: 1;
        padding: 7px;

    }
    .product-container .card2{

        display: none;
    }
}