/* ==========================================
   Шапка каталога (Catalog Header)
   ========================================== */

.catalog-header {
  padding: 60px 0 30px;
  text-align: center;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 16px;
  color: #666666;
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
}

/* Кнопки фильтрации */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.filter-btn {
  padding: 10px 20px;
  background-color: #f5f5f5;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: #eeeeee;
  border-color: #cccccc;
}

.filter-btn.is-active {
  background-color: #ff6b00;
  color: #ffffff;
  border-color: #ff6b00;
}

/* ==========================================
   Сетка каталога и карточки товаров
   ========================================== */

.catalog-grid-section {
  padding: 20px 0 60px 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-card__img-wrap {
  position: relative;
  height: 220px;
  background-color: #f4f4f4;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Бейдж наличия поверх картинки */
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  color: #ffffff;
}

.product-card__badge--green {
  background-color: rgba(40, 167, 69, 0.9);
}

.product-card__info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ==========================================
   Блок индивидуального заказа (Custom Order)
   ========================================== */

.custom-order {
  padding: 40px 0 80px 0;
}

.custom-order__wrapper {
  background-color: #f9f9f9;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.custom-order__wrapper .section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.custom-order__desc {
  font-size: 16px;
  color: #666666;
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
}

.btn--large {
  padding: 14px 28px;
  font-size: 16px;
}

/* ==========================================
   Адаптив для мобильных устройств (Mobile Media Queries)
   ========================================== */

@media (max-width: 768px) {
  /* Шапка каталога */
  .catalog-header {
    padding: 40px 0 20px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Сетка товаров: на мобилках делаем колонку в полную ширину или удобные карточки */
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Блок индивидуального заказа */
  .custom-order {
    padding: 20px 0 50px 0;
  }

  .custom-order__wrapper {
    padding: 30px 20px;
    border-radius: 14px;
  }

  .custom-order__wrapper .section-title {
    font-size: 24px;
  }

  .custom-order__desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Кнопки делаем на всю ширину для удобства нажатия пальцем */
  .btn--large {
    width: 100%;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  /* Дополнительные настройки для совсем маленьких экранов */
  .product-card__img-wrap {
    height: 180px;
  }
}