@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 35px 20px;
  font-family: 'Manrope', sans-serif;
  background: #E9E9EB;
  color: #171717;
}

.favorites-page {
  max-width: 1050px;
  margin: auto;
}

header {
  text-align: center;
  padding: 35px 20px;
  border-radius: 25px;
  background: #F8F6F5;
  box-shadow: 8px 8px 20px #d0d0d2,
              -8px -8px 20px #ffffff;
}

header h1 {
  font-size: 32px;
}

header p {
  color: #66646A;
}

header a {
  display: inline-block;
  margin-top: 15px;
  padding: 13px 24px;
  border-radius: 30px;
  background: #F6DDE3;
  color: #171717;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 4px 4px 10px #d8c5ca,
              -4px -4px 10px #ffffff;
}

#favorites-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.favorite-card {
  padding: 18px;
  border-radius: 22px;
  background: #F8F6F5;
  box-shadow: 7px 7px 18px #d0d0d2,
              -7px -7px 18px #ffffff;
}

.favorite-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  border-radius: 15px;
  background: white;
}

.favorite-card h3 {
  font-size: 15px;
  line-height: 1.5;
}

.favorite-price {
  font-size: 19px;
  font-weight: 800;
}

.favorite-card button,
.favorite-card a {
  display: inline-block;
  padding: 11px 15px;
  margin: 5px 3px 0 0;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.view-button {
  background: #F6DCCB;
  color: #171717;
}

.remove-button {
  background: #F6DDE3;
  color: #171717;
}

.empty-message {
  text-align: center;
  color: #66646A;
  grid-column: 1 / -1;
  padding: 40px;
}

@media (max-width: 600px) {
  body {
    padding: 18px 12px;
  }

  header h1 {
    font-size: 25px;
  }
}