/* Ürünler Bölümü */
.products-section {
  padding: 80px 0;
  background: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: #2c3e50;
  font-size: 2.5rem;
}

/* Ürün Grid Sistemi */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Kart genişliğini sabitleyerek eşitleme */
  gap: 30px;
}

/* Ürün Kartları */
.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column; /* Kartların içeriğini dikey olarak hizalamak */
  height: 100%; /* Kartların tüm alanı doldurmasını sağla */
}

/* Kart Hover Efekti */
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Ürün Resmi */
.product-image {
  height: 200px;
  overflow: hidden;
  position: relative; /* Görselin pozisyonunu yönetebilmek için */
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Görselin boyutlarını kart alanına uydurur */
  transition: transform 0.5s ease;
}

/* Hover Efekti için Görsel */
.product-card:hover .product-image img {
  transform: scale(1.1);
}

/* Ürün İçeriği */
.product-content {
  padding: 20px;
  flex-grow: 1; /* İçerik kısmının esnek olmasını sağla */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* İçeriği dikey olarak hizala */
}

.product-content h3 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.4rem;
}

.product-content p {
  color: #7f8c8d;
  margin-bottom: 20px;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.product-btn i {
  margin-left: 8px;
  font-size: 0.9rem;
}

/* Hover Efekti için Buton */
.product-btn:hover {
  background: #2980b9;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Kart genişliğini küçültüyoruz */
    gap: 20px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr; /* Küçük ekranlarda tek sütun */
  }

  .product-card {
    max-width: 100%;
  }
}
