/* Core Layout */
.catalogue-wrapper {
  padding: 4em 0;
  background: #f8f9fa; /* slightly off-white for contrast */
}

/* Beautiful Grid Layout */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Product Card Styling */
.product-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-image-container {
  width: 100%;
  height: 250px; /* fixed height for uniformity */
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e54242; /* Autodiscovery red-ish accent */
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
}

.product-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.spec-item {
  background: #f1f1f1;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.product-action {
  margin-top: auto;
}

.product-action .button {
  width: 100%;
  text-align: center;
  display: block;
}

/* Section specific styling */
.catalogue-header {
  text-align: center;
  margin-bottom: 3rem;
}

.catalogue-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.catalogue-header p {
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.catalogue-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: none;
  border: 2px solid #ddd;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  color: #555;
}

.filter-btn:hover, .filter-btn.active {
  background: #e54242;
  color: white;
  border-color: #e54242;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* Staggered animation delays for the grid items */
.catalogue-grid > :nth-child(1) { animation-delay: 0.1s; }
.catalogue-grid > :nth-child(2) { animation-delay: 0.2s; }
.catalogue-grid > :nth-child(3) { animation-delay: 0.3s; }
.catalogue-grid > :nth-child(4) { animation-delay: 0.4s; }
.catalogue-grid > :nth-child(5) { animation-delay: 0.5s; }
.catalogue-grid > :nth-child(6) { animation-delay: 0.6s; }
.catalogue-grid > :nth-child(7) { animation-delay: 0.7s; }
.catalogue-grid > :nth-child(8) { animation-delay: 0.8s; }
