.compare-recent {
    background: #fff;
}

.compare-recent__heading {
    max-width: 760px;
}

.compare-recent-card {
    overflow: hidden;
    border: 1px solid #e8e5f1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, .055);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.compare-recent-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 33, 182, .22);
    box-shadow: 0 18px 44px rgba(17, 24, 39, .09);
}

.compare-recent-card__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 1.35rem;
    overflow: hidden;
    background: linear-gradient(180deg, #faf9fd 0%, #f6f4fb 100%);
}

.compare-recent-card__image img {
    width: 100%;
    max-width: 180px;
    height: 155px;
    object-fit: contain;
}

.compare-recent-card__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #ede9fe;
    color: #5b21b6;
    font-size: 1.6rem;
}

.compare-recent-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .58rem;
    border: 1px solid rgba(91, 33, 182, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #5b21b6;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.compare-recent-card__body {
    display: flex;
    flex-direction: column;
    min-height: 225px;
    padding: 1.25rem;
}

.compare-recent-card__meta {
    color: #667085;
    font-size: .78rem;
    font-weight: 650;
}

.compare-recent-card__title {
    color: #111827;
    font-size: 1.02rem;
    font-weight: 850;
    line-height: 1.4;
}

.compare-recent-card__title a {
    color: inherit;
    text-decoration: none;
}

.compare-recent-card__title a:hover {
    color: #5b21b6;
}

.compare-recent-card__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0eef5;
}

.compare-recent-card__price span,
.compare-recent-card__price small {
    display: block;
}

.compare-recent-card__price span {
    color: #667085;
    font-size: .69rem;
    font-weight: 750;
    text-transform: uppercase;
}

.compare-recent-card__price strong {
    color: #16803d;
    font-size: 1.28rem;
}

.compare-recent-card__price small {
    margin-top: .15rem;
    color: #98a2b3;
    font-size: .7rem;
}

.compare-recent-card__action {
    color: #5b21b6;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.compare-recent-card__action:hover {
    color: #4c1d95;
    text-decoration: underline;
}

.compare-recent-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border: 1px dashed #d9d3e8;
    border-radius: 20px;
    background: #faf9fd;
}

.compare-recent-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 15px;
    background: #ede9fe;
    color: #5b21b6;
}

@media (max-width: 767.98px) {
    .compare-recent-card__image {
        min-height: 165px;
    }

    .compare-recent-card__body {
        min-height: 0;
    }

    .compare-recent-empty {
        align-items: flex-start;
        flex-direction: column;
    }
}
