* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
html {
  overscroll-behavior: none;
}

body {
  background: #f4f4f4;
  color: #222;
}

nav {
  background: #111;
  color: white;
  padding: 20px 60px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: orange;
}

.hero {
  height: 90vh;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  text-align: center;

  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1523381210434-271e8be1f52b");

  background-size: cover;
  background-position: center;

  color: white;
}

.hero h1 {
  font-size: 60px;
  margin-bottom: 20px;
}

.hero p {
  width: 600px;
  max-width: 90%;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero button {
  padding: 15px 40px;
  border: none;
  background: orange;
  color: white;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
}
.hero button:hover {
  background: #222;
  transition: 1s ease;
  color: #f4f4f4;
}

.form-container {
  width: 400px;
  max-width: 90%;
  background: white;
  margin: 80px auto;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px grey;
}

.form-container h1 {
  text-align: center;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

form input {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  padding: 15px;
  border: none;
  background: #111;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

form button:hover {
  background: orange;
}
/* PRODUCTS */

.products-section {
  padding: 60px;
}

.products-section h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 40px;
}

.products-container {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 30px;
}

.product-card {
  background: white;

  border-radius: 10px;

  overflow: hidden;

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-info h2 {
  margin-bottom: 10px;
}

.product-info p {
  margin-bottom: 20px;
  font-size: 20px;
  color: orange;
}

.product-info button {
  width: 100%;

  padding: 12px;

  border: none;

  background: #111;

  color: white;

  cursor: pointer;

  border-radius: 5px;
}

.product-info button:hover {
  background: orange;
}

@media screen {
  .form-container {
    max-width: fit-content;
  }
}

.error {
  background-color: rgb(239, 7, 7, 0.3);
  color: crimson;
  padding: 25px;
  border-radius: 3px;
  margin: 25px 0px;
  font-size: smaller;
}

.success {
  background-color: rgba(6, 111, 51, 0.3);
  color: rgb(4, 78, 45);
  padding: 25px;
  border-radius: 3px;
  margin: 25px 0px;
  font-size: smaller;
}

.search-container {
  width: 100%;
  padding: 0px 20px;
}
.search-bar {
  width: 100%;
  height: 35px;
  border-radius: 5px;
  border: none;
  padding: 0px 10px;
  background-color: #eee;
}
.search-bar:focus {
  border: none;
  outline: none;
}

.hidden {
  display: none !important;
}
.loader-container {
  height: 100%;
  width: 100%;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  border: 3px solid #b3b0b0;
  border-top: 3px solid #222;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  animation: spinner 1s linear infinite;
}

@keyframes spinner {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
.filter {
  width: 100%;
}

.filter-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  margin-bottom: 45px;
}
.max-price {
  accent-color: #222 !important;
}
