/* ---------------------------------
   Catalogue page
---------------------------------- */

.catalogue-page {
  background: #f5f7fa;
}

.catalogue-hero {
  padding: 75px 0;
  background:
    linear-gradient(
      115deg,
      #10223d,
      #17475c
    );
  color: white;
}

.catalogue-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 60px;
}

.catalogue-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.catalogue-hero-content > div:first-child > p:last-child {
  max-width: 690px;
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.03rem;
}

.catalogue-summary-card {
  display: grid;
  min-width: 225px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.catalogue-summary-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
}

.catalogue-summary-card strong {
  margin: 7px 0;
  color: #79e2d2;
  font-size: 2.7rem;
  line-height: 1;
}

.catalogue-summary-card small {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------
   Catalogue toolbar
---------------------------------- */

.catalogue-section {
  padding: 55px 0 100px;
}

.catalogue-toolbar {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.5fr)
    minmax(210px, 0.7fr)
    auto;
  align-items: end;
  gap: 15px;
  padding: 20px;
  background: white;
  border: 1px solid #e4e9ef;
  border-radius: 15px;
  box-shadow: 0 12px 35px rgba(17, 35, 61, 0.06);
}

.catalogue-field {
  display: grid;
  gap: 7px;
}

.catalogue-field label {
  color: #475467;
  font-size: 0.72rem;
  font-weight: 800;
}

.catalogue-field input,
.catalogue-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  background: #f9fafb;
  color: #192435;
  border: 1px solid #dce2e8;
  border-radius: 8px;
  outline: none;
}

.catalogue-field input:focus,
.catalogue-field select:focus {
  background: white;
  border-color: #087f72;
  box-shadow: 0 0 0 3px rgba(8, 127, 114, 0.11);
}

.clear-filters-button {
  min-height: 46px;
  padding: 10px 17px;
  background: white;
  color: #087f72;
  border: 1px solid #087f72;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.clear-filters-button:hover {
  background: #edf8f6;
}

/* ---------------------------------
   Catalogue result heading
---------------------------------- */

.catalogue-results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 45px 0 22px;
}

.catalogue-results-heading h2 {
  margin: 4px 0 0;
  color: #12233f;
  font-size: 1.7rem;
}

.catalogue-results-heading > p {
  margin: 0;
  color: #667085;
  font-size: 0.78rem;
}

/* ---------------------------------
   Product cards
---------------------------------- */

.catalogue-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(260px, 1fr));
  gap: 21px;
}

.catalogue-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: white;
  border: 1px solid #e4e9ef;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(17, 35, 61, 0.05);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.catalogue-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 127, 114, 0.45);
  box-shadow: 0 18px 40px rgba(17, 35, 61, 0.1);
}

.product-visual {
  position: relative;
  display: flex;
  min-height: 190px;
  align-items: flex-end;
  padding: 18px;
  color: white;
  overflow: hidden;
}

.product-card-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  object-fit: cover;
  object-position: center;
}

.product-visual-has-image {
  background: white;
}

.product-visual-has-image::before,
.product-visual-has-image::after {
  display: none;
}

.product-visual::before {
  position: absolute;
  top: -60px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.product-visual::after {
  position: absolute;
  bottom: -50px;
  left: -25px;
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.product-visual-food {
  background:
    linear-gradient(135deg, #596b27, #a88931);
}

.product-visual-construction {
  background:
    linear-gradient(135deg, #29465e, #4e7e91);
}

.product-visual-electrical {
  background:
    linear-gradient(135deg, #41396f, #7665a5);
}

.product-visual-cleaning {
  background:
    linear-gradient(135deg, #087f72, #53b8aa);
}

.product-visual-services {
  background:
    linear-gradient(135deg, #8b4d2d, #c67d50);
}

.product-visual-label {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.9);
  color: #12233f;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
}

.catalogue-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-seller {
  margin: 0;
  color: #087f72;
  font-size: 0.69rem;
  font-weight: 800;
}

.catalogue-card h3 {
  margin: 7px 0 0;
  color: #12233f;
  font-size: 1.15rem;
  line-height: 1.3;
}

.product-description {
  margin: 11px 0;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.55;
}

.product-details-list {
  display: grid;
  gap: 8px;
  margin: 9px 0 20px;
}

.product-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 7px;
  color: #667085;
  border-bottom: 1px solid #edf0f3;
  font-size: 0.7rem;
}

.product-detail-row strong {
  color: #344054;
  text-align: right;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #edf0f3;
}

.product-price {
  display: grid;
}

.product-price span {
  color: #98a2b3;
  font-size: 0.62rem;
}

.product-price strong {
  color: #12233f;
  font-size: 0.82rem;
}

.product-details-link {
  padding: 9px 12px;
  background: #087f72;
  color: white;
  border-radius: 7px;
  font-size: 0.69rem;
  font-weight: 800;
}

.product-details-link:hover {
  background: #06665c;
}

/* ---------------------------------
   Empty catalogue state
---------------------------------- */

.empty-catalogue-state {
  max-width: 520px;
  margin: 65px auto 0;
  padding: 45px;
  background: white;
  border: 1px solid #e4e9ef;
  border-radius: 16px;
  text-align: center;
}

.empty-catalogue-state span {
  display: inline-block;
  padding: 6px 10px;
  background: #edf8f6;
  color: #087f72;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.empty-catalogue-state h2 {
  margin: 18px 0 7px;
  color: #12233f;
}

.empty-catalogue-state p {
  margin: 0 0 25px;
  color: #667085;
}

/* ---------------------------------
   Responsive catalogue
---------------------------------- */

@media (max-width: 850px) {
  .catalogue-hero-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .catalogue-summary-card {
    width: min(100%, 300px);
  }

  .catalogue-toolbar {
    grid-template-columns: 1fr;
  }

  .clear-filters-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .catalogue-hero {
    padding: 55px 0;
  }

  .catalogue-results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalogue-grid {
    grid-template-columns: 1fr;
  }
}