/* Product Catalog Styles - Clean Design */

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.product-image {
  position: relative;
  height: 200px;
  background: #f8f9fa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.placeholder-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #999;
}

.placeholder-image i {
  font-size: 32px;
  margin-bottom: 8px;
}

.placeholder-image span {
  font-size: 12px;
  font-weight: 500;
}

.product-body {
  padding: 12px 16px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-code {
  font-size: 11px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
}

.get-quote-btn {
  background: var(--primary);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.get-quote-btn:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

.get-quote-btn i {
  font-size: 10px;
}

/* Search Bar Styling */
.form-control-lg {
  border-radius: 25px;
  padding: 12px 20px;
  border: 2px solid #e9ecef;
  font-size: 16px;
}

.form-control-lg:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(56, 118, 184, 0.25);
}

/* Fix for input group with search button */
.input-group .form-control-lg:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  padding: 12px 20px;
  border: 2px solid var(--primary);
}

.input-group .btn:hover {
  border-color: var(--secondary);
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 50px 0;
}

.loading-spinner .spinner-border {
  color: var(--primary);
  width: 3rem;
  height: 3rem;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 50px 20px;
  color: #666;
}

.no-results i {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 20px;
}

.no-results h4 {
  margin-bottom: 15px;
  color: #999;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  padding: 40px 0;
}

.load-more-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  color: white;
}

/* Animation */
.product-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.product-card.loaded {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-card {
    margin-bottom: 20px;
  }

  .product-image {
    height: 180px;
  }

  .product-body {
    padding: 15px;
  }

  .product-title {
    font-size: 13px;
    min-height: 35px;
  }

  .product-code {
    font-size: 10px;
  }

  .get-quote-btn {
    font-size: 11px;
    padding: 6px 14px;
  }
}

@media (max-width: 576px) {
  .product-image {
    height: 160px;
  }

  .product-body {
    padding: 12px;
  }

  .product-title {
    font-size: 12px;
    min-height: 30px;
  }
}
