.product-card {
    border: 0.5px solid #c0392b;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Selalu 1:1 */
    object-fit: cover;   /* Biar gambar tidak gepeng */
    border-bottom: 1px solid #eee;
    display: block;
}

.price-wrapper {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.product-price-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.15rem;
}

.highlighted-price {
    background-color: #d1f2e4;
    color: #0f5132;
    padding: 0.15rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.8rem;
    white-space: nowrap;
    text-align: center;
    flex: 1;        /* <--- ini yang bikin dia isi ruang tersisa */
    min-width: 0;   /* biar text-overflow jalan */
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-to-cart-btn {
    width: 1.35rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.add-to-cart-btn .btn-checkmark {
    font-size: 0.75rem;
    line-height: 1;
}

.add-to-cart-btn i {
    font-size: 0.75rem;
}

.card-body {
    padding: 0.25rem;
}

.card-title {
    font-size: 0.7rem;
    margin-bottom: 0.35rem;
    word-wrap: break-word;
}

#product-list .list-price-container {
    display: flex;
    border: 1px solid #e74c3c;
    border-radius: 0.25rem;
    margin: 0;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    margin-bottom: 0.25rem;
    width: 100%;
    background: linear-gradient(to right, white 70%,  #e74c3c 30%);
}

#product-list .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.5rem;
    text-align: left;
    padding: 0.05rem 0.15rem;
}

#product-list .discount-label {
    background-color: #e74c3c;
    color: white;
    padding: 0.05rem 0.15rem;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    font-size: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.voucher-increase-badge {
    display: flex;
    background: #28a745;
    color: white;
    padding: 0.0625rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.52rem;
    margin-bottom: 0.25rem;
    min-width: 100%;
    text-align: flex-end;
    justify-content: center;
    white-space: nowrap;
}