html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#catalogue-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#catalogue-header {
  text-align: center;
  letter-spacing: 10px;
  padding: 25px 0;
  background-color: #015ca9;
  color: white;
  margin-bottom: 50px;
  width: 100%;
}

.mt-4 {
  margin-top: 0 !important;
}

#catalogue-main-content {
  padding: 0 10%;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
}

#catalogue-sidebar {
  padding: 0 10px;
  width: 350px;
  min-width: 300px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#apply-filters-btn {
  background-color: #015ca9 !important;
  margin: 0 !important;
  width: 100%;
}

#catalogue-sidebar::-webkit-scrollbar {
  display: none;
}

#catalogue-filters {
  margin-top: 10px;
}

.catalogue-filter {
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.filter-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.filter-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding-left: 5px;
}

.filter-item input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.1);
  cursor: pointer;
}

.filter-item label {
  margin: 0;
  font-size: 15px;
  color: #444;
  word-break: break-word;
  flex: 1;
  cursor: pointer;
}

#catalogue-pagination {
  min-width: 50%;
  max-width: 1500px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

#catalogue-pagination nav {
  display: none;
}

#catalogue-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  width: 100%;
  min-height: 900px;
  /*
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    */
}

#catalogue-grid .text-muted {
  text-align: left;
}

#catalogue-grid .empty-message {
  width: 100%;
  text-align: center;
  padding: 60px 20px;
  font-size: 1.25rem;
  color: #888;
}

#catalogue-grid .btn-primary {
  background-color: #015ca9 !important;
}

/*
.pagination .page-item.active .page-link {
  background-color: #015ca9;
  border-color: #015ca9;
  color: white;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
  background-color: #015ca9;
  border-color: #015ca9;
  color: white;
}

.pagination .page-link {
  color: #015ca9;
}
*/

.catalogue-card {
  min-height: 500px;
  max-height: 500px;
  width: 300px;
  padding: 5px;
}

.catalogue-card img {
  height: 150px;
  width: 100%;
  object-fit: contain;
}

#show-filters-btn {
  background-color: #015ca9;
  display: none;
}

#hide-filters-btn {
  display: none;
}

#clear-filters-btn {
  color: #015ca9;
  background-color: white;
  border: 1px solid #015ca9;
  margin-top: 5px;
}

#pagination-container {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

#pagination-container button {
  border-color: #015ca9;
  color: #015ca9;
}

#pagination-container button:hover {
  background-color: #015ca9;
  color: white;
}

#pagination-container button.active {
  background-color: #015ca9 !important;
  color: white !important;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  #catalogue-header {
    margin-bottom: 25px;
  }

  #catalogue-main-content {
    padding: 0 5%;
    flex-direction: column;
    align-items: center;
  }

  #catalogue-grid {
    /*flex-direction: column;*/
    align-items: center;
    justify-content: center;
    min-height: 0px;
  }

  .catalogue-card {
    height: 500px;
  }

  #search-bar {
    width: 100%;
  }

  #show-filters-btn {
    display: block;
  }

  #hide-filters-btn {
    display: block;
  }

  #catalogue-filter-content {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
  }

  #catalogue-sidebar {
    width: 100%;
    max-width: 500px;
    min-width: 0;
  }
}
