.catalog-hero {
  min-height: 56vh;
  position: relative;
  display: grid;
  align-items: end;
  color: #fff;
}

.catalog-hero-bg,
.catalog-hero-overlay {
  position: absolute;
  inset: 0;
}

.catalog-hero-bg {
  background-image: url('https://images.unsplash.com/photo-1497440001374-f26997328c1b?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}

.catalog-hero-overlay {
  background:
    linear-gradient(95deg, rgba(2, 21, 26, 0.82) 0%, rgba(6, 43, 52, 0.68) 45%, rgba(9, 61, 72, 0.55) 100%);
}

.catalog-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  padding-bottom: 38px;
  max-width: 760px;
}

.catalog-hero-inner h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  font-family: var(--font-heading);
}

.catalog-hero-inner p {
  margin-top: 10px;
  color: #d4e5ea;
}

.breadcrumbs {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #dcebef;
}

.catalog-section {
  padding: 46px 0 80px;
  background: #f3f8fb;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 0.8fr;
  gap: 14px;
  margin-bottom: 20px;
}

.search-wrap,
.filter-wrap,
.quote-status {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.search-wrap label,
.filter-wrap p,
.quote-status p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #32535a;
}

.search-wrap input {
  border-radius: 10px;
  border: 1px solid #c9d6de;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chips button {
  border: 1px solid #c8d8dd;
  background: #fff;
  color: #174149;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 600;
}

.chips button.active {
  background: #0f7e90;
  border-color: #0f7e90;
  color: #fff;
}

.quote-status strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  color: #0b3f48;
  margin: 4px 0 8px;
}

.quote-status a {
  color: #0a5f6d;
  font-weight: 700;
  text-decoration: underline;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card {
  background: #fff;
  border: 1px solid #d8e4ea;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(11, 53, 62, 0.12);
}

.catalog-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
}

.card-meta {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5f7a83;
}

.card-body h3 {
  margin: 0;
  font-size: 19px;
  font-family: var(--font-heading);
  color: #143a42;
}

.card-body ul {
  margin: 0;
  padding-left: 18px;
  color: #4f6770;
  line-height: 1.45;
  font-size: 14px;
}

.add-quote-btn {
  margin-top: auto;
  border: 1px solid #d67900;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef9a21, #d67900);
  color: #fff;
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
}

.add-quote-btn.added {
  background: #0f7e90;
  border-color: #0f7e90;
}

.catalog-note {
  margin: 12px 0 0;
  color: #5d7780;
  font-size: 14px;
}

.catalog-card.hidden {
  display: none;
}

@media (max-width: 1180px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .quote-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* Prevent long spec strings from breaking mobile layout */
.card-meta,
.card-body h3,
.card-body ul li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 560px) {
  .catalog-card img {
    height: 190px;
  }
}

@media (max-width: 420px) {
  .catalog-hero {
    min-height: 48vh;
  }

  .catalog-hero-inner {
    padding-top: 120px;
    padding-bottom: 28px;
  }

  .catalog-hero-inner h1 {
    font-size: clamp(28px, 8.5vw, 34px);
  }

  .catalog-hero-inner p {
    font-size: 14px;
  }

  .breadcrumbs {
    font-size: 12px;
    flex-wrap: wrap;
  }

  .search-wrap,
  .filter-wrap,
  .quote-status {
    padding: 12px;
  }

  .chips button {
    padding: 6px 10px;
    font-size: 12px;
  }

  .quote-status strong {
    font-size: 21px;
  }

  .card-body {
    padding: 11px;
    gap: 8px;
  }

  .card-body h3 {
    font-size: 17px;
  }

  .card-body ul {
    font-size: 13px;
    line-height: 1.4;
  }

  .add-quote-btn {
    width: 100%;
  }

  .catalog-section {
    padding: 38px 0 64px;
  }
}
