/* -------------------------------------------------------------
 * ShahaneTech Products Catalog Stylesheet (product.css)
 * Exact match for custom product grid design
 * ------------------------------------------------------------- */

.product-catalog-section {
  padding: 40px 20px 70px;
  background-color: #f8fafc;
}

.catalog-container {
  max-width: 1380px;
  margin: 0 auto;
}

/* IndiaMart Style 5-Column Responsive Product Grid */
.indiamart-product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Individual Product Card */
.im-product-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.im-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Product Image Box */
.im-card-img-box {
  width: 100%;
  height: 250px;
  background-color: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.im-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.im-product-card:hover .im-card-img-box img {
  transform: scale(1.03);
}

/* Card Body Content */
.im-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Title */
.im-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}

/* Price Bar */
.im-card-price {
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.im-card-price .currency-symbol {
  color: #0265c0;
  font-weight: 700;
  font-size: 1.05rem;
}

.im-card-price .price-value {
  color: #0265c0;
  font-weight: 700;
  font-size: 1.25rem;
}

.im-card-price .price-unit {
  color: #475569;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Specs List */
.im-card-specs {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.im-card-specs p {
  margin: 0;
  color: #334155;
}

.im-card-specs strong {
  font-weight: 600;
  color: #0f172a;
}

/* Action Area & Get Quote Button */
.im-card-action {
  margin-top: auto;
  padding-top: 5px;
}

.btn-get-quote {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #0265c0;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 0;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-get-quote:hover {
  background-color: #0052a3;
  box-shadow: 0 4px 14px rgba(2, 101, 192, 0.35);
  color: #ffffff;
}

.btn-get-quote:active {
  transform: scale(0.98);
}

/* Responsive Grid Breakpoints */
@media (max-width: 1200px) {
  .indiamart-product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (max-width: 992px) {
  .indiamart-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .im-card-img-box {
    height: 220px;
  }
}

@media (max-width: 680px) {
  .indiamart-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .im-card-body {
    padding: 12px;
  }
  .im-card-img-box {
    height: 190px;
  }
  .im-card-title {
    font-size: 0.95rem;
    height: 2.5rem;
  }
}

@media (max-width: 440px) {
  .indiamart-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .im-card-img-box {
    height: 240px;
  }
}
