/* Genel Sayfa Konteyneri */
.products-listing-container {
    display: flex; /* Sidebar ve ana içeriği yan yana getir */
    gap: 2.5rem; /* Boşluk */
    max-width: 1200px;
    margin: 2.5rem auto 4rem auto;
    padding: 0 2rem;
  }
  
  /* Sol Kenar Çubuğu (Filtreleme ve Sıralama) */
  .sidebar {
    flex: 0 0 400px; /* Sabit genişlik, küçülme ve büyüme yapmaz */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    align-self: flex-start; /* Üstte başlasın */
    position: sticky; /* Sayfa kaydırıldığında sabit kalsın */
    top: 2rem; /* Üstten ne kadar boşluk bırakılacağı */
    max-height: calc(100vh - 4rem); /* Ekran yüksekliğine sığdır */
    overflow-y: auto; /* İçerik taşarsa dikey kaydırma */
  }
  
  .sidebar h3 {
    font-size: 1.6rem;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  
  .filter-group {
    margin-bottom: 2rem;
  }
  
  .filter-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.8rem;
    font-size: 1rem;
  }
  
  .filter-group input[type="text"],
  .filter-group select,
  .filter-group input[type="number"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
  }
  
  .filter-group input[type="text"]:focus,
  .filter-group select:focus,
  .filter-group input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  }
  
  .filter-group .price-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  
  .filter-group .price-range span {
    color: #7f8c8d;
  }
  
  .filter-group .checkbox-item {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
  }
  
  .filter-group .checkbox-item input[type="checkbox"] {
    margin-right: 0.8rem;
    width: auto; /* Checkbox için tam genişliği iptal et */
    height: auto; /* Checkbox için otomatik yükseklik */
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .filter-group .checkbox-item label {
    font-weight: 400;
    color: #444;
    margin-bottom: 0;
    cursor: pointer;
  }
  
  .sidebar button {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
  }
  
  .sidebar button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
  }
  
  /* Ana İçerik Alanı (Ürün Listesi) */
  .main-content {
    flex: 1; /* Geri kalan alanı kapla */
  }
  
  .product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .product-list-header h1 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  
  .product-list-header .sort-options {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  
  .product-list-header .sort-options label {
    font-weight: 600;
    color: #555;
    margin: 0;
  }
  
  .product-list-header .sort-options select {
    padding: 0.6rem 1rem;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
  }
  
  /* Ürün Izgarası (Daha önce products.css'deydi, main.css'e taşınmalı) */
  /* Eğer main.css'e taşınmadıysa, aşağıdaki stilleri buraya eklemelisin */

  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  .product-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    text-decoration: none;
  }
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  .product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
  }
  .product-card h3 {
    font-size: 1.4rem;
    color: #2C3E50;
    margin: 1rem 1.5rem 0.5rem 1.5rem;
    line-height: 1.3;
  }
  .product-card .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3498db;
    margin: 0 1.5rem 0.5rem 1.5rem;
  }
  .product-card .company {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0 1.5rem 1.5rem 1.5rem;
    flex-grow: 1;
  }

  
  /* Sayfalama (Pagination) */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 0.5rem;
  }
  
  .pagination a, .pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px; /* Minimum genişlik */
    height: 40px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #3498db;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .pagination a:hover {
    background-color: #f0f2f5;
    border-color: #3498db;
  }
  
  .pagination .current-page {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    cursor: default;
  }
  
  /* Medya Sorguları (Responsive Tasarım) */
  @media (max-width: 992px) {
    .products-listing-container {
      flex-direction: column; /* Dikey sıralama */
      gap: 1.5rem;
      padding: 0 1rem;
    }
  
    .sidebar {
      position: static; /* Sabitliği kaldır */
      flex: 0 0 auto; /* Esnekliği kaldır */
      width: 100%; /* Tam genişlik */
      max-height: unset; /* Maksimum yüksekliği kaldır */
      overflow-y: visible; /* Kaydırmayı kaldır */
      padding: 1.5rem;
    }
  
    .product-list-header {
      flex-direction: column; /* Dikey sıralama */
      align-items: flex-start; /* Sola hizala */
      gap: 1rem;
    }
  
    .product-list-header h1 {
      font-size: 2rem;
    }
  
    .product-list-header .sort-options {
      width: 100%; /* Tam genişlik */
      justify-content: flex-start; /* Sola hizala */
    }
  
    .product-list-header .sort-options select {
      flex: 1; /* Genişliği kapla */
    }
  }
  
  @media (max-width: 576px) {
    .sidebar {
      padding: 1rem;
    }
  
    .sidebar h3 {
      font-size: 1.4rem;
    }
  
    .filter-group label {
      font-size: 0.9rem;
    }
  
    .filter-group input, .filter-group select {
      font-size: 0.85rem;
      padding: 0.6rem 0.8rem;
    }
  
    .product-list-header h1 {
      font-size: 1.8rem;
    }
  
    .product-grid {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Daha küçük kartlar */
      gap: 1rem;
    }
  
    .pagination a, .pagination span {
      min-width: 35px;
      height: 35px;
      font-size: 0.9rem;
    }
  }