.deal-card {
    display: flex;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.deal-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.deal-image {
    width: 180px;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--border-light);
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.deal-content {
    flex-grow: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.deal-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.deal-title a {
    color: var(--text);
    text-decoration: none;
}

.deal-title a:hover {
    color: var(--primary);
}

.deal-discount {
    background-color: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.deal-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.deal-price {
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.deal-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

.deal-meta p {
    margin: 2px 0;
}

.deal-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 4px;
}

.deal-link:hover {
    text-decoration: underline;
}

.deal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.deal-comments {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.favorite-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-muted, #9ca3af);
    transition: all 0.15s;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1;
}

.favorite-button:hover {
    color: #e74c3c;
    transform: scale(1.15);
}

.favorite-button.favorited {
    color: #e74c3c;
}

.deal-votes {
    width: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 16px 8px;
    background-color: var(--border-light);
    border-left: 1px solid var(--border);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .deal-card {
        flex-direction: column;
    }

    .deal-image {
        width: 100%;
        height: 180px;
    }

    .deal-votes {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        padding: 10px 0;
        border-left: none;
        border-top: 1px solid var(--border);
    }

}
