/* ================= PRODUCTS SECTION ================= */
.products-section {
  padding: 8rem 0 4rem;
  background: var(--bg-color);
}

@media (min-width: 768px) {
  .products-section {
    padding: 10rem 0 4rem;
  }
}

.section-header {
  text-align: right;
  margin-bottom: 3rem;
}

.section-header h1 {
  color: var(--text-dark);
  font-family: 'Lifta Swash Fixed', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 160%;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-medium);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 160%;
  max-width: 900px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: right;
  border: 2px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #6ef2c2, #8c7cff, #f6c177) border-box;

  height: 520px;
  align-self: stretch;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
  color: #2c3e5d;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 0.5rem;
  font-family: 'Lifta swash fixed', 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.4;
  text-align: right;
}

.product-card p {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: right;
}

.product-image {
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

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

.product-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
  width: 100%;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.product-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .section-header h1 {
    font-size: 24px;
  }

  .section-header p {
    font-size: 16px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }
}
