/* Catalog page — clay-inspired cards within SkazUm brand */

body.theme-skazum.catalog-page {
  --catalog-card-radius: 24px;
  --catalog-border: 2px solid rgba(122, 77, 255, 0.14);
  --catalog-shadow:
    0 14px 36px rgba(20, 27, 77, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --catalog-shadow-hover:
    0 22px 52px rgba(122, 77, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

body.theme-skazum.catalog-page .catalog-main {
  display: grid;
  gap: 22px;
  max-width: var(--container, 1320px);
  margin: 0 auto;
}

body.theme-skazum.catalog-page .cabinet-catalog-main {
  max-width: none;
  width: 100%;
}

/* Hero */
body.theme-skazum.catalog-page .catalog-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

body.theme-skazum.catalog-page .catalog-hero-copy {
  padding: 34px 36px;
  border-radius: var(--radius-xl, 40px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow, 0 24px 70px rgba(20, 27, 77, 0.08));
}

body.theme-skazum.catalog-page .catalog-hero-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--deep, #141b4d);
}

body.theme-skazum.catalog-page .catalog-hero-copy .lead {
  max-width: 36rem;
  font-size: 18px;
  line-height: 1.55;
  color: #59617e;
  font-weight: 600;
}

body.theme-skazum.catalog-page .catalog-hero-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

body.theme-skazum.catalog-page .catalog-stat {
  padding: 22px 24px;
  border-radius: 22px;
  border: var(--catalog-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 236, 255, 0.82));
  box-shadow: var(--catalog-shadow);
}

body.theme-skazum.catalog-page .catalog-stat strong {
  display: block;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 900;
  line-height: 1;
  color: #5921ff;
}

body.theme-skazum.catalog-page .catalog-stat span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #59617e;
  line-height: 1.35;
}

body.theme-skazum.catalog-page .catalog-stat-notes {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: visible;
}

body.theme-skazum.catalog-page .catalog-star {
  position: absolute;
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(255, 183, 41, 0.22));
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

body.theme-skazum.catalog-page .catalog-star-one {
  color: #ffb729;
  left: -6px;
  top: -16px;
}

body.theme-skazum.catalog-page .catalog-star-two {
  color: #8b5cf6;
  right: 10px;
  top: -20px;
  font-size: 22px;
}

body.theme-skazum.catalog-page .catalog-star-three {
  color: #ff4bc3;
  right: -8px;
  bottom: 10px;
  font-size: 20px;
}

body.theme-skazum.catalog-page .catalog-star-four {
  color: #29d8ff;
  left: 14px;
  bottom: -12px;
  font-size: 18px;
}

body.theme-skazum.catalog-page .catalog-stat-note {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px dashed rgba(122, 77, 255, 0.28);
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #4b5370;
}

body.theme-skazum.catalog-page .catalog-stat-note-lead {
  color: var(--amber, #ffb729);
  margin-right: 4px;
  font-weight: 900;
}

/* Toolbar */
body.theme-skazum.catalog-page .catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  padding: 18px 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow, 0 24px 70px rgba(20, 27, 77, 0.08));
}

body.theme-skazum.catalog-page .catalog-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.theme-skazum.catalog-page .catalog-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid rgba(122, 77, 255, 0.18);
  background: #fff;
  color: #4e5573;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-skazum.catalog-page .catalog-chip:hover {
  border-color: rgba(122, 77, 255, 0.36);
  box-shadow: 0 8px 20px rgba(122, 77, 255, 0.1);
}

body.theme-skazum.catalog-page .catalog-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #5921ff, #8b5cf6);
  box-shadow: 0 10px 24px rgba(89, 33, 255, 0.22);
}

body.theme-skazum.catalog-page .catalog-chip--style {
  border-color: rgba(255, 159, 67, 0.22);
  color: #9a4d00;
  background: rgba(255, 159, 67, 0.08);
}

body.theme-skazum.catalog-page .catalog-chip--style:hover {
  border-color: rgba(255, 159, 67, 0.36);
  box-shadow: 0 8px 20px rgba(255, 159, 67, 0.12);
}

body.theme-skazum.catalog-page .catalog-chip--style.is-active {
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.22);
}

body.theme-skazum.catalog-page .catalog-status {
  min-height: 1.2rem;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #5921ff;
}

/* Grid */
body.theme-skazum.catalog-page .catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.theme-skazum.catalog-page .catalog-grid.is-empty {
  grid-template-columns: 1fr;
}

body.theme-skazum.catalog-page .catalog-empty {
  padding: 42px 28px;
  border-radius: var(--catalog-card-radius);
  border: var(--catalog-border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--catalog-shadow);
  text-align: center;
}

body.theme-skazum.catalog-page .catalog-empty strong {
  display: block;
  font-size: 1.25rem;
  color: var(--deep, #141b4d);
}

body.theme-skazum.catalog-page .catalog-empty p {
  margin: 10px auto 0;
  max-width: 28rem;
  color: #59617e;
  font-weight: 700;
}

/* Cards */
body.theme-skazum.catalog-page .catalog-card {
  height: 100%;
  border-radius: var(--catalog-card-radius);
  border: var(--catalog-border);
  background: #fff;
  box-shadow: var(--catalog-shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.theme-skazum.catalog-page .catalog-card.is-featured {
  grid-column: span 2;
}

body.theme-skazum.catalog-page .catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 77, 255, 0.28);
  box-shadow: var(--catalog-shadow-hover);
}

body.theme-skazum.catalog-page .catalog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  cursor: pointer;
}

