/* ============================================
   PRODUCTS PAGE – Specific Styles
   ============================================ */

.products-hero {
  background-image: url('../assets/hero/hero-1.jpg');
  background-color: #152570;
}

/* ---- PRODUCT DETAIL CARDS ---- */
.product-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start; /* Changed from center to start to keep info aligned with top of image */
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}

.product-detail-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.product-detail-card.reverse {
  direction: rtl;
}

.product-detail-card.reverse > * {
  direction: ltr;
}

.product-detail-img {
  height: 380px;
  border-radius: var(--radius-lg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s ease;
  border: 1px solid var(--border);
}

.product-detail-card:hover .product-detail-img {
  transform: scale(1.02);
}

.product-tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.product-detail-info h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.product-detail-info p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.product-features {
  margin-bottom: 1.75rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-dark);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.product-features li:last-child { border-bottom: none; }

.product-features i { color: var(--brand-green); font-size: 0.8rem; flex-shrink: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .product-detail-card,
  .product-detail-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .product-detail-img { height: 260px; }
}

/* ---- CERTIFICATE STYLES ---- */
.certificates-flex-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: 3rem;
}

.certificates-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.certificate-image-wrap {
  flex: 1;
  text-align: center;
}

.full-certificate {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform 0.5s ease;
}

.full-certificate:hover {
  transform: scale(1.01);
}

@media (max-width: 1024px) {
  .certificates-flex-container {
    flex-direction: column;
    gap: 3rem;
  }
}

/* ---- CERTIFICATE CARDS COLORED ---- */
.certificate-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  text-align: center;
  border-left: 4px solid transparent;
}

.certificate-card:nth-child(1) { border-left-color: var(--brand-purple); }
.certificate-card:nth-child(2) { border-left-color: var(--brand-green); }
.certificate-card:nth-child(3) { border-left-color: var(--brand); }

.certificate-card:hover {
  transform: translateY(-3px);
}

.certificate-card:nth-child(1):hover { box-shadow: var(--shadow-purple); }
.certificate-card:nth-child(2):hover { box-shadow: var(--shadow-green); }
.certificate-card:nth-child(3):hover { box-shadow: var(--shadow-md); }

.certificate-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.certificate-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.certificate-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
/* ---- SPECIFICATION TABLE ---- */
.product-specs {
  grid-column: 1 / -1; /* Make it span full width */
  margin-top: 1rem; /* Reduced from 3rem as it's now a grid item */
  width: 100%;
}

.spec-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.spec-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
}

.spec-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.spec-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  background: rgba(30, 64, 175, 0.04);
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spec-label i {
  width: 20px;
  color: var(--brand);
  text-align: center;
  font-size: 1rem;
}

.spec-value {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
}

.spec-row:hover {
  background: rgba(30, 64, 175, 0.01);
}

@media (max-width: 600px) {
  .spec-row {
    grid-template-columns: 1fr;
  }
  
  .spec-label {
    padding: 0.75rem 1.25rem;
    background: rgba(30, 64, 175, 0.06);
  }
  
  .spec-value {
    padding: 0.75rem 1.25rem;
  }
}
