:root {
  --gscat-surface: #ffffff;
  --gscat-ink: oklch(18% 0.01 250);
  --gscat-charcoal: oklch(16% 0.012 250);
  --gscat-muted: oklch(48% 0.014 250);
  --gscat-border: oklch(90% 0.004 250);
  --gscat-soft: oklch(95% 0.004 250);
  --gscat-accent: oklch(50% 0.035 245);
  --gscat-radius: 12px;
  --gscat-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.gscat,
.gscat * {
  box-sizing: border-box;
}

.gscat {
  width: 100%;
  color: var(--gscat-ink);
  font-family: var(--gscat-font);
}

.gscat-wrap {
  width: 100%;
}

.gscat-heading {
  margin-bottom: 30px;
}

.gscat-heading h2 {
  margin: 0;
  color: var(--gscat-ink);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: 0;
}

.gscat-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.gscat-sidebar {
  position: static;
  overflow: hidden;
  border: 1px solid var(--gscat-border);
  border-radius: var(--gscat-radius);
  background: var(--gscat-surface);
}

.gscat-sidebar-title,
.gscat-category,
.gscat-subcategory {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gscat-border);
  padding: 15px 16px;
  text-align: left;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.gscat-sidebar-title {
  background: var(--gscat-charcoal);
  color: #ffffff;
}

.gscat-category-list {
  display: grid;
}

.gscat-category-group:last-child .gscat-category,
.gscat-category-group:last-child .gscat-subcategory:last-child {
  border-bottom: 0;
}

.gscat-category,
.gscat-subcategory {
  position: relative;
  overflow: hidden;
  background: var(--gscat-surface);
  color: var(--gscat-ink);
  transition: color 220ms ease, background-color 220ms ease;
}

.gscat-category::before,
.gscat-subcategory::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gscat-charcoal);
  content: "";
  transform: translateX(-101%);
  transition: transform 300ms cubic-bezier(.22, .61, .36, 1);
}

.gscat-category span,
.gscat-category strong,
.gscat-subcategory span,
.gscat-subcategory strong {
  position: relative;
  z-index: 1;
}

.gscat-category strong,
.gscat-subcategory strong {
  font-size: 16px;
}

.gscat-category:hover::before,
.gscat-category.is-active::before,
.gscat-subcategory:hover::before,
.gscat-subcategory.is-active::before {
  transform: translateX(0);
}

.gscat-category:hover,
.gscat-category.is-active,
.gscat-subcategory:hover,
.gscat-subcategory.is-active {
  color: #ffffff;
}

.gscat-subcategories {
  background: color-mix(in oklch, var(--gscat-soft) 72%, white);
}

.gscat-subcategory {
  min-height: 46px;
  padding-left: 28px;
  font-size: 14px;
  font-weight: 700;
}

.gscat-subcategory strong {
  font-size: 14px;
}

.gscat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gscat-empty {
  margin: 0;
  color: var(--gscat-muted);
  font-size: 16px;
  line-height: 1.6;
}

.gscat-card {
  overflow: hidden;
  border: 1px solid var(--gscat-border);
  border-radius: var(--gscat-radius);
  background: var(--gscat-surface);
  opacity: 0;
  transform: translateY(18px);
  animation: gscat-rise 560ms cubic-bezier(.22, .61, .36, 1) forwards;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.gscat-card:nth-child(2) {
  animation-delay: 60ms;
}

.gscat-card:nth-child(3) {
  animation-delay: 120ms;
}

.gscat-card:nth-child(4) {
  animation-delay: 180ms;
}

.gscat-card:nth-child(5) {
  animation-delay: 240ms;
}

.gscat-card:nth-child(6) {
  animation-delay: 300ms;
}

.gscat-card:hover {
  border-color: color-mix(in oklch, var(--gscat-accent) 42%, var(--gscat-border));
  box-shadow: 0 18px 38px rgba(15, 18, 22, .12);
  transform: translateY(-6px);
}

.gscat-card-link {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.gscat-image-wrap {
  position: relative;
  min-height: 240px;
  aspect-ratio: 1.22;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--gscat-surface), color-mix(in oklch, var(--gscat-border) 82%, var(--gscat-accent)));
}

.gscat-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 440ms cubic-bezier(.22, .61, .36, 1), filter 440ms ease;
}

.gscat-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 19, 22, .62);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.gscat-cover-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 50%;
  color: #ffffff;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

.gscat-card:hover .gscat-image-wrap img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.055);
}

.gscat-card:hover .gscat-cover {
  opacity: 1;
  transform: translateY(0);
}

.gscat-card-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 18px 18px;
}

.gscat-card-body h3 {
  margin: 0;
  color: var(--gscat-ink);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.18;
  letter-spacing: 0;
}

.gscat-card-body p {
  margin: 0;
  color: var(--gscat-muted);
  font-size: 14px;
  line-height: 1.5;
}

.gscat-card-body span {
  color: var(--gscat-accent);
  font-size: 12px;
  font-weight: 800;
}

.gscat-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.gscat-pagination .page-numbers {
  min-height: 42px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gscat-border);
  border-radius: 8px;
  background: var(--gscat-surface);
  color: var(--gscat-ink);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.gscat-pagination .page-numbers:hover,
.gscat-pagination .page-numbers.current,
.gscat-pagination .page-numbers.next {
  border-color: var(--gscat-charcoal);
  background: var(--gscat-charcoal);
  color: #ffffff;
}

.gscat-pagination .page-numbers:hover {
  transform: translateY(-1px);
}

@keyframes gscat-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .gscat-layout {
    grid-template-columns: 1fr;
  }

  .gscat-sidebar {
    position: static;
  }

  .gscat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .gscat-sidebar-title,
  .gscat-category,
  .gscat-subcategory {
    min-height: 48px;
  }

  .gscat-pagination {
    justify-content: flex-start;
  }
}
