/* ===================================================================
   Catalog page — Noah-style gallery theme
   Exact values extracted from noahsmirrors.com reference
   =================================================================== */

/* --- Page background sync with header --- */

.catalog-page {
  background-color: #F6F2ED;
}

.catalog-page header.fixed > div {
  border-bottom-color: transparent !important;
  background-color: #F6F2ED !important;
}

/* --- Product card: image container --- */

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: transparent;
}

.card-media__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
}

.group:hover .card-media__img {
  transform: scale(1.03);
}

/* --- Product card: "Под заказ" badge (контурный ghost-чип) --- */

.card-badge-sold {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 11px 6px;
  background: transparent;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: #2A1A10;
  border: 1px solid #B8A48E;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

/* --- Product card: info (title + price) --- */

.card-info {
  padding: 13px 10px 0;
}

.card-info__title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: rgb(18, 18, 18);
  letter-spacing: 0.06rem;
  line-height: 1.3;
  margin: 0;
}

@media (min-width: 750px) {
  .card-info__title {
    font-size: 18px;
  }
}

.card-info__price {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgb(18, 18, 18);
  letter-spacing: 0.06rem;
  line-height: 1.8;
  margin-top: 5px;
}

/* --- Filter buttons --- */

.catalog-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #737373;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.catalog-filter-button:hover {
  color: #404040;
}

.catalog-filter-button.catalog-filter--active {
  color: #171717;
  background-color: #f5f5f5;
  border-color: #e5e5e5;
  font-weight: 600;
}

.catalog-filter-count {
  font-size: 11px;
  font-weight: 500;
  color: #a3a3a3;
  min-width: 16px;
  text-align: center;
}

.catalog-filter--active .catalog-filter-count {
  color: #737373;
}

/* --- Sort dropdown --- */

.catalog-sort-option {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 8px 14px;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  color: #525252;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.catalog-sort-option:hover {
  background-color: #f5f5f5;
  color: #171717;
}

.catalog-sort-option[data-active="true"] {
  color: #171717;
  font-weight: 600;
}

/* --- Pagination --- */

.catalog-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  color: #737373;
  cursor: pointer;
  transition: color 0.2s ease;
}

.catalog-page-btn:hover {
  color: #171717;
}

.catalog-page-btn[data-current="true"] {
  color: #171717;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #a3a3a3;
  cursor: pointer;
  transition: color 0.2s ease;
}

.catalog-page-arrow:hover {
  color: #171717;
}

.catalog-page-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.catalog-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  font-size: 13px;
  color: #a3a3a3;
  user-select: none;
}
