/* ============================================================
   CATALOG PAGE – new classes only, no existing classes touched
   ============================================================ */

/* ---- page heading strip ---- */
.catalog-page-head {
  padding: 14px 30px !important;
  border-left: 4px solid #172B85;
  margin-bottom: 6px;
}
.catalog-page-head .mainhead h1 {
  font-size: 26px;
  font-weight: 700;
  color: #02326d;
  text-align: left;
}

/* ---- outer section wrapper ---- */
.catalog-section {
  margin-bottom: 6px;
}

/* ---- white card that wraps one category ---- */
.catalog-section-card {
  padding: 20px 28px !important;
}

/* ---- top row: image + summary ---- */
.catalog-header {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 16px;
}

.catalog-image {
  flex: 0 0 130px;
}
.catalog-image img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border: 1px solid #e9e9e9;
  background: #fff;
  padding: 6px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}
.catalog-image img:hover {
  transform: scale(1.04);
}

.catalog-summary {
  flex: 1;
}
.catalog-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-summary-top h2 {
  font-size: 20px;
  font-weight: 700;
  color: #02326d;
  margin-bottom: 6px;
}
.catalog-summary-top p {
  font-size: 14px;
  color: #555;
  margin-bottom: 0;
}

/* ---- "View Section" button style ---- */
.catalog-view-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  border: 1.5px solid #172B85;
  color: #172B85;
  background: #fff;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
  text-decoration: none;
}
.catalog-view-btn:hover {
  background: #172B85;
  color: #fff;
}

/* ---- subcategory block ---- */
.catalog-subsection {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #dce3f5;
}

.catalog-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.catalog-subtitle-row h3 {
  font-size: 16px;
  font-weight: 700;
  color: #172B85;
  margin: 0;
  position: relative;
  padding-left: 10px;
}
.catalog-subtitle-row h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: #0090dc;
  border-radius: 2px;
}

/* ---- product grid ---- */
.catalog-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- individual product card ---- */
.catalog-product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f4f7fd;
  border: 1px solid #dce3f5;
  border-radius: 4px;
  padding: 9px 14px;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 340px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.catalog-product-card:hover {
  border-color: #172B85;
  box-shadow: 0 3px 10px rgba(23, 43, 133, 0.12);
}

.catalog-product-card .cp-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
}

/* ---- "Open Catalog" button ---- */
.catalog-open-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 13px;
  background: #0090dc;
  color: #fff;
  border-radius: 3px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s;
  flex-shrink: 0;
}
.catalog-open-btn:hover {
  background: #02326d;
  color: #fff;
}

/* ---- empty state ---- */
.catalog-empty {
  font-size: 13px;
  color: #888;
  font-style: italic;
  padding: 4px 0 4px 10px;
}

/* ---- responsive ---- */
@media (max-width: 768px) {
  .catalog-page-head {
    padding: 10px 12px !important;
  }
  .catalog-section-card {
    padding: 14px 12px !important;
  }
  .catalog-header {
    flex-direction: column;
    gap: 14px;
  }
  .catalog-image {
    flex: 0 0 auto;
  }
  .catalog-image img {
    width: 100px;
    height: 100px;
  }
  .catalog-summary-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .catalog-product-card {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 576px) {
  .catalog-summary-top h2 {
    font-size: 17px;
  }
  .catalog-subtitle-row h3 {
    font-size: 14px;
  }
  .catalog-product-grid {
    flex-direction: column;
  }
}
