@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap");
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  background-color: #f4f4f9;
  color: #333;
  font-family: "Josefin Sans", sans-serif;

  padding: 20px;
}

/* Form Styling */
#Products {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 60%;
  margin-bottom: 20px;
  display: flex;
  margin: auto;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
#Products span {
  text-align: center;
  padding: 10px 0;
}

#Products input,
#Products select {
  padding: 10px 20px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  font-family: "Josefin Sans", sans-serif;
}

#Products input:focus,
#Products select:focus {
  border-color: #0066cc;
  box-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
}

#Products input[type="submit"] {
  background-color: #0066cc;
  color: #fff;
  cursor: pointer;
  border: none;
  font-weight: bold;
}

#Products input[type="submit"]:hover {
  background-color: #0057b7;
}

/* Buttons for Sorting */
.btn {
  display: flex;
  justify-content: end;
  gap: 20px;
  padding-right: 50px;
}
button {
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  font-family: "Josefin Sans", sans-serif;

  margin-top: 10px;
  transition: background-color 0.3s ease;
}

button#lth {
  background-color: #007bff;
}

button#lth:hover,
button#htl:hover {
  background-color: #0056b3;
}

img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

#ProductsList {
  text-align: center;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  line-height: 40px;
}

#ProductsList div {
  background-color: #fdfaf6 !important;
  width: 300px;
  height: 380px;
  margin: 10px 80px;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  border-radius: 8px;
  font-size: 20px;
}

#ProductsList button {
  border: 2px solid #e50046;
  color: #e50046;
  padding: 10px;
  font-size: 1rem;
  font-weight: bold;
  outline: none;
  background: transparent;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

#ProductsList button:hover {
  background-color: #e50046;
  color: wheat;
  cursor: pointer;
}


@media screen and (min-width:325px) and (max-width:425px) {
  body{
    overflow-x:hidden ;
  }
  #Products {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    margin: auto;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }
  #Products span {
    text-align: center;
    padding: 10px 0;
  }
  #ProductsList div {
    background-color: #fdfaf6 !important;
    width: 290px;
    height: 380px;
    margin: 10px 0px;
    padding: 10px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    border-radius: 8px;
    font-size: 20px;
  }
  #ProductsList {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    line-height: 40px;
  }
  /* button */
  .btn {
    display: flex;
    justify-content: end;
    gap: 10px;
    padding-right: 10px;
  }
  button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-family: "Josefin Sans", sans-serif;
  
    margin-top: 10px;
    transition: background-color 0.3s ease;
  }
  
  button#lth {
    background-color: #007bff;
  }
  
  button#lth:hover,
  button#htl:hover {
    background-color: #0056b3;
  }
  
  
}
