
.products-page {
  position: relative;
}


.products-page__photo {
  position: relative;
  min-height: 500px;
  border-radius: 60px 60px 0 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 0 56px 56px;
}

.products-page__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.products-page__photo-placeholder-tag {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  color: #8a8f98;
  background: rgba(255, 255, 255, .7);
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 2;
}

.products-page__title {
  position: relative;
  z-index: 1;
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.products-page__panel {
  position: relative;
  z-index: 32;
  background: #fff;
  border-radius: 65px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .06);
  padding: 40px 48px 80px;
  margin: -60px auto 0;
  min-height: 520px;
}

/* ---------------- product-filter ---------------- */
.product-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid #4d4a49;
}

.product-filter__item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  color: #4d4a49;
  user-select: none;
}

.product-filter__item input {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #4d4a49;
  border-radius: 50%;
  margin: 0;
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  transition: border-color .2s ease;
}

.product-filter__item input:checked {
  border-color: var(--ink-soft);
}

.product-filter__item input:checked::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: url('../img/checked-icon.png') no-repeat center / cover;
}

.product-filter__item:has(input:checked) {
  color: var(--ink-soft);
  font-weight: 400;
}

/* ---------------- product-grid ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #E3E4EA;
  border-radius: 10px;
  padding: 32px 32px 40px;
  min-height: 320px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .08);
  background-color: #c9cbdc;
}

.product-card__cat {
  font-size: 14px;
  color: #87888e;
  text-align: center;
  margin: 0 0 6px;
}

.product-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
}

.product-card__img {
  flex: 1 1 auto;
  margin-top: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 250px;
}

@media (max-width: 991px) {
  .products-page__photo {
    min-height: 280px;
    padding: 0 28px 32px;
    border-radius: 40px 40px 0 0;
  }

  .products-page__title {
    font-size: 34px;
  }

  .products-page__panel {
    padding: 28px 22px 48px;
    margin-top: -40px;
    border-radius: 28px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 575px) {
  .products-page__photo {
    min-height: 210px;
  }
}