.bulk-catalog-wrapper {
  padding: 0 !important;
}

.bulk-catalog-wrapper .card-deck-wrapper {
  width: 100%;
}

/* Grid layout for the bulk catalogues list - uses unique scoped class to avoid
   conflicts with global theme .card-deck-row styles */
.bulk-catalogues-list-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bulk-catalogues-list-grid > .card {
  min-width: 0;
  width: 100%;
  max-width: none;
  float: none;
  border-radius: 0;
  border: unset;
  background-color: unset;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
}

.bulk-catalogues-list-grid .card-body,
.bulk-catalogues-list-grid .card-title,
.bulk-catalogues-list-grid .card-title a,
.bulk-catalogues-list-grid .bulk-catalogue-description {
  min-width: 0;
}

.bulk-catalogues-list-grid .card-img-top {
  width: 100%;
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
  max-width: 100%;
  display: block;
  margin: 0 auto;
  max-height: 152px;
  object-fit: contain;
}

.bulk-catalogues-list-grid .image-container {
  border: 1px solid #DDDDDD;
  min-height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.bulk-catalogues-list-grid .image-container > a {
  width: 100%;
  display: flex;
  justify-content: center;
}

.bulk-catalog-wrapper .link-view-more,
.bulk-catalog-wrapper .link-view-less {
  width: 100%;
  display: block !important;
  margin: 16px 0;
  text-align: center;
  font-size: 14px !important;
  font-weight: bold !important;
  color: #666666 !important;
  text-decoration: none !important;
}

.bulk-catalogues-list-grid h5 a {
  font-size: 17px;
  line-height: 23px;
  color: #666666 !important;
  text-decoration: none !important;
  display: block;
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.bulk-catalogues-list-grid .card .card-body {
  padding-left: 0;
  padding-top: 16px;
  background: unset;
  display: flex;
  flex-direction: column;
}

.bulk-catalogues-list-grid .card .card-body .bulk-catalogue-link {
  margin-top: auto;
}

.bulk-catalogues-list-grid .card-text.bulk-catalogue-description {
  font-size: 14px;
  line-height: 20px;
  color: #666666;
  padding-top: 8px;
}

.bulk-catalog-wrapper i.arrow.down,
.bulk-catalog-wrapper i.arrow.up {
  border: solid #666666;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  margin-bottom: 2px;
}

.bulk-catalog-wrapper i.arrow.up {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  margin-bottom: -2px;
}

.bulk-catalog-wrapper .card-deck-wrapper .collapsed:not(.show) {
  display: none !important;
}

.bulk-catalogues-list-grid + .link-view-less,
.bulk-catalog-wrapper a.btn.btn-default {
  color: #666666;
  text-decoration: none !important;
  font-size: 13px;
  background: unset;
  border: 1px solid #949494;
}

h2.h2-content.bulk-catalogue {
  margin-top: 0px !important;
  margin-bottom: 20px !important;
}

@media (max-width: 990px) {
  .bulk-catalogues-list-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .bulk-catalogues-list-grid h5 a {
    font-size: 16px;
    line-height: 22px;
  }
}
@media (max-width: 576px) {
  .bulk-catalogues-list-grid {
    grid-template-columns: 1fr !important;
  }
}