main{
    max-width: 1800px;
    width: 95%;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: auto;
}

main .card{
    color: inherit;
    max-width: 300px;
    width: 250px;
    flex: 1 1 210px;
    text-align: center;
    height: 420px;
    border: 1px solid rgb(238, 238, 238);
    border-radius: 12px;
    margin: 16px;
    display: inline-block;
    transition: all 0.3s ease;
}
main .card:hover{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

main .card .image{
    height: 50%;
    max-height: 50%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center; /* Yatay ortalama */
    align-items: center; 
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

main .card .image img{
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
}

main .card .caption{
    padding-left: 1em;
    padding-right: 1em;
    text-align: left;
    line-height: 2em;
    height: 25%;
}

main .card .caption p{
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

main .card .caption .product_name{
    font-size: 1.3rem;
    height: 4.2rem;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; 
    hyphens: auto;
}

main .card .caption .price{
    margin-top: 30px;
    margin-bottom: 5px; 
}

main .card a{
    width: 50%;
}
main .filtre {
    width: 200px;
    height: auto;
    margin-bottom: auto;
    padding-bottom: 50px;
    margin-top: 80px;
    background-color: #f5f5f5;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}
main .filtre #minFiyat, #maxFiyat {
    font-weight: lighter;
    border-radius: 7px; 
    border: none; 
    width: 70px;
    margin-top: 5px;
}

.form-control {
    color: black;
    cursor: pointer;
}
#pagination {
    display: flex;
    flex-wrap: wrap; /* Öğelerin satır doldukça alt satıra geçmesini sağlar */
    justify-content: flex-end;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-right: 50px;
    overflow: auto;
    width: 100%;
}
.page-link {
    display: block;
    padding: 5px 10px;
    margin: 2px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #007bff;
    background-color: #fff;
    transition: background-color 0.3s, color 0.3s;
}
.page-link:hover {
    background-color: #007bff;
    color: #fff;
}
.page-linkactive {
    background-color: #007bff;
    color: #fff;
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}
.option-item {
    display: flex; /* Flexbox kullanarak input ve label'ı aynı satırda tutar */
    align-items: center; /* Input ve label'ı dikey olarak ortalar */
}

.option-item label {
    margin-left: 10px; /* Checkbox ile label arasında boşluk */
    overflow-wrap: break-word; /* Uzun kelimelerin kırılması */
    white-space: pre-wrap; /* Kelime sarmalama */
}
.info-heading {
    position: relative;
    cursor: pointer;
}

.info-heading::after {
    content: 'Yalnızca istenilen boyutlarda üretilebilen mobilyaları göster.';
    z-index: 8888;
    width: auto;
    position: absolute;
    bottom: -25px;
    left: 0;
    background-color: #333;
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.info-heading:hover::after {
    opacity: 1;
    visibility: visible;
}
.info-heading:focus::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px) {
    #pagination {
        padding-right: 20px;
    }
    .col-md-2 {
        width: 100%;
    }
    .col-md-10 {
        width: 100%;
        padding-left: 0px;
        padding-right: 0px;
    }
    main {
        justify-content: center;
        width: 100%;
    }
    main .card {
        width: calc(48% - 8px); 
        margin: 2px;
        margin-bottom: 25px;
        height: 320px;
    }
    main .card .caption {
        padding-left: 7px;
        padding-right: 7px;
    }
    main .card .caption p {
        font-size: 0.9rem; 
    }
    main .card .image {
        height: 50%;
        margin-bottom: 5px;
    }
    main .card .caption .price{
        font-size: 1rem;
        margin-top: 20px;
        margin-bottom: 0px; 
    }
    main .card .caption .product_name{
        font-size: 0.9rem;
        line-height: 1.3rem;
        height: 3.9rem;
        -webkit-line-clamp: 3;
    }
    #sortOptionsContainer {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-right: 32%;
        padding-left: 32%;
    }
    #product-list {
        text-align: center;
        width: 100%;
    }
    #toggleButton {
        display: block;
        margin-top: 20px;
    }
    main .filtre {
        width: 85%;
        margin-top: 10px;
        padding: 10px;
        padding-bottom: 30px;
        display: none;
    }

    main .filtre select, main .filtre input[type="number"], main .filtre button {
        width: calc(100% - 30px);
        margin-left: 15px;
    }

    main .filtre #minFiyat, #maxFiyat {
        width: calc(45% - 10px);
        margin-left: 5px;
        margin-right: 5px;
    }
}
/* Başlık */
.section-heading-custom {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 100%;
}

.section-heading-custom span {
  color: #b08b5a;
}

/* Grid yapısı */
.furniture-grid-custom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 250px));
  justify-content: center;
  gap: 24px;
  margin: 0 auto 60px;
  padding: 0 20px;
  width: 100%;
}


/* Kart */
.furniture-card-custom {
  border: 1px solid rgb(238, 238, 238);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  background-color: #fff;
width: 250px;
  aspect-ratio: 1 / 1;
}

.furniture-card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* Görsel */
.furniture-card-custom img {
  width: 80%;
  height: 70%;
  object-fit: cover;
}

/* Kart başlığı */
.furniture-card-title-custom {
  font-size: 1.1rem;
  margin: 24px 0;
  color: #333;
  text-align: center;
}

/* Tablet görünümü (4 sütun korunsun, kart boyutu ayarlansın) */
@media (max-width: 1080px) {
  .furniture-grid-custom {
    grid-template-columns: repeat(4, minmax(0, 180px));
    gap: 18px;
    padding: 0 16px;
  }
  .furniture-card-custom {
    width: 180px;
  }
  .furniture-card-title-custom {
    font-size: 0.8rem;
    margin: 12px 0;
    }
}

@media (max-width: 900px) {
  .furniture-grid-custom {
    grid-template-columns: repeat(4, minmax(0, 150px));
    gap: 18px;
    padding: 0 16px;
  }
  .furniture-card-custom {
    width: 150px;
  }
  .furniture-card-title-custom {
    font-size: 0.8rem;
    margin: 12px 0;
    }
}

/* Mobil görünümü (2 sütun × 4 satır) */
@media (max-width: 650px) {
  .furniture-grid-custom {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 12px;
  }
  .furniture-card-custom {
    width: 100%;
  }
}