.fav-favoriler-header-container {
    max-width: 78.2rem;
    margin: 0 auto 10px auto;
    text-align: left;
    padding-left: 10px;
}

/* Favorilerim başlığı */
.fav-favoriler-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0;
    padding: 10px 0;
}

/* Favorilerim sayfası konteyneri */
.fav-favoriler-container {
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    margin-top: 90px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: fit-content;
    /* Yüksekliği içeriğe göre otomatik ayarlanacak */
    min-height: auto;
    height: auto;
}

/* Favoriler doluysa genişliği sabit tut */
.fav-favoriler-container:has(.fav-favori-card-container) {
    width: 100%;
    max-width: 78.2rem;
}

/* Favoriler boşsa gösterilecek mesaj */
.fav-favori-bos {
    text-align: center;
    padding: 30px 20px; /* Daha kompakt bir padding */
    max-width: 400px;
    width: 100%;
}

/* Büyük kalp ikonu */
.fav-favori-empty-icon {
    font-size: 50px;
    color: #007782;
    margin-bottom: 10px;
}

/* Boş favoriler mesajı */
.fav-favori-empty-message {
    font-size: 18px;
    color: #555;
    font-weight: bold;
    line-height: 1.6;
}

/* Favori kartlarını düzenleme */
.fav-favori-card-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    justify-content: center;
    padding: 10px;
    align-items: stretch;
    width: 100%;
}

/* Kartların genişliği ve yüksekliği */
.fav-favori-card {
       width: 14rem;
    background-color: #ffffff;
    border: 1px solid #007782;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 8px;
    position: relative;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    min-height: 354px;
    max-height: 374px;
}

/* 5 sütundan az kaldığında hizalama bozulmasın */
.fav-favori-card-container:has(.fav-favori-card:nth-child(5)) {
    justify-content: center;
}

/* Profil fotoğrafları ve kullanıcı adı */
.fav-favori-card-header {
    display: flex;
    align-items: center;
    padding: 5px;
}

.fav-favori-profile-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
}

.fav-favori-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Resimler sabit yükseklikte olacak */
.fav-favori-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* Başlık alanı */
.fav-favori-card-title {
      font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fiyat ve tarih alanını düzenleme */
.fav-favori-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #007782;
    margin-top: auto;
    padding: 8px 0;
    border-top: 1px solid #ddd;
}

/* Favori butonu */
.fav-favori-fav-icon {
    color: #007782;
    font-size: 22px;
    cursor: pointer;
    position: absolute;
    background: white;
    border-radius: 61px;
    padding: 3px;
    top: 10px;
    right: 10px;
    z-index: 1;
    padding: 5px 5px;
    transition: color 0.3s ease-in-out;
}

/* Favoriye eklenince kırmızı yapsın */
.fav-favori-fav-icon.clicked {
    color: red;
}

/* Konum alanı */
.fav-favori-card-footer {
    font-size: 13px;
    color: gray;
}

/* Trend yıldız ikonu */
.fav-favori-trend-icon {
    color: rgb(240, 11, 11);
    font-size: 18px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Favoriden çıkarınca animasyonla yok olsun */
.fav-favori-card.removed {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Favori mesajını kalp ikonunun üstüne koy */
#fav-favori-message {
    background: #007782;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    position: absolute;
    z-index: 1000;
    display: none;
    transition: opacity 0.3s ease-in-out;
}

.fav-favori-mesaj {
    position: absolute;
    background: #007782;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    transform: translateX(-50%);
    top: -35px;
    left: 50%;
    display: none;
    transition: opacity 0.3s ease-in-out;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .fav-favori-card-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .fav-favori-card {
        min-height: 360px;
        max-height: 400px;
    }

    .fav-favori-card-image img {
        height: 170px;
    }
}





@media (max-width: 768px) {
    .fav-favori-card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 8px;
    }

    .fav-favori-card {
        min-height: 340px;
        max-height: 380px;
    }

    .fav-favori-card-image img {
        height: 160px;
    }

    .fav-favori-bos {
        max-width: 260px;
        padding: 20px 12px;
    }

    .fav-favori-empty-message {
        font-size: 14px;
    }

    .fav-favori-empty-icon {
        font-size: 34px;
    }
}

/* Küçük Telefonlar (max-width: 480px) */
@media (max-width: 480px) {
    .fav-favori-card-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* ✅ 2 sütun */
        gap: 10px;
        padding: 10px;
    }


 .fav-favori-card {
        width: 12rem; /* ✅ Sütuna tam oturması için */
        background-color: #ffffff;
        border: 1px solid #007782;
        border-radius: 15px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding: 8px;
        position: relative;
        box-sizing: border-box;
        transition: all 0.3s ease-in-out;
        min-height: 304px;
        max-height: 374px;
        
    }

    .fav-favori-card-image img {
        height: 150px;
        object-fit: cover;
        border-radius: 8px;
    }

    .fav-favori-empty-message {
        font-size: 13px;
    }

    .fav-favori-empty-icon {
        font-size: 30px;
    }
}
