/* InkSnap products catalog — agency language */

.products-catalog-page {
  background: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero — one composition, brand first */
.catalog-hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2.25rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(33, 99, 232, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 20%, rgba(33, 99, 232, 0.05), transparent 50%),
    linear-gradient(180deg, #f5f7fb 0%, #fff 100%);
  border-bottom: 1px solid var(--bz-line, #e8eaee);
}

.catalog-brand {
  margin: 0 0 0.65rem;
  font-family: "Rubik", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bz-ink, #191a1f);
  line-height: 1.1;
}

.catalog-brand::after {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: var(--bz-primary, #2163e8);
  vertical-align: middle;
  transform: translateY(-0.15rem);
}

.catalog-hero h1 {
  max-width: 18ch;
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--bz-ink, #191a1f);
}

.catalog-lead {
  max-width: 38rem;
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--bz-muted, #595d69);
}

.catalog-search {
  display: flex;
  align-items: stretch;
  max-width: 34rem;
  margin-bottom: 1.35rem;
  border: 1px solid #d9dee8;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(25, 26, 31, 0.06);
}

.catalog-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--bz-ink, #191a1f);
  background: transparent;
}

.catalog-search-btn {
  border: 0;
  background: var(--bz-primary, #2163e8);
  color: #fff;
  padding: 0 1.15rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.catalog-search-btn:hover {
  background: #1a52c4;
}

.catalog-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 0.88rem;
  color: var(--bz-muted, #595d69);
}

.catalog-facts strong {
  color: var(--bz-ink, #191a1f);
  font-weight: 650;
}

/* Sticky filter bar */
.catalog-toolbar {
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bz-line, #e8eaee);
  z-index: 40;
}

.sticky-toolbar {
  position: sticky;
  top: 64px;
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.catalog-chip {
  appearance: none;
  border: 1px solid #dde3ec;
  background: #fff;
  color: var(--bz-ink, #191a1f);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.catalog-chip:hover {
  border-color: rgba(33, 99, 232, 0.45);
  color: var(--bz-primary, #2163e8);
}

.catalog-chip.is-active {
  background: var(--bz-primary, #2163e8);
  border-color: var(--bz-primary, #2163e8);
  color: #fff;
}

.catalog-count {
  margin: 0;
  font-size: 0.84rem;
  color: var(--bz-muted, #595d69);
}

/* Grid */
.catalog-grid-section {
  padding: 1.75rem 0 4rem;
  background: #f7f8fa;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e2e7ef;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(25, 26, 31, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 99, 232, 0.35);
  box-shadow: 0 16px 36px rgba(25, 26, 31, 0.1);
  color: inherit;
}

.catalog-card.is-hidden {
  display: none;
}

.catalog-card-media {
  aspect-ratio: 4 / 3;
  background: #e8edf5 center / cover no-repeat;
  border-bottom: 1px solid #eef1f5;
}

.catalog-card-body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.catalog-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bz-primary, #2163e8);
}

.catalog-card-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--bz-ink, #191a1f);
}

.catalog-card-cta {
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--bz-primary, #2163e8);
}

.catalog-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--bz-muted, #595d69);
}

@media (max-width: 1199px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .sticky-toolbar {
    top: 56px;
  }

  .catalog-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .catalog-chip {
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}
