header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: top 0.4s ease;
}
body {
  padding-top: 80px; /* Adjust based on header height */
}
.filtru {
  
  position: fixed;
  top:10px;
  left:10px;
  height: 80px;
  width: fit-content;
  display: flex;
  top: 80px;
  left:0;
  z-index: 999;
  padding: 10px;
  
  align-items: center;
  justify-content: flex-start;
  background-size: contain;

  transition: opacity 0.4s ease, visibility 0.4s ease;
  opacity: 1;
  visibility: visible;
}

  .filtru.hidden {
    opacity: 0;
    visibility: hidden;
  }


.filtru h1 {
  width: 150px;
}
.frm {
  width: auto;
}

.frm {
  width: 500px;
  display: flex;
  align-items: center;
  height: 100%;
}

.frm > div * > select,
form > div > select {
  /* border:1px solid rgb(255, 255, 255); */
  box-shadow: 2px 2px 5px 2px black;
  background-color: rgba(255, 255, 255, 0.313);
  color: rgb(0, 0, 0);
}

.frm * {
  border-radius: 5px;
  transition: transform 0.2s;
}
#inp {
  padding: 5px;
  height: 65px;
  background-color: black;
  color: white;
  border: 1px solid red;
  transition: background-color 0.2s ease;
}
#inp:hover {
  background-color: rgb(255, 0, 0);
  color:rgb(255, 255, 255);
  transition-duration: 1s;
  
}
/* Optional: Add shadow to the sticky filter when scrolling */
.filtru.scrolled {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.no_products {
  border-radius: 1rem;
  padding: 20px 40px;
  background-color: rgba(0, 0, 0, 0.567);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px; /* You can adjust this height as needed */
  font-size: 2em;
  color: white;
  text-align: center;
}



.listed_prod:hover {
    transform: scale(110%);
    transition: .5s ease;
    box-shadow: rgb(0, 0, 0) 1px 1px 5px 1px;
}

.img_cont {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 5px;
  margin: 2px 0;
  width: 190px;
  height: 190px;

}
.img_cont img {
  object-fit: contain;
}
.listed_prod img {
    border:1px solid black;
    height: 200px;
    width: 200px;
}
.img_cont {
  border:1px solid black
}

.lower_parts {
    height: 70px;
    padding: 0px;
}
.lower_parts h4 {color:black}

.listed_prod {
    margin: 15px;
    background-color: white;
    opacity: .8;
    padding: 5px;
    margin: 10px;
    box-shadow: 2px 2px 5px 2px rgb(0, 0, 0);
    width: 200px;
    height: 300px;
    border-radius: 5%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    color: black;
    transition: transform .5s ease;
    opacity: 1;
}

.products_container a {box-shadow: black;}
.prod_name {
  word-wrap: break-word; /* Legacy support */
  overflow-wrap: anywhere; /* Forces breaking anywhere if needed */
  white-space: normal;
  overflow: hidden;
}
.products_container {

  padding: 40px 0px;
  padding-top:100px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.adauga_in_cos {
  position: relative;
  top: 5px;
  background-color: red;
  border-radius: 5px;
  padding: 2px;
  color: white;
}


.frm div:hover {
  background-color: rgba(240, 248, 255, 0.47);
  background-size: cover;
  background-repeat: no-repeat;
}

.pret_container {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: transform 0.5s;
}

.preturi {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.cat_container * {
  width: 100%;
  display: flex;
  justify-content: center;
}

.options {
  width: 50%;
}

.filters {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: auto;
  border: none;
}
.filters > div,
h1 {
  width: 150px;
  box-shadow: 2px 2px 5px 2px black;
  background-color: rgba(255, 255, 255, 0.382);
  color: rgb(0, 0, 0);
  border-radius: 5px;
  margin: 5px;
  padding: 5px;
  border: 1px solid red;
}

@media (max-width: 480px) {
  .pret_container,
  .cat_container,
  #inp,
  h1 {
    height: 73px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
  }
  .listed_prod {
    display: block;
    width: 160px;
    height: 280px;
    background-color: white;
    opacity: 1;
  
  }

  .preturi {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .filtru.scrolled {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  h1,
  #inp {
    margin: 0px 5px;
    background-color: black;
    color: white;
    transition: ease-in 1s linear;

  }
  .img_cont {
    width: fit-content;
  }
  .options {
    margin: 2px;
  }
  /* redooo */
  .filtru h1 {
    width: 90vw;
    height: auto;
  }

  .filters > div {
    width: 90vw;
    box-shadow: none;

  }
  .filtru {
    width: 90vw;
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: auto;
    background-repeat: no-repeat;
    background-size: cover;

  }

  .filtru cnt, cnt {
    background-color: rgba(0, 0, 0, 0);
  }

  .frm {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .filters {
    margin:5px 0px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: none;
  }
  /* Redo Pret bar */
  .pret_container {
    width: 100vw;
    flex-direction: row;
    height: auto;
    justify-content: space-between;
  }
  .preturi {
    width: 50%;
    flex-direction: row;
  }
  /* Redo Category bar */
  .cat_container {
    width: 90vw;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    height: auto;
  }
  .cat_container * {
    width: auto;
  }
  .category_list * {
    width: 46vw;
  }

  #inp {
    width: 90vw;
    height: auto;
    font-weight: 750;
  }

.products_container{
  padding-top:0px;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  padding-bottom: 30px;
}

.listed_prod img {
  
  height: 150px;
  width: 150px;
}



.prod_name {
    height: 60px;
    font-size: 12px;

}
.img_cont {
  width: 100%;
  height: 150px;
  border: 2px solid black;
}
.lower_parts{
  height: 60px;
  padding: 0px;
}
.adauga_in_cos {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  position: static;
}
h4 {
  color: black;
}

/* Modificari aduse headerului */

}
