/* ===== Catalog Wrapper ===== */
.catalog {
  max-width: 1400px;
  margin: 120px auto 80px;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
}

/* ===== Header ===== */
.catalog-header {
  text-align: center;
  margin-bottom: 60px;
}

.catalog-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0d1b2a;
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.catalog-controls input,
.catalog-controls select {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: all 0.25s ease;
  min-width: 220px;
}

.catalog-controls input:focus,
.catalog-controls select:focus {
  outline: none;
  border-color: #0d1b2a;
  box-shadow: 0 0 10px rgba(13, 27, 42, 0.15);
}

/* ===== Category Titles ===== */
.category-title {
  margin: 80px 0 25px;
  font-size: 2.2rem;
  color: #0d1b2a;
  text-transform: uppercase;
  font-style: italic;
  border-left: 6px solid #0d1b2a;
  padding-left: 12px;
}

/* ===== Grid ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ===== Product Card ===== */
.catalog-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e1e1e1;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.catalog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ===== Product Image ===== */
.product-thumb {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f8f9fc;
  padding: 15px;
}

/* ===== Card Wordings ===== */
.card-wording {
  padding: 15px 12px 20px;
  background: #fdfdfd;
  border-top: 1px solid #e1e1e1;
}

.catalog-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0d1b2a;
}

.catalog-card p {
  font-size: 0.9rem;
  color: #4b4b4b;
  line-height: 1.4;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .catalog-controls {
    flex-direction: column;
    gap: 12px;
  }

  .catalog-header h1 {
    font-size: 2.4rem;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .product-thumb {
    height: 180px;
  }
}
/* ===== Type Badge ===== */
.type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 12px;
  color: #fff;
  background-color: #052146;
  z-index: 2;
  text-transform: uppercase;
}

/* Optional: Different colors per type */
.catalog-card[data-type="semi-hermetic"] .type-badge {
  background-color: #1a73e8; /* blue */
}
.catalog-card[data-type="reciprocating"] .type-badge {
  background-color: #e37400; /* orange */
}
.catalog-card[data-type="screw"] .type-badge {
  background-color: #0f9d58; /* green */
}

/* ===== Hover Overlay ===== */
.catalog-card {
  position: relative; /* for overlay positioning */
  overflow: hidden;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5,33,70,0.85); /* dark overlay */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.catalog-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay p {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: #fff;
}

.view-details-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  background-color: #fff;
  color: #052146;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.view-details-btn:hover {
  background-color: #e1e1e1;
  transform: translateY(-2px);
}

/* Ensure card-wording stays visible */
.card-wording {
  background-color: #f1f1f1;
  padding: 5px 10px;
  border-radius: 8px;
  margin-top: -5px;
  z-index: 1;
  position: relative;
}
