/* ===== CATALOG SHOWCASE: COMPLETE REDESIGN ===== */
.catalog-showcase {
  background: #f8fafc;
  padding: 5rem 2rem;
  font-family: 'Inter', sans-serif;
  color: #111827;
}

.catalog-showcase__head {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.catalog-showcase__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.catalog-showcase__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.catalog-showcase__subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  max-width: 720px;
  margin: 0 auto;
}

/* Grid Layout */
.catalog-showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  padding: 50px;
}

/* Catalog Card Base */
.catalog-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 
  25px 25px 0px #10b98180,   /* soft green */
  25px 0px 25px #2563eb80; }

/* Card Link Wrapper */
.catalog-card--link .catalog-card__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Image Container */
.catalog-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* Fixed aspect ratio prevents image overflow */
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.catalog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures images fit within container without distortion */
  object-position: center;
  transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-card__image img {
  transform: scale(1.05);
}

/* Card Content */
.catalog-card__content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-card__content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
  transition: color 0.3s ease;
}

.catalog-card__content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.catalog-card__meta {
  font-size: 0.8rem;
  color: #6b7280;
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* Hover color transitions */
.catalog-card:hover h3 {
  color: #2563eb;
}

.catalog-card:hover .catalog-card__meta {
  color: #374151;
}

/* Showcase CTA Button */
.catalog-showcase__cta {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.catalog-showcase__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 3rem;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800; 
  font-size: 1.1rem;
  width: 500px;
  margin-bottom: 50px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.65);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.catalog-showcase__btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .catalog-showcase__grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .catalog-showcase__head {
    margin-bottom: 3rem;
  }
  
  .catalog-card__content {
    padding: 1.5rem 1rem;
  }
  
  .catalog-showcase__btn {
    padding: 0.85rem 2.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .catalog-showcase__grid {
    grid-template-columns: 1fr;
  }
  
  .catalog-showcase__head {
    padding: 0 1rem;
  }
}



/* ===== IMAGE FIX: ENSURE APPEARANCE ===== */
.catalog-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* keeps uniform card height */
  background: #f3f4f6;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.catalog-card__image img {
  position: absolute;       /* absolute ensures it fills container */
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  max-width: none;          /* override any inherited max-width */
  max-height: none;         /* override inherited max-height */
  transform: translate(-50%, -50%); /* centers the image */
  object-fit: contain;      /* prevents distortion */
  object-position: center;
  transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-card__image img {
  transform: translate(-50%, -50%) scale(1.05);
}
