/* ============================================================
   sections/products.css – Thẻ sản phẩm kỹ thuật chuẩn doanh nghiệp
   ============================================================ */

.products-section {
  background: var(--bg-page);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* Card */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-navy-light);
  box-shadow: var(--shadow-card-hover);
}

/* Image Wrap */
.product-img-wrap {
  position: relative;
  height: 240px;
  background: #F8FAFC;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cho ảnh phối cảnh cột đèn lấp đầy khung */
.product-card:nth-child(2) .product-img-wrap {
  padding: 0;
}

.product-card:nth-child(2) .product-img-wrap img {
  object-fit: cover;
}

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

/* Tag Badge */
.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
  z-index: 2;
}

/* Body */
.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-body h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.product-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.product-actions .btn-sm {
  flex: 1;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-img-wrap {
    height: 220px;
  }
}

@media (min-width: 1024px) {
  .product-img-wrap {
    height: 250px;
  }
  
  .product-body {
    padding: 28px;
  }

  .product-body h3 {
    font-size: 22px;
  }
}
