/* ==============================
   CATALOG.CSS — IMPROVED VERSION
   ============================== */

/* ----- HERO SECTION ----- */
.catalog-hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1100px 520px at 12% 12%, rgba(37, 99, 235, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(165deg, #ffffff 0%, #f0f5ff 50%, #ffffff 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
  overflow: hidden;
  padding: clamp(3rem, 6vh, 4.5rem) 1rem;
  color: #0f172a;
  text-align: center;
  margin: 2rem auto;
  max-width: 1200px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.catalog-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.8s forwards 0.2s;
}

.catalog-hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.catalog-hero-content h1 .hero2__title-piece--strong {
  background: linear-gradient(135deg, #2563eb 0%, #22c55e 55%, #ffffff 110%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.catalog-hero-content p {
  max-width: 44rem;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(15, 23, 42, 0.65);
}

/* Hero CTA button */
.catalog-hero-content .btn.hero2__cta {
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 15rem;
  justify-content: center;
  text-align: center;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalog-hero-content .btn.hero2__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.2);
}

/* Animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- FILTER BAR ----- */
.catalog-filters {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.catalog-filters h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #0f172a;
}

.catalog-filters label {
  display: block;
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.catalog-filters select {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  margin-top: 0.35rem;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.catalog-filters select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
  outline: none;
}

/* ----- GRID & CARDS ----- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}

/* CARD BASE */
.catalog-card {
  background: linear-gradient(145deg, #ffffff, #f9fafb);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 0.5rem;
}

.catalog-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.25), 0 8px 15px rgba(0,0,0,0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

/* CARD IMAGE */
.catalog-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: transparent;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* CARD HEADLINE */
.catalog-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 1rem;
  color: #0f172a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: color 0.25s ease;
}

.catalog-card:hover h3 {
  color: #2563eb;
}

/* CARD DESCRIPTION */
.catalog-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.85);
  margin: 0 1rem 1.2rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.catalog-card:hover p {
  color: rgba(15, 23, 42, 1);
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e40af;
  margin: 0 1rem 1.5rem;
  letter-spacing: 0.25px;
}

.catalog-meta strong {
  color: #2563eb;
}


.catalog-card:hover .catalog-meta {
  color: #1d4ed8;
}

/* ----- FOOTER ----- */
.catalog-footer {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid var(--clr-border);
  margin-top: 4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #0f172a;
}

.catalog-footer .btn.btn--primary {
  margin-top: 1rem;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .catalog {
    grid-template-columns: 1fr;
  }
}

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


.catalog-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  margin: 0 1rem 1rem;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.85);
}

.catalog-features li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.catalog-features li i {
  color: #2563eb;
}

.catalog-card img {
  transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}

.catalog-card:hover img {
  transform: scale(1.06);
  opacity: 1;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.08));
}

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

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

/* Container for consistent left/right spacing */
.container {
  max-width: 1280px;       /* Professional, readable width */
  margin: 0 auto;          /* Center content */
  padding-left: 1.5rem;    /* Left padding */
  padding-right: 1.5rem;   /* Right padding */
  box-sizing: border-box;   /* Include padding in width */
}

/* Optional: adjust for smaller screens */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

