.ccat-carousel {
  width: 100%;
}

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

.ccat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  background-color: #f9fff8;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.ccat-card:hover,
.ccat-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.ccat-card-image {
  display: block;
  width: 100%;
  height: 185px;
  overflow: hidden;
  background: #e8e8e8;
}

.ccat-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform 320ms ease;
}

.ccat-card:hover .ccat-card-image img,
.ccat-card:focus-visible .ccat-card-image img {
  transform: scale(1.08);
}

.ccat-card-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 66px;
  padding: 20px 10px;
  text-align: center;
}

.ccat-card-title {
  color: #0f1f0f;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  transition: color 220ms ease;
}

.ccat-card:hover .ccat-card-title,
.ccat-card:focus-visible .ccat-card-title {
  color: #007aa5;
}

.ccat-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.ccat-pages {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ccat-page-button,
.ccat-nav-button {
  width: 106px;
  min-width: 106px;
  height: 106px;
  border: 0;
  border-radius: 16px;
  background: #f7fff5;
  color: #0f1f0f;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  box-shadow: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.ccat-page-button:hover,
.ccat-nav-button:hover,
.ccat-page-button:focus-visible,
.ccat-nav-button:focus-visible {
  transform: translateY(-1px);
}

.ccat-page-button.is-active {
  color: #ffffff;
  background: #007aa5;
}

.ccat-nav-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.ccat-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  color: currentColor;
}

.ccat-nav-icon i,
.ccat-nav-icon svg {
  display: block;
  width: 1em;
  height: 1em;
  font-size: inherit;
  fill: currentColor;
}

.ccat-ellipsis {
  width: auto;
  min-width: 60px;
  height: 106px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3d4a4f;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ccat-card[hidden] {
  display: none !important;
}

.ccat-empty-message {
  padding: 16px;
  border-radius: 8px;
  background: #fff8e5;
  color: #5d4200;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .ccat-grid {
    --ccat-columns: 2;
  }
}

@media (max-width: 767px) {
  .ccat-grid {
    --ccat-columns: 1;
  }

  .ccat-card-title {
    font-size: 21px;
  }

  .ccat-pagination {
    gap: 8px;
    margin-top: 24px;
  }

  .ccat-pages {
    gap: 8px;
  }

  .ccat-page-button,
  .ccat-nav-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 18px;
  }

  .ccat-nav-icon {
    font-size: 18px;
  }

  .ccat-ellipsis {
    min-width: 24px;
    height: 44px;
    font-size: 18px;
  }
}
