/* Gaya Kartu Utama */
.price-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    width: 100%; /* fluid: fill column */
    max-width: 340px; /* limit stretching */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid; /* Menggunakan CSS Grid */
    grid-template-rows: 200px 1fr; /* Gambar tetap 200px, konten fleksibel */
    animation: fadeIn 0.8s ease-out;
    box-sizing: border-box;
}

/* Make Poppins the default font for this stylesheet */
html,
.price-card,
.card-content,
.trash-title,
.trash-description,
.price-badge {
    font-family: "Poppins", sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-card:hover {
    transform: translateY(-8px); /* Efek melayang lebih dramatis */
    box-shadow: var(--shadow-hover);
}

/* Gaya Bagian Gambar */
.card-image-container {
    background: linear-gradient(
        135deg,
        var(--primary-green) 0%,
        #6dd5ed 100%
    ); /* Gradien keren */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; /* Pastikan gambar tidak keluar dari container */
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memenuhi container tanpa terpotong secara aneh */
    filter: drop-shadow(
        0 5px 10px rgba(0, 0, 0, 0.2)
    ); /* Bayangan pada gambar */
    transition: transform 0.3s ease;
}

.price-card:hover .card-image-container img {
    transform: scale(1.05); /* Sedikit zoom pada gambar saat hover */
}

/* Gaya Bagian Konten */
.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* center horizontally */
    text-align: center; /* center text */
    font-family: "Poppins", sans-serif; /* Use Poppins for card content */
}

/* Gaya Judul Sampah */
.trash-category {
    font-family: "Poppins", sans-serif;
    font-size: 1.1em;
    color: var(--light-text);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.trash-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1rem, 2.6vw, 1.4rem);
    color: var(--dark-text);
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.15;
}

/* Gaya Keterangan */
.trash-description {
    font-size: 0.95rem;
    color: var(--light-text);
    margin: 8px 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

/* Gaya Harga Sampah */
.price-wrapper {
    margin-top: 12px; /* sedikit jarak dari deskripsi */
    width: 100%;
    display: flex;
    justify-content: center;
}

.price-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #e0ffe7 0%, #b2f5ea 100%);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    margin: 0 auto 8px auto;
    font-family: "Poppins", sans-serif; /* Use Poppins */
    font-weight: 800;
    font-size: 0.95rem;
    color: #059669;
    position: relative;
    min-width: 0;
    justify-content: center;
    letter-spacing: 0.5px;
    transition: box-shadow 0.2s;
    white-space: normal;
    text-align: center;
}
.price-badge:hover {
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.18);
}
.price-main {
    color: #059669;
    font-size: 1em;
    font-weight: 900;
    margin-right: 6px;
    text-shadow: 0 2px 8px #b2f5ea44;
}
.price-unit {
    color: #0e766a;
    font-size: 0.85em;
    font-weight: 700;
    background: #d1fae5;
    border-radius: 8px;
    padding: 2px 8px;
    margin-left: 2px;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}
@media (max-width: 420px) {
    .price-badge {
        font-size: 0.9rem;
        padding: 6px 10px;
        min-width: 60px;
    }
    .price-main {
        font-size: 0.95rem;
    }
    .price-unit {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
    .trash-title {
        font-size: 1.05rem;
    }
}

.unit {
    font-family: "Poppins", sans-serif;
    font-size: 0.9em;
    color: var(--light-text);
    font-weight: 600;
    display: block;
    margin-top: 5px;
    text-transform: uppercase;
}
.price-unit {
    font-family: "Montserrat", sans-serif;
    color: var(--price);
    font-size: 22px;
    font-weight: 800;
}
.price-unit .unit {
    font-size: 13px;
    color: var(--muted);
    text-transform: none;
    margin-left: 6px;
    font-weight: 600;
}

/* Page title specific style */
.list-harga-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
}
