/* Komponent sekcji katalogów - jednolity styl dla wszystkich stron */

.catalogs-section {
  padding: 80px 0;
  background: #f9f9f9;
}

.catalogs-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color, #000080);
  text-align: center;
  margin-bottom: 60px;
}

.catalogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  justify-content: center;
}

.catalog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 300px;
}

.catalog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.catalog-cover {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.catalog-cover img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.catalog-card:hover .catalog-cover img {
  transform: scale(1.05);
}

.catalog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  text-align: center;
}

.catalog-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark, #333);
  margin: 0;
  line-height: 1.3;
}

.catalog-description {
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 0.9rem;
  color: var(--text-light, #666);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.catalog-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.catalog-buttons .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.catalog-buttons .btn-primary {
  background-color: var(--primary-color, #000080);
  color: #fff;
  border-color: var(--primary-color, #000080);
}

.catalog-buttons .btn-primary:hover {
  background-color: #000066;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 128, 0.3);
}

.catalog-buttons .btn-secondary {
  background-color: transparent;
  color: var(--primary-color, #000080);
  border-color: var(--primary-color, #000080);
}

.catalog-buttons .btn-secondary:hover {
  background-color: var(--primary-color, #000080);
  color: #fff;
  transform: translateY(-2px);
}

.catalog-buttons .btn span {
  font-size: 1.1rem;
}

.no-catalogs {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light, #666);
  font-size: 1.1rem;
}

/* Responsywność */
@media (max-width: 1024px) {
  .catalogs-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .catalogs-section {
    padding: 60px 0;
  }

  .catalogs-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .catalogs-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }

  .catalog-cover {
    height: 250px;
  }

  .catalog-content {
    padding: 20px;
  }

  .catalog-title {
    font-size: 1.3rem;
  }

  .catalog-buttons {
    flex-direction: column;
  }

  .catalog-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .catalogs-section {
    padding: 40px 0;
  }

  .catalogs-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .catalog-cover {
    height: 200px;
  }

  .catalog-content {
    padding: 15px;
  }

  .catalog-title {
    font-size: 1.2rem;
  }

  .catalog-description {
    font-size: 0.95rem;
  }

  .catalog-buttons .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}