body.theme-skazum.catalog-page .catalog-card.is-featured .catalog-card-link {
  flex-direction: row;
}

body.theme-skazum.catalog-page .catalog-card-media {
  position: relative;
  flex-shrink: 0;
}

body.theme-skazum.catalog-page .catalog-card.is-featured .catalog-card-media {
  width: 52%;
}

body.theme-skazum.catalog-page .catalog-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, #eef4ff, #f2ecff);
}

body.theme-skazum.catalog-page .catalog-card.is-featured .catalog-card-cover {
  height: 100%;
  min-height: 260px;
  aspect-ratio: auto;
}

body.theme-skazum.catalog-page .catalog-card-cover-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 183, 41, 0.28), transparent 22%),
    linear-gradient(145deg, #17375f, #30445f 58%, #162131);
}

body.theme-skazum.catalog-page .catalog-card.is-featured .catalog-card-cover-fallback {
  min-height: 260px;
  aspect-ratio: auto;
}

body.theme-skazum.catalog-page .catalog-card-price {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 8px 11px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(122, 77, 255, 0.16);
  color: #5921ff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(20, 27, 77, 0.12);
}

body.theme-skazum.catalog-page .catalog-card-previews {
  display: flex;
  gap: 6px;
  padding: 10px 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

body.theme-skazum.catalog-page .catalog-card-previews img {
  flex: 0 0 64px;
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(20, 27, 77, 0.12);
}

body.theme-skazum.catalog-page .catalog-card.is-featured .catalog-card-previews {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 0;
}

body.theme-skazum.catalog-page .catalog-card.is-featured .catalog-card-previews img {
  flex: 1 1 0;
  width: auto;
  height: 52px;
}

body.theme-skazum.catalog-page .catalog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 18px 18px;
  gap: 8px;
}

body.theme-skazum.catalog-page .catalog-card.is-featured .catalog-card-body {
  justify-content: center;
  padding: 24px 26px;
}

body.theme-skazum.catalog-page .catalog-card-theme {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(122, 77, 255, 0.08);
  border: 1px solid rgba(122, 77, 255, 0.12);
  color: #5921ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

body.theme-skazum.catalog-page .catalog-card-body h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.18;
  font-weight: 900;
  color: var(--deep, #141b4d);
}

body.theme-skazum.catalog-page .catalog-card.is-featured .catalog-card-body h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

body.theme-skazum.catalog-page .catalog-card-body p {
  margin: 0;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  color: #68708e;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.theme-skazum.catalog-page .catalog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 77, 255, 0.1);
}

body.theme-skazum.catalog-page .catalog-card-pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #59617e;
}

body.theme-skazum.catalog-page .catalog-card-pages svg {
  color: var(--amber, #ffb729);
  flex-shrink: 0;
}

body.theme-skazum.catalog-page .catalog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
  color: #5921ff;
  transition: gap 0.2s ease;
}

body.theme-skazum.catalog-page .catalog-card:hover .catalog-card-cta {
  gap: 9px;
}

body.theme-skazum.catalog-page .catalog-card-cta svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

body.theme-skazum.catalog-page .catalog-card:hover .catalog-card-cta svg {
  transform: translateX(2px);
}

body.theme-skazum.catalog-page .catalog-bottom-cta .eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

body.theme-skazum.catalog-page .catalog-bottom-cta .eyebrow::before {
  color: rgba(255, 255, 255, 0.72);
}
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  border-radius: 32px;
  background: var(--gradient, linear-gradient(100deg, #5921ff, #7a4dff, #ff4bc3, #ffb729, #29d8ff));
  color: #fff;
  box-shadow: var(--shadow-strong, 0 28px 80px rgba(122, 77, 255, 0.22));
}

body.theme-skazum.catalog-page .catalog-bottom-cta h2 {
  margin: 6px 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

body.theme-skazum.catalog-page .catalog-bottom-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

body.theme-skazum.catalog-page .catalog-bottom-cta .button-white {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-skazum.catalog-page .catalog-card,
  body.theme-skazum.catalog-page .catalog-card-cta svg,
  body.theme-skazum.catalog-page .catalog-chip,
  body.theme-skazum.catalog-page [data-reveal] {
    transition: none;
  }

  body.theme-skazum.catalog-page .catalog-card:hover {
    transform: none;
  }
}

@media (max-width: 1080px) {
  body.theme-skazum.catalog-page .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-skazum.catalog-page .catalog-card.is-featured {
    grid-column: span 2;
  }

  body.theme-skazum.catalog-page .catalog-card.is-featured .catalog-card-link {
    flex-direction: column;
  }

  body.theme-skazum.catalog-page .catalog-card.is-featured .catalog-card-media {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body.theme-skazum.catalog-page .catalog-hero {
    grid-template-columns: 1fr;
  }

  body.theme-skazum.catalog-page .catalog-star {
    font-size: 22px;
  }

  body.theme-skazum.catalog-page .catalog-star-two {
    font-size: 18px;
    top: -14px;
  }

  body.theme-skazum.catalog-page .catalog-star-three {
    font-size: 16px;
    right: 4px;
  }

  body.theme-skazum.catalog-page .catalog-star-four {
    display: none;
  }

  body.theme-skazum.catalog-page .catalog-hero-copy {
    padding: 24px;
    border-radius: 28px;
  }

  body.theme-skazum.catalog-page .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
  }

  body.theme-skazum.catalog-page .catalog-grid,
  body.theme-skazum.catalog-page .catalog-card.is-featured {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  body.theme-skazum.catalog-page .catalog-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}
