*,
/*html important to avoid side-scroll*/
body,
html {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
}

.outer-container {
  display: grid;
}

h1 {
  width: 350px;
  height: 70px;
  margin: 50px 0 0 10px;
  color: #0018A4;
  font-size: 45px;
  font-weight: bold;
  line-height: 100%;
}


.upper-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 10px;
  padding: 10px;
  font-size: 20px;
  font-weight: bold;
}

.btn-kitchen {
  padding: 8px 16px 8px 16px;
  margin-top: 10px;
  background-color: #CCFFE2;
  border-radius: 50px;
  font-size: 16px;
  border: none;
  color: #0018A4;
}

.btn-kitchen.active {
  background-color: #0018A4;
  color: white;
}

.btn-kitchen:hover {
  border: 2px solid #0018A4;
}

.btn-sorting {
  padding: 8px 16px 8px 16px;
  margin-top: 10px;
  background-color: #FFECEA;
  border-radius: 50px;
  font-size: 16px;
  border: none;
  color: #0018A4;
}

.btn-sorting.active {
  background-color: #FF6589;
  color: white;
}

.btn-sorting:hover {
  border: 2px solid #2d46d5;
}

.btn-random {
  width: 150px;
  padding: 8px 16px 8px 16px;
  margin-top: 10px;
  background-color: rgb(212, 232, 240);
  border-radius: 50px;
  font-size: 14px;
  border: none;
  color: #0018A4;
}

.btn-random.active {
  background-color: #0018A4;
  color: white;
}

.btn-random:hover {
  border: 2px solid #2d46d5;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, max-content));
  width: 100%;
  max-width: 320px;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  margin: 0 auto;
}

.card {
  font-size: 22px;
  display: flex;
  max-width: 300px;
  flex-direction: column;
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  padding: 16px 16px 24px 16px;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0px 0px 30px 0px #0018A433;
  border: 2px solid #0018A4;
}

.card img {
  object-fit: cover;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.card ul {
  list-style-type: none;
  font-size: 16px;
  margin-top: 10px;
}

p {
  font-size: 18px;
}

.info-row {
  font-size: 16px;
}

.info-row span {
  display: block;
  padding: 5px;
}

ul li {
  padding: 5px;
}

.divider {
  width: 95%;
  height: 0;
  border: 1px solid #e9e9e9;
  margin: 10px 0 10px 0;
}

/* //==== TABLET ====// */
@media (min-width:600px) {
  h1 {
    font-size: 50px;
    margin: 50px 0 0 20px;
  }

  .container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    gap: 50px;
  }
}

/* //==== DESKTOP ====// */
@media (min-width: 1024px) {
  .outer-container {
    width: 100%;
    padding-left: 40px;
    box-sizing: border-box;
  }

  h1,
  .upper-box {
    margin-left: 0;
    text-align: left;
  }

  .container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-content: start;
    margin-left: 0;
    gap: 30px;
    max-width: 1600px;
  }
}