.find-block{
    margin-top: 100px;
    height: 60px;
    width: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 2px solid white;
    display: flex;
    flex-direction: row;
}
.find-part{
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.find-part form{
    display:contents;
}
.find-input {
  width: 30vw;
  padding: 8px;
  border: none;
  background-color: white;
  color: black;
  font-size: 14px;
  font-family: Montserrat-Regular;
}

.sort-input {
  width: 120px;
  height: 37px;
  padding: 8px;
  font-family: Montserrat-Regular;
  margin-right: 5px;
  font-size: 14px;
  border: none;
  background-color: white;
  color: black;
  cursor: pointer;
  text-align: center;
}



button:hover {
  background-color: #F648AA ;
}
.sort-panel{
    margin-top: 100px;
    width: 320px;
    min-height: 100vh;
    background: rgb(0, 0, 0);
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}
.filter-menu {
  display: none;
  height: 32px;
  width: 32px;
    margin-right:5px;
  cursor: pointer;
}
.filter-menu:hover{
    filter: invert(46%) sepia(91%) saturate(650%) hue-rotate(295deg) brightness(90%) contrast(105%);
}
.sort-btn{
    width: 100%;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: clamp(12px, 3vw, 18px);
}
.sort-btn:hover{
    background: #F648AA ;
}
.sort-btn input {
    display: none;
}

.sort-btn:has(input:checked) {
    border-top: 1px solid white;
    background: #F648AA ;
}

.sort-img{
    width: clamp(14px, 3vw, 24px);
    height: clamp(14px, 3vw, 24px);
}
.category-title{
    background: rgb(0, 0, 0);
    color: whitesmoke;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: solid 2px whitesmoke;
    font-family: Montserrat-Bold;
}
.product-block{
    display: flex;
    flex-direction: row;
    align-items: start !important;
    justify-content: start !important;
    overflow: hidden;
}
.product-list{
    width: 100%;
    display: flex;
    flex-direction: column;
}
.products{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    flex-direction: row;
    justify-content:space-evenly;
}
.product-card{
    height: 500px;
    width: 300px;
    margin-top: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: flex;
    justify-content:start;
    flex-direction: column;
    color: black;
    font-size: clamp(14px, 3vw, 18px);
    overflow-wrap: break-word;
}
.product-card > a{
    display:block;
    height: auto;
}

.product-card:hover{
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    transform: scale(1.05);
}
.product-img{
    width: 300px;
    height: 340px;
    border-bottom:solid 2px black ;
    object-fit: contain;
    object-position: center;
    display: block;
}
.product-name{
    padding: 20px 20px 0 20px;
}
.product-price{
    font-family: Montserrat-Bold;
    padding: 10px 20px 10px 20px;
}
.to-busket{
    margin-top: auto;
    width: 100%;
    height: 40px;
    background: black;
    color: whitesmoke;
    font-family: Montserrat-Bold;
    display: flex;
    align-self: self-end;
    align-items: center;
    justify-content: center;

}
.to-busket:hover{
    background:  #F648AA   ;
}
.hide{
    display: none;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;

    background: #F648AA;
    color: white;

    padding: 15px 20px;
    border-radius: 10px;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-20px);
    transition: all .3s ease;

    z-index: 9999;
    font-family: Montserrat-Bold;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


@media (max-width: 860px){
    .find-block{
        margin-top: 80px;
    }
    .sort-panel{
        margin-top: 80px;
        width: 240px;
    }
    .category-title{
        font-size: clamp(14px, 3vw, 18px);
    }
    .product-card{
        height: 370px;
        width: 175px;
    }
    .product-img{
        width: 175px;
        height: 215px;
    }
    .product-name{
        font-size: 14px;
        padding: 10px 10px 10px 10px;
    }
    .product-price{
        font-size: 14px;
        padding: 5px 10px 5px 10px;
    }
    .btn-secondary.find-btn{
        font-size: 14px;
    }
}
@media (max-width: 600px){
    .sort-panel{
        display: none;
        margin-top: 0;
        min-height: 0;
    }
    .filter-menu{
        display: block;
   }
    .sort-panel.open {
        display: block;
        flex-direction: column;

        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;

        width: 100%;
        height: calc((100vh) - 80px);
        
        overflow-y: auto;
        z-index: 10;
        overflow:auto;
    }
    .sort-btn,
    .category-title{
        margin-left: auto;
        margin-right: auto;
    }
    .btn-secondary{
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }    
    .btn-secondary.hide {
        display: block;
    }
    .find-block{
        flex-direction: column-reverse;
        height: 120px;
    }
    .find-input {
      width: 45vw;
    }
    .sort-input{
        width: 180px;
    }

    .toast {
        width: 300px;
        top: 20px;
        right: 5px;
    }
}