/* ===== CATALOG PAGE ===== */

.catalog-page {
  background: linear-gradient(180deg, #f2f1ed 0%, #f8f6f2 100%);
  padding: 36px 0 80px;
}

.catalog-page__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  color: #2b2b2b;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.catalog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #94908a;
  margin-bottom: 12px;
}

.catalog-breadcrumbs a {
  color: #8b5b3c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s ease;
}

.catalog-breadcrumbs a:hover {
  color: #6c4228;
}

.catalog-breadcrumbs__sep {
  color: #c1b7ad;
}

.catalog-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.catalog-subtitle {
  margin: 0 0 6px;
  color: #a8a29a;
  letter-spacing: 0.1em;
  font-size: 13px;
  text-transform: uppercase;
}

.catalog-title {
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #2f251f;
}

.catalog-surface {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.06);
  padding: 24px 26px 30px;
}

.catalog-layout {
  display: block;
  width: 100%;
}

.catalog-results {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
}

.product-card {
  background: #ffffff;
  border: 1px solid #eee7dd;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.08);
  border-color: #e6d8cb;
}

.product-card__image-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #f8f3ec 0%, #f2ede6 100%);
  border-radius: 16px;
  overflow: hidden;
}

.product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover .product-card__image {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.08);
}

.product-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  flex: 1;
}

.product-card__category {
  font-size: 13px;
  color: #7e7a75;
  font-weight: 600;
}

.product-card__actions {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.product-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: #5f554e;
}

.product-card__price {
  font-weight: 800;
  color: #8b5b3c;
}

.product-card__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #8b5b3c;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 12px 24px rgba(139, 91, 60, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card__buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(139, 91, 60, 0.28);
}

.product-card--placeholder {
  border-style: dashed;
  border-color: #e3d6c9;
  box-shadow: none;
}

.product-card--placeholder .product-card__image-wrap {
  border-radius: 14px;
  background: #f1ece5;
}

.product-card__skeleton {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(90deg, #f1ece5 25%, #f7f3ee 50%, #f1ece5 75%);
  background-size: 280px 100%;
  animation: catalog-skeleton 1.15s ease-in-out infinite;
}

.product-card__skeleton--line {
  height: 12px;
  border-radius: 10px;
  margin-top: 10px;
}

.product-card__skeleton--line.short {
  width: 60%;
}

.catalog-empty {
  padding: 16px;
  border-radius: 12px;
  background: #f9f2e8;
  color: #715a44;
  font-weight: 700;
  text-align: center;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.pagination-page,
.pagination-arrow {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #dfd3c7;
  background: #ffffff;
  color: #6f4b32;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination-page:hover,
.pagination-arrow:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.pagination-page.is-active {
  background: #e6c59c;
  border-color: #e6c59c;
  color: #2f251f;
  box-shadow: 0 12px 28px rgba(230, 197, 156, 0.6);
}

.pagination-arrow:disabled {
  background: #f1ebe3;
  color: #c1b3a5;
  cursor: not-allowed;
  box-shadow: none;
}

.pagination-arrow.is-disabled {
  background: #f1ebe3;
  color: #c1b3a5;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pagination-dots {
  padding: 0 6px;
  color: #9d8d80;
  font-weight: 700;
}

@keyframes catalog-skeleton {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@media (max-width: 1280px) {
  .catalog-page__container {
    max-width: 1200px;
  }

  .catalog-title {
    font-size: 34px;
  }
}

@media (max-width: 1024px) {
  .catalog-page {
    padding: 30px 0 64px;
  }

  .catalog-surface {
    padding: 20px;
  }

  .catalog-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }

}

@media (max-width: 640px) {
  .catalog-page__container {
    padding: 0 16px;
  }

  .catalog-surface {
    padding: 16px 14px 22px;
    border-radius: 14px;
  }

  .catalog-page {
    padding: 22px 0 48px;
  }

  .catalog-title {
    font-size: 30px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    gap: 16px;
  }

  .product-card__body {
    padding: 12px 12px 14px;
  }

  .catalog-pagination {
    gap: 6px;
  }
}

