.ebay-affiliate-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.ebay-listing {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s;
}

.ebay-listing:hover {
    transform: scale(1.05);
}

.ebay-listing img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ebay-listing h3 {
    font-size: 16px;
    margin: 10px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ebay-listing p {
    color: #0073aa;
    font-weight: bold;
    margin: 0 10px 10px;
}

.ebay-listing a {
    text-decoration: none;
    color: inherit;
}